In any case, staying in school is important for entering the Military. The length of commitment depends greatly on the chosen Service, required training and a number of other variables. Military personnel may retire after 20 years of service and must retire after 30 years of service. It's best to contact a recruiter to get a clearer picture of what a potential service member's specific situation would call for.