Home › Time & Date › Sunrise Sunset Calculator

Sunrise Sunset Calculator

Get sunrise and sunset, solar noon, day length, every twilight phase and the golden and blue hours for any city or coordinates on any date. It uses the NOAA solar position algorithm and runs entirely in your browser.

Last updated:

North latitude and east longitude are positive; south and west are negative (e.g. New York 40.7128, −74.006).

Sunrise–
Sunset–
Day length–
Solar noon–

Morning

Evening

Month table

Advertisement

How to use the Sunrise Sunset Calculator

  1. Choose a city from the list, press Use my location, or type a latitude and longitude (north and east are positive).
  2. Pick a date. Today is selected by default.
  3. Check the time zone. It is set automatically for listed cities; for custom coordinates pick the right zone or enter a UTC offset.
  4. Press Calculate to see sunrise, sunset, twilight, golden hour and blue hour, plus the sun altitude chart.
  5. Scroll to the month table to plan ahead, and download it as a CSV file if you need it.

How sunrise and sunset are calculated

This calculator follows the solar position equations published by the US National Oceanic and Atmospheric Administration (NOAA), which are based on Jean Meeus' Astronomical Algorithms. For each date it works out the sun's declination (how far north or south of the equator it is) and the equation of time (how far sundial time runs ahead of or behind clock time). From these and your latitude and longitude it finds:

  • Solar noon = 12:00 − 4 minutes × longitude − equation of time (in UTC), then converted to the local time zone.
  • Hour angle for an altitude h: cos H = (sin h − sin φ · sin δ) / (cos φ · cos δ), where φ is latitude and δ is declination.
  • Sunrise / sunset = solar noon ∓ 4 minutes × H, with h = −0.833° to allow for refraction and the sun's radius. Each time is refined iteratively because the sun moves during the day.

When the cosine is greater than 1 the sun never climbs to that altitude (polar night); when it is less than −1 the sun never sinks below it (midnight sun). Results are typically within a minute of official almanac times; local terrain, elevation and unusual weather can shift what you actually see by a few minutes.

Twilight, golden hour and blue hour defined

PhaseSun's altitudeWhat it looks like
Dayabove −0.833°Sun visible above the horizon
Golden hour+6° to −4°Low, warm, soft light with long shadows
Civil twilight0° to −6°Bright enough to be outdoors without lights; brightest planets visible
Blue hour−4° to −6°Deep blue sky, city lights on, ideal for cityscapes
Nautical twilight−6° to −12°Horizon at sea fades; navigators could still take star sightings
Astronomical twilight−12° to −18°Sky looks dark, but faint objects are still washed out
Nightbelow −18°Fully dark sky for astronomy

Photographers use slightly different golden and blue hour limits; the ones above are the most common. Near the equator the sun drops steeply, so twilight and golden hour are short (around 20–25 minutes). At high latitudes in summer the sun skims the horizon and golden hour can last for hours.

Examples and seasonal patterns

  • London, 21 June 2024: sunrise 04:43, sunset 21:22 (BST), about 16 h 38 min of daylight. On 21 December the day is only about 7 h 50 min.
  • New York, 21 December 2024: sunrise 07:16, sunset 16:32 (EST), about 9 h 15 min of daylight.
  • Tromsø, Norway: by the standard sunrise definition the sun does not set from about 18 May to 25 July, and does not rise from about 27 November to 14 January.
  • Equinoxes: around 20 March and 22–23 September day and night are nearly equal everywhere, but day is slightly longer than 12 hours because of refraction and the sun's size.

The earliest sunset of the year does not fall on the shortest day: in the Northern Hemisphere it comes about two weeks before the December solstice and the latest sunrise about two weeks after, because of the equation of time. To compare clock times across places, try the World Clock or the Time Zone Converter.

Frequently asked questions

How accurate are these sunrise and sunset times?

The calculator uses the NOAA solar position equations, which are accurate to within about a minute for locations between the polar circles. Real sunrise can differ by a minute or two because of air temperature and pressure changing atmospheric refraction, and because hills, buildings or your altitude change the visible horizon.

What is the definition of sunrise and sunset?

