camalochatools
Home / Date & Time / Sunrise & Sunset Calculator

Sunrise & Sunset Calculator

See sunrise, sunset, day length and the moon phase for any city and date.

—
Sunrise
—
Sunset
—
Daylight
—
Moon phase

How it works

Pick a city and a date to see the sunrise and sunset times, the total daylight hours, and the moon phase for that day — calculated directly in your browser using standard astronomical formulas, not a live service.

FAQ

How accurate are the sunrise and sunset times?

They're accurate to within a minute or two for most locations, based on standard solar position formulas; local terrain (mountains, tall buildings) can shift the exact moment you see the sun.

Where does the moon phase come from?

It's calculated from the number of days since a known reference new moon, using the moon's average 29.53-day cycle — the same math astronomers have used for centuries.

Why do sunrise and sunset times change throughout the year?

Because Earth's axis is tilted, the angle of sunlight reaching each location changes as Earth orbits the Sun — the same tilt that causes the seasons.