How Prayer Times Are Calculated: The Astronomy Behind the Schedule

Prayer Times blog ยท September 2026 ยท 7 min read

Every prayer time on your screen is really a statement about where the sun is. Fajr is "the sun is this far below the horizon." Dhuhr is "the sun just passed its highest point." Maghrib is "the sun just set." The whole daily schedule is celestial mechanics translated into worship โ€” and once you see the geometry, the times stop feeling arbitrary.

Each prayer = a solar position

PrayerAstronomical definition
FajrDawn: the sun reaches a set angle below the eastern horizon (typically 15ยฐโ€“19.5ยฐ, depending on convention)
SunriseThe sun's upper edge appears on the horizon (not a prayer, but it ends the Fajr window)
DhuhrJust after solar noon โ€” the moment the sun begins to decline from its highest point
AsrWhen an object's shadow equals its noon shadow plus its own length (ร—1 or ร—2, depending on school)
MaghribSunset: the sun's disk fully disappears below the horizon
IshaNight: the sun reaches a set angle below the western horizon (typically 15ยฐโ€“19.5ยฐ)

Why the same city gets different times from different sources

If it's all astronomy, why do two apps disagree by ten minutes? Because two of the definitions involve human choices, not pure physics:

Neither side is "wrong" โ€” these are legitimate scholarly differences about how to interpret the same natural signs. That's why we always say: confirm with your local mosque's timetable, which follows the convention your community uses.

Why times shift every day

Three moving parts change the schedule daily:

How apps actually compute it

Modern prayer-time calculation is a solved problem in spherical trigonometry. Given your latitude, longitude, date, and chosen convention, the formulas compute the sun's declination and the hour angle for each required solar position. It's the same math astronomers use for sunrise/sunset โ€” the prayer-specific part is just the chosen angles.

Our Prayer Times page runs these calculations from your location right in the browser, using widely adopted conventions. No observatory required โ€” just geometry that scholars have refined for over a thousand years, from the zij tables of medieval Baghdad to the code on your phone.

The takeaway: prayer times aren't set by committee or tradition alone โ€” they're the sun's actual position, read through scholarly definitions. When two sources differ, it's almost always the Fajr/Isha angle or the Asr method. Pick the convention your community follows, and you're on solid ground.