Skip to content

How prayer times are calculated

Every prayer time on IslamNest is calculated from the position of the sun for the exact place and date, using the open-source adhan library. Nothing is copied from another website or timetable. This page explains each choice that goes into a time, so you can compare it with your mosque or another app.

What goes into a prayer time

  • Place: the latitude and longitude of the city, or of your own location when you share it.
  • Date and time zone: the calendar day in the place's own time zone, found from its coordinates, so daylight-saving changes are followed automatically.
  • Calculation method: the sun angles that mark the start of Fajr and Isha.
  • Asr school: Standard or Hanafi.

Sunrise, Dhuhr and Maghrib depend only on the sun's position: Dhuhr begins just after the sun passes its highest point, and Maghrib begins at sunset. Fajr and Isha depend on how far the sun is below the horizon, which is where methods differ. A few methods also add a fixed margin of some minutes to certain prayers (the Diyanet method, for example), and the Tehran method places Maghrib slightly after sunset.

Calculation methods and their angles

Each city page starts with the method most widely used in its country and names it under the times. You can switch methods on any city page.

MethodFajr angleIshaStarting method for
ISNA (North America)15°15°United States, Canada
Moonsighting Committee18°18°Available to choose on any city page
Muslim World League18°17°Europe, most of Africa and Central Asia, and every country not listed in another row
Umm al-Qura (Makkah)18.5°90 minutes after MaghribSaudi Arabia
Egyptian General Authority19.5°17.5°Egypt, Sudan
University of Karachi18°18°Pakistan, India, Bangladesh, Afghanistan
Dubai18.2°18.2°United Arab Emirates
Qatar18°90 minutes after MaghribQatar
Kuwait18°17.5°Kuwait
Singapore20°18°Indonesia, Malaysia, Singapore, Brunei
Diyanet (Turkey)18°17°Turkey
Tehran17.7°14°Iran

Standard and Hanafi Asr

Standard Asr (Shafi'i, Maliki and Hanbali) begins when an object's shadow equals its own length, plus its shadow at midday. Hanafi Asr begins when the shadow is twice the object's length, so it is later. City pages start with Standard Asr and have a Hanafi Asr button; the page always says which one it is showing.

High latitudes

Far from the equator, twilight can last all night in summer, so the usual angles give no Fajr or Isha time. IslamNest then applies the rule the adhan library recommends for the latitude: the night is divided and Fajr and Isha are kept within a fixed share of it. Above the polar circles, where the sun may not rise or set at all, the times of the nearest day that has a sunrise and sunset are used.

Qibla direction and Hijri dates

The Qibla bearing is the shortest path over the globe from the place to the Kaaba in Makkah, measured in degrees from true north (not magnetic north). Hijri dates follow the Umm al-Qura calendar and are labelled tentative, because the start of a month can depend on local moon sighting.

What these times are not

They are the calculated start of each prayer time, not congregation times. Iqamah, Jummah and Eid times appear only when they come from a mosque's own verified schedule, shown with the source and date. In the app you can also shift any prayer time by up to 30 minutes to match your mosque.

Questions

Why do prayer times differ between apps and mosques?

Most differences come from three choices: the calculation method (each uses its own Fajr and Isha angles), the Asr school (Standard or Hanafi), and rounding or safety margins of a minute or two. A mosque's printed timetable may also show congregation (iqamah) times, which are set by the mosque and are later than the start of the prayer time.

Which calculation method does IslamNest use for my city?

Each city page starts with the method most widely used in its country, for example ISNA in North America, Umm al-Qura in Saudi Arabia and the University of Karachi method in Pakistan, India and Bangladesh. The page names the method it used, and you can switch to any other method from the list.

Does IslamNest show Hanafi Asr?

Yes. City pages start with Standard Asr and have a Hanafi Asr button beside the method list. Standard Asr begins when an object's shadow equals its length; Hanafi Asr begins when the shadow is twice its length, so it is later.

Are these the iqamah times at my mosque?

No. They are calculated start times for each prayer. Iqamah, Jummah and Eid times appear on IslamNest only when they come from a mosque's own verified schedule, labelled with the source and date.