Tahajjud Time: When and How to Pray Tahajjud
Tahajjud time runs from after Isha until the start of Fajr — but the sweet spot is the last third of the night, when the Prophet ﷺ told us our Lord descends to the lowest heaven asking who is calling on Him. Here's how to calculate that window for your city, how many rakat to pray, and a realistic way to begin tonight.
How many rakat is tahajjud? There is no fixed number. Two rakat is enough, and you pray in pairs. The Prophet ﷺ usually prayed eight, then closed with witr for eleven in total (Sahih al-Bukhari 1147).
When is tahajjud?
Tahajjud is voluntary night prayer, classically prayed after a period of sleep. Its valid time is broad: any point after Isha and before true dawn (the start of Fajr). Within that window, the most virtuous time is the last third of the night, based on the famous hadith in Bukhari and Muslim: when the last third of the night remains, our Lord — exalted beyond all comparison — comes down to the nearest heaven and says: "Is there anyone to invoke Me, so that I may respond to invocation? Is there anyone to ask Me, so that I may grant him his request? Is there anyone seeking My forgiveness, so that I may forgive him?" (Sahih al-Bukhari 1145; Sahih Muslim 758)
The absolute cutoff is Fajr. Once dawn enters, the time for tahajjud (and witr) has ended.
How to calculate the last third of the night
The "night," for this calculation, runs from sunset (Maghrib) to the start of Fajr (Darul Iftaa Birmingham, Hanafi). Different calculation methods move Fajr by a few minutes, so don't stress over minutes. The method is simple:
- Take tonight's Maghrib time and tomorrow's Fajr time.
- Count the hours between them and divide by three.
- The final portion, ending at Fajr, is the last third.
Example: Maghrib at 9:00 p.m., Fajr at 6:00 a.m. → the night is 9 hours, each third is 3 hours, so the last third runs from 3:00 a.m. to 6:00 a.m. Anywhere in that window — even the last twenty minutes before Fajr — counts. These times shift daily and vary by city and calculation method, so work from a reliable local timetable; our prayer times guide explains why apps sometimes differ.
How many rakat is tahajjud?
There is no fixed number, and that is a feature, not a gap. Night prayer is offered two rakat at a time — pray two, give salam, and continue if you have more in you. The Prophet ﷺ most commonly prayed eight rakat, unhurried and long, then closed with witr for eleven in total; 'Aishah said he "never exceeded eleven rak'at in Ramadan or in other months" (Sahih al-Bukhari 1147). But he also taught that the night prayer is offered "as two rak'at followed by two rak'at and so on" (Sahih al-Bukhari 990), with no minimum beyond a single pair.
Two calm rakat where your heart is present are worth more than eight distracted ones. Recite what you know, take your time in sujud, and make dua in your own language there — the last third of the night is the time scholars across all schools describe as one of the moments dua is most readily answered.
Why tahajjud is worth losing sleep over
The Prophet ﷺ said "the most excellent prayer after what is prescribed is prayer during the night" (Sahih Muslim 1163). The Quran describes the believers as those whose sides forsake their beds to call on their Lord in fear and hope (32:16), and promises the one who rises by night a maqam mahmud — a praised station (17:79). Tahajjud is private by design: no congregation, no audience, nothing but you choosing Allah over your pillow. That privacy is exactly what makes it heavy on the scale.

Know your Fajr time, even offline
Hayya computes prayer times on-device and caches 12 months offline — so you can work out your last third anywhere, and never miscalculate the Fajr cutoff. Its free Fajr alarm can wake you up to 30 minutes before Fajr. No ads.
Download Hayya FreeHayya is iPhone-only for now. On Android? Email [email protected] to hear when it's ready.
A realistic on-ramp: start with two rakat before Fajr
Most people fail at tahajjud because they start like sprinters: 2 a.m. alarm, eight rakat, three nights, burnout. Build it like a habit instead:
- Weeks 1–2: set your Fajr alarm just 15–20 minutes earlier and pray two short rakat before the fard. (Hayya's free Fajr alarm can ring 10, 20 or 30 minutes before Fajr.) You're already waking up anyway — you're only moving the line slightly.
- Weeks 3–4: lengthen those two rakat, or add a second pair. Add a few minutes of dua in sujud.
- Then: if you want more, shift your witr to the end of the night so it seals your tahajjud — and only chase the deep last-third wake-ups once the pre-Fajr pair feels automatic.
- Any night you can't wake: pray two rakat after Isha before bed instead. It isn't classical tahajjud, but it is night prayer, and it keeps the thread unbroken.
The Prophet ﷺ taught that "the most beloved deed to Allah is the most regular and constant even if it were little" (Sahih al-Bukhari 6464). A pair of rakat every night at 5:40 a.m. will change you more than a heroic 3 a.m. vigil you quit by Thursday. And if you miss a night, you have not "broken" anything — start again the next night without ceremony.
Small things that make waking easier
The mechanics are the same as waking for Fajr — sleep early, wudu before bed, alarm across the room — and our Fajr guide covers the full system. Two tahajjud-specific additions: keep a glass of water by the bed (dry mouth at 4 a.m. is a surprisingly effective excuse), and decide before you sleep exactly which surahs you'll recite, so the half-asleep version of you has zero decisions to make.
Sources
- Quran 17:79: night prayer and the praised station
- Quran 32:16: those whose sides part from their beds
- Sahih al-Bukhari 990: night prayer is two rak'ahs at a time
- Sahih al-Bukhari 1145 and Sahih Muslim 758: the last third of the night
- Sahih al-Bukhari 1147: the Prophet's ﷺ night prayer never exceeded eleven rak'ahs
- Sahih al-Bukhari 6464: the most beloved deed is the most constant, even if little
- Sahih Muslim 1163: the best prayer after the obligatory ones is prayer at night
- Darul Iftaa Birmingham (Hanafi), "How to calculate tahajjud last third of the night?"
Written by Louis, founder of Hayya. This is a summary of the cited sources, not a fatwa. Ask a scholar you trust about your madhab's ruling.
FAQ
When is tahajjud time?
Any time after Isha and before Fajr, ideally after some sleep. The best window is the last third of the night — divide the time from sunset to Fajr by three, and take the final portion.
How many rakat is tahajjud?
No fixed number — pray two at a time. The Prophet ﷺ commonly prayed eight plus witr (Sahih al-Bukhari 1147), but even a single pair of rakat counts as night prayer.
Do I have to sleep first for tahajjud to count?
Strictly speaking, tahajjud means night prayer after sleep, while any voluntary night prayer is qiyam al-layl. Praying before bed still earns the reward of night prayer; waking to pray is the higher form.