|
Getting your Trinity Audio player ready...
|
Spain is preparing for the AI era by giving teachers more time with each student. Its class-size law lowers the maximum number of students per class and caps teachers’ weekly classroom hours, with a phased rollout starting in the 2027/2028 academic year. Separately, Spain’s universities ministry is writing the country’s first rules on how AI is used in university teaching and assessment.
Schools: smaller classes, fewer teaching hours
The bill sets new national maximums:
- Primary: 22 students per class (down from 25)
- Compulsory secondary (ESO): 25 students per class (down from 30)
- Teaching hours: a maximum of 23 per week in infant, primary and special education, and 18 in other levels
- Inclusion: students with special educational needs count as two places in publicly funded schools
The rollout timeline
- 2027/2028: infant and primary education
- 2028/2029: secondary education (ESO)
- 2029/2030: upper secondary (bachillerato)
- 2031/2032: fully in force
The timing matches Spain’s falling birth rate, which is already reducing student numbers. Note that the bill was still going through parliament as of mid-2026, so the final details may change.
Why this matters for AI in education
Spain’s reform is not an AI law, but it addresses the main thing AI adoption needs: teacher time. With smaller classes and fewer teaching hours, teachers have room to redesign lessons, give feedback on AI-assisted work and teach students to judge AI output. Classroom AI guidance in Spain will largely follow the EU-OECD AI Literacy Framework and the EU’s 2027/28 AI Literacy Certificate pilot.
Colleges: vocational training follows EU direction
For Spain’s vocational training (FP), the new EU VET strategy and AI literacy guidance will shape changes more than national law over the next two years.
Universities: AI ethics codes and integrity rules
Universities are where Spain is setting direct AI rules:
- Universities will be required to have an AI ethics code.
- A draft royal decree includes measures to prevent fraudulent AI use in academic work.
- Online universities that use AI to protect exam integrity must confirm the required assessments have been carried out.
AI degrees are also growing, with official AI and AI engineering degrees now registered at public and private universities.
What to watch in 2027–2028
- Whether the class-size law passes in time for September 2027
- How regions fund the extra teachers and classrooms it requires
- How strict the final university AI decree turns out to be
Frequently asked questions
What is the new maximum class size in Spain?
22 students in primary and 25 in compulsory secondary, phased in from 2027/2028.
Is Spain’s class-size law already in force?
It was still going through parliament in 2026. Implementation is planned from 2027/2028.
Does Spain regulate AI in universities?
Yes. New rules will require AI ethics codes and include measures against fraudulent AI use in academic work.




