How prayer times are calculated

The astronomical rules, angles and conventions PrayWhen uses for Fajr, sunrise, Dhuhr, Asr, Maghrib, Isha, the Qibla and Hijri dates.

Last updated:

The daily prayers

Every time is derived from the sun’s position for the city’s coordinates on that date:

  • Fajr: the sun is a set angle below the eastern horizon before sunrise (true dawn). The angle depends on the method.
  • Sunrise: the sun’s upper edge reaches the horizon, allowing 0.833° for atmospheric refraction and the sun’s radius.
  • Dhuhr: solar noon, when the sun crosses the local meridian.
  • Asr: an object’s shadow equals its length plus its noon shadow (standard: Shafi’i, Maliki, Hanbali), or twice its length plus its noon shadow (Hanafi).
  • Maghrib: one minute after sunset (the Tehran method uses the sun 4.5° below the horizon).
  • Isha: the sun is a set angle below the western horizon after sunset, or a fixed 90 minutes after sunset for Umm al-Qura.

Calculation methods

The twilight angles behind each method:

Method Fajr Isha
Muslim World League 18° 17°
Islamic Society of North America 15° 15°
Egyptian General Authority of Survey 19.5° 17.5°
Umm al-Qura University, Makkah 18.5° 90 min
University of Islamic Sciences, Karachi 18° 18°
Institute of Geophysics, University of Tehran 17.7° 14°
Union des Organisations Islamiques de France 12° 12°
Spiritual Administration of Muslims of Russia 16° 15°
Majlis Ugama Islam Singapura 20° 18°

Which method each country uses

Each country uses the method that its religious authorities or most mosques follow. Countries not listed use the Muslim World League method with the standard Asr. Pakistan, India, Bangladesh and Afghanistan use the Hanafi Asr.

Method Countries
Umm al-Qura University, Makkah Bahrain, Kuwait, Oman, Qatar, Saudi Arabia, and United Arab Emirates
University of Islamic Sciences, Karachi Afghanistan, Bangladesh, India, and Pakistan
Egyptian General Authority of Survey Egypt
Islamic Society of North America Canada and United States
Institute of Geophysics, University of Tehran Iran
Union des Organisations Islamiques de France France
Spiritual Administration of Muslims of Russia Russia
Majlis Ugama Islam Singapura Singapore

High latitudes

Far from the equator, summer twilight can last all night, so the sun never reaches the Fajr or Isha angle. On those dates PrayWhen uses the angle-based rule: Fajr is placed before sunrise, and Isha after sunset, by a fraction of the night equal to the angle divided by 60.

Qibla direction

The Qibla is the great-circle bearing from the city to the Kaaba in Makkah (21.4225° N, 39.8262° E), measured clockwise from true north. A magnetic compass points to magnetic north, which can differ from true north by several degrees.

Hijri dates and Ramadan

Hijri dates use the tabular (arithmetic) Islamic calendar. Countries that begin months by moon sighting can differ by a day or two, and the Ramadan timetables are estimates on the same basis.

Precision

Times are rounded to the nearest minute and use IANA time-zone rules, including daylight saving time. Elevation is not taken into account: in high places sunrise is slightly earlier and sunset slightly later. Pages are regenerated every day.