# Ramadan Fasting Hours Calculator — Fast Length by City

> Find your Ramadan fasting hours (Fajr to Maghrib) for any city and year. Day-1, mid and last-day fast length, plus the average, with prayer-time methods.

- **Category:** Date & Time
- **Interactive calculator:** https://youcalc.com/en/date-time/ramadan-fasting-hours/
- **Price:** Free, no sign-up required

## Overview

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 result

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.

## Method

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.

## Example

- **Setup:** Mecca, Ramadan 2024 (begins 11 March 2024), using the Umm al-Qura method (Fajr at 18.5° below the horizon).
- **Result:** 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).

## Related calculators

- [Hijri Age Calculator](https://youcalc.com/en/date-time/multi-calendar-age/)
- [Business Days Calculator](https://youcalc.com/en/date-time/working-days-counter/)
- [Zakat Calculator](https://youcalc.com/en/finance-money/zakat/)

## Sources

- https://gml.noaa.gov/grad/solcalc/calcdetails.html
- https://gml.noaa.gov/grad/solcalc/solareqns.PDF
- https://praytimes.org/calculation
- https://en.wikipedia.org/wiki/Tabular_Islamic_calendar

---

Interactive version: https://youcalc.com/en/date-time/ramadan-fasting-hours/ · From YouCalc — https://youcalc.com
