The Maghrib prayer consists of 3 obligatory (Fard) rakats. Additionally, there are 2 Sunnah rakats (recommended) and 2 Nafl rakats (optional), making a total of 7 rakats if all are performed. However, the essential part is the 3 Fard rakats, which every Muslim must pray for Maghrib.
Summary:
- 3 Fard (obligatory) rakats
- 2 Sunnah (recommended) rakats
- 2 Nafl (optional) rakats
This structure ensures the core prayer is fulfilled with additional optional units for extra reward and spiritual benefit.