InputTestHub

Sunrise Sunset Calculator

Calculates sunrise, sunset, solar noon and day length for any latitude, longitude and date, with the equation of time and the sun declination shown.

Calculators Nothing uploaded No sign-up Free, unlimited
Calculators tool
YYYY-MM-DD.
Positive north, negative south.
Positive east, negative west.
The offset in force on that date. Daylight saving is not applied for you.
Optional. Height lowers the horizon and moves sunrise earlier.
Enter your figures and press Calculate.
In short Sunrise and sunset are worked out from three things: your latitude, the sun declination on that date, and the altitude the sun has to reach. That last one is not zero, and it is where most confusion starts. Sunrise is defined on the sun UPPER LIMB rather than its centre, which gains you the sun own radius of about 0.267 degrees, and atmospheric refraction near the horizon lifts the whole image by roughly 0.567 degrees. Together that is the standard −0.833 degrees, and both effects make the day longer — neither cancels the other. It is why the sun you see touching the horizon has geometrically already set. Solar noon is almost never 12:00 either. Two separate things move it: the equation of time, which runs from about −14.2 to +16.5 minutes across the year because the earth orbit is an ellipse and its axis is tilted, and your longitude relative to the centre of your time zone, which shifts it by four minutes per degree. Clock noon and sun noon coincide on roughly four days a year and can be more than half an hour apart otherwise. Above the Arctic circle and below the Antarctic there are dates with no sunrise or no sunset at all, and the honest answer there is to say so rather than to invent a time — polar day begins where the latitude exceeds 90 degrees minus the sun declination, and refraction pushes the real boundary about 50 arcminutes further out than the geometry alone suggests.

How to use the Sunrise Sunset Calculator

  1. Enter the date as YYYY-MM-DD.
  2. Enter your latitude and longitude, and the UTC offset in force that day.
  3. Add an elevation if you are on high ground with a clear horizon.

About the Sunrise Sunset Calculator

Sunrise, sunset, solar noon and day length for any place and date, with the working shown.

What people use it for

  • Planning a shoot, a walk or a drive around the actual daylight.
  • Checking how much the day has changed since last month.
  • Seeing why solar noon is not 12:00 where you live.

Details

Sunrise is defined at−0.833° — the upper limb, refracted
Of which refraction isabout 0.567°, and the sun own radius 0.267°
Equation of time−14.2 to +16.5 minutes across the year
Longitude moves solar noon4 minutes per degree
London 21 June 202616h 38m of daylight
London 21 December 20267h 50m of daylight
PrivacyEverything runs in your browser. No location lookup, nothing sent anywhere
Sunrise and sunset are not exactly equidistant from solar noon, because the sun declination moves while the day passes. At 60° latitude the gap reaches nearly two minutes in late spring.

Where this tool stops

Every time here is computed from your latitude, longitude and the UTC offset you enter — nothing is looked up and no location is guessed. Daylight saving is NOT applied: enter the offset that is actually in force on the date you are asking about, or add the hour yourself. Times assume a flat sea-level horizon, so hills, buildings and trees will move sunrise and sunset by minutes. This is astronomy, not weather: it tells you where the sun and moon are, never whether you will be able to see them.

Frequently asked questions

Why is solar noon not at 12:00?
Two reasons at once. The equation of time shifts it by up to about a quarter of an hour either way through the year, and your longitude against the centre of your time zone shifts it by four minutes for every degree. They only cancel on about four days a year.
What is the equation of time?
The difference between sundial time and clock time. It exists because the earth orbit is an ellipse, so it does not move at a constant speed, and because its axis is tilted, so the sun apparent motion is not parallel to the equator. Across 2026 it runs from −14.2 to +16.5 minutes.
Why is the day longer than sunrise-to-sunset geometry suggests?
Because sunrise is measured on the sun upper limb, not its centre, and because refraction lifts the image about half a degree near the horizon. Both make the sun appear earlier and linger longer, and together they add several minutes at each end.
Does altitude change sunrise?
Yes. Height lowers your visible horizon by about 0.0347 degrees times the square root of your elevation in metres, which brings sunrise forward and pushes sunset back. It is why a mountain top catches the sun before the valley does.
Why does it say the sun does not rise?
Because at that latitude and date it genuinely does not. Above the Arctic circle there are winter days with no sunrise and summer days with no sunset, and a tool that invented a time for them would be worse than one that says so plainly.
Are these times adjusted for daylight saving?
No. Enter the UTC offset that is actually in force on the date you are asking about — this tool will not guess a time zone from your coordinates or apply a summer-time rule for you.
Is the Sunrise Sunset Calculator free?
It is free, with no account, no trial and no daily cap. Every calculators tool on inputtesthub.com works the same way: open the page and use it.
Can you see what I put into this page?
No. The Sunrise Sunset Calculator runs entirely in your browser using JavaScript. Because the work happens locally, the page also keeps working if your connection drops, and closing the tab is all it takes to discard everything.
Who is the Sunrise Sunset Calculator for?
The most common reasons people reach for it: planning a shoot, a walk or a drive around the actual daylight. Checking how much the day has changed since last month. Seeing why solar noon is not 12:00 where you live. It is built for exactly those cases rather than being a general-purpose tool with this bolted on.
Where does the Sunrise Sunset Calculator stop being reliable?
Every time here is computed from your latitude, longitude and the UTC offset you enter — nothing is looked up and no location is guessed. Daylight saving is NOT applied: enter the offset that is actually in force on the date you are asking about, or add the hour yourself. Times assume a flat sea-level horizon, so hills, buildings and trees will move sunrise and sunset by minutes. This is astronomy, not weather: it tells you where the sun and moon are, never whether you will be able to see them. Knowing where a tool stops being trustworthy matters more than the cases where it works.
What are the key numbers for the Sunrise Sunset Calculator?
Sunrise is defined at is −0.833° — the upper limb, refracted. Of which refraction is is about 0.567°, and the sun own radius 0.267°. Equation of time is −14.2 to +16.5 minutes across the year. These are printed on the page itself, so you do not have to take them on trust.
How precise is the result?
The calculation runs in double precision and the result is shown to ten significant figures, so converting a value and converting it back returns the original. What is displayed is rounded for readability; what is copied is not.

Related calculators tools

All 382
01

Loan Calculator

Works out the monthly payment, total interest and full repayment schedule for any loan from…

02

EMI Calculator

Calculates your Equated Monthly Instalment with a full principal-versus-interest breakdown and…

03

Mortgage Calculator

Estimates a full monthly housing payment including principal, interest, property tax…

04

Car Loan Calculator

Calculates a car finance payment from the price, deposit, trade-in, interest rate and term…

05

Personal Loan Calculator

Works out instalments and total cost for an unsecured personal loan, including any processing…

09

SIP Calculator

Projects the maturity value of a monthly Systematic Investment Plan, showing invested amount…