The short answer
Fajr: 2 sunnah, then 2 fard. Dhuhr: 4 sunnah, 4 fard, then 2 sunnah. Asr: 4 fard (4 sunnah before it are recommended but not stressed). Maghrib: 3 fard, then 2 sunnah. Isha: 4 fard, 2 sunnah, then 3 witr (4 sunnah before Isha are recommended but not stressed). Many people add 2 nafl (voluntary) rakats after Dhuhr, Maghrib and Isha; these are extra reward, not part of the required count. Check today’s times on the prayer times page.
The 17 fard rakats
Fajr 2, Dhuhr 4, Asr 4, Maghrib 3 and Isha 4 make 17. ʿAishah said that Allah first made the prayer two rakats each; then the prayer of the traveller was kept at two and the prayer of the resident was increased (Sahih al-Bukhari 350). Maghrib, the “witr of the day”, stayed at three. Missing a fard prayer on purpose is a major sin, and a missed one must be made up.
The 12 sunnah rakats the Prophet ﷺ never left
The Prophet ﷺ said that whoever prays twelve rakats in a day and night, a house is built for him in Paradise (Sahih Muslim 728). At-Tirmidhi (415) lists them: 4 before Dhuhr and 2 after it, 2 after Maghrib, 2 after Isha and 2 before Fajr. In the Hanafi school these are “sunnah muʾakkadah”: strongly stressed, and leaving them as a habit is blameworthy.
The two sunnah of Fajr
These are the most stressed of all. The Prophet ﷺ said: “The two rakats of Fajr are better than this world and everything in it” (Sahih Muslim 725). He kept them even when travelling. Pray them short, before the fard; reciting قُلْ يَا أَيُّهَا الْكَافِرُونَ in the first and قُلْ هُوَ اللّٰهُ أَحَدٌ in the second is the Sunnah (Sahih Muslim 726).
Four before Asr and four before Isha
These are “ghayr muʾakkadah”: rewarded, but not stressed. The Prophet ﷺ said: “May Allah have mercy on a person who prays four before Asr” (At-Tirmidhi 430). If time is short, the fard comes first.
Witr
In the Hanafi school witr is three rakats with one salam, it is wajib (necessary, just below fard), and the Dua Qunoot is read in the third rakat before ruku. The Shafiʿi, Maliki and Hanbali schools count witr as a stressed sunnah that can be one rakat or more. All agree it is the last prayer of the night: “Make witr the last of your prayer at night” (Sahih al-Bukhari 998). It can be prayed straight after Isha or before Fajr. See also what to say after witr.
Jumuah (Friday)
Jumuah replaces Dhuhr: the khutbah, then 2 fard rakats in congregation. In the Hanafi school 4 sunnah are prayed before it and 4 after (many also pray 2 more). The Prophet ﷺ said: “When one of you prays Jumuah, let him pray four after it” (Sahih Muslim 881).
When travelling
A traveller shortens the four-rakat fard prayers (Dhuhr, Asr and Isha) to two; Fajr and Maghrib stay the same. In the Hanafi school shortening is required on a journey of about 78 km or more, until you intend to stay 15 days or more in one place. Most sunnah prayers can be left when travelling, but keep the two of Fajr and the witr.
Teaching children
Start with the 2-rakat prayer: salah for kids, step by step has a picture and audio for every step, and a star chart to keep them going.
After the prayer
When you finish, stay seated for the short adhkar the Prophet ﷺ said after every prayer: see what to say after salah, and count the 33-33-33 tasbih on the tasbih counter.