Skip to main content

How to create a school timetable step by step, from an empty page to a printed timetable

Getting started 17 min read

How to create a school timetable step by step, free and in your browser. Add teachers, classes, rooms and lessons, set the rules, generate the timetable, then print it and put it on your website.

It is late August. The new school year starts in two weeks, and the timetable is your job. You have a list of teachers, a list of classes, and a sheet of paper that says who teaches what. You open a spreadsheet, draw a grid, and start to fill it in.

By Tuesday afternoon, the grid is full of arrows. The maths teacher is in two rooms at 10:00. The science lab has three classes on Monday and none on Thursday. One part-time teacher cannot come on Fridays, and you remember it only after you fill her Friday.

Sound familiar? A timetable is not difficult because of one lesson. It is difficult because every lesson depends on all the others. Move one, and three other things break.

There is a better order of work. You do not place the lessons yourself. You describe your school: the days, the people, the rooms, the lessons and the rules. Then the computer searches for a timetable that keeps every rule. This article shows you how to create a school timetable step by step in FET Viewer, a free timetable generator that works in your browser. It goes from an empty page to a printed timetable. You install nothing, and you need no timetabling experience.

Want to follow along? Create a free account in a second tab, and do each step as you read.

Before you start: the example school

The examples in this article use an invented small school: five days, six lessons a day, a short break after the third lesson, two classes, four teachers and three rooms: a room for each class and a science lab. Your school is bigger, but the steps are the same.

Step 1: start an empty school timetable

Create a free account. On the dashboard, select the card Start with an empty timetable. FET Viewer creates an empty timetable and opens the data screen, on Days & Hours.

A new account. The card "Start with an empty timetable" creates an empty timetable.
A new account. The card "Start with an empty timetable" creates an empty timetable.

The data screen is where you describe your school. The list on the left is in the order of work: first the days and hours, then the teachers, subjects, rooms and student groups, then the activities, and at the end the constraints. You go down the list from top to bottom.

Step 2: days and hours

Open Days & Hours. Type the name of each day and press Enter. Then do the same for the hours.

The hours are lesson slots, not clock times. "1", "2", "3" is fine, and so is "08:30". Use the names that your teachers know, because they appear on every printed sheet.

Here is a tip that saves work later: do not add the break as an hour. In our example, the day has six hours, and the break between the third and the fourth hour is not a slot at all. If you want to keep a slot empty for everyone, for example a lunch hour, you add it as an hour and keep it free with a rule in Step 7.

Days and hours of the example school: 5 days and 6 hours, 30 slots a week.
Days and hours of the example school: 5 days and 6 hours, 30 slots a week.

Step 3: teachers, subjects and rooms

Now the people and the places. Open Teachers and add each teacher. Open Subjects and add each subject. Open Rooms and add each room, with its capacity: the number of students that fit in it.

Each list is short work, and you can change any name later. When you rename a teacher, every activity and every rule follows the new name.

Are your lists already in a spreadsheet? Then you do not need to type them again. Save each list as a CSV file, open its section, and use the CSV import button. FET Viewer shows what the import will add, and it writes nothing until you confirm. It works for the teachers, the subjects, the rooms, the student groups and the activities. One tip: import the student groups before the activities. The CSV import page in the Help Center shows the columns of each file.

Step 4: student groups

Open Student groups. A small school often needs only one level: one year for each class, for example "7A" and "7B". A bigger school can divide a year into groups and subgroups, for example for languages or for sport. Add the number of students in each group, if you know it.

Step 5: activities, the lessons themselves

This is the longest step, and the most important one. An activity is one lesson that the timetable must hold: a subject, its teachers, its student groups and its duration.

Open Activities and add an activity. For example: Maths, teacher Ms Novak, class 7A, duration 1. The duration is in hours. A double lesson has a duration of 2 and fills two hours one after the other.

One block or split: how split works

Now the catch. Science in 7A has 3 hours a week. But how do you want those 3 hours? There are two different answers, and the timetable needs to know which one you mean.

One block of 3 hours. Add one activity with a duration of 3, and do not split it. The search puts it on one day, in 3 hours one after the other. This is right for a lab session or a project afternoon.

2 hours on one day, and 1 hour on another day. Add the activity, and set Split into to 2. FET Viewer makes one activity with two parts. Give the first part a duration of 2 and the second part a duration of 1. The parts share the subject, the teachers and the student groups, so when you change the teacher, both parts change. Each part gets its own day, hour and room.

Science in 7A: 3 hours a week, split into a part of 2 hours and a part of 1 hour.
Science in 7A: 3 hours a week, split into a part of 2 hours and a part of 1 hour.

Here is what makes this work. When you split an activity, FET Viewer adds a rule for you: Min days between activities, with 1 day. It tells the search to put the parts on different days. So you get a double lesson on one day and a single lesson on another day, for example Tuesday hours 1 and 2, and Thursday hour 4. This is the same rule, with the same values, that the FET desktop program adds when you split an activity there.

