Sunrise Sunset Calculator

Sunrise (estimate)—
Sunset (estimate)—
Day length—
Day length in hours—

How Sunrise Sunset Calculator is calculated: Estimate from the standard solar-position approximation: sunrise and sunset from the sun's declination and the hour angle at your latitude and longitude, converted with your time-zone offset. Estimates, usually within a few minutes of almanac values — not exact.

What is a sunrise sunset calculator?

A sunrise sunset calculator estimates the times the sun rises and sets on a given date at a given place. Enter a date, a latitude, a longitude, and your time-zone offset, and it gives you the sunrise time, the sunset time, and the length of the day. The default example is Delhi — latitude 28.61, longitude 77.21, time zone UTC+5:30 — on 21 June 2026, the longest day of the year: sunrise at 5:23 AM, sunset at 7:22 PM, and a day of 13 hours and 58 minutes.

These times matter for planning. A photographer wants the golden hour, a farmer wants the working light, a runner wants to be home before dark, and a family planning an evening out wants to know when the light goes. Sunrise and sunset move by minutes every day, and the calculator tracks that movement for any place on Earth.

One honest limit up front: these are estimates, not almanac values. The page uses the standard solar-position approximation, which is usually within a few minutes of the published times for a place. It does not account for hills, buildings, or local weather, and it does not know about daylight saving unless you set the time-zone offset to match it. Treat the times as a planning guide, not a legal record.

How sunrise and sunset are estimated

The calculation starts with the sun's position. For the date you enter, it works out the sun's declination — how far north or south of the equator the sun sits — and the equation of time, which is the difference between clock time and sun time on that date. On 21 June the declination is about +23.4 degrees, which is why the northern hemisphere gets its longest day.

Then it works out the hour angle: how far the sun has to travel from noon to reach the horizon at your latitude. At the equator the sun rises almost straight up, and the day is close to 12 hours all year. At higher latitudes the sun takes a longer, flatter path, so summer days stretch and winter days shrink. The formula is: sunrise and sunset from the sun's declination and the hour angle at your latitude and longitude, converted with your time-zone offset.

The times are then converted from UTC to your local time using the offset you entered. Delhi is UTC+5:30, so a sunrise at 23:53 UTC becomes 5:23 AM local time. The offset is yours to set — London in June is UTC+1 with daylight saving, and UTC+0 in winter — because the page cannot know your daylight saving rules. Set the offset to the one in force on the date you entered.

Latitude and time zone — the inputs people get wrong

Latitude is the input that decides the answer. A place at 28.61 degrees north, like Delhi, gets a longest day of 13 hours and 58 minutes. London, at 51.5 degrees north, gets 16 hours and 38 minutes on the same date. A place on the equator gets about 12 hours and 7 minutes all year. A small error in latitude — a degree or two — moves the times by minutes, so enter the latitude of the place, not the country.

The time-zone offset is the input people forget. The page does not know about daylight saving, so London in June needs +1 and London in December needs +0. Enter the offset in force on the date you picked, including daylight saving if it applies. A wrong offset shifts both times by the same amount — the day length stays right, but the clock times are wrong.

The third error is the sign of the longitude. East is positive and west is negative: Delhi is +77.21, London is -0.12, New York is about -74. A flipped sign moves the times by hours, not minutes. A sleep calculator plans the night around the same light, and a day of week calculator gives the weekday of any date you plan around.

A worked example: Delhi on the longest day

Run the default example. Date 21 June 2026, latitude 28.61, longitude 77.21, time zone +5:30. The sun rises at 5:23 AM and sets at 7:22 PM, and the day is 13 hours and 58 minutes long. Published almanac times for Delhi on 21 June are about 5:24 AM and 7:22 PM, so the estimate is within a minute or two — the approximation is doing its job.

Now try the shortest day. Date 21 December 2026, same place, same offset. The sun rises at 7:09 AM and sets at 5:29 PM, and the day is 10 hours and 19 minutes long. The difference between the longest and shortest day in Delhi is 3 hours and 39 minutes — the swing from summer to winter at 28.61 degrees north.

A third case shows a higher latitude. Date 21 June 2026, London — latitude 51.5, longitude -0.12, time zone +1 for British Summer Time. The sun rises at 4:43 AM and sets at 9:21 PM, and the day is 16 hours and 38 minutes long — nearly three hours longer than Delhi on the same date, because London is much further north.

