Below, find an interactive sunrise sunset calculator displaying exact sun times for any location worldwide. See today's sunrise, sunset, solar noon, daylight duration, and golden hour and blue hour for photographers with one-click copying for easy sharing. Search from 150,000+ cities or use your current location for instant sun tracking.
Sunrise Sunset Calculator (and golden hour tracker)
Using the sunrise sunset calculator
The sunrise sunset calculator either detects your location (with permission!) or lets you search through a city database. Times update automatically, and clicking any computed sun time copies it to your clipboard for easy sharing. (Tap to copy on mobile).
Basic sun tracking features
- Sunrise & Sunset Times: See when the sun crosses the horizon, updated for your location choice
- Solar Noon: When the sun reaches its highest point
- Daylight Duration: Total hours and minutes of daylight
- Location Search: Type a city name to get results from the database of 150,000+ locations
- Date: Change the date, with presets for today, tomorrow, and the summer and winter solstice. You'll see the past or future... or, well, the present... sun times.
Click any time (tap on mobile) to instantly copy it - the copy button turns green to confirm it worked.

Photography: golden hour & blue hour
- Golden Hour Calculator: Shows both morning and evening golden hours shortly before sunrise or after sunrise. Golden hour is the time photographers love when the sun bathes things in warm, golden light.
- Blue Hour Times: Captures the brief window of twilight right before sunrise or just after sunset, when the sun is 4 to 6 degrees below the horizon. The deep blue sky during this window is perfect for photographers capturing cityscapes or dramatic portraits.
Each photography time period gets its own quick reference card with start and end times marked.
Advanced twilight calculations
If you click the Show Advanced Options button, it'll expand the outputs to show more times:
- Civil Twilight: When the sun is 0-6° below the horizon
- Nautical Twilight: The sun is 6-12° below the horizon
- Astronomical Twilight: When the sun is 12-18° below the horizon
Of course, you will see those twice a day. The tool will show the dawn and dusk sun timing for all three.

Sun calculation sources
- Sun positions use the SunCalc library. Calculations account for atmospheric refraction (where you can see the sun slightly before geometric sunrise), latitude and longitude, and date. Times are typically accurate to within 1-2 minutes of official NOAA tables.
- Cities Database: Geographic data from cities.json, sourced from GeoNames Gazetteer.
In extreme latitudes during summer or winter, some twilight phases may not occur (think: daylong daylight or darkness). A "Does not occur" in these cases is correct, not a bug!
Related sun and astronomy tools
Track more than just sunrise and sunset with these related calculators:
- Day Night World Map - The terminator line and global daylight in real-time
- Moon Phase Calendar - Track lunar cycles and moonrise times
- Solar Panel Angle Calculator - Optimize panel tilt for maximum energy
- Daylight Hours Graph - Compare daylight patterns through the year
- Hours Between Calculator - Calculate time spans between any two times
- Days Between Two Dates - Count days between dates
- Sun Path Diagram Generator - See the sun's path across the sky
- Astronomical Events Calendar - Eclipses, equinoxes, meteor showers
- Time Zone Conversion Calculator - Convert times across zones
- Day of the Week Calculator - Find what day a date falls on
- UNIX Time to Date Converter - Convert UNIX timestamps to readable dates
- World Clock - Live time in major cities