How prayer times are calculated

Updated 3 November 2026.

Each prayer time is the moment the sun reaches a set position: Fajr and Isha when it is a set angle below the horizon, Dhuhr after its highest point, Asr when shadows reach a set length, and Maghrib at sunset. Timetables differ because they pick different angles, shadow rules and short-night rules, not because they see a different sun.

Your mosque’s timetable comes first. This page explains arithmetic, not rulings. No scholar or imam has reviewed this site.

By UmmahSky. Every time on this page was worked out by the code this site runs (adhan-js 4.4.6, 2027 dates). How we test.

The five times and the sun

PrayerWhere the sun isWhat timetables choose
FajrA set angle below the horizon, before sunriseThe angle (12° to 19.5° here), and a rule for short summer nights
SunriseThe top of the sun at the horizonLittle: some allow for height above sea level
DhuhrJust after its highest point of the dayMinutes added after noon (UK seasonal minutes add 5)
AsrWhen a shadow reaches a set lengthThe Shafi or the Hanafi shadow rule
MaghribThe top of the sun at the horizon, after sunsetMinutes added after sunset (UK seasonal minutes add 3)
IshaA set angle below the horizon, after sunset, or a fixed time after MaghribThe angle or the fixed minutes, and a short-night rule

Fajr and Isha: sun angles

The deeper the angle, the earlier Fajr and the later Isha. In London in March each degree moves Fajr by about 7 minutes: 15° and 18° are 21 minutes apart.

The sun below the horizon at 12, 15, 18 and 19.5 degrees, with London Fajr times on 21 March 2027horizon (sunrise 06:02)12°: 04:4915°: 04:2918°: 04:0819.5°: 03:57
Fajr in London on 21 March 2027 for each angle. A deeper angle means an earlier Fajr.
London, 21 March 2027. Sunrise 06:02, sunset 18:15.
AngleFajrIsha
12°04:4919:28
15°04:2919:48
18° (Isha 17°)04:0820:02
19.5° (Isha 17.5°)03:5720:06
London, 21 December 2027. Sunrise 08:04, sunset 15:53.
AngleFajrIsha
12°06:4017:17
15°06:1917:37
18° (Isha 17°)05:5917:51
19.5° (Isha 17.5°)05:4917:54
Sydney, 21 June 2027. Sunrise 07:00, sunset 16:54.
AngleFajrIsha
12°06:0117:53
15°05:4618:08
18° (Isha 17°)05:3018:18
19.5° (Isha 17.5°)05:2318:21

Some timetables don’t use an angle for Isha at all. Umm al-Qura’s calendar sets Isha 90 minutes after sunset (120 in Ramadan), and both Sydney timetables we compared sit within a minute of that pattern on average.

Asr: two shadow rules

Asr starts when an upright stick’s shadow is its noon shadow plus one stick length (the Shafi, Maliki and Hanbali reading) or plus two (the Hanafi reading). The Hanafi time is always later.

A stick and its shadow: noon shadow, Shafi Asr at one stick length more, Hanafi Asr at twonoonShafi Asr: noon shadow + 1 stickHanafi Asr: noon shadow + 2 sticks
Asr starts when a shadow reaches a set length. The Hanafi rule needs a longer shadow, so it comes later.
London, starting setting.
DateDhuhrShafi AsrHanafi AsrGap
21 March 202712:1315:2716:1750 min
21 June 202713:0717:2518:4075 min
21 December 202712:0313:3714:0730 min
Sydney, starting setting.
DateDhuhrShafi AsrHanafi AsrGap
21 March 202713:0316:2917:2253 min
21 June 202711:5714:3615:1640 min
21 December 202712:5316:3817:5476 min

Through 2027 the gap is 29 to 75 minutes in London (51 on average) and 40 to 76 in Sydney. It is widest in summer, when the sun is high and shadows grow slowly. That’s why Asr is the largest single difference for anyone whose mosque uses the other rule: about 52 minutes on average across the UK timetables we compared.

Short summer nights

In London the sun doesn’t go 18° below the horizon from 23 May to 21 July (60 nights in 2027), so an 18° Fajr never happens and a rule has to set it.

London, 21 June 2027, with 18° / 17° unless named.
RuleFajrIsha
Middle of the night01:0201:02
One seventh of the night03:4022:25
Twilight angle02:3123:27
Seasonal minutes (UK starting setting)02:4322:42
  • Middle of the night: Fajr and Isha no further than halfway between sunset and sunrise. On this date they meet.
  • One seventh of the night: no further than a seventh of the night from sunrise and sunset.
  • Twilight angle: a share of the night in proportion to the angle.
  • Seasonal minutes: minutes from sunrise and sunset that change through the year; 18° is used only when it is nearer. This is our UK starting setting.

The seasonal formula changes at 55° north. Two places a few kilometres apart, either side of the line, got Fajr 02:24 and 03:30 on 22 June 2027. So from 55° we offer no starting setting: in Glasgow on 21 June our settings range from 01:19 to 03:36. More on short nights.

Why mosque timetables differ

When we compared 1,350 prayer times at 25 cities on 3 dates with two other prayer-time websites and one calculation service, every gap over 2 minutes came from one of these causes. None was left unexplained.

Our measured examples. UK timetables read 31 October to 2 November 2026; other sites read 3 November 2026.
CauseTypical sizeMeasured example
Fajr angle or short-night ruleUp to 2 hours in a UK summerWifaqul Ulama’s London PDF and Harrow Central Mosque are 42.5 and 0.1 minutes from our seasonal Fajr on average
Asr rule24 to 80 minutes in our citiesLondon, 21 June 2027: Shafi 17:25, Hanafi 18:40
Fixed IshaUp to 37 minutes in our Australian cities on 21 June and 21 DecemberSydney timetables use 90 minutes after sunset: 0.3 min from that setting, 7.9 from 17°
Minutes added after noon and sunset0 to 5 minutes in our settingsUK seasonal minutes add 5 to Dhuhr and 3 to Maghrib
Height above sea levelAbout 0.5 to 4.3 minutes at sunrise and sunset in our cities (our estimate)Canberra, 571 m: one site allows for height, we don’t
Rounding and the city pointUnder a minute0.1° of longitude moves every time by about 24 seconds

How we check the sun

The astronomy is the part everyone agrees on, and we checked it: sunrise, noon and sunset from our code were within 2.7 seconds of NASA JPL’s Horizons at 18 cities for every day of 2027.

So when two timetables differ by minutes, the cause is a choice from the list above. To see which choice your mosque makes, use Match my mosque, or compare methods for your city.