Islamic Prayer Times Weekly Calculator

Islamic Prayer Times Weekly Calculator

Growing AI Skill PRO

Enter Calculation

Formula

T=12+Lng15+UTC+DST−Eq60±H15where{H=arccos⁡(−sin⁡α−sin⁡ϕsin⁡δcos⁡ϕcos⁡δ)ϕ=LatαFajr=18.5∘TIsha=TMaghrib+90 min\begin{gathered} T = 12 + \frac{\text{Lng}}{15} + \text{UTC} + \text{DST} - \frac{Eq}{60} \pm \frac{H}{15} \\[1.4em] \text{where}\quad \left\{ \begin{aligned} H &= \arccos\!\left(\frac{-\sin\alpha - \sin\phi\,\sin\delta}{\cos\phi\,\cos\delta}\right) \\ \phi &= \text{Lat} \\ \alpha_{\text{Fajr}} &= 18.5^{\circ} \\ T_{\text{Isha}} &= T_{\text{Maghrib}} + 90\text{ min} \end{aligned} \right. \end{gathered}
Show calculation steps (1)
  1. Asr time (juristic shadow factor)

    TAsr=12+Lng15+UTC−Eq60+115arccos⁡(sin⁡[arccot(k+tan⁡|ϕ−δ|)]−sin⁡ϕsin⁡δcos⁡ϕcos⁡δ)T_{\text{Asr}} = 12 + \frac{\text{Lng}}{15} + \text{UTC} - \frac{Eq}{60} + \frac{1}{15}\arccos\!\left(\frac{\sin\!\big[\operatorname{arccot}(k + \tan|{\phi}-\delta|)\big] - \sin\phi\,\sin\delta}{\cos\phi\,\cos\delta}\right)

    Asr hour angle uses shadow factor k = 1 (Standard: Shafi/Maliki/Hanbali) or k = 2 (Hanafi); delta is solar declination, phi is Latitude.

Usage stats

Advertisement

Results

Qibla Direction
136.7
degrees clockwise from true north toward Makkah
Date Hijri Fajr Sunrise Dhuhr Asr Maghrib Isha Midnight
2026-06-15 29 Dhul Hijjah 1447 02:30 04:43 13:07 17:31 21:31 23:01 00:00
2026-06-16 30 Dhul Hijjah 1447 02:30 04:43 13:07 17:32 21:31 23:01 00:01
2026-06-17 1 Muharram 1448 02:30 04:43 13:07 17:32 21:32 23:02 00:01
2026-06-18 2 Muharram 1448 02:30 04:43 13:07 17:32 21:32 23:02 00:01
2026-06-19 3 Muharram 1448 02:30 04:43 13:08 17:33 21:33 23:03 00:01
2026-06-20 4 Muharram 1448 02:30 04:43 13:08 17:33 21:33 23:03 00:02
2026-06-21 5 Muharram 1448 02:31 04:43 13:08 17:33 21:33 23:03 00:02

Times shown are local clock time (HH:MM), with Daylight Saving Time applied (+1 h). Computed for 7 day(s).

Report an error on this page

What this calculator does

This tool builds a multi-day schedule of the five daily Islamic prayer times - Fajr, Dhuhr, Asr, Maghrib and Isha - together with Sunrise and Islamic midnight, for any location on Earth. It also reports the Qibla direction, the compass bearing toward the Kaaba in Makkah. The mathematics follow the widely used praytimes.org astronomical algorithm, so the tool is universal: it is not tied to any single country, only to the calculation-method convention you select.

Daily timeline showing the five Islamic prayer times plus sunrise and Islamic midnight from dawn through night
The five daily prayers and key solar moments across a single day.

How to use it

Enter the Gregorian start date, then choose how many consecutive days to tabulate (1 week, 2 weeks or 1 month). Provide your location as decimal-degree longitude (east positive, west negative) and latitude (north positive, south negative), your UTC offset in hours, and altitude in metres. Turn Daylight Saving Time on or off, pick a calculation method (each sets the Fajr and Isha twilight angles) and an Asr juristic method (Standard or Hanafi). The result is a calendar table with each prayer time as local clock time HH:MM.

The formula explained

For each day the Julian date gives the Sun's declination and the equation of time. Dhuhr is solar noon adjusted for your meridian and time zone. Every other event is found by solving for the hour angle at which the Sun sits a chosen number of degrees above or below the horizon. Sunrise and Maghrib use a horizon angle that includes refraction and an altitude-dependent dip. Asr uses a shadow-length factor of 1 (Standard) or 2 (Hanafi). At high latitudes, when the Sun never reaches the required twilight depression, an Angle-Based correction places Fajr and Isha at a proportional fraction of the night.

$$\begin{gathered} T_{\text{prayer}} = 12 + \frac{\text{Lng}}{15} + \text{UTC} + \text{DST} - \frac{Eq}{60} \pm \frac{H(\alpha)}{15} \\[1.5em] \text{where}\quad \left\{ \begin{aligned} H(\alpha) &= \arccos\!\left(\frac{-\sin\alpha - \sin\phi\,\sin\delta}{\cos\phi\,\cos\delta}\right) \\ \phi &= \text{Lat} \\ \alpha_{\text{Fajr}} &= 18^{\circ},\quad \alpha_{\text{Isha}} = 17^{\circ} \\ \text{Asr} &: \operatorname{arccot}\!\left(k + \tan|\phi-\delta|\right) \end{aligned} \right. \end{gathered}$$
Advertisement
Celestial sphere diagram showing sun altitude angle alpha below horizon, observer latitude phi and solar declination delta
The geometry behind the prayer-time formula: sun depression angle \(\alpha\), latitude \(\phi\) and declination \(\delta\).

Worked example

For Berlin (latitude 52.5167, longitude 13.4, UTC+1, DST on) on 15 June 2024 with the Muslim World League method, Dhuhr lands near 13:06, Asr near 17:31 and Maghrib near 21:30; because the high summer Sun never sinks to -18 degrees, Fajr and Isha are clamped by the Angle-Based night rule. The Qibla from Berlin is about 136.7 degrees from true north.

Calculation Methods and Twilight Angles

Each method defines how far the Sun must be below the horizon (the twilight depression angle) for Fajr and Isha. The settings below are the ones used by the praytimes.org algorithm. Fajr is the time the Sun reaches the stated angle before sunrise. Isha is the time it reaches the stated angle after sunset, unless a fixed interval is given.

Method Fajr Isha Other notes
Muslim World League (MWL) 18° 17° Angle-based both ends
Islamic Society of North America (ISNA) 15° 15° Angle-based both ends
Egyptian General Authority of Survey 19.5° 17.5° Angle-based both ends
Umm al-Qura University, Makkah 18.5° 90 min after Maghrib Fixed interval for Isha; some timetables lengthen it in Ramadan
University of Islamic Sciences, Karachi 18° 18° Angle-based both ends
Institute of Geophysics, University of Tehran 17.7° 14° Maghrib at 4.5° below the horizon; Jafari-style midnight
Shia Ithna-Ashari (Jafari) 16° 14° Maghrib at 4° below the horizon; Jafari-style midnight

Asr shadow factor

Asr begins when an object's shadow equals its noon shadow plus a multiple of its height. The Standard (Shafi'i, Maliki, Hanbali) setting uses a factor of 1. The Hanafi setting uses a factor of 2, so Asr starts later.

Note: the regions where each method is commonly used are conventions, not rules. The same method can be used anywhere, and you should choose the one your local community or mosque follows.

Glossary of Prayer Time Terms

Fajr
Dawn prayer. Its time begins when true dawn appears, modelled as the Sun reaching a chosen depression angle below the eastern horizon before sunrise.
Sunrise
The moment the upper edge of the Sun appears at the horizon. It marks the end of Fajr time. It is not itself a prayer time.
Dhuhr
Midday prayer. It begins just after solar noon, when the Sun has passed its highest point.
Asr
Afternoon prayer. It begins when an object's shadow reaches a defined length, set by the Asr shadow factor.
Maghrib
Sunset prayer. It begins at sunset, when the Sun's upper limb disappears below the horizon. Some methods (Tehran, Jafari) use a small angle below the horizon instead.
Isha
Night prayer. It begins when evening twilight ends, modelled as a depression angle or a fixed interval after Maghrib.
Islamic midnight
The midpoint of the night. It is commonly the midpoint between sunset and sunrise. Some conventions (Jafari) use the midpoint between Maghrib and Fajr.
Qibla
The direction of the Kaaba in Makkah, given as a bearing from your location.
Solar declination
The angle between the Sun's rays and the Earth's equatorial plane. It varies between about +23.44° and −23.44° over the year and drives the seasonal change in day length.
Equation of time
The difference, in minutes, between apparent solar time and mean clock time. It varies through the year by roughly ±16 minutes and shifts solar noon accordingly.
Hour angle
The angular distance of the Sun east or west of the local meridian, at 15° per hour. The calculator uses it to find how long before or after solar noon the Sun reaches a given altitude.
Twilight depression angle
How many degrees the Sun's centre is below the horizon. Fajr and Isha are defined by this angle (for example 18°).
Asr shadow factor (Standard/Hanafi)
The multiple of an object's height added to its noon shadow to mark Asr: 1 for Standard, 2 for Hanafi.
Horizon dip and refraction
Atmospheric refraction bends sunlight so the Sun appears higher than it is. Together with the Sun's apparent radius, this puts sunrise and sunset at about −0.833°. Observer altitude above the surrounding terrain adds a small extra dip, so higher locations see slightly earlier sunrise and later sunset.
Angle-Based method (high latitudes)
A correction for places where twilight angles are not reached. Fajr and Isha are limited to a fraction of the night equal to the angle divided by 60. For example, 18° gives 18/60 = 0.3 of the night.
Advertisement

Interpreting Your Prayer Times

Estimates, not official timetables

The times are astronomical estimates based on your coordinates, date, time zone and chosen method. Different methods can differ by several minutes, and by more for Fajr and Isha because their angles vary. Local mosque timetables often add safety margins, round to the minute, or fix times for a week or month. A few minutes of difference from a mosque timetable is normal. Longitude, latitude, UTC offset and daylight-saving settings must be accurate, because an error in any of them shifts every time.

Islamic midnight

Islamic midnight is the midpoint of the night, not 12:00 a.m. Under the common convention it is the midpoint between sunset and sunrise. Under the Jafari convention it is the midpoint between Maghrib and Fajr. Because the two definitions give different results, check which one your method uses before comparing with another source.

Seasons and latitude

As the Sun's declination changes through the year, the times of sunrise, sunset and twilight shift gradually. Near the equator the schedule changes little. At mid and high latitudes the day is long in summer and short in winter, and Fajr and Isha move much further. Dhuhr stays near the clock time of solar noon and drifts only by the equation of time and any daylight-saving change. Asr depends on both latitude and declination, so it moves noticeably with the seasons.

Angle-Based correction at high latitudes

In summer at high latitudes the Sun may never get 15°–18° below the horizon, so true twilight never ends and the angle-based Fajr and Isha cannot be computed or become unreasonable. The Angle-Based correction fixes this by limiting the interval between Fajr and sunrise, and between sunset and Isha, to the twilight angle divided by 60 times the length of the night. For 18°, that is 30% of the night. This is a convention for such locations, and communities choose among several approaches, so follow your local scholars or Islamic authority.

Qibla direction

The Qibla is the initial great-circle (shortest path) bearing from your location to the Kaaba (about 21.4225° N, 39.8262° E). It is measured clockwise from true north, not magnetic north. A compass points to magnetic north, so subtract or add your local magnetic declination before using the bearing with a compass. A phone's true-north mode or a map with a grid can also help.

This tool provides calculations only and does not give religious rulings. For questions about which method, Asr convention or high-latitude rule to follow, consult your local mosque or a qualified scholar.

FAQ

Why are Fajr and Isha unusual in summer at high latitudes? The Sun does not reach the twilight angle, so the Angle-Based method estimates them as a fraction of the night.

Do I add DST myself? No - leave your UTC offset as the standard zone value and switch DST on; the tool adds one hour.

How accurate is it? The low-precision solar formulas are good to roughly one minute, which is fine for prayer schedules.

Last updated:

Most popular in Time and Date

View all Time and Date calculators