Not sure how many rakaa you prayed?
Forgetting and confusion during prayer
If you are not sure how many rakaa you prayed, your prayer is not invalid: set the doubt aside, build on the number you are certain of (the lower one), finish the prayer and perform two prostrations of forgetfulness before the salam — unless you lean strongly toward one number, in which case you act on it.
You say the salam, and instead of calm there is a question: was that three or four? You replay the prayer in your head and the more you look for the answer, the less certain you get. If that is you, it is far more common than you think — and it does not mean your prayer was wrong.
Prayer Memory keeps the count for you, silently, so you can give your attention to the prayer instead of the number.
Last updated:
Why It Happens
Losing count is almost always a matter of attention, not memory. The movements of salah are familiar enough that the body performs them without supervision, and the moment your mind steps away — a noise from the next room, a thought about work, the sheer tiredness of Isha after a long day — the count is the first thing to go.
For some people it is also waswasa: repetitive, intrusive doubt that keeps asking the question no matter how clear the answer is. That is a different problem from an honest slip, and scholars treat it differently — the advice there is to stop chasing the doubt rather than to recount.
What to Do When It Happens
The hadith of Abu Sa’id al-Khudri (Sahih Muslim 571) gives the rule: when you doubt how many rakaa you have prayed, set the doubt aside, build on the number you are certain of — which is the lower one — complete the prayer, and perform sujood as-sahw (two prostrations of forgetfulness) before the salam. The prayer is not repeated and it is not invalid.
There is one widely-noted exception: if you have a stronger assumption (ghalib al-zann) about the correct number rather than a pure fifty-fifty doubt, most scholars say you act on it, and the prostration comes after the salam. The madhhabs differ on some of these details — the Hanafi school, for example, places sujood as-sahw after the salam in essentially every case. For the full breakdown, see the sajdah sahw guide.
Do You Repeat the Prayer if You Lose Count?
Usually not. What you do depends on when the doubt comes and how sure you are:
| Situation | Ruling |
|---|---|
| You doubt while still praying | Do not repeat the prayer. Build on the number you are certain of (the lower one), finish, and perform sajdah sahw before the salam. |
| You lean strongly toward one number while praying | Act on that stronger assumption, finish, and perform sajdah sahw after the salam. |
| A mere doubt appears after the salam | Ignore it. Nothing is required and the prayer is not repeated. |
| You become certain after the salam that a rakah was missed, soon after | Pray the missing rakah, give the salam, and perform sajdah sahw (as in the hadith of Dhul-Yadayn). |
| You become certain of a shortfall after a long time | Ask a qualified scholar about your case; many scholars say to repeat the prayer. |
| You doubt almost every prayer (waswasa) | Do not chase the doubt and do not recount. Carry on; speak to a scholar if it persists. |
General guidance from widely cited hadith; the madhhabs differ on some details, so confirm with a scholar you trust for your own case.
How Prayer Memory Prevents It
The fix is simple: take the counting out of your head. You calibrate Prayer Memory once to your normal praying pace, and from then on your Apple Watch gives a short, silent haptic pulse at each rakaa — no sound, no screen, nothing anyone praying next to you would notice.
If you would rather count yourself, there is a manual rakaa counter on the iPhone, and a Taraweeh mode that keeps track of 12-rakaa prayers on long Ramadan nights. Everything works offline, with no account, and your prayer history stays on your device.
Either way, the answer to “was that three or four?” is already on your wrist. Prayer Memory is on the App Store and Google Play.
Frequently Asked Questions
Don't restart the prayer. The guidance reported from the Prophet ﷺ in the hadith of Abu Sa'id al-Khudri (Sahih Muslim 571) is to set the doubt aside and build on the number you are certain of — the lower one — then complete the prayer and perform two prostrations of forgetfulness (sujood as-sahw) before the salam. Prayer Memory removes the guesswork by marking each rakaa with a silent pulse on your wrist, so the count is never in your head alone.
It is extremely common. Tiredness, a busy mind, praying at the end of a long day, or repetitive intrusive thoughts (waswasa) all pull attention away for the second or two it takes to lose the count. It is not a sign that your faith is weak, and a slip of memory is not sinful. Prayer Memory is built for exactly that second: it keeps the count running in the background while you keep your focus on the prayer.
Mid-prayer confusion usually starts with a moment of distraction: a noise, a thought about tomorrow, or simply standing up on autopilot. Slow down, settle on the number you are sure of, finish the prayer, and perform sujood as-sahw. To stop it repeating, give the counting to something outside your head — a silent haptic tap on Apple Watch at each rakaa, or the manual counter on your iPhone.
If you are still in the prayer and have no stronger sense either way, treat it as 3 — the number you are certain of — pray the remaining rakaa, and perform sujood as-sahw before the salam. If you lean strongly toward one number, most scholars say act on that stronger assumption. Prayer Memory keeps a live rakaa count on your wrist and phone, so this question stops coming up.
Doubt that arrives only after the salam is generally ignored, as long as it is not a firm certainty that you left something out. If you become certain that a rakaa was missing, you make it up and perform sujood as-sahw; if it is just a lingering unease, most scholars advise letting it go rather than repeating the prayer. Prayer Memory also keeps a prayer history, so you can check what you recorded instead of replaying it in your mind.
Yes. Prayer Memory counts rakaa while you pray: calibrate your normal pace once, then a silent haptic pulse marks each rakaa on your Apple Watch — no sound, no screen, nothing for anyone around you to notice. There is also a manual counter on iPhone if you prefer to tap, plus a Taraweeh mode for long Ramadan nights. It's free to download.
Never lose count in salah again
Prayer Memory is free to download, and the first month of Pro (the automatic counter for the five prayers) is free.
Read more: Losing Count During Prayer? You’re Not Alone, the sajdah sahw guide, or the rakat count for every prayer.