Responsibility for educational oversight at primary and secondary level in Slovenia lies with the Ministry of Education and Sports. After non-compulsory pre-school education, children enter the nine-year primary school at the age of six. Primary school is divided into three periods, each of three years. In the academic year 2006–2007 there were 166,000 pupils enrolled in elementary education and more than 13,225 teachers, giving a ratio of one teacher per 12 pupils and 20 pupils per class.
After completing elementary school, nearly all children (more than 98 per cent) go on to secondary education, either vocational, technical or general secondary programmes (gimnazija). The latter concludes with matura, the final exam that allows the graduates to enter a university. 84 per cent of secondary school graduates go on to tertiary education. Currently there are three public universities in Slovenia, in Ljubljana, Maribor and in Primorska (Littoral) region. In addition, there is a private University of Nova Gorica and an international EMUNI University. According to the ARWU rating, the University of Ljubljana ranks among 500 best universities in the world.
The Programme for International Student Assessment, coordinated by the OECD, currently ranks Slovenia's education as the 12th best in the world and 4th best in the European Union, being significantly higher than the OECD average. According to the 1991 census there is 99.6 per cent literacy in Slovenia. Among people aged 25 to 64, 12 per cent have attended higher education, whilst on average Slovenes have 9.6 years of formal education. Lifelong learning is also increasing. According to an OECD report, 83% of adults ages 25–64 have earned the equivalent of a high school degree, well above the OECD average of 74%; among 25-34 year-olds, the rate is 93%