
Many people want to pray at night but stop at one practical question: when exactly? The answer is a number you can work out from the sunset and dawn times in your city, not a guess.
Qiyam and tahajjud: the same thing?
- Qiyam al-layl is broader: any worship at night, prayer, recitation or remembrance, starting after the night prayer.
- Tahajjud is narrower: night prayer performed after sleeping.
- Witr closes the night prayer with an odd number of units.
So whoever prays after isha and then prays witr has performed qiyam al-layl, even without waking from sleep.
Surah Al-Isra 17:79
Verified recitation
And from part of the night, pray with it as additional worship for you; it is expected that your Lord will raise you to a praised station.And from part of the night, pray with it as additional worship for you; it is expected that your Lord will raise you to a praised station.
The window: from isha to dawn
The time starts after the night prayer and lasts until dawn breaks. Once the dawn call is given, the night prayer's time is over; whoever wants witr should pray it before dawn.
The best part is the last third of the night, in view of the reported hadith about that hour and the answering of those who ask, recorded by al-Bukhari and Muslim.
How to calculate the last third yourself
Night here begins at sunset (maghrib) and ends at dawn (fajr), not at twelve o'clock.
- Subtract maghrib from fajr to get the length of the night.
- Divide by three to get one third.
- Subtract one third from fajr; the result is the start of the last third.
- Midnight is the midpoint between maghrib and fajr.
Worked example
A city where maghrib is 6:45 pm and fajr is 4:45 am:
- Night length = 10 hours.
- One third = 3 hours 20 minutes.
- Start of the last third = 4:45 am minus 3:20 = 1:25 am.
- Midpoint of the night = 6:45 pm plus 5 hours = 11:45 pm.
Surah Adh-Dhariyat 51:17-18
Verified recitation
They used to sleep but little of the night, and in the hours before dawn they would ask forgiveness.They used to sleep but little of the night, and in the hours before dawn they would ask forgiveness.
Approximate range by city
The figures shift daily; this table shows how far the start moves between summer and winter:
| City | Start of the last third across the year |
|---|---|
| Makkah | about 1:10 to 2:00 am |
| Riyadh | about 1:05 to 1:55 am |
| Cairo | about 12:55 to 1:55 am |
| Amman | about 12:50 to 1:55 am |
| Istanbul | about 12:30 to 2:10 am |
| London | about 11:45 pm to 2:20 am |
Read the exact figure for today from prayer times after setting your city, or from a city page such as prayer times in Makkah, then apply the four steps above.
How many units
- There is no obligatory maximum; night prayer is in pairs, closed with witr.
- The best known practice of the Prophet, peace be upon him, was eleven units, and thirteen is also reported.
- Umar ibn al-Khattab is reported to have directed twenty units in Ramadan with witr, which is why mosque practice varies between eleven, twenty and twenty-three.
- Witr may be one, three, five, seven or nine units.
Presence of heart matters more than count: two unhurried units are better than twenty rushed ones.
Common mistakes and what is correct
| Common mistake | What is correct |
|---|---|
| Treating 12:00 as midnight | Midnight is the midpoint between maghrib and fajr, and it moves daily |
| Believing qiyam requires prior sleep | Sleep is a condition of tahajjud, not of qiyam |
| Skipping night prayer because eleven units feel out of reach | Two units and witr is valid qiyam; consistency beats volume |
| Praying witr twice in one night | There is no second witr; whoever prays again prays in pairs |
| Delaying until dawn has entered | The night prayer's time ends with the dawn call |
Four steps that make it possible
- Work out the start of the last third for tonight from your city's maghrib and fajr.
- Set an alarm fifteen minutes earlier and form the intention before sleeping.
- Start with two units and witr, then build up.
- In Ramadan pair it with tarawih; see the Ramadan page to plan your night.
Related articles
Data sources
Last updated: 17 September 2026