Sunrise and sunset are the moments when the top edge of the sun touches the horizon. Because of atmospheric refraction (about 34 arcminutes) and the sun's radius (about 16 arcminutes), this happens when the sun's centre is 0.833° below the geometric horizon.

What is golden hour?

Golden hour is the period shortly after sunrise and before sunset when the sun is low, giving warm, soft, directional light that photographers love. This tool defines it as the sun being between 4° below and 6° above the horizon. Near the equator it lasts under an hour; at high latitudes it can last much longer.

What is blue hour?

Blue hour is the part of twilight when the sun is between 6° and 4° below the horizon. The sky turns a deep blue while city lights are already on, which is ideal for cityscape and night photography. It happens before sunrise and after sunset and usually lasts 10 to 20 minutes.

What is the difference between civil, nautical and astronomical twilight?

They are defined by how far the sun's centre is below the horizon: civil twilight ends at 6° (outdoor activities possible without lights), nautical twilight at 12° (horizon at sea no longer visible) and astronomical twilight at 18° (the sky is fully dark for astronomy).

Why is solar noon not at 12:00?

Solar noon is when the sun is highest in the sky. It depends on your longitude within your time zone, daylight saving time and the equation of time, a seasonal shift of up to about 16 minutes caused by Earth's tilted, elliptical orbit.

What happens near the poles?

Above the Arctic Circle and below the Antarctic Circle the sun may stay above the horizon all day (midnight sun) or below it all day (polar night). The calculator shows these days clearly instead of a sunrise or sunset time, and the twilight phases may also last all night or not occur.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

