Skip to main content
DigiCalcs

How to Calculate Sunrise Sunset

What is Sunrise Sunset?

A sunrise and sunset calculator computes the exact times of sunrise, sunset, and civil twilight for any location and date using astronomical formulae.

Step-by-Step Guide

  1. 1Based on solar declination and hour angle calculations
  2. 2Input: latitude, longitude, and date
  3. 3Civil twilight: sun is 6° below horizon (sufficient light for outdoor activities)
  4. 4Day length = sunset time − sunrise time

Worked Examples

Input
London (51.5°N, 0.1°W), 21 June 2026
Result
Sunrise ≈ 04:43 BST; Sunset ≈ 21:21 BST; Day length ≈ 16h 38min

Frequently Asked Questions

What is Sunrise And Sunset?

A sunrise and sunset calculator computes the exact times of sunrise, sunset, and civil twilight for any location and date using astronomical formulae. Use this calculator for accurate, instant results.

How accurate is the Sunrise And Sunset calculator?

The calculator uses the standard published formula for sunrise and sunset. Results are accurate to the precision of the inputs you provide. For financial, medical, or legal decisions, always verify with a qualified professional.

What units does the Sunrise And Sunset calculator use?

This calculator works with inches. You can enter values in the units shown — the calculator handles all conversions internally.

What formula does the Sunrise And Sunset calculator use?

The calculator applies the standard formula for this type of calculation. See the 'How It Works' steps above for the detailed formula breakdown.

Ready to calculate? Try the free Sunrise Sunset Calculator

Try it yourself →

Settings

PrivacyTermsAbout© 2026 DigiCalcs