Getting Started
Learn how to use the Dark Sky Calculator to find optimal observation times for astronomy and light pollution monitoring.
What is the Dark Sky Calculator?
The Dark Sky Calculator helps you identify periods of complete darkness—times when both the Sun is far below the horizon (astronomical twilight ends) and the Moon is not visible. These conditions are ideal for:
- Astronomical observations and astrophotography
- Light pollution monitoring and research
- Night sky quality assessments
The calculator determines when the Sun is at least -18° below the horizon (astronomical twilight) and when the Moon is absent from the sky, providing you with precise dark time windows.
Quick Start Guide
Follow these steps to start finding optimal dark sky times. For common questions, visit our FAQ page.
Navigate to the Calculator
Choose Your Location
You have multiple options for setting your observation location using the two-tab interface:
🔍 Search Tab
- Search by name: Type a city, address, or landmark (e.g., "Yellowstone National Park")
- Enter coordinates: Type latitude, longitude format (e.g., "40.7128, -74.0060")
- Use the map: Click anywhere on the interactive map to place a marker
- GPS location: Click "My Location" button to use your current position
📍 Saved Tab
- Select from previously saved locations
- Save new locations for future use (stored in your browser)
- Delete locations you no longer need
Map controls: My Location (GPS), Center (recenter on marker), Clear (remove marker), Light/Dark (toggle map theme)
Select Your Timezone
Choose Date Range
Calculate
Review Results
Understanding Your Inputs
Latitude & Longitude
Your geographic coordinates determine the Sun and Moon positions relative to your location.
How to find them: Use the built-in location search (just type a place name), GPS button for your current location, or click directly on the interactive map. You can also enter coordinates manually if you have them.
Elevation
Elevation affects the horizon and atmospheric refraction calculations, though the impact is typically small for most applications.
Tip: If you don't know your exact elevation, an approximate value (within 100m) is usually sufficient.
Timezone
Critical for displaying times correctly. The calculator handles daylight saving time automatically based on your selected timezone. Setting the timezone allows you to see results in local time or any other desired timezone.
Note: Use IANA timezone names (e.g., "America/New_York" not "EST").
Date Range
The period you want to analyze for dark time windows. Shorter ranges calculate faster, but longer ranges help identify patterns over time.
Recommendation: Start with a week or month, then expand as needed.
Saved Locations
Save your frequently-used observation sites for quick access. Saved locations are stored in your browser's local storage and include the full address, coordinates, timezone, and elevation.
Note: Clearing your browser's website data will remove all saved locations. Export important data before clearing browser storage.
Reading Your Results
Understanding the Results Table
Dark Windows Column
Astronomical Events
- Astronomical Night Start/End: When the Sun reaches -18° below the horizon
- Moon Rise/Set: When the Moon crosses the horizon
- Special conditions (e.g., "Moon continuously below horizon")
Type Badges & Duration
- Purple (Polar Night): Entire night between astronomical twilights
- Orange (Dusk): Dark period after sunset before midnight
- Blue (Dawn): Dark period after midnight before sunrise
The Duration column (immediately to the right of Dark Windows) shows how long each window lasts in hours and minutes (e.g., "4h 32m").
Filter Controls
- Minimum Duration: Show only windows longer than specified hours
- Window Types: Filter by Dawn, Dusk, or hide empty days entirely
- Time Range: Display only windows within specific hours (e.g., 8 PM to 10 PM)
Active filters apply to both table display and CSV exports.
View Chart
Exporting Data
Export your results in CSV format for further analysis or record keeping. Two export options are available:
Simple CSV
- Date (YYYY-MM-DD)
- Dark Time Start (Dawn) and Dark Time End (Dawn)
- Dark Time Start (Dusk) and Dark Time End (Dusk)
Best for: Quick reference, sharing results, basic analysis
Detailed CSV
- All simple CSV columns
- Moon rise and moon set times
- Moon altitude at start and end of day (00:00:00, 23:59:59)
- Astronomical twilight start and end times (Sun at -18°)
- Moon altitude at astronomical twilight boundaries
Best for: Research, detailed analysis, troubleshooting, verifying calculations
Both formats include a header with attribution information (for citing in publications), your input parameters (location, timezone, date range), and any active filters applied to the data.
Tips & Best Practices
- High latitude locations during summer (continuous twilight)
- Dates near full moon when the Moon is up all night
- Times when the Moon sets after astronomical twilight ends
Technical Details
What is Astronomical Twilight (-18°)?
Why Does Moon Presence Matter?
Calculation Precision
- Earth's axial tilt and precession
- Atmospheric refraction
- Observer elevation effects
- Precise lunar orbit calculations