How to build a school timetable, step by step

The short version: a good timetable starts with clean data, not with the schedule itself. Fix the week's grid, list who teaches what and when they are free, say how many lessons each class needs, and only then generate and fine-tune.

A calm, organized teacher’s desk featuring a clear weekly timetable and digital scheduling tools, highlighting the stress-free approach to building a clash-free schedule with Edsked
A calm, organized teacher’s desk featuring a clear weekly timetable and digital scheduling tools, highlighting the stress-free approach to building a clash-free schedule with Edsked

Building a timetable by hand is slow because every choice affects ten others. Put a teacher in one slot and you remove her from a class, a room and a day limit at the same time. The way out is to settle the facts first and let the schedule follow from them.

1. Define the week

Decide which days run (Monday to Friday, Sunday to Thursday, or something else), how many sessions there are each day and how long each one lasts. Everything else is built on this grid, so settle it before you add anything. Changing it later means re-checking every availability grid you have already entered.

2. List your subjects

Write down every subject the school teaches, using the names you want to see on the printed timetable. "Maths" and "Mathematics" are two different subjects to a computer, so pick one spelling and keep it.

3. Add instructors and their availability

For each teacher, record the subjects they can teach and the sessions they are not available. Part-time days, meetings and travel between schools all belong here. Entering blocked sessions rather than free ones is quicker, because most teachers are free most of the time.

Many teachers? Enter them in a spreadsheet first and import the file instead of typing each one. A CSV with a name and a subject list per row is usually enough.

4. Describe each class

For every class, record for each subject:

The daily maximum matters more than it looks. Without it, a generator is free to give a class four maths lessons on Tuesday and none on Thursday, which is valid on paper and miserable in practice.

5. Check the numbers before you generate

Most failed timetables fail on arithmetic, not cleverness. Check two things:

CheckWhat to compare
Teacher capacityHours a teacher is assigned vs. sessions they are actually free
Class capacityHours a class needs vs. sessions in the week

If a teacher is assigned 22 hours but is free for only 18 sessions, no schedule can work. Fix the data, not the result.

6. Generate, then fine-tune

Generate a first version and look at it by class and by instructor. Then work through what you dislike. Lock the sessions you are happy with so they stay put, and regenerate the rest. Repeat until the remaining gaps are small enough to fix by hand.

7. Print and share

Export a page per class and per instructor and give each teacher a copy of their own week. Checking it with the people who live in it is the best test of all.

Where to go next

If you would rather not do the arithmetic yourself, Edsked builds the clash-free schedule from this same information, and the step-by-step guide shows every screen.