A middle school (also known as intermediate school or junior high school, often formally lower secondary school) is an educational stage which exists in some countries, providing education between primary school and upper secondary school. The concept, regulation, and classification of middle schools, as well as the ages, covered, vary between, and sometimes within, countries.