How to make a school timetable, step by step
A school timetable works when every lesson has a place, no teacher, class or room is in two places at once, and each teacher's limits are kept. This guide goes through the order that gets you there, using the demo school in AlfiTab as the example.
Before you start
Have these to hand. Most schools find them in last year's timetable or the staff list.
- The days and bell times of a normal week.
- The subjects, teachers and classes.
- Who teaches what to which classes, and how many periods a week.
- Each teacher's limits: days off, part-time hours, periods they can't teach.
Set up the school week
Choose the days you teach (Monday to Friday, or Sunday to Thursday), how many periods each day has, and when each period starts and ends. Then add the breaks and lunch where they fall.
In the demo school, a day has seven 45-minute periods from 8:00, a 20-minute break after the third period and a 40-minute lunch after the fifth.
Exam days, half days and online learning usually change only the bell times. Add those as extra bell times later; the timetable itself stays the same.
List the subjects, teachers and classes
Type them in, or import them from an Excel sheet if you already have them in one. For each teacher, add the subjects they teach. Name the classes the way your school does, such as 7A or 10B, with their grade.
Add rooms only for spaces that several classes share: science labs, the computer lab, the sports hall. A lesson without a special room simply takes place in the class's own room.
Enter each teacher's limits
This is what makes a timetable fit the people in it. For each teacher you can set when they are available, and limits such as the most periods in a day, the most periods in a row, the most days in a week and the most free periods between lessons in a day. You can also mark periods a teacher would rather avoid; those are kept free when possible.
Enter only real limits. Every limit removes places a lesson could go, and a week full of "nice to have" limits may not fit at all. In the demo school the art teacher is part-time and doesn't work on Fridays, and one maths teacher can't teach the first two periods on Monday. That is all.
Assign the lessons
Now say who teaches what: the subject, the teacher, the classes and the number of periods a week. Write 4 for four single periods, or 2+1+1 for a double period and two singles. A whole grade can go on one line.
| Teacher | Subject | Classes | Periods a week |
|---|---|---|---|
| Olivia Brown | Mathematics | 7A, 7B, 7C | 6 |
| Grace Okafor | Science | 7A, 7B, 7C, 7D | 4, as 2+1+1 |
| Arjun Mehta | Computing | Grade 7, 8A, 8B | 2, as one double |
| Lily Anderson | Art | All 12 classes | 1 |
Check the numbers before you generate
Add up each class's periods and compare them with the week. In the demo school every class has 35 periods of lessons and the week has 5 × 7 = 35 periods, so every class is full. Do the same for teachers: a teacher with 24 periods to teach who is available for only 20 can't be placed, however good the generator is.
Generate
Press Generate. AlfiTab places every lesson so that no teacher, class or room is booked twice and the limits you entered are kept. It then spreads the week as well as it can, with fewer free periods between lessons for students and teachers and each subject spread over the days.
A large school can take a while. You can close the page while it works, and stop it at any time to keep the best timetable found so far.
If not everything fits, you see which lessons are left over, why they don't fit, and which change would make room for them.
| 18:00 | 28:45 | 39:30 | 410:35 | 511:20 | 612:45 | 713:30 | |||
|---|---|---|---|---|---|---|---|---|---|
| Monday | Humanities | English | Maths | Break | Science | Lunch | Languages | Music | |
| Tuesday | Maths | Languages | Humanities | English | PE | Computing | |||
| Wednesday | Maths | Humanities | Languages | Science | English | Art | Humanities | ||
| Thursday | Languages | Maths | English | Humanities | Music | PE | Languages | ||
| Friday | Maths | Humanities | Science | Maths | English | Languages | Music | ||
Check it and adjust by hand
Open the timetable and look at it the way teachers will. Move a lesson by hand where you know better, and lock the lessons that must stay where they are. Check rules lists anything that breaks a rule. Generating again with Fix the current timetable keeps your timetable and moves only what breaks a rule.
When a teacher is absent
The timetable is only the start of the year. On a day a teacher is away, Substitutions shows who is free in each period, and prints the day's cover list.
Common mistakes
- Limits that aren't real. Each one makes the week harder to fill; keep the ones people actually need.
- Days off entered too late. Enter part-time teachers' availability before you generate. Moving lessons afterwards is much harder.
- More lessons than the week has room for. Run the check in step 4 first.
- Doubles left out. If science needs a double period in the lab, enter it as 2+1+1, not 4; otherwise the timetable gets four single periods.