Starfleet Ranks

Insignia 	Rank 	Time in service
Flag Officers	Flag Officers 	Flag Officers
 	Fleet Admiral 	40 years
 	Admiral 	35 years
 	Vice Admiral 	30 years
 	Rear Admiral, upper half 	25 years
 	Commodore 	23 years
Line officers	Line officers 	Line officers
 	Captain 	15 years
 	Commander 	12 years
 	Lieutenant Commander 	8 years
 	Lieutenant 	5 years
 	Lieutenant, junior grade 	3 years
 	Ensign 	Graduation
 	 	
 	Chief Warrant Officer, 1st class 	
 	Chief Warrant Officer, 2nd class 	
 	Chief Warrant Officer, 3rd Class 	
 	Chief Warrant Officer, 4th class 	
 	Warrant Officer 	
 	 	
 	Master Chief Petty Officer of Starfleet	
 	Command Master Chief Petty Officer 	
 	Master Chief Petty Officer 	
 	Senior Chief Petty Officer 	20 years
 	Chief Petty Officer 	15 years
 	Petty Officer, 1st class 	12 years
 	Petty Officer, 2nd class 	8 years
 	Petty Officer, 3rd class 	5 years
 	Crewman 	3 years
 	Crewman Apprentice 	1.5 years
 	Crewman Recruit 	Upon enlisting