Free calculatorLive resultsSteps and sourcesEmbed on your site, free

Prayer Time Calculator

Prayer time calculator works out Fajr and Sunrise from Date, Latitude and Longitude. The default figures on this page give sunrise of 04:43; change any entry and the result, the working and the sources update together.

Sunrise
04:43
Prayer Times Calculator
Dhuhr
13:02
Asr
17:25
Maghrib (sunset)
21:22
Length of the day
16.6414 h
Length of the night
7.3586 h
Asr shadow factor
1
Sun’s altitude at Asr
33.1121 deg
Fajr depression angle
18.00 deg
Isha depression angle
17.00 deg
Solar transit (UT)
12:02
Method
Muslim World League (18 / 17)
Summary
2024-06-21 at 51.5074, -0.1278: Fajr -, sunrise 04:43, Dhuhr 13:02, Asr 17:25, Maghrib 21:22, Isha -.
Worked out from Jean Meeus, Astronomical Algorithms, 2nd edition, chapters 15 (rising, transit and setting) and 25 (solar coordinates) and 2 other sources.
At this latitude and date the Sun does not descend far enough for a true Fajr or Isha; no time is given. Choose the one-seventh rule for an approximation, or follow your local timetable.
Computed times can differ by a minute or two from a local mosque timetable, which may apply a safety margin, a local horizon correction or a different convention. Follow your local timetable where they differ.

Your figures

Updates as you type
Positive north of the equator.
Positive east of Greenwich.
Include daylight saving if it is in force on that date; no zone rule is applied for you.

How this is worked out

5 steps
  1. Solar transit (Dhuhr) is at 12:02 UT, 13:02 local.
  2. The Sun's declination at transit is 23.437 degrees; with a shadow factor of 1, Asr is when the Sun's altitude falls to arccot(1 + tan|51.5074 - 23.437|) = 33.1121 degrees.
  3. Sunrise and Maghrib are the crossings of -0.8333 degrees, which allows for refraction and the Sun's semidiameter.
  4. Fajr and Isha are the crossings of -18 and -17 degrees (Muslim World League (18 / 17)).
  5. All times shifted by the UTC offset +1 h to local clock time.

Its 5 worked examples are re-run on every release, last on 15 September 2026. What changed

Sources and references

3 sources
Jean Meeus, Astronomical Algorithms, 2nd edition, chapters 15 (rising, transit and setting) and 25 (solar coordinates)
1998 · The altitude-crossing solution used for every time here, and the -0.8333 degree standard altitude for sunrise and sunset (refraction plus the solar semidiameter).
PrayTimes.org, Calculation Methods (documented parameters of the recognised authorities)
The published Fajr and Isha depression angles: Muslim World League 18/17, ISNA 15/15, Egyptian 19.5/17.5, Karachi 18/18, Umm al-Qura 18.5 with Isha 90 minutes after Maghrib, Tehran 17.7/14; and the Asr shadow factors of 1 (Shafi‘i, Maliki, Hanbali) and 2 (Hanafi).
US Naval Observatory, Astronomical Applications Department: rise, set and twilight definitions
Sunrise and sunset are defined at a zenith distance of 90.833 degrees; the published sunrise times used to check this engine come from the same definition.

What the prayer time calculator calculates

The five daily prayer times plus sunrise for any date and location, solved from the Sun’s apparent altitude: Fajr and Isha at the twilight depression angles of the chosen authority (Muslim World League, ISNA, Egyptian, Karachi, Umm al-Qura or Tehran), Dhuhr at solar transit, Asr when the shadow has grown by one object-length (majority view) or two (Hanafi), and Maghrib at sunset. Times are given in local clock time for the UTC offset supplied.

How to use this prayer time calculator

Enter Date, Latitude, Longitude and UTC offset of local clocks. Fajr updates as you type, and “Use a worked example” loads checked figures you can adjust. Change one figure at a time to see what drives the result.

How the result is worked out

Open “How this is worked out” beside the result for the step-by-step calculation behind Fajr, Sunrise and Dhuhr.

The method follows Jean Meeus, Astronomical Algorithms, 2nd edition, chapters 15 (rising, transit and setting) and 25 (solar coordinates), PrayTimes.org, Calculation Methods (documented parameters of the recognised authorities) and US Naval Observatory, Astronomical Applications Department: rise, set and twilight definitions.

London on the summer solstice example

With Date: 2024-06-21, Latitude: 51.5074, Longitude: -0.1278, UTC offset of local clocks: 1, the calculator returns Sunrise: 04:43. This example is checked against an independent source in the test suite.

What you can compare

Change one input at a time to see how it affects Fajr, Sunrise and Dhuhr. The inputs you can vary are Date, Latitude, Longitude, UTC offset of local clocks, Calculation method and Asr.

Understanding Fajr, Sunrise and Dhuhr

Computed times can differ by a minute or two from a local mosque timetable, which may apply a safety margin, a local horizon correction or a different convention. Follow your local timetable where they differ.

Results are general information, not financial, tax, legal, medical or engineering advice. Check any decision that matters with a qualified professional.

Embed this calculator on your website

Copy this code into any page. The calculator appears with the figures currently entered, sizes itself to fit, and a small credit line links back here. Free, no account, no ads inside it, no tracking of your readers. Set your own figures and fixed fields; Personal removes the credit line, sets your colour and shows you which sites use it.

Preview

See something wrong? Report a problem with this calculator

Frequently asked questions

Can you pray 20 minutes before prayer time?

The five daily prayer times plus sunrise for any date and location, solved from the Sun’s apparent altitude: Fajr and Isha at the twilight depression angles of the chosen authority (Muslim World League, ISNA, Egyptian. On the figures this page opens with — latitude 51.5074 deg, longitude -0.1278 deg and UTC offset of local clocks 1 — the sunrise is 04:43. Put your own figures in their place and the working updates beside the result.

What is the time for each prayer?

On the figures this page opens with — latitude 51.5074 deg, longitude -0.1278 deg and UTC offset of local clocks 1 — the sunrise is 04:43. No single number fits everyone: change any figure above and the answer updates as you type, with each step of the arithmetic beside it.

How to figure out prayer times?

The five daily prayer times plus sunrise for any date and location, solved from the Sun’s apparent altitude: Fajr and Isha at the twilight depression angles of the chosen authority (Muslim World League, ISNA, Egyptian. Open “How this is worked out” beside the result to see each step for your own figures.

What information do I need for the prayer time calculator?

You need Date, Latitude, Longitude, UTC offset of local clocks, Calculation method, Asr and When twilight does not end (high latitudes). The page opens with default figures that give sunrise of 04:43, so you can see the scale before entering your own.

What does this prayer time calculator show?

It shows Fajr, Sunrise, Dhuhr, Asr, Maghrib (sunset), Isha, Length of the day and Length of the night, with the working and any warnings for your entries.

Can I check how the prayer time calculator result was calculated?

Yes. The “How this is worked out” section shows the calculation steps, and the sources section identifies the references used for the method.

Related calculators

View all related calculators12 more