Here is a table listing the military presidents of Nigeria, along with their years in office and the number of years they served:
| Name | Years in Office | Duration (Years) |
|---------------------------|----------------------|------------------|
| Major General Johnson Aguiyi-Ironsi | 1966 - 1966 | 0.5 |
| General Yakubu Gowon | 1966 - 1975 | 9 |
| General Murtala Muhammed | 1975 - 1976 | 1 |
| General Olusegun Obasanjo | 1976 - 1979 | 3 |
| Major General Muhammadu Buhari | 1983 - 1985 | 2 |
| General Ibrahim Babangida | 1985 - 1993 | 8 |
| General Sani Abacha | 1993 - 1998 | 5 |
| General Abdulsalami Abubakar | 1998 - 1999 | 1 |
This table summarizes the military leaders who held presidential power in Nigeria and their respective tenures.