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.

1

Navigate to the Calculator

From the navigation bar, click Home to access the main calculator interface.
2

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)

3

Select Your Timezone

Choose the timezone from the dropdown menu that you want the results to be displayed in. Start typing to filter the list. This ensures all times are displayed in the selected time zone.
4

Choose Date Range

Select the start and end dates for your observation period. The calculator will analyze each date in the range to find dark time windows.
5

Calculate

Click the "Calculate Dark Times" button. The calculation may take a few moments depending on the date range.
6

Review Results

The results table will display all dark time windows found within your date range. Use the expandable sections to see detailed astronomical event information or use the filters to only show specific types of windows or minimum durations.

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

Shows the number of dark time periods found for each date. Click "Expand" if multiple windows exist to see details for each window including start time, end time, and duration.

Astronomical Events

Click "Show" to expand and see detailed information:
  • 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

Windows are classified by type with color-coded vertical badges integrated into each window box:
  • 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

Click the "Filter Controls" banner to expand/collapse filtering options:
  • 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

Opens an interactive chart showing Sun and Moon altitude throughout the day. The shaded area indicates when dark time conditions are met.

Exporting Data

Export your results in CSV format for further analysis or record keeping. Two export options are available:

Simple CSV

Contains the essential dark time windows organized by date:
  • 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

Includes all simple CSV data plus detailed astronomical metadata:
  • 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

💡 Moon phases matter: New moon periods typically provide longer dark time windows. Check around new moon dates for optimal conditions.
💡 Seasonal variations: Summer locations near the poles may have continuous twilight (no dark times), while winter offers longer dark periods.
💡 Plan ahead: Calculate dark times well in advance for important observations. Weather conditions may limit actual observing opportunities.
💡 No dark times found? This is normal for:
  • 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°)?

Astronomical twilight ends when the Sun's center is 18 degrees below the horizon. At this point, the Sun no longer illuminates the sky, and the faintest stars become visible. This is the standard used by astronomers worldwide for defining true darkness.

Why Does Moon Presence Matter?

Even a thin crescent moon can significantly brighten the night sky, affecting observations and light pollution measurements. The calculator only reports times when the Moon is completely below the horizon.

Calculation Precision

This calculator uses the Astronomy Engine library, which provides highly accurate celestial body positions accounting for:
  • Earth's axial tilt and precession
  • Atmospheric refraction
  • Observer elevation effects
  • Precise lunar orbit calculations