A Prayer Times Countdown and the Islamic Midnight Calculator for Tahajjud
Assalamu alaikum wa rahmatullahi wa barakatuhu,
Have you ever been in the middle of a busy afternoon and thought, “Wait, has Asr come in yet?” And then you stop what you’re doing, open another tab or app, search your city, and finally find out you have twenty minutes left. I’ve done this more times than I can count, so I added something to the website to fix it. And while I was at it, I built a second tool that I’m even more excited to share with you.
Grab your tea, because this one is a little long. I want to walk you through both of them properly.
First: Your Next Salah Countdown, Right at the Top

Look at the very top of any page on Islam Hashtag. You’ll see a small bar with a countdown, something like “Maghrib in 01:22:28.” Tap it and a little card opens with your city, today’s date in both Gregorian and Hijri, and the whole day’s prayer times: Fajr, Sunrise, Jumu’ah, Asr, Maghrib, Isha, and Islamic midnight.
All you have to do is choose your city once and press the Saved star. After that, the website remembers you. Wherever you are on the site, reading an article, using the Tasbih counter, or looking at the kids’ tafsir classes, the time left for your next salah is right there, ticking down quietly.
I like to think of it as a gentle nudge. It doesn’t nag you or send a loud alert. It’s just there, so when you glance up and see “Asr in 00:18:40,” you know it’s time to wrap up and get your wudu ready. There’s also a small settings button in the card if you’d like to adjust your preferences.
You’ll also notice that the last item in that daily list is Islamic midnight. That’s no accident, and it brings me to the second tool.
Second: The Islamic Midnight Calculator
Here is something that surprised me when I first learned it: Islamic midnight is not 12:00 AM.
In Islam, the night is counted from Maghrib to Fajr. It isn’t the hours between 6 PM and 6 AM, and it isn’t the stretch from one clock midnight to the next. Islamic midnight, called nisf al-layl, is the exact middle of that night.
Because the night is longer in winter and shorter in summer, and different in every city, the middle moves every single day. Today in Makkah, for example, Maghrib is at 5:50 PM and Fajr is at 5:03 AM. That makes the night 11 hours and 13 minutes long, and its middle falls at 11:27 PM. If I had set my Tahajjud alarm for “midnight” by the clock, I would have missed the real midpoint by more than half an hour.
Why This Matters: The Last Third of the Night
The reason I care so much about getting this time right is what comes after midnight. The prophet ﷺ told us that in the last third of every night, our Lord descends to the lowest heaven and says, “Who is calling upon Me so that I may answer him? Who is asking of Me so that I may give him? Who is seeking My forgiveness so that I may forgive him?” (Bukhari and Muslim)
When I read this, I don’t see it as a rule. I see it as a personal invitation, every single night. It’s the time for Tahajjud, for the dua you’ve been carrying in your heart, for crying quietly where only Allah can hear you, and for asking forgiveness.
But how do you aim for the last third if you don’t know when it starts? Most of us were guessing, and I certainly was. That’s what the calculator is for.
👉 Try it here: Islamic Midnight Calculator
How to Use the Calculator, Step by Step
I wanted this to be simple, so here’s how it works.
1. Choose your location. Pick your city from the list, or tap Use my location and it will find you automatically. It works for cities all over the world, so you can also check times for family far away or for a trip you’re planning.
2. Pick your date. The night begins at Maghrib on the date you choose. So if you select today’s date, you’ll see tonight’s night, which ends at tomorrow’s Fajr.
3. Select your Fajr calculation method. This matters because communities calculate Fajr a little differently. In my example below I used Umm al-Qura, Makkah (18.5°), but you can choose the method your local mosque follows.
4. Decide when your night ends. By default it ends at Fajr, true dawn, which is the majority view. If you’d like to adjust further, there’s an Advanced options section.
5. Press Calculate. You can switch between 12-hour and 24-hour time, and there’s a Dark mode button, which is lovely for checking at night without hurting your eyes.
What the Results Look Like
Here are the results for Makkah on the night of Friday, October 23, 2026:
- Maghrib (night begins): 5:50 PM
- First third ends: 9:35 PM
- Islamic midnight: 11:27 PM
- Last third begins: 1:19 AM, the next day
- Fajr (night ends): 5:03 AM
- Length of the night: 11 hours 13 minutes
- Each third lasts: 3 hours 44 minutes
The calculator also draws a little bar showing the whole night from Maghrib to Fajr, with the key moments marked along it. I find it helpful to see the night this way, as one long stretch divided into three parts, with the best part saved for last.
And look at that last number. The last third gives you 3 hours and 44 minutes, from 1:19 AM until Fajr. That’s a generous window. You don’t need a perfectly timed alarm or a night of no sleep. You only need the intention to rise.
How These Tools Can Actually Help You
Let me be practical, because I don’t want these to be just pretty features.
If you’ve never prayed Tahajjud, you can look at tonight’s last-third time, set your alarm for it, and wake up knowing you’re in the right window. No more guessing, no more wondering whether you’re too early or too late.
If you’re a busy mom, a student, or someone who works long hours, the countdown at the top of the page keeps you aware of your next salah without any extra effort. You’ll see it every time you open the website.
If you can’t pray for long, that’s okay. Even two rakahs and a sincere dua in the last third of the night are something Allah loves. The calculator isn’t there to put pressure on you. It’s there to show you when the door is open.
If you travel or have family abroad, you can check the night for any city. It’s a lovely way to plan a shared night of dua with someone far away.
If you follow a specific Fajr method, you can choose it, so the times match what your community prays by.
A Few Gentle Reminders
- The times are a guide. Please follow the prayer times and Fajr method used by your local mosque and your trusted scholars. That’s why the calculator lets you choose.
- Start small. You don’t have to jump into long nights of worship. A little consistency is better than a heavy start you can’t keep up.
- Intention comes first. Sleep early, make the intention before bed, and ask Allah to help you wake. Many of us have found that this helps more than any alarm.
Try It Tonight
Here’s my little challenge for you. Set your city in the top bar and press the Saved star. Then open the Islamic Midnight Calculator, find out when the last third of your night begins, and tell yourself, “Tonight, I’ll try.”
And please tell me how it goes! If you’d like another calculation method added, reminders for the last third of the night, or any other idea that would make these tools better, leave me a comment below. I read every one.
May Allah make it easy for all of us to wake in the last third of the night and fill it with sincere dua, and may He accept it from us. Ameen.
With love and duas,
Alimah Fahmina
Written by

Ustadha Fahmina holds a Sanad in Alimiyyah (6-year Dars-e-Nizami) from two recognized Islamic institutes and a Master's degree in Arabic . She teaches Qur'an, Tafsir, Hadith, and Fiqh following the Hanafi school within Ahl al-Sunnah wal Jama'ah. She founded Islam Hashtag in 2015 to bring authentic Islamic learning to Muslim families online. She also holds a degree in Optometry and is the founder of Optometryskills.com.
Discover more from Islam Hashtag
Subscribe to get the latest posts sent to your email.
