How prayer times are calculated
Each prayer is tied to the Sun’s position in the sky, which is why the times change every day and from city to city. This tool computes the Sun’s position for the city’s coordinates with the NOAA solar equations and shows the results in the city’s own local time:
- Fajr: the Sun is below the eastern horizon by the angle the method sets (15° to 19.5°).
- Sunrise: the Sun’s upper edge appears; the end of the time for Fajr.
- Dhuhr: solar noon, when the Sun crosses the meridian. No safety margin is added; many timetables add a minute or more.
- Asr: an object’s shadow reaches its own length (or twice its length in the Hanafi school) on top of its noon shadow.
- Maghrib: sunset.
- Isha: the Sun is below the western horizon by the method’s angle, or 90 minutes after Maghrib in the Umm al-Qura method (120 minutes during Ramadan).
Accuracy and limits
Typical accuracy is within a minute or two at low and middle latitudes. Elevation above sea level is not taken into account, and city coordinates refer to the city centre. Everything is computed in your browser; your location, if you choose to use it, never leaves your device.
See also sunrise and sunset and the Hijri calendar.
Frequently asked questions
Which calculation method should I choose?
Use the one your local mosque follows. As a guide: Umm al-Qura is used in Saudi Arabia, the Egyptian General Authority in Egypt and much of Africa and the Levant, Karachi in Pakistan, India, Bangladesh and Afghanistan, ISNA in the United States and Canada, and the Muslim World League widely elsewhere, including Europe. The methods differ only in Fajr and Isha.
What is the difference between standard and Hanafi Asr?
Standard Asr (Shafi‘i, Maliki and Hanbali schools) begins when an object’s shadow is as long as the object plus its shadow at noon. Hanafi Asr begins when the shadow is twice the object’s length plus the noon shadow, which is later — typically by 45 to 75 minutes.
Why are these times a few minutes different from my mosque’s timetable?
Timetables often round up, add a safety margin of one to five minutes, use slightly different coordinates or elevation, or apply local adjustments. A difference of a few minutes is normal; a larger one usually means a different method or Asr setting.
How are prayer times calculated at high latitudes?
In summer above roughly 48° latitude the Sun does not sink far enough below the horizon for the Fajr and Isha angles to occur. In that case this tool uses the angle-based rule, placing Fajr and Isha a fixed fraction of the night from sunrise and sunset, and marks the times as approximate. Local authorities may use another convention.