Two details of that rule are good to know:

  • Its weight is 95%, not 100%. On a very full week, the search can still put both parts on the same day when there is no other way. If that must never happen, open the rule in Constraints and set its weight to 100%.
  • If the parts are on the same day, the rule also asks the search to put them one after the other. Then you get a block of 3 hours, not a 2-hour lesson in the morning and a 1-hour lesson in the afternoon.

The same works for more parts. Maths with 4 hours a week, split into 4 parts of 1 hour, gives 4 lessons on 4 different days. Split into 3 parts of 2 + 1 + 1, it gives one double lesson and two single lessons, each on its own day.

When you finish, the activity list shows every lesson of the week. The number next to Activities tells you how many you have.

Step 6: how activities get rooms

Here is a part that surprises many people. You added the rooms, and you added the activities. But you did not say which room each activity uses. And without that, the search does not give the activity a room. The search puts it in a day and an hour, and the room stays empty.

Rooms come from space constraints. Open Space constraints and select Add constraint. Three types do most of the work:

  • Activity preferred room: this activity uses this room. For example, Science in 7A uses the lab.
  • Subject preferred room: every activity of this subject uses this room. One rule for all the Science lessons of the school.
  • Students set home room and Teacher home room: the class or the teacher has its own room, and its activities stay there when no other rule says otherwise.

You can also give a list of rooms, and the search chooses one of them. For example, a small-group lesson can use "Room 7A" or "Room 7B", whichever is free. The search then never puts two activities in the same room at the same time, and it never puts 30 students in a room for 20.

A space constraint: every Science lesson uses the science lab.
A space constraint: every Science lesson uses the science lab.

Step 7: the rules of your week

Now the rules that make the timetable yours. They are time constraints. Each one has a weight: 100% means that the search must keep the rule, and a lower weight means that the search can break the rule when it finds no other way. Some rule types accept only 100%, and FET Viewer tells you when that is the case.

Start with five rules. They cover most schools.

The teacher who cannot come. Add Teacher not available times, select the teacher, and mark the slots in the grid. In our example, Mr Lindqvist works part-time and cannot come on Friday. Select the Friday heading, and all of Friday is marked. The search never puts his activities there.

Mr Lindqvist cannot come on Friday. One click on the Friday heading marks the whole day.
Mr Lindqvist cannot come on Friday. One click on the Friday heading marks the whole day.

The class with no empty hour. A class of 12-year-olds with a free hour in the middle of the day is a problem for the school, not a gift. Add Students set max gaps per week, select the class (or the whole year), and set the number of gaps to 0. Then the lessons of the class come one after the other, every day, with no empty hour between them. This rule type accepts only 100%.

The teacher with a long day. Six lessons in a row is too much for anyone. Add Teacher max hours daily, select the teacher, and set the number, for example 5. At 100%, the search never gives the teacher more than 5 hours on one day. At a lower weight, it is a wish. If all your teachers have the same limit, Teachers max hours daily sets it for everybody with one rule.

The break. Add Break times and mark the slots that must stay free for everyone, for example a lunch hour. No activity goes there, for any teacher, class or room.

The lesson with a fixed time. Sometimes one lesson must be at one time: the school assembly on Monday at hour 1, or a lesson that shares a teacher with another school. Add Activity preferred starting time, select the activity, and choose the day and the hour. At 100%, the activity starts there. At a lower weight, it is a wish: the search tries that slot first.

You do not need a rule for the most basic thing: no teacher, class or room in two places at once. Two basic rules do that, and they are at the top of your list from the start: Basic compulsory time and Basic compulsory space. They are always at 100%, and you cannot switch them off.

The rules of the example school. The basic rule comes first, and FET Viewer added the 8 split rules at 95%.
The rules of the example school. The basic rule comes first, and FET Viewer added the 8 split rules at 95%.

Our advice: start with few rules. Get a timetable first, and add the wishes after that. A long list of rules at 100% is the most common reason why a search does not finish.

Step 8: check and generate the timetable

Now FET Viewer does the hard part. Open Constraints → Timetable check.

First, the page checks your timetable. If something cannot work, it says where the problem is, what is wrong and what to do. For example, a teacher has more hours of activities than free slots. Correct the problem, and check again.

When the check passes, the search starts by itself. It runs in your browser tab. It uses the algorithm of FET, the free timetabling software by Liviu Lalescu and Volker Dirr, which schools all over the world use. You see each step: the count of activities with a slot goes up. For a small school, it takes seconds. A large school with many rules takes longer.

A real search in the Timetable check, for a bigger invented school with 446 activities. After 8 seconds, every activity has a slot.
A real search in the Timetable check, for a bigger invented school with 446 activities. After 8 seconds, every activity has a slot.

When the search ends, you see the new timetable. Here is the part to know: your timetable does not change yet. You look at the result first. If you like it, select Use this timetable. FET Viewer keeps a restore point, so Restore the old timetable brings back the timetable from before.

Under the timetable, the page also tells you about the wishes. In our example school, it said: "1 of 8 rules below 100 % is not kept." Maths in 7A had two lessons on Monday, one after the other. That is the 95% split rule from Step 5 at work: the search found no better place in this full week. If that is not acceptable, set the rule to 100% and search again.

