What is a twilight calculator?
A twilight calculator works out when twilight starts and ends on a date and place you choose — civil, nautical, and astronomical twilight, morning and evening. Enter the date, your latitude and longitude, and your time zone offset, and it gives you the answer at once. It is the fastest way to answer a question that photographers, walkers, and astronomers ask every day: when is it dark enough to see the stars?
People use it for far more than curiosity. Astronomers plan around astronomical twilight, because the sky is only truly dark after it ends. Sailors plan around nautical twilight, when the horizon is still visible but the stars are out. Photographers plan around civil twilight, when there is still enough light to see by but the sun is down.
The times are estimates from a standard solar calculation, accurate to a few minutes for most places. They come from your latitude, longitude, and time zone, and they assume a flat horizon — hills, buildings, and weather shift the real times by minutes, so treat them as planning figures, not almanac times.
How twilight is worked out
Twilight is the time the sun spends below the horizon but close enough to light the sky. Civil twilight is when the sun is 6 degrees below the horizon — there is still enough light to read by, and the brightest stars are just visible. Nautical twilight is 12 degrees below — the horizon is still visible at sea, and the stars are out. Astronomical twilight is 18 degrees below — the sky is dark enough for faint stars, and after it ends the night is truly dark.
The results show civil, nautical, and astronomical twilight as dawn-to-dusk ranges, plus the day length from sunrise to sunset. Where a twilight does not occur — in a high-latitude summer, for example — the result shows a dash.
The calculation is the standard one used by sunrise and sunset calculators everywhere: the sun's declination from the day of the year, the equation of time from the Earth's tilt and orbit, and the hour angle from your latitude. It is accurate to a few minutes — good enough for planning, and honest about its limits.
One detail is worth knowing: the times are for the sun's centre crossing the horizon, with the usual correction for the sun's size and for the bending of light in the air. That correction is why the day at the equinox is a few minutes longer than twelve hours, and why the sun is visible for a minute or two after it has geometrically set.
Latitude — the input that matters most
Twilight depends on latitude more than anything else. Near the equator the sun drops fast, so twilight is short — about 25 minutes for civil twilight. At high latitudes in summer it lasts for hours, and in the far north the sun never sinks 18 degrees below the horizon at all, so there is no astronomical twilight — the whole night is twilight, and the sky never gets truly dark.
The longitude and time zone set the clock time. Two places on the same latitude have the same twilight lengths, but the clock time shifts with longitude — about four minutes per degree. Delhi is at 77.2 degrees east, and Indian Standard Time is 5 hours and 30 minutes ahead of UTC, which is why the calculator asks for both.
The defaults are Delhi, because it is a useful reference, but change them to your own place. The latitude is positive north and negative south, and the longitude is positive east and negative west — London is 51.5 north and 0.12 west, so its longitude is minus 0.12.
A worked example: Delhi, in June and December
First, the default on this page. Delhi, 21 June 2027: civil twilight 04:57 to 19:49, nautical twilight 04:24 to 20:21, astronomical twilight 03:49 to 20:56, and the day itself is 13 hours and 58 minutes. The sky is truly dark only from 20:56 to 03:49 — about seven hours — and the rest of the night is twilight of one kind or another.
Second, the same place in winter. Delhi, 21 December 2027: civil twilight 06:44 to 17:55, nautical twilight 06:15 to 18:25, astronomical twilight 05:46 to 18:54, and the day is 10 hours and 19 minutes. The night is longer in winter, and the truly dark hours stretch from 18:54 to 05:46 — nearly eleven hours of dark sky.
Third, a different latitude. London, 21 June 2027: civil twilight 03:55 to 22:09, nautical twilight 02:40 to 23:23, and no astronomical twilight at all — the sun never sinks 18 degrees below the horizon in a London summer, so the sky never gets truly dark. The day itself is 16 hours and 38 minutes, and the whole short night is twilight.
Why it matters, and who uses it
Astronomers are the main users. A telescope is useless until the sky is dark, and astronomical twilight is the line: after it ends, faint galaxies and nebulae are visible, and before it ends they are washed out. Knowing that the dark starts at 20:56 in Delhi in June is what sets the observing plan.
Sailors are the second group. Nautical twilight is when the horizon is still visible and the stars are out, which is the window for taking a star sight with a sextant — the oldest way to find a position at sea. Photographers are the third: civil twilight is the best light for cityscapes, when the sky is still blue and the lights are on.
Then there is the simple pleasure of it. An astronomer waiting for the sky to go dark, a sailor taking a star sight, a photographer catching the last blue light — twilight is the day's slow ending, and knowing its three stages is knowing the night.
The answer is also easy to check, which is the point of showing the working. Pick a date you know — the equinox, when the day is about twelve hours, or the solstice, when it is longest or shortest — and the figures should match what you remember. If they do, the calculator is working; if they do not, the latitude or time zone is the first thing to check.
Twilight Calculator vs golden hour calculator
These two tools start from the same sun and answer different questions. The golden hour is the hour after sunrise and the hour before sunset, when the sun is low and the light is warm and golden. Twilight is the whole fading of the light, in three stages — civil, nautical, and astronomical — from sunset to true dark. The golden hour sits just before civil twilight: the evening golden hour ends as the sun sets, and civil twilight begins. A photographer plans the golden hour for the shot, and an astronomer plans the end of astronomical twilight for the observing night.
If the question is 'when is it dark enough for stars', use this calculator. If the question is 'when is the golden hour', use the golden hour calculator instead. Use this calculator for the three stages of twilight, and the golden hour calculator for the warm light just after sunrise and just before sunset.
Both share the same solar maths — the declination, the equation of time, and the hour angle. A sunrise and sunset calculator gives the sun's times for the same date and place, which are the anchors the twilights are measured from. And a moon phase calculator gives the moon's phase, which matters on a dark night — a full moon washes out the stars even after astronomical twilight ends.
Common mistakes
The first mistake is expecting three twilights everywhere. At high latitudes in summer there is no astronomical twilight — the sun never sinks 18 degrees below the horizon — and near the poles there may be no nautical twilight either. The calculator shows dashes where a twilight does not occur, which is honest about the sky, not a fault in the maths.
Second: the wrong place. Twilight depends on latitude and longitude, and a calculator left on Delhi's defaults gives Delhi's times, not yours. Always set your own latitude and longitude, or the times will be hours out. Third: forgetting the time zone — a place at the same longitude but in a different time zone has a different clock time for the same sun.
Fourth: confusing dusk with dark. Civil twilight ends when the sun is 6 degrees down, but the sky is not truly dark until astronomical twilight ends, 18 degrees down. A photographer can work in civil twilight, but an astronomer has to wait for astronomical twilight — and in summer at high latitudes, that wait never ends.
How to use this twilight calculator
Using it takes seconds. Enter the date, then your latitude, longitude, and time zone offset. The defaults are Delhi — 28.6 degrees north, 77.2 degrees east, UTC plus 5.5 hours — so change them to your own place for your own times. The results update live as you type.
The results show civil, nautical, and astronomical twilight as dawn-to-dusk ranges, plus the day length from sunrise to sunset. Where a twilight does not occur — in a high-latitude summer, for example — the result shows a dash.
Everything runs in your browser, and nothing is stored. One practical tip: for stargazing, plan for the hour after astronomical twilight ends, when the sky is at its darkest and your eyes have had time to adapt — the dark is best an hour after dusk, not at dusk itself.