Fasting hours calculator
Work out the length of the fast for any date and place: when it begins at Fajr, when it ends at Maghrib, and how many hours that is.
What the tool measures
The span from the start of Fajr to Maghrib on the date you choose. Fajr is dawn, when the sky first begins to lighten, rather than sunrise, the gap between the two is often an hour and a half, and treating sunrise as the start of the fast is the single most common mistake made with a timetable.
Why two timetables disagree
Maghrib is sunset, and nobody disputes where the sun is. Fajr is defined by how far the sun sits below the horizon at dawn, and organisations settled on different angles for it: 15 degrees, 18, 19.5. That difference is worth up to twenty minutes at the start of the fast, and it is almost always the reason this tool and a printed timetable differ. Set the method your mosque follows.
Long days and short ones
In Britain the fast runs from about ten hours in December to nineteen in June, because dawn and sunset move so far apart across the year. Nearer the equator the length barely changes at all. Both are simply what the sun does at that latitude.
Far enough north there comes a point where dawn never arrives. The sky does not get properly dark before it begins to lighten again. There is then no Fajr to measure from. This tool reports that rather than filling the gap with an estimate, and offers the conventions communities use instead.
A planning aid
These figures are computed from the sun’s position, not published by a mosque. For the actual start and end of a fast, follow your local mosque’s timetable.
Questions
When exactly does the fast begin?
Why is the length different from the mosque timetable down the road?
Why are the hours so long in northern summers?
What happens where there is no dawn or no sunset?
Can I use this to plan Ramadan in advance?
Does it account for altitude?
More tools
Ramadan countdown
How long until Ramadan begins
Ramadan day calculator
Which day of Ramadan a date falls on
Ramadan fasting tracker
Mark off each day's fast as you go