Date & Time

Ramadan Fasting Hours Calculator

See how long the daily fast lasts — from Fajr (dawn) to Maghrib (sunset) — for your city and Ramadan year, on the first day, the middle, and the last day.

Calculator

Pick from major world cities, including several high-latitude ones.
The Gregorian year in which that Ramadan begins.
The Fajr/Isha sun-angle convention used by your local authority.
Applied when the sun never reaches the Fajr/Isha angle.
Average daily fast
13h 16m
Ramadan 1446 AH runs from 2025-03-01 to 2025-03-30 (30 days).

Ramadan dates here come from the tabular Hijri calendar and can differ by ±1–2 days from the official moon-sighting announcement in your country.

Fasting hours through Ramadan

DayDateFajrMaghribFast length
Day 12025-03-0105:2718:2512h 58m
Day 152025-03-1505:1518:3013h 15m
Last day2025-03-3005:0118:3513h 34m

How fasting hours are calculated

Each day's fast runs from Fajr (true dawn) to Maghrib (sunset). Maghrib is the moment the sun's upper edge dips below the horizon; Fajr is when the sun is a set number of degrees below the horizon before sunrise, defined by your chosen method.

Sun positions come from the NOAA solar equations. Ramadan's first, middle, and last days are found from the tabular Hijri calendar, then the fast length for each is the time from that day's Fajr to its Maghrib.

Why does my mosque's timetable differ by a few minutes?

Different authorities use different Fajr/Isha sun angles and small safety margins, and Ramadan's start can shift by a day with moon sighting. Switch the calculation method to match your local authority, and expect a few minutes of variation.

What happens at high latitudes like Reykjavík or Tromsø?

Near the poles the sun may never reach the Fajr or Isha angle in summer, so a true dawn or dusk does not occur. The calculator then applies the selected high-latitude rule (angle-based by default) and flags the result as an approximation.

Are these the exact official Ramadan dates?

No. The dates are computed from the tabular Hijri calendar, which can differ by one or two days from the moon-sighting announcement in your country. Use them as a close estimate and confirm locally.

Results are estimates. Verify with a professional for important decisions.

About this calculator

This calculator shows how many hours you fast each day during Ramadan — the window from Fajr (true dawn) to Maghrib (sunset) — for any of the listed world cities and any Ramadan year. It reports the fast length on the first day, the middle (15 Ramadan), and the last day, along with the average, plus the daily Fajr and Maghrib clock times. Choose the Fajr/Isha calculation method your local authority uses (Muslim World League, ISNA, Umm al-Qura, Egyptian, or Karachi), and the tool handles high-latitude cities where the sun never reaches the dawn angle.

How to read your results

The headline figure is the average daily fasting length across the first, middle, and last days of Ramadan, in hours and minutes. The table beneath breaks the three sample days out individually, showing the Fajr and Maghrib clock times and the fast length for each — fasts naturally lengthen or shorten across the month as the sun shifts. If your city is at a high latitude and the sun never dips to the Fajr or Isha angle on a given day, a notice explains that an approximation rule was applied and the times should be treated as estimates rather than exact.

Worked example

Mecca, Ramadan 2024 (begins 11 March 2024), using the Umm al-Qura method (Fajr at 18.5° below the horizon).

Day 1 fast ≈ 13 h 12 m (Fajr 05:18, Maghrib 18:29), mid-Ramadan ≈ 13 h 30 m, and the last day ≈ 13 h 50 m, for an average of about 13 h 30 m per day. The high-latitude approximation is not needed at this latitude.

Frequently asked questions

When does the fast begin and end each day?

The fast begins at Fajr (true dawn, when the sun is a set number of degrees below the horizon before sunrise) and ends at Maghrib (sunset, when the upper edge of the sun dips below the horizon). The fasting window is the time from Fajr to Maghrib on that calendar day.

Why do different methods give slightly different times?

Methods differ in the sun-depression angle they use for Fajr and Isha. The Muslim World League uses 18° for Fajr; ISNA uses 15°; the Egyptian authority uses 19.5°. A larger angle means Fajr is earlier and the fast is slightly longer. Pick the method your local mosque or authority follows.

How are high-latitude cities like Tromsø or Reykjavík handled?

In high-latitude summers the sun may never sink to the Fajr or Isha angle, so an astronomical dawn or dusk does not occur. When that happens the calculator applies a high-latitude rule — angle-based by default, with middle-of-the-night and one-seventh-of-the-night options — and clearly flags that the result is an approximation, as recommended by praytimes.org and many fatwa councils.

Are the Ramadan dates exact?

The dates come from the tabular Hijri (Islamic) calendar, a deterministic arithmetic calendar. They can differ by one or two days from the official moon-sighting announcement in your country, so treat the dates as a close estimate and confirm the exact start locally.

Does the calculator account for daylight saving time?

Each city carries a fixed standard-time UTC offset, and Ramadan dates anchor the clock. The Fajr and Maghrib times shown are on that standard offset; if your region observes daylight saving during Ramadan, add an hour to the displayed clock times (the fast length itself is unaffected).

How it's calculated

Ramadan is the 9th month of the Hijri calendar. For the chosen Gregorian year, the calculator finds the tabular-Hijri year whose 1 Ramadan falls in it, then computes the Julian Day Numbers of 1 Ramadan, 15 Ramadan, and the last day (29 or 30 Ramadan). For each of those three days it evaluates the sun's declination and the equation of time using the NOAA Solar Calculator low-precision equations, then solves the hour-angle equation for the target altitudes: −0.833° for sunrise/sunset (atmospheric refraction plus the solar semi-diameter) and the method's Fajr/Isha depression angles. Maghrib equals sunset and the daily fast length is Maghrib minus Fajr. When the sun never reaches the Fajr or Isha angle (high latitude near a solstice, where the hour-angle math has no solution), the praytimes.org high-latitude adjustment is applied — angle-based by default — and the result is flagged. All times are computed on the city's fixed standard UTC offset; the engine never reads the clock, so the output is fully deterministic.

Sources

Reviewed by the YouCalc Team · Last reviewed

Spot a translation issue, a calculation issue, or have a suggestion? Let us know.

200 more like this. Pick the next one.