PHYSICS · LOCAL CALCULATOR

Sunrise Sunset Calculator

Estimate the sunrise and sunset times in your local timezone based on your location using the sunrise sunset calculator.

Enter values

How it works

This calculator evaluates the displayed equation variants locally in your browser. Enter the known values; results are shown for equations whose required inputs are available.

Check units, assumptions and professional guidance before using results for medical, financial, legal, engineering or safety-critical decisions.

Formulas used by this calculator

The Sunrise Sunset Calculator works with 22 quantities and 6 relations between them. Enter the values you know, leave the one you want to find blank, and press Calculate. Blank fields are never treated as zero. Each formula below is solved for one quantity.

Inputs

FieldName in formulasCan be solved for
XXInput only
DayDayInput only
PhiPhiYes
DayumdayumInput only
LongilongiYes
TwilitwiliInput only
BadphibadphiYes
SunsetsunsetInput only
TimzontimzonInput only
DaylisadaylisaInput only
SignphisignphiYes
SunrisesunriseInput only
BadlongibadlongiYes
DaylengthdaylengthInput only
SignlongisignlongiYes
SunsetrefsunsetrefInput only
SunriserefsunriserefInput only
DaylengthrefdaylengthrefInput only
Is sunset nanis_sunset_nanInput only
Is sunrise nanis_sunrise_nanInput only
Is sunset ref nanis_sunset_ref_nanInput only
Is sunrise ref nanis_sunrise_ref_nanInput only

Limitation: 11 of the 17 underlying relations rely on lookup tables or helper routines that run only on the original source calculator, so this page skips them. Quantities that depend on those relations are not solved here.