Date & TimeFormula-based · Runs in your browser

Sunrise Sunset Times Calculator

Estimate sunrise, sunset, solar noon, and day length from date, latitude, longitude, and UTC offset.

Preparing saved example…

Inputs

Enter the values you know. Optional fields may be left empty.

Local save controls below
Required
Required
Required
Required

Result

Updates as valid inputs change.

Calculated locally
Sunrise and sunset are estimates based on a standard solar model. Verify the UTC offset and daylight-saving status for the location.
Sunrise
Sunset
Solar noon
Day length
Solar status

Saved locally, explained clearly

Drafts, calculations, scenarios, and workflow progress stay in this browser unless you export them.

Opening local database…

Calculation steps

Follow what happened from the selected formula to the displayed answer.

Show substituted values and intermediate working
Calculate current inputs to see the working.
  1. 1

    Formula selected

    The calculator uses the following formula or method.

    sunrise and sunset use the NOAA solar-position approximation with zenith 90.833°

  2. 2

    Values entered

    Your values are placed into the calculation.

    Enter values to see what is used in this step.

  3. 3

    Result calculated

    The formula or method produces the following result values.

    Results will appear after a successful calculation.

  4. 4

    Answer formatted

    Displayed values are rounded and formatted using each output’s configured precision.

Scenario comparison

Save working scenarios, then select two or three to compare. Formula versions and inputs remain visible.

No scenarios saved for this calculator yet.

Recent calculations

Successful calculations are retained locally according to your privacy settings.

No local history for this calculator yet.

Data and privacy

What this calculator does

Estimate sunrise, sunset, solar noon, and day length from date, latitude, longitude, and UTC offset.

How it works

The calculator evaluates sunrise and sunset use the NOAA solar-position approximation with zenith 90.833°. Inputs are checked before calculation, and invalid values such as zero denominators or out-of-range selections produce a clear error instead of a misleading result.

Input query strings and outputs

Use an input name in this page’s URL as ?name=value, and join additional inputs with &. Portable shared links may instead use the compact ?ac= state parameter.

Input query strings

4
  • ?date= Date

    Date · Required · Default: 2026-09-01

  • ?latitude= Latitude (degrees)

    Number · Required · Default: 42.3601

  • ?longitude= Longitude (degrees; east positive)

    Number · Required · Default: -71.0589

  • ?utcOffset= UTC offset (hours)

    Number · Required · Default: -4

Outputs

5
  • sunrise Sunrise

    Text · Primary output

  • sunset Sunset

    Text

  • solarNoon Solar noon

    Text

  • dayLength Day length

    Text

  • status Solar status

    Text

Inputs and results

The inputs are Date, Latitude (degrees), Longitude (degrees; east positive), UTC offset (hours). Results include Sunrise, Sunset, Solar noon, Day length, Solar status.

Important notes

Sunrise and sunset are estimates based on a standard solar model. Verify the UTC offset and daylight-saving status for the location.

Sources
  • No external reference is listed for this calculator. Its formula and variable definitions are shown above.
Limitations
  • Sunrise and sunset are estimates based on a standard solar model. Verify the UTC offset and daylight-saving status for the location.
  • Calendar results depend on the selected dates and time-zone assumptions. Local holidays and daylight-saving changes are included only where stated.