iMuslim Life

iMuslim Life › About › Methodology

How we calculate prayer times

Prayer times follow the sun, so they can be calculated for any place from its latitude, longitude and time zone. What differs between communities is the convention: how far below the horizon the sun must be for Fajr and Isha, and how Asr is defined. This page sets out exactly which conventions each timetable uses.

Where the times come from

  1. Our prayer-times API (node-api.imuslimlife.com) calculates the times for each city's coordinates and time zone. The website, the app and the Alexa skill all use it, so they always agree.
  2. If it can't be reached, the app falls back to Aladhan, a widely used public prayer-times service, with the same method.
  3. With no connection at all, the app calculates on the device with the open-source Adhan library.

City pages are rebuilt every night. Today's row, the next prayer and the countdown are worked out in your browser in the city's own time zone, including daylight saving changes.

Calculation method by country

Each country uses the method of its religious authority or the one its masjids most commonly follow. On any city page you can switch to another method; your choice is remembered in your browser.

MethodAsrCountries
Muslim World Leaguestandard (Shafi'i, Maliki, Hanbali)Albania, Australia, Austria, Belgium, Benin, Bosnia and Herzegovina, Burkina Faso, Cameroon, Chad, China, Comoros, Denmark, Djibouti, Eritrea, Ethiopia, Gambia, Germany, Ghana, Guinea, Iraq, Italy, Ivory Coast, Kenya, Kosovo, Maldives, Mali, Mauritania, Mozambique, Niger, Nigeria, North Macedonia, Norway, Philippines, Senegal, Sierra Leone, Somalia, Spain, Sri Lanka, Sweden, Switzerland, Tanzania, The Netherlands, Uganda
Egyptian General Authority of Surveystandard (Shafi'i, Maliki, Hanbali)Egypt, Lebanon, Libya, Palestine, Sudan, Syria
Muslim World LeagueHanafiKazakhstan, Kyrgyzstan, Tajikistan, Turkmenistan, Uzbekistan
University of Islamic Sciences, KarachiHanafiAfghanistan, Bangladesh, India, Pakistan
ISNA (Islamic Society of North America)standard (Shafi'i, Maliki, Hanbali)Canada, United States
Umm al-Qura University, Makkahstandard (Shafi'i, Maliki, Hanbali)Saudi Arabia, Yemen
Diyanet İşleri Başkanlığı, Turkeystandard (Shafi'i, Maliki, Hanbali)Azerbaijan, Turkey
Majlis Ugama Islam Singapurastandard (Shafi'i, Maliki, Hanbali)Brunei, Singapore
Gulf Regionstandard (Shafi'i, Maliki, Hanbali)Bahrain, Oman
Muslim World League, with the angle-based rule for high latitudesstandard (Shafi'i, Maliki, Hanbali)United Kingdom
Kementerian Agama, Indonesiastandard (Shafi'i, Maliki, Hanbali)Indonesia
Institute of Geophysics, University of Tehranstandard (Shafi'i, Maliki, Hanbali)Iran
Algeriastandard (Shafi'i, Maliki, Hanbali)Algeria
Moroccostandard (Shafi'i, Maliki, Hanbali)Morocco
Dubaistandard (Shafi'i, Maliki, Hanbali)United Arab Emirates
Jordanstandard (Shafi'i, Maliki, Hanbali)Jordan
Spiritual Administration of Muslims of Russiastandard (Shafi'i, Maliki, Hanbali)Russia
JAKIM, Malaysiastandard (Shafi'i, Maliki, Hanbali)Malaysia
Tunisiastandard (Shafi'i, Maliki, Hanbali)Tunisia
Qatarstandard (Shafi'i, Maliki, Hanbali)Qatar
Union des Organisations Islamiques de Francestandard (Shafi'i, Maliki, Hanbali)France
Kuwaitstandard (Shafi'i, Maliki, Hanbali)Kuwait
Comunidade Islâmica de Lisboastandard (Shafi'i, Maliki, Hanbali)Portugal

Asr: standard and Hanafi

The standard (Shafi'i, Maliki, Hanbali) Asr begins when an object's shadow equals its length plus its shadow at noon. The Hanafi Asr begins when the shadow is twice the object's length, so it is later, often by 45 minutes to over an hour. Pakistan, India, Bangladesh and other countries where the Hanafi school is followed use the Hanafi time by default.

Hijri dates and Islamic events

Hijri dates are calculated (the Umm al-Qura calendar used in Saudi Arabia). Ramadan, Eid and other events can begin a day later where a community follows a local moon sighting, so each page says "expected" and asks you to follow your community's announcement.

Masjid data

The masjid directory starts from OpenStreetMap (© OpenStreetMap contributors, ODbL). Masjids added through our form are listed after we review them, and masjids that publish their own iqamah times through Masjid Connect show those times live. City names and coordinates come from GeoNames (CC BY 4.0).

Your masjid's timetable comes first

Calculated times can differ from a masjid's printed timetable by a few minutes, because masjids add safety margins or follow a local committee. For congregation, follow your masjid. If a time here looks wrong, email info@yzinfotech.com with the city and date and we will check it.