How prayer times are calculated
Everything on this page is computed on your iPhone by the open-source adhan-swift library, from your coordinates, the date and the settings you choose. No times are downloaded from a server.
Calculation methods
Fajr begins when the sun is a set angle below the horizon before sunrise; Isha when it is a set angle below the horizon after sunset. The methods differ in those angles; Umm al-Qura sets Isha by a fixed interval after Maghrib instead.
| Method | Fajr | Isha |
|---|---|---|
| Muslim World League | 18° | 17° |
| ISNA (Islamic Society of North America) | 15° | 15° |
| Egyptian General Authority of Survey | 19.5° | 17.5° |
| Umm al-Qura, Makkah | 18.5° | 90 minutes after Maghrib (120 during Ramadan, by the Umm al-Qura calendar) |
| University of Islamic Sciences, Karachi | 18° | 18° |
Default method by region
The app suggests a method from the country of your location: United States, Canada and Mexico → ISNA; Saudi Arabia, the United Arab Emirates, Qatar, Kuwait, Bahrain, Oman and Yemen → Umm al-Qura; Egypt, Libya, Algeria, Tunisia, Morocco, Sudan, Lebanon, Syria, Jordan, Iraq and Palestine → Egyptian General Authority; Pakistan, India, Bangladesh and Afghanistan → Karachi. Elsewhere, locations in the Americas get ISNA and the rest of the world Muslim World League. The suggestion is only a starting point; you can pick any method.
Asr
Shafiʿi rule: Asr begins when an object's shadow equals its own length (plus the shadow it had at noon). Hanafi rule: when the shadow is twice the object's length. The Shafiʿi rule is also the one used by the Maliki and Hanbali schools; the app offers the two as a setting and takes no position on them.
High latitudes
In summer at high latitudes the sun may never reach the Fajr or Isha angle, so the astronomical time does not exist. The selected rule then sets Fajr and Isha instead:
- Angle-based — the night is divided in proportion to the twilight angle (angle ÷ 60 of the night).
- Middle of the night — Fajr is no earlier, and Isha no later, than the middle of the night.
- One-seventh of the night — Fajr is no earlier than the last seventh of the night, and Isha no later than the first seventh.
On the shortest summer nights at about 50° north and above, the middle-of-the-night rule puts Isha and the next Fajr on the same midpoint, leaving no time between them. On such a night the app sets Isha at the first seventh of the night instead, so there is normally at least half an hour to pray it; Fajr is not moved. On the first and last such night of the summer, Isha moves by about two hours.
Adjustments
Each prayer can be shifted by up to ±30 minutes to match a local timetable. Times are shown in the 12-hour or 24-hour format, in the time zone of the chosen location.
Prayer windows
The app treats each prayer's time as a window: Fajr until sunrise, Dhuhr until Asr, Asr until Maghrib, Maghrib until Isha, Isha until the next Fajr. The current prayer's screen shows how much of its window is left, "before the window ends" reminders count down to it, and the qada counter uses these windows to decide whether a prayer was missed.
Qibla
The qibla is the initial bearing of the great circle from your position to the Kaaba (21.4225° N, 39.8262° E). The compass reads the phone's magnetometer and motion sensors, so it works with the phone flat or held upright. A magnetometer finds magnetic north, and the bearing is measured from true north, so the app corrects the compass with the magnetic declination your iPhone reports for your location — the same correction Apple's Compass app applies.
Hijri date
The app uses the Umm al-Qura tabular calendar as implemented by iOS. Because Islamic months are announced by sighting the moon, the tabular date can differ from the date announced where you live; you can shift it by up to ±2 days.
Limitations
- Daylight-saving transitions. Around a clock change, check the times against your local timetable.
- Location accuracy. A few kilometres rarely matter; a wrong city does. Check the location shown in Settings.
- High latitudes. The rules above are conventions; follow your local mosque.
- Compass interference. Magnets, metal, magnetic cases and car mounts deflect the needle; calibrate when asked.
- Device clock and time zone. The app trusts the phone's clock and the time zone of the chosen location.
Not a ruling
All of the above is a computation, not a religious ruling. The app does not replace your local mosque, imam or religious authority. The full disclaimer is in the terms of use.