World ClockCurrent time in cities worldwide with day and night shading and saved clocks.Time Zone ConverterCompare time zones and plan meetings.Day of the Week CalculatorFind the weekday of any date, with Zeller and Doomsday steps.Days Until CalculatorCount down the days to any event.Aurora ForecastLive Kp index, 3-day NOAA forecast and the chance of seeing the northern lights from your location.Barometric Pressure TodayCurrent air pressure near you with a rising or falling trend and a 48-hour chart in hPa or inHg.Birth Chart CalculatorFree natal chart from your birth date, time and place: planet signs, houses, aspects and a chart wheel.Exposure Value CalculatorEV from aperture, shutter and ISO, or solve any missing setting with sunny 16 presets.Online Alarm ClockSet multiple alarms with sounds, snooze and keep-screen-awake.Today's DateWhat is today's date? Live date in every format: ISO, US/EU, week number, Unix, Hijri, Hebrew.Days Between DatesCount days, weeks, months and business days between two dates.Countdown TimerOnline timer with alarm sound.10 Minute TimerA ready-to-go 10 minute countdown with alarm and fullscreen.30 Minute TimerA ready-to-start 30 minute countdown with alarm, fullscreen and presets.5 Minute TimerA 5-minute countdown with alarm sound and fullscreen mode.1 Minute TimerA ready-to-go 60 second countdown with alarm and fullscreen.15 Minute TimerA ready-to-go 15 minute countdown with alarm, presets and fullscreen view.20 Minute TimerA ready-to-go 20 minute countdown with alarm, presets and fullscreen view.Week Number CalculatorSee the current ISO week number and look up the week of any date.Business Days CalculatorCount working days between dates, excluding weekends and holidays.Pomodoro Timer25/5 focus and break timer with alerts and a task list.Interval TimerHIIT and Tabata interval timer with rounds, sets, beeps and voice cues.Military Time ConverterConvert between 12-hour and 24-hour military time.Chess ClockTwo-player chess timer with blitz presets, increment and delay modes.StopwatchOnline stopwatch with laps, fullscreen mode and CSV export.Hours Calculator (Time Card)Weekly time card with breaks, overtime, pay, print and CSV.Time CalculatorAdd, subtract, multiply and divide times in hours, minutes and seconds.Date CalculatorAdd days to a date or count days between dates.Time Duration CalculatorHours, minutes and seconds between two times, overnight too.Unix Timestamp ConverterConvert epoch timestamps to dates and back.Decimal Hours ConverterConvert decimal hours to hours and minutes and back, with a payroll timesheet.Classroom TimerBig visual countdown ring timer for classrooms with presets and end sounds.Julian Date ConverterConvert dates to day-of-year (YYDDD), Julian Day Number and JD, and back.UTC Time NowLive UTC and GMT clock with ISO 8601, Unix time and an offset converter.Online Clock (Full Screen)Big full-screen digital and analog clock with 12/24h, date and themes.Christmas CountdownLive countdown of days, hours, minutes and sleeps until Christmas Day.Flip ClockA full-screen retro flip clock with 12/24-hour time, seconds, date and dark display.New Year CountdownLive countdown to New Year in your time zone, with year progress and fireworks.Bread Baking Schedule PlannerPick when you want bread; get start times for levain, bulk, shaping, proof and bake.Breast Milk Storage CalculatorUse-by date and time for pumped breast milk at room temp, in the fridge or freezer (CDC).Car Maintenance Schedule GeneratorGet your upcoming oil, tire, brake and fluid services by date and mileage from how you drive.Crop Rotation PlannerTurn your beds and crops into a 3 or 4 year rotation plan so no plant family repeats in a bed.Menstrual Cycle Phase CalculatorSee which cycle phase you're in today and a color-coded calendar of upcoming phases.Day Count Convention CalculatorDay count and year fraction for 30/360, 30E/360, Actual/360, Actual/365 and Actual/Actual.Dog Food Transition SchedulePlan a day-by-day switch to a new dog food with old/new ratios and cups or grams per meal.20-20-20 Eye Break TimerEvery 20 minutes, look 20 feet away for 20 seconds: reminders, notifications and a break overlay.Half Marathon Training Plan Generator10 to 16 week half marathon plan from your race date and level, with long runs, taper, paces and .ics.Horse Age CalculatorConvert horse years to human years, see the life stage, or get exact age from a foaling date.ISO 8601 Duration ConverterParse or build ISO 8601 durations like P1DT2H30M and convert them to seconds and h:m:s.Kegel Exercise TimerGuided squeeze and relax timer for pelvic floor exercises with levels, sets, sound, vibration and streaks.Kitten Vaccination ScheduleGet dated kitten shot visits (FVRCP, rabies, FeLV) from a birth date, plus an ICS calendar.Lawn Fertilizer ScheduleYearly lawn calendar for your grass type and region: feeding, pre-emergent, aeration and seeding dates.Mood TrackerLog your daily mood with emojis, notes, sleep and exercise; see a calendar heatmap and trends.Moving Checklist GeneratorEnter your move date and situation for a week-by-week moving to-do list with real dates.Pressure Cooker Time ConverterConvert stovetop, oven or slow cooker recipes to pressure cooker time and liquid.Pumping Schedule GeneratorPump times, sessions per day and ounce targets by baby's age, exclusive or partial.Puppy Potty Training SchedulePrintable potty break times, night trips and crate limits for your puppy's age.Sleep Regression CalculatorDates of your baby's 4, 8, 12 and 18 month sleep regressions and growth spurts.Sleep Schedule AdjusterGradually shift your bedtime and wake-up time with a day-by-day plan.Stock Market Holidays CalendarNYSE and Nasdaq holidays and early closes for this year and next, with .ics calendar export.Water Intake TrackerTap to log glasses and bottles, fill your daily goal ring, get drink reminders and see your history.2028 CalendarPrintable 2028 leap-year calendar with US holidays and week numbers; yearly or monthly, PDF or PNG.Coffee Brew TimerStep-by-step brew timer for pour-over, Chemex, French press and AeroPress with water targets.Fuel Log and MPG TrackerLog fill-ups by odometer, gallons and price to track MPG per tank, average MPG and cost per mile.Christmas Gift TrackerTrack Christmas gifts by person: ideas, budget, bought and wrapped status, and total spending.Garden Harvest TrackerLog garden harvests by crop, date and weight; see totals per crop and season and grocery money saved.Home Inventory ListRoom-by-room home inventory with values, purchase dates, serial numbers and photos; print or CSV.Home Maintenance ChecklistSeasonal and monthly home upkeep checklist with dates, built from your home's features.
See all 275 Time & Date Tools →