Why sunrise and sunset times matter

Photographers plan around them. The golden hour — the hour after sunrise and the hour before sunset — is the light photographers want, and its timing moves by minutes every day. A shoot planned for 6:00 PM in June is in daylight, and the same shoot in December is in darkness, because the sunset moves from 7:22 PM to 5:29 PM in Delhi.

Outdoor work and sport use them too. A runner, a cyclist, or a construction crew wants to know when the light goes, and a farmer wants the working day. A sleep cycle calculator plans the night in 90-minute cycles, and the sunrise time is the natural end of the night it plans around.

Then there are the daily routines. School runs, evening walks, prayer times, and outdoor dinners all sit around sunset, and the times move enough across a month to matter — Delhi's sunset moves from about 7:22 PM in June to about 5:29 PM in December, a shift of nearly two hours. The calculator tracks that movement for any date you pick.

Sunrise sunset calculator vs daylight calculator

These two tools answer different questions about the same sun. The sunrise sunset calculator gives the clock times — sunrise at 5:23 AM, sunset at 7:22 PM — plus the day length. The daylight calculator gives the day length only, from a date and a latitude, with no clock times and no time-zone offset.

Use this calculator when the question is 'what time does the sun rise and set'. Use the daylight calculator when the question is 'how long is the day'. The two agree with each other, because the day length is the gap between the sunrise and sunset this calculator gives — 7:22 PM minus 5:23 AM is 13 hours and 59 minutes by the rounded clock times, against the exact 13 hours and 58 minutes the day-length figure gives, a one-minute rounding difference.

For the weekday of a date, the day of week calculator is the specialist tool. For the month around a date, a calendar calculator shows it. The sun times and the calendar are separate facts, and each tool gives the one it is built for.

Common sunrise sunset mistakes

The most common mistake is forgetting daylight saving. London in June is UTC+1, not UTC+0, and entering +0 shifts both times an hour early. Set the offset to the one in force on the date you entered, including daylight saving if it applies.

Second: the wrong latitude. A latitude of 28.61 is Delhi; a latitude of 51.5 is London, and the two give days that differ by nearly three hours in June. Third: treating the estimate as exact. The approximation is usually within a few minutes, but hills, buildings, and weather move the visible sunrise by minutes, and the page does not model them.

Fourth: the polar cases. Above the Arctic Circle the sun does not rise at all in midwinter and does not set at all in midsummer. At 78 degrees north on 21 December the calculator shows a polar night — 0 hours of daylight — and on 21 June it shows midnight sun — 24 hours. Fifth: the sign of the longitude. East is positive, west is negative, and a flipped sign moves the times by hours.

How to use this sunrise sunset calculator

Using it takes about thirty seconds. The date is set to 21 June 2026 and the place to Delhi, so the worked example shows at once. Change the date with the date picker, type the latitude and longitude of the place — a map or a search gives them in seconds — and set the time-zone offset in force on that date, including daylight saving.

Read the sunrise and sunset as estimates, usually within a few minutes of the published times. If the place is near the Arctic Circle in winter or summer, expect a polar night or midnight sun result instead of clock times — the sun genuinely does not rise or set on those dates.

Everything runs in your browser, so nothing you enter is uploaded or stored. One practical tip: for anything that decides a plan — a shoot, a run, a journey — check the times against a published almanac for the place on the day. An estimate is a planning guide, and a published time is the record.

Frequently Asked Questions

About 5:23 AM, with sunset at about 7:22 PM and a day of 13 hours and 58 minutes. This is an estimate from the standard solar-position approximation — published almanac times for Delhi on 21 June are about 5:24 AM and 7:22 PM, so the estimate is within a minute or two.

Usually within a few minutes of published almanac times for a place. It uses the standard solar-position approximation and does not model hills, buildings, or weather, which move the visible sunrise by minutes. Treat the times as estimates for planning, not as exact records.

Because the calculation works in UTC and converts to your local time with the offset you enter. The page does not know about daylight saving, so London in June needs +1 and London in December needs +0. A wrong offset shifts both times by the same amount.

The sun does not rise at all — a polar night. At 78 degrees north on 21 December the calculator shows 0 hours of daylight and no sunrise or sunset. On 21 June at the same latitude it shows midnight sun, 24 hours of daylight.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.