How Many Years Is Kindergarten to 12th Grade?

Kindergarten through 12th grade is 13 years of schooling. That count includes one year of kindergarten plus 12 numbered grade levels (first grade through twelfth grade). Most students start kindergarten around age 5 and finish 12th grade around age 18.

How the 13 Years Break Down

The K-12 system in the United States is divided into three main stages, each covering a different age range and set of grades.

Elementary school covers kindergarten through 5th grade, a total of six years. Children typically begin around age 5 and finish around age 10. This is where students learn foundational reading, writing, and math skills.

Middle school (sometimes called junior high) covers 6th through 8th grade, a total of three years. Students are generally 11 to 13 years old. Coursework becomes more subject-specific, with separate classes for math, science, English, and social studies.

High school covers 9th through 12th grade, a total of four years. Students are typically 14 to 18 years old. These four years have their own names: freshman (9th), sophomore (10th), junior (11th), and senior (12th). A high school diploma is awarded after completing 12th grade.

Is Kindergarten Required?

Even though kindergarten is a standard part of the K-12 system, it is not mandatory everywhere. Only 17 states and the District of Columbia require children to attend kindergarten. In the remaining states, kindergarten is offered by public schools but parents can choose to skip it and enroll their child directly in first grade. That said, the overwhelming majority of children do attend kindergarten, and skipping it can put a child at a disadvantage since first grade curriculum typically assumes students have completed it.

When Students Must Attend

Compulsory attendance laws vary by state, but all states require children to attend school during at least a portion of the K-12 years. The starting age for mandatory attendance ranges from 5 to 8, depending on the state. The ending age ranges from 16 to 19. Some states require attendance through age 18, meaning students generally cannot drop out before finishing high school. Others allow students to leave school at 16, which is typically during 10th or 11th grade.

These laws apply to all forms of schooling, including public school, private school, and homeschooling. Even in states where compulsory attendance starts at age 6 or 7, public schools still offer kindergarten to 5-year-olds for free.

Pre-K and Beyond

The 13-year count covers only kindergarten through 12th grade. Some school districts also offer pre-kindergarten programs for 3- and 4-year-olds, but pre-K is not considered part of the official K-12 grade sequence. If your child attends one or two years of pre-K before kindergarten, their total time in school before college could stretch to 14 or 15 years, but the formal K-12 pathway remains 13.

On the other end, students who are held back a grade or who take longer to meet graduation requirements may spend more than 13 calendar years in the system. Most states offer free public education up to age 20 or 21, giving students extra time to earn a diploma if needed.