How prayer times are calculated

Muslim prayer times are defined by the position of the sun, so they can be computed astronomically for any place and date. SalahTime uses the standard solar-declination and equation-of-time formulation: Fajr and Isha are set when the sun reaches a fixed angle below the horizon (twilight), Sunrise and Sunset at 0.833° below the horizon (accounting for refraction), Dhuhr at solar noon, and Asr when an object's shadow reaches a set multiple of its length. Maghrib is at sunset.

Different religious authorities use slightly different twilight angles and precautionary minute offsets — that is why prayer times differ between methods. SalahTime supports the eleven official methods below and automatically selects the right default for each city (for example, the Egyptian General Authority of Survey for Egypt). You can switch methods any time on the home page.

The 11 calculation methods

MethodFajrIshaNotes
Egyptian General Authority of Survey19.5°17.5°Default for Egypt and the method used on this site's homepage.
Muslim World League (MWL)18°17°Global default used in Europe, the Gulf states and many other countries.
Umm al-Qura University, Makkah18.5°90 min after MaghribUsed in Saudi Arabia; Isha is a fixed interval rather than a twilight angle.
Islamic Society of North America (ISNA)15°15°Common in the United States and Canada.
University of Islamic Sciences, Karachi18°18°Widely used in Pakistan, India, Bangladesh and Afghanistan.
Kementerian Agama, Indonesia20°18°Official method of Indonesia's Ministry of Religious Affairs.
JAKIM, Malaysia20°18°Official method of Malaysia's Department of Islamic Development.
Ministry of Habous, Morocco19°17°Includes an official precautionary offset of +5 minutes on Dhuhr.
Ministry of Awqaf, Jordan18°18°Maghrib is set 5 minutes after sunset.
Diyanet, Turkey18°17°Includes official precautionary (ihtiyat) minute offsets: sunrise −7, Dhuhr +5, Asr +4, Maghrib +7.
UOIF, France12°12°Used by the Union of Islamic Organisations of France; suited to higher latitudes.

Asr: Standard vs Hanafi

Asr begins when the shadow of an object reaches a certain length beyond its noon shadow. The Standard setting (Shafi'i, Maliki and Hanbali schools) starts Asr when the shadow equals the object's height; the Hanafi setting starts it when the shadow reaches twice the object's height, giving a later Asr. Choose the one that matches your school of thought.

High-latitude adjustment

In far northern or southern locations the sun may barely set in summer or barely rise in winter, making twilight-angle times extreme or undefined. SalahTime applies an angle-based adjustment: Fajr and Isha are limited to a proportion of the night (angle ÷ 60 × night length), the same approach used by major prayer-time APIs.

Imsak

Imsak — the time to stop eating before fasting — is shown as 10 minutes before Fajr for all methods.

Accuracy

Verified against the Aladhan API — worst deviation 2 minutes across 23 city/date/method checks (Cairo, Mecca, Riyadh, Jakarta, Kuala Lumpur, Istanbul, Karachi, Dhaka, New York, London, Casablanca, Amman, Paris, Lagos; methods Egypt, Makkah, Kemenag, Jakim, Turkey, Karachi, ISNA, Morocco, Jordan, France, MWL), checked 2026-09-24.

Calculation is only half the story: mosques often add small precautionary minutes, and local moon-sighting can shift Hijri dates by a day. When in doubt, please confirm with your local mosque.