
How to Pray Tahajjud and Calculate the Last Third of the Night
Learn when to pray Tahajjud, how to start with two rak‘ahs, and how to work out the last third of the night from local Maghrib and Fajr times.
Pray Tahajjud after ‘Isha and before the next Fajr, usually after sleeping for part of the night. Start with two voluntary rak‘ahs, or prayer units. To find the last third of the night, measure the time from local sunset to the following Fajr, divide the interval by three, and count one third back from Fajr. You can pray earlier if waking near dawn is difficult.
What counts as Tahajjud?
Tahajjud is a voluntary night prayer. Qur’an 17:79 speaks of worship during part of the night as an additional act for the Prophet Muhammad. The verse gives the practice its Qur’anic setting, while hadith and explanations from jurists describe its timing and form. A timetable can tell you when dawn comes. It cannot explain the distinction between the obligatory night prayer and the voluntary prayer that may follow it.
Qiyam al-layl is the broader practice of worship during the night. In its explanation of the difference between night worship and Tahajjud, Egypt’s Dar al-Ifta includes recitation and remembrance under qiyam and uses Tahajjud specifically for prayer after sleep. Jordan’s General Iftaa Department’s discussion of night prayer records broader usage alongside the after-sleep definition. So a speaker who calls an evening prayer Tahajjud may be using a wider sense. For a simple routine, complete ‘Isha, rest for a while, then rise for two voluntary units before dawn.
Keep ‘Isha, Tahajjud and Fajr distinct when planning the night. ‘Isha is the obligatory night prayer. Tahajjud can occupy a short interval after it during the night. Fajr is the obligatory dawn prayer and begins the next prayer period. A late return from work or an early morning alarm does not create a new local prayer time. If in doubt, start with the confirmed ‘Isha and Fajr times for that location.
How to calculate the last third with a timetable
Read the sunset or Maghrib entry for the evening you will pray and the Fajr entry for the following morning. Use one local timetable throughout the calculation. Dar al-Ifta’s timing explanation measures the night between sunset and the break of dawn. ‘Isha marks when you can start offering the voluntary night prayer in this routine, while sunset supplies the first endpoint for dividing the night.
- Work out the duration from sunset to the following Fajr, crossing midnight.
- Divide that duration by three. Use minutes if the result is easier to subtract that way.
- Subtract one third from the Fajr time. The result is the start of the final third.
For example, assume Maghrib is 18:12 on Tuesday and Fajr is 05:42 on Wednesday. From 18:12 to midnight there are 5 hours and 48 minutes. From midnight to 05:42 there are another 5 hours and 42 minutes. The total is 11 hours and 30 minutes, or 690 minutes. One third is 230 minutes, which is 3 hours and 50 minutes. Count back from 05:42 and the last third begins at 01:52 on Wednesday. These are sample figures for doing the arithmetic, so replace both of them with your local entries.
In another example, sunset at 20:45 and Fajr at 04:15 produce a night of 7 hours and 30 minutes. One third is 2 hours and 30 minutes, giving a start of 01:45. The two examples happen to give roughly similar starts by the clock, but they have different amounts of time left until dawn. A single reminder set for the whole year can therefore put the alarm at a different relative point in the night as dawn and sunset shift. Recheck after travel and when the clocks change.
Why Fajr and sunrise are different endpoints
Most mosque timetables show both Fajr and sunrise. In the night-prayer calculation, use the start of Fajr. The sunrise entry comes later. Sunrise is easier to identify in everyday speech, which may explain why it slips into informal instructions, but adding the interval between dawn and sunrise changes the result. Likewise, check that the number on a mosque poster is the start of Fajr and not the later time for the congregational prayer.
Different apps can give different dawn entries for the same city. The Hong Kong Observatory’s twilight reference describes distinct physical stages of twilight based on how far the Sun’s centre lies below the horizon. That scientific reference explains why the world can be in twilight at different levels of brightness. For religious practice, consult the Fajr convention followed by your local mosque or religious authority, especially at high latitudes. Our guide to differences between prayer time calculations explains how location, seasonal adjustments and calculation settings can affect a timetable.
The last third has a particular place in the hadith of Sahih al-Bukhari 1145, which describes that part of the night in connection with supplication and seeking forgiveness. That explains the emphasis on late-night worship. The available window for your voluntary night prayer still extends beyond that preferred section.
How to pray two rak‘ahs when you wake
First allow yourself enough time to get ready and finish before Fajr. Make sure you have the purification you need for prayer. If you have questions about sleep and ablution, see our guide to wudu and differences among schools. Find a suitable place, face the qibla and intend the voluntary prayer. If you are away from home, our explanation of how the direction of the qibla is determined can help you interpret a compass or app.
Offer two ordinary units of voluntary prayer, reciting, bowing and prostrating as you normally do, and finish with the salutation. Sahih Muslim 768 records beginning the night prayer with two brief units. The direction reported in Sahih al-Bukhari 990 describes the prayer in pairs. A beginner can stop after the first pair. If there is ample time and you wish to prolong the prayer, continue in additional pairs.
The reports used here leave you room to recite verses you know. You do not need to learn a long recitation to get started. If you want to read an account of the Prophet’s regular night worship, compare ‘A’ishah’s account in Sahih al-Bukhari 1147 with the pairing instruction. The first describes a reported practice that included Witr, and the second answers a question about the form of the night prayer. That distinction is useful if you see several different numbers on prayer guides.
When to pray Witr and what to do if you already prayed it
Witr is the odd-numbered prayer associated with closing the night worship. Its exact form differs by legal school. If you expect to wake for Tahajjud, you can plan to pray Witr at the end of your night prayers. If you are uncertain, it is reasonable to pray Witr before bed. Egypt’s Dar al-Ifta gives both practical options in its answer on Tahajjud after Witr.
You may wake unexpectedly after already praying Witr. In that case, the same answer permits further voluntary prayer. Pray it in pairs and leave the Witr you have already offered as it is. Sunan Abi Dawud 1439 records the instruction against offering two Witrs in one night. Preserving Witr as a planned conclusion and avoiding a second Witr can both be observed when the evening goes differently from what you expected.
The order also matters when you pray with others during Ramadan. If you have already offered Witr with the congregation and later wake at home, you can use the same principle when considering further voluntary prayer. Questions about how a particular congregation or school structures Witr are best settled with that congregation’s teacher. Keeping the units separate in your personal plan makes it easier to identify which parts you have already performed.
A realistic night-prayer plan around work and sleep
Choose a small amount of time you can actually keep. A person who starts work at dawn might set an alarm a little before Fajr for purification, two short units and private supplication. A parent who already wakes to feed a child may find a natural interval after settling the child again. A night-shift worker may opt for voluntary prayer after ‘Isha in an available break, following the local timetable. In each case, the two obligatory prayers still keep their own places in the schedule.
Leave yourself a margin before Fajr. Some phones display rounded times or use a different city or time zone. It is particularly easy to take the evening line from one day and the dawn line from the wrong day when looking at a monthly calendar. If the window has already closed, attend to Fajr. When planning another night, adjust the alarm instead of making the arithmetic more complicated.
If you want to make dua, use the time to ask for what you need and seek forgiveness. The hadith about the last third provides the context for this practice. For examples of Qur’anic passages and reported prayers in difficult circumstances, see our guide to supplications for relief. A practical first goal is simple: confirm local Fajr, prepare for a short voluntary prayer, and keep it manageable enough to repeat.





