Enter latitude, longitude, time zone and date to compute Fajr, sunrise, Dhuhr, Asr, Maghrib and Isha from real solar geometry.
Prayer Calculator
Real Islamic prayer times from the sun itself — solar declination, equation of time and MWL angles, not a generic arithmetic stand-in.
Enter your values
Fill in the fields below — the result appears with every step shown.
Your result will appear here
Enter your values above, then press Calculate — or press Enter in any field.TinyExe · Prayer Result
Calculated locally in your browser
—
Name
—
Latitude
—
Longitude
—
Time-zone offset from UTC
—
How this was calculated
What to do next
TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.
Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.
The short answer
Islamic prayer times come from the sun position for your location and date. Solar noon gives Dhuhr; Fajr is when the sun sits 18 degrees below the horizon and Isha at 17 degrees in the Muslim World League method. For Makkah in mid-January that gives Fajr near 5:40 in the morning.
- Dhuhr = solar noon: 720 − 4·longitude − equation of time + 60·time zone (minutes)
- Fajr 18° and Isha 17° solar depression (Muslim World League convention)
- Asr (Shafi'i) begins when shadow length equals the object plus its noon shadow
Angles and conventions used
Reference values for this calculator.
| Prayer | Solar event | Convention |
|---|---|---|
| Fajr | Sun 18° below horizon | Muslim World League |
| Sunrise | Upper limb at horizon (−0.833°) | Standard refraction allowance |
| Dhuhr | Solar noon (transit) | — |
| Asr | Shadow = object + noon shadow | Shafi'i / Maliki / Hanbali (factor 1) |
| Maghrib | Sunset | Same hour angle as sunrise |
| Isha | Sun 17° below horizon | Muslim World League |
The formula
The exact formula this calculator uses — every variable in it is explained in the card below.
The formula
Ideas enhancement: replaces a generic two-number kernel with the actual astronomy — NOAA solar declination and equation-of-time series, hour angles for the Muslim World League Fajr/Isha angles, and the Shafi'i Asr shadow rule — returning all six daily times from four inputs.
Worked examples
Worked examples with the full working shown — try them in the calculator to check.
Example 1
Makkah in mid-January
Makkah (21.4225, 39.8262, UTC+3), day 15
| Calculation | Steps |
|---|---|
| Solar declination for day 15 = -21.27°, equation of time = -8.6 min Solar noon (Dhuhr) = 720 − 4×39.8262 − -8.6 + 3×60 = 12:29 Fajr (sun 18° below horizon) = 05:42; sunrise = 07:00; Asr = 15:36; Maghrib (sunset) = 17:58; Isha (17° below) = 19:11 | Fajr 05:42 · Maghrib 17:58 — Full day: Fajr 05:42, sunrise 07:00, Dhuhr 12:29, Asr 15:36, Maghrib 17:58, Isha 19:11 (Muslim World League angles, Shafi'i Asr). |
Result
Example 2
London in mid-April
London (51.5074, −0.1278, UTC+1 BST), day 105
| Calculation | Steps |
|---|---|
| Solar declination for day 105 = 9.48°, equation of time = -0.2 min Solar noon (Dhuhr) = 720 − 4×-0.1278 − -0.2 + 1×60 = 13:00 Fajr (sun 18° below horizon) = 03:58; sunrise = 06:06; Asr = 16:47; Maghrib (sunset) = 19:54; Isha (17° below) = 21:54 | Fajr 03:58 · Maghrib 19:54 — Full day: Fajr 03:58, sunrise 06:06, Dhuhr 13:00, Asr 16:47, Maghrib 19:54, Isha 21:54 (Muslim World League angles, Shafi'i Asr). |
Result
Example 3
New York in late December
New York (40.7128, −74.006, UTC−5), day 355
| Calculation | Steps |
|---|---|
| Solar declination for day 355 = -23.42°, equation of time = 2.2 min Solar noon (Dhuhr) = 720 − 4×-74.006 − 2.2 + -5×60 = 11:53 Fajr (sun 18° below horizon) = 05:37; sunrise = 07:16; Asr = 14:13; Maghrib (sunset) = 16:31; Isha (17° below) = 18:04 | Fajr 05:37 · Maghrib 16:31 — Full day: Fajr 05:37, sunrise 07:16, Dhuhr 11:53, Asr 14:13, Maghrib 16:31, Isha 18:04 (Muslim World League angles, Shafi'i Asr). |
Result
How to use this calculator
Step 1
Find your latitude and longitude in decimal degrees (any map app shows them).
Step 2
Enter the time-zone offset from UTC for standard time.
Step 3
Enter the day of the year (1–365).
Step 4
Read all six times in the verdict and details.
Step 5
For Hanafi Asr or a different convention (Umm al-Qura, ISNA, Diyanet), see the limitations — conventions shift times by minutes to over an hour.
Frequently asked questions
Why do prayer apps disagree with each other?
They use different conventions: the Muslim World League uses Fajr at 18° and Isha at 17°, Umm al-Qura fixes Isha 90 minutes after Maghrib, ISNA uses 15°/15°. At the same place these can differ by 20+ minutes, especially in summer.
What Asr method does this use?
The majority (Shafi'i) rule: Asr begins when an object's shadow equals its height plus its noon shadow (factor 1). The Hanafi factor-2 time is later; it is not the default here and the limitation is stated openly.
Why does it ask for day of year instead of a date?
Solar position depends on the date only through declination and the equation of time, both smooth functions of the day count. Day 15 is 15 January; day 172 is the June solstice in a non-leap year.
What happens at very high latitudes?
Above roughly ±66°, the sun may never reach the Fajr or Isha depression angles in summer, so those prayers have no astronomical time. The calculator refuses rather than inventing one; high-latitude fiqh adjustments (nearest latitude, middle of night) are applied by scholars, not silently by a tool.
How accurate are the times?
Within a few minutes for most locations using the NOAA solar series — suitable for planning. Official local timetables remain authoritative for communal prayer.
About this calculator
A prayer calculator computes the five daily Islamic prayer times — plus sunrise — from the position of the sun for your exact location and date. This one implements the real astronomy: solar declination and the equation of time for the day, converted into hour angles for the prayer-defining sun depressions.
Every prayer time is a solar event. Dhuhr is solar noon, Maghrib is sunset, and Fajr and Isha are defined by how far the sun has sunk below the horizon — which is why they swing so much with season and latitude while Dhuhr stays near midday.
The calculation needs the sun's declination (how far north or south of the equator it shines that day) and the equation of time (the up-to-16-minute wobble between clock noon and solar noon). Both come from the standard NOAA series used in solar engineering.
Conventions are the honest caveat in every prayer calculator. The Muslim World League angles used here (Fajr 18°, Isha 17°) are the most widespread, but Umm al-Qura, ISNA, Egyptian and Diyanet timetables legitimately differ. Treat this as an accurate MWL timetable, not the only timetable.
Use it when travelling somewhere without a printed timetable, when setting up a prayer reminder for a new city, when planning work or flights around Maghrib in Ramadan, or when checking why two apps disagree (usually different angle conventions).
How to calculate it yourself
Step 1
Convert the date to a day-of-year number.
Step 2
Compute solar declination and the equation of time from the NOAA series for that day.
Step 3
Find solar noon in local minutes: 720 − 4·longitude − equation of time + 60·time-zone offset.
Step 4
For each depression angle (18°, 17°, 0.833°), solve the hour-angle equation and add or subtract 4 minutes per degree from noon.
Step 5
For Asr, find when the sun's altitude satisfies the shadow-factor rule and take that hour angle after noon.
Real-life examples
Ramadan planning in Dubai
A family in Dubai (25.2048, 55.2708, UTC+4) checks day 75 (mid-March) to plan suhoor and iftar around work hours.
Solar declination for day 75 = -2.04°, equation of time = -9.4 min Solar noon (Dhuhr) = 720 − 4×55.2708 − -9.4 + 4×60 = 12:28 Fajr (sun 18° below horizon) = 05:12; sunrise = 06:28; Asr = 15:53; Maghrib (sunset) = 18:28; Isha (17° below) = 19:39
Fajr 05:12 · Maghrib 18:28 — Full day: Fajr 05:12, sunrise 06:28, Dhuhr 12:28, Asr 15:53, Maghrib 18:28, Isha 19:39 (Muslim World League angles, Shafi'i Asr).
Student timetable in Kuala Lumpur
A student near the equator (3.139, 101.6869, UTC+8) checks day 300 and notices how little the times move across the year compared with London.
Solar declination for day 300 = -12.52°, equation of time = 16.2 min Solar noon (Dhuhr) = 720 − 4×101.6869 − 16.2 + 8×60 = 12:57 Fajr (sun 18° below horizon) = 05:46; sunrise = 06:56; Asr = 16:16; Maghrib (sunset) = 18:57; Isha (17° below) = 20:03
Fajr 05:46 · Maghrib 18:57 — Full day: Fajr 05:46, sunrise 06:56, Dhuhr 12:57, Asr 16:16, Maghrib 18:57, Isha 20:03 (Muslim World League angles, Shafi'i Asr).
Ideas & use cases
- Compare conventions: run your city, then compare with your local mosque timetable — a consistent offset tells you which angle convention your mosque follows.
- Travel planning: compute Maghrib for your destination on arrival day to plan the evening meal during Ramadan before you fly.
- Season swing: run the solstices (days 172 and 355) for your latitude to see your personal Fajr range across the year.
Limitations & sources
- Muslim World League angles and Shafi'i Asr only; no Hanafi Asr toggle, no Umm al-Qura fixed Isha interval, no daylight-saving automatic adjustment (enter the offset in force), and no high-latitude fiqh adjustments above ±66°.
Sources: Solar position series: NOAA Global Monitoring Division solar calculator (declination & equation of time); prayer angle conventions: Muslim World League; algorithm cross-checked against the PrayTimes.org method summary
