Why the time shifts daily, and how it's calculated from Maghrib and Fajr.
Published September 4, 2026 · Reviewed by the Ihsabha Editorial Team
"Pray in the last third of the night" is one of the most repeated pieces of prayer advice in Islamic tradition, yet it's also one of the most confusing to actually act on. Unlike the five daily prayers, which each have a clearly named window, the "last third of the night" isn't a fixed clock time — it shifts every single day, depending on your location and the length of the night itself. Once you understand how it's calculated, though, finding it for any date and location becomes simple arithmetic.
Numerous hadith describe the last third of the night as a time when supplication (dua) is especially likely to be accepted, and it is the traditionally favored window for Tahajjud, the voluntary night prayer. The reasoning given in the sources is that this is a time of stillness — most people are asleep, distractions are minimal, and the act of waking specifically to worship reflects a deliberate, sincere intention rather than routine habit. This is also the time associated with the descent of divine mercy in the final portion of the night, making it distinct in virtue from the earlier hours of the night.
The most common mistake is assuming "the last third of the night" means roughly 1am to sunrise on a standard clock. In Islamic timekeeping, however, "night" has a specific technical definition: it runs from Maghrib (sunset) to Fajr (true dawn), not from midnight to midnight on the civil clock. This distinction matters because the length of this window changes throughout the year and by location — a summer night at a high latitude can be several hours shorter than a winter night at the same location, which shifts the last-third window considerably.
To find the last third of the night, you first need the exact time of Maghrib and the exact time of the following Fajr for your location and date — both of which are calculated astronomically based on the sun's position relative to the horizon. Once you have these two times, you calculate the total length of the night between them, divide that duration into three equal parts, and the final of those three parts is the "last third." For example, if Maghrib is at 6:00 PM and Fajr the next day is at 5:00 AM, the night spans 11 hours. Dividing by three gives roughly 3 hours and 40 minutes per third, so the last third begins at approximately 1:40 AM and continues until Fajr at 5:00 AM.
A closely related but distinct calculation divides the night in half rather than in thirds, marking Islamic midnight as the halfway point between Maghrib and Fajr, and treating everything after that midpoint as appropriate for Tahajjud, without further dividing it into thirds. Both approaches are found in the scholarly tradition; the last-third method is more specific and widely cited in relation to the hadith on this topic, while the halfway method is sometimes used as a simpler, more inclusive guideline. Either way, the key point both share is that clock-based assumptions (like "always around 2am") don't hold up across different seasons and locations — the calculation has to be redone for each date.
Because the calculation depends on the actual length of daylight and darkness, the last third of the night shifts noticeably across the seasons. In winter, when nights are longer, the last third begins later on the clock and covers more real time. In summer, when nights are shorter, the last third begins earlier and the entire window is compressed — in some high-latitude locations during summer, the last third of the night can be under an hour long. This is also why the same clock time (say, 2:00 AM) might fall inside the last third in December but outside it entirely in June, at the very same location.
Two people in different cities, even praying on the exact same calendar date, can have meaningfully different last-third windows, since Maghrib and Fajr times depend on longitude, latitude, and elevation. Someone near the equator will see relatively little seasonal variation in night length, while someone at a high latitude will see the last-third window shift dramatically between summer and winter. This is why a single fixed "recommended time" doesn't work reliably for a global audience — the calculation genuinely needs to be done for your specific coordinates.
Consider a city where, in winter, Maghrib falls at 5:15 PM and Fajr the next morning falls at 6:00 AM — a night of 12 hours and 45 minutes. Divided into three, each third is 4 hours and 15 minutes, so the last third begins at 1:45 AM and runs until Fajr at 6:00 AM. In summer, the same city might see Maghrib at 8:30 PM and Fajr at 4:15 AM — a much shorter night of 7 hours and 45 minutes. Divided into three, each third is 2 hours and 35 minutes, so the last third now begins at 1:40 AM and ends at 4:15 AM. Even though the start time looks similar in this example, the total length of the window is barely more than half as long in summer, and in locations further from the equator the difference between seasons can be far more dramatic than this.
Tahajjud is sometimes discussed alongside two related terms: Qiyam al-Layl, the broader category of voluntary night prayer performed at any point in the night, and Witr, the odd-numbered prayer that is often prayed as the final prayer of the night, whether immediately after Isha or later after Tahajjud. Someone who wakes specifically in the last third of the night to pray, and then prays Witr afterward as the final prayer before sleeping again or before Fajr, is combining both practices in the way many scholars describe as most complete — though praying Witr right after Isha, for those who don't expect to wake later, is also valid and widely practiced.
Because the last third of the night often falls in the deepest part of sleep, many people find it easier to set an alarm a little before the window begins, allowing time to wake fully, perform wudu, and pray without rushing. Since the window moves earlier or later through the year, a fixed daily alarm time eventually drifts out of sync with the actual last third — checking the calculated time periodically, especially around the change of seasons, keeps your prayer aligned with the recommended window rather than an outdated guess.
Get tonight's exact window instantly. Ihsabha's Last Third of the Night Calculator finds the precise start and end of the last third for your location and date, so you don't have to calculate Maghrib, Fajr, and the division yourself.
No. It shifts daily because it depends on the exact times of Maghrib and Fajr, which change with the seasons and your location. A fixed clock time like "2 AM" will only occasionally match the actual last third.
Tahajjud can technically be prayed any time after Isha and before Fajr, but the last third specifically is the period most strongly associated with the acceptance of dua in the hadith literature, which is why it's the most highly recommended window rather than the only valid one.
"Midnight" in everyday usage means 12:00 AM on the clock, which has no religious significance in this context. The relevant midpoint is halfway between Maghrib and Fajr — a time that moves throughout the year and is almost never exactly 12:00 AM.
Yes, when done correctly. Because the calculation is based on the actual astronomical times of Maghrib and Fajr for your local clock, any Daylight Saving Time shift is automatically reflected in those two reference times, and therefore in the resulting last-third window.
Yes. While the last third carries the greatest recommendation, praying Qiyam al-Layl or making dua at any point during the night, or even setting an intention to wake and simply falling back asleep, is still considered meritorious. The calculation is a tool for those aiming for the optimal window, not a strict requirement that excludes other times of sincere worship.
This article explains the standard method for calculating the last third of the night, based on the interval between Maghrib and Fajr. Calculation methods for Fajr specifically can vary slightly between conventions used in different regions, which may shift the result by a few minutes — for precise worship timing, it's worth confirming which Fajr convention is standard in your area.