What Maghrib is
Maghrib is the prayer at sunset. Three rak'ahs of obligatory prayer, the only one of the five with an odd number, and it's the one Muslims around the world break their fast on in Ramadan.
Allah says in the Quran to establish prayer “at the two ends of the day and at the approach of the night” (Quran 11:114). Maghrib sits right on that line, where the day ends and the night begins.
The Companions used to pray it early. Rafi' ibn Khadij said they would pray Maghrib with the Prophet ﷺ, and when one of them left afterwards he could still see where his arrow would land (Sahih al-Bukhari 559). In other words there was still enough light to see that far after the prayer was done.
When Maghrib starts
Maghrib starts at sunset, when the whole disc of the sun has gone below the horizon. In the hadith of Jibril leading the prayer, he prayed Maghrib “when one who is fasting breaks the fast” on both days (Sunan Abi Dawud 393). It's the one time where most calculation methods agree, because sunset is easy to see.
There are small differences. Some methods add a few minutes after sunset as a safety buffer. The Tehran method waits until the sun is 4.5° below the horizon, according to the adhan-js documentation. And your mosque may add a few minutes of its own to the printed time. So if your app says 15:53 and the mosque says 15:56, that's normal. Check with your local mosque.
| City (adhan-js, MWL method) | Maghrib on 21 Dec 2026 | Maghrib on 21 Jun 2026 |
|---|---|---|
| London | 15:53 | 21:22 |
| Manchester | 15:51 | 21:42 |
| New York | 16:32 | 20:31 |
| Dubai | 17:34 | 19:12 |
When Maghrib ends
The Prophet ﷺ said the time of the evening prayer lasts as long as the twilight has not disappeared (Sahih Muslim 612). Once the twilight is gone, Isha comes in.
The schools differ on which twilight. The adhan-js documentation notes that the Shafi'i, Maliki and Hanbali schools use the red glow in the sky (ahmer), and the Hanafi school uses the white glow (abyad), which fades later. So a Hanafi timetable often gives a slightly longer Maghrib and a later Isha.
On top of that, some calculation methods don't use twilight for Isha at all. Umm al-Qura and Qatar put Isha a fixed 90 minutes after Maghrib. That's one reason the length of Maghrib looks different from app to app. We break it down further on how long is Maghrib time.
Maghrib in Ramadan
In Ramadan, Maghrib is iftar. Allah says to complete the fast until the night (Quran 2:187), and the Prophet ﷺ said when night comes from one side, the day goes from the other and the sun sets, the fasting person breaks the fast (Sahih al-Bukhari 1954).
He also said people will stay on the right path as long as they hurry to break the fast (Sahih al-Bukhari 1957). So the usual way is a date and water at sunset, pray Maghrib, then eat properly.
What can easily happen is the opposite. The table's full, the food's hot, everyone sits down, and by the time the plates are cleared Maghrib's nearly out. If you're hosting, put the prayer between the dates and the meal and it sorts itself out. Our Ramadan page and the suhoor and iftar times page have more on this.
Why people miss Maghrib
In winter, Maghrib in the UK lands before four in the afternoon. That's the middle of the working day for a lot of people, and it comes so soon after Asr that people who've just prayed Asr don't expect another prayer for a while.
In summer it's the opposite. Maghrib is after nine at night in London, so you're out, at dinner, at the park with the kids, and the light makes it feel earlier than it is.
And then there's the commute. A lot of people are on a train or in traffic right at sunset, and by the time they're home the window's closing. Commuting is its own topic, we cover it on how to pray on time while commuting.
Practical steps for Maghrib
So the first thing I'd say is to pray it early. Because the window is short, Maghrib is the one where waiting until later doesn't really work.
And then plan around the time it comes in, which changes by a minute or two every day. In late October, when the clocks go back in the UK, it suddenly jumps an hour earlier on the clock, and a lot of people get caught out that first week.
A few things that help:
In winter, if you work in an office, Maghrib is usually inside working hours. Plan it the same way you'd plan Asr.
If you commute at sunset, find a mosque or a quiet spot near your station. Some people pray at work before leaving, once the time is in.
Keep wudu from Asr if you can. Maghrib's window is short and a long walk to a sink eats into it.
At family dinners in summer, set a reminder for just before sunset so the conversation doesn't run through it.
How Prayd helps with Maghrib
Prayd calculates Maghrib on your phone with the Adhan library, and you can shift it by up to 30 minutes in either direction to line up with your mosque's printed time.
Five minutes after Maghrib comes in, the apps you picked are shielded. That matters for Maghrib more than most, because the window is short and the phone is usually what stretches the gap between sunset and prayer. You pray, scan your mat, and the apps open.
If you're travelling, there's a travel pause that stops the shield for the covered period and keeps those prayers neutral, so it won't lock your phone on a train when you've got no way to pray properly. What counts as travel for shortening or combining is a fiqh question for a scholar, and the pause doesn't decide it for you.
Questions people ask
What time is Maghrib?
Maghrib starts at sunset, when the whole sun has gone below the horizon (Sunan Abi Dawud 393). Most methods agree on it within a few minutes, but check a timetable for your city and your local mosque.
How long does Maghrib time last?
Until the twilight disappears (Sahih Muslim 612). In London that's about an hour and a half to two hours in winter on the MWL method (adhan-js), longer in summer, and longer on a Hanafi timetable that uses the white twilight.
How many rak'ahs is Maghrib?
Three obligatory rak'ahs, as listed in Islamweb fatwa 82926.
Should I pray Maghrib before or after iftar?
The Prophet ﷺ encouraged hurrying to break the fast (Sahih al-Bukhari 1957), so many people break the fast with dates and water, pray Maghrib, then eat. Ask your local imam about your own routine.
Why is Maghrib so early in winter?
Because the sun sets early. In London on 21 December 2026 Maghrib is at 15:53 on the MWL method, compared with 21:22 on 21 June (adhan-js).
Sources
- Quran 11:114Prayer at the ends of the day and approach of nightChecked 4 December 2026
- Quran 2:187Complete the fast until nightChecked 4 December 2026
- Sahih al-Bukhari 559Praying Maghrib early with light leftChecked 4 December 2026
- Sunan Abi Dawud 393Maghrib when the fasting person breaks the fastChecked 4 December 2026
- Sahih Muslim 612Maghrib lasts until the twilight disappearsChecked 4 December 2026
- Sahih al-Bukhari 1954Break the fast when the sun setsChecked 4 December 2026
- Sahih al-Bukhari 1957Hasten to break the fastChecked 4 December 2026
- Islamweb fatwa 82926: Number of rak'ahs for each prayerThree rak'ahs of MaghribChecked 4 December 2026
- adhan-js calculation methods (Batoul Apps)Red vs white twilight by school, Tehran angle, 90-minute Isha methods, example timesChecked 4 December 2026
- Prayd guide: menstruation, travel and illness pausesTravel pauseChecked 4 December 2026