When the first search does not finish

Be ready for this: the first search is often not a success. Here is how it usually goes. You add every wish of every teacher, all at 100%. The search starts, and the count goes up fast: 40, 50, 55 of 60 activities. Then it stops at 58, and it stays there. After a while, the page tells you that the search is slow.

This is not a failure of the program. It is the timetable telling you that your rules ask too much. Two of them do not fit together in the week that you have.

So select Show what you can change. The page names the activities that hold up the search, and it says how often each one was in the way. Often it is a lesson with a fixed time that also needs the only lab, or a teacher with a long list of times when they cannot come.

Now you have two easy ways out:

  • Make a wish softer. Open that rule, and change its weight from 100% to 95%. The search can then break the rule when there is no other way, and only then.
  • Search without that activity. The page switches the activity off for this search. You get a timetable for everything else, and you place the last activity by hand later.

Search again. This time, the count goes to 60 of 60. And now you know which rule was the problem, which is good to know for next year too.

Step 9: look, change, print and share

Open the timetable view. Each square is one lesson. Change the view to one teacher, one class or one room. If one lesson must move, you can move it by hand.

Then the part that everybody waits for. Open File → Print… and select Teachers. The print page makes one sheet for each teacher, all at once, and it does the same for the student groups and the rooms. You choose the paper size, the colours and the fields before you print. And with a link, each teacher sees their own timetable on their phone, with no account and no file.

One printed sheet for each teacher. Mr Lindqvist has no lessons on Friday.
One printed sheet for each teacher. Mr Lindqvist has no lessons on Friday.

Step 10: put the timetable on your website

Paper is not the end. Parents, students and teachers look for the timetable on the school website. You have two ways to put it there.

Export as web pages. In the timetable view, open File → Export HTML…. (The Timetable check page has the same button: Export as web pages (HTML).) Your browser makes the pages, and the export is free. Choose a style: "Classic" makes one page for each teacher, student group and room, in one .zip file. "FET Viewer style" makes one interactive page, where the reader selects a teacher, a class or a room. Then choose what each lesson shows, choose the colours and the font, and add the school name. The preview on the right is the file that you download. Put the files on your school website, or send them by email.

Export as web pages: the page of class 7A in the Classic style, with a live preview.
Export as web pages: the page of class 7A in the Classic style, with a live preview.

Here is the catch with an export: it is a snapshot. When the timetable changes, you export again and replace the files.

An embed. If the timetable changes often, an embed is better. An embed is a live view of your timetable inside a page of your website. When you change the timetable in FET Viewer, the page shows the change. You do not export anything again.

Open Share & display → Embeds and select New embed. Choose one of six styles, for example Hybrid, a full week, or Ticker, a line that scrolls. The window shows each style with your own timetable. Then choose what the embed shows: the whole school, one class, one teacher, one room or one building. You also choose how the teacher names appear: full names, initials, or no names at all, because a public page is not the staffroom.

A new embed: choose one of six styles. The preview shows your own timetable.
A new embed: choose one of six styles. The preview shows your own timetable.

A new embed starts switched off. Use Preview to see it, switch it on when it is ready, and copy the short code into your web page. Visitors need no account, and the embed sets no cookies. Your plan sets how many embeds you can have.

What you have now

The finished timetable of the example school: 2 classes, 4 teachers, 26 lessons, no conflicts.
The finished timetable of the example school: 2 classes, 4 teachers, 26 lessons, no conflicts.

You started from an empty page. Now you have a complete timetable, a printed sheet for each teacher, links to send, and the timetable on your website. And because you described your school instead of drawing it, next year is easier: you clone the timetable, change what is new, and search again.

Your work is not locked in. Download .fet gives you the whole timetable as one file: your data, your rules and the result. The free desktop program FET opens it too.

Questions about creating a school timetable

Can I create a school timetable for free?

Yes. Create a free account, select Start with an empty timetable, and follow the steps in this article. The free plan is enough for a small school. A bigger school, with more activities than the free plan allows, needs a paid plan to print, download, share and embed the timetable. A split activity counts as one activity, so a lesson in 3 parts does not cost you 3 times. The plans page shows what each plan includes.

How long does it take to make a school timetable?

Most of the time goes into Steps 2 to 7: you describe your school. The lists from a spreadsheet go in quickly with the CSV import. The search itself is the short part. For a small school, it takes seconds. A large school with many rules at 100% takes longer.

Do I need to install a program?

No. FET Viewer works in your browser, on Windows, on a Mac or on a Linux computer. The search also runs in your browser tab.

Can I change the timetable after the search?

Yes. Move a lesson by hand in the timetable view, or change a rule and search again. A new search does not change your timetable until you select Use this timetable, and Restore the old timetable brings back the timetable from before.

Can a teacher see only their own timetable?

Yes. Send each teacher a link to their own timetable. The teacher opens it on a phone or a computer, with no account and no file.

Try it first

Not ready to start your own? The demo opens a sample school timetable. You need no account. When you are ready, create a free account and select Start with an empty timetable.

Working with activities →