The minimum number of years for serving in the U.S military is eight years, which includes four years of active service and four years of inactive service.