Free rota generator: shift pattern builder

This free rota generator builds shift patterns from the hours you want: type them and get working patterns that hit them exactly, with the rest rules kept. Or use it as a rota calculator and say what cover you need to see how many teams it takes. Then open the pattern in the shift calendar.

Example

What do you need?

Days I cannot work

Blocked days make the cycle a whole number of weeks, so it lines up with the calendar.

I prefer

Your patterns

37.5 h needs 25 twelve-hour shifts every 8 weeks.

Option 1

Exactly your hours
Average
37.5 h a week
Against your target
Exactly on target
Cycle
25 shifts in 56 days
Weekend days worked
44%
Longest break
4 days off
Shortest rest
12 h between shifts
Use this patternOpens the shift calendar with this cycle as Custom.

Option 2

Exactly your hours
Average
37.5 h a week
Against your target
Exactly on target
Cycle
25 shifts in 56 days
Weekend days worked
38%
Longest break
5 days off
Shortest rest
12 h between shifts
Use this patternOpens the shift calendar with this cycle as Custom.

Option 3

Exactly your hours
Average
37.5 h a week
Against your target
Exactly on target
Cycle
25 shifts in 56 days
Weekend days worked
38%
Longest break
4 days off
Shortest rest
12 h between shifts
Use this patternOpens the shift calendar with this cycle as Custom.

The grid starts the cycle on a Monday. In the calendar you can move day 1 to any date.

Patterns keep at least 11 hours between shifts and a weekly rest of 24 hours in 7 days or 48 hours in 14, from the Working Time Regulations 1998. This is guidance, not legal advice: your contract and job decide which rules apply.

Why 37.5 hours does not divide into 12-hour shifts

A week has room for whole shifts only. Three 12-hour shifts is 36 hours and four is 48, so 37.5 hours is not on offer in any single week. It is 3.125 shifts a week, and that only becomes a whole number over a longer cycle.

The generator looks for that cycle. 37.5 hours a week is 300 hours over 8 weeks, which is exactly 25 twelve-hour shifts in 56 days. Spread as blocks of two, three or four shifts with at least a day off between them, that gives patterns like the ones above.

The same sum works for any target: multiply the hours you want by the weeks in the cycle, divide by the shift length, and the answer must be a whole number of shifts. If no cycle up to 56 days gives one, the generator says so and shows the nearest hours above and below.

How many staff do you need for 24/7 cover?

Round the clock is 24 hours times 7 days, which is 168 hours of work a week for each person you need on shift at once. Divide that by the hours one person works and you have the number of people. 168 divided by 37.5 is 4.48.

People come in whole numbers, so there are two honest answers. Four teams share the hours at 42 each, which is 4.5 hours over the target. Five teams share them at 33.6 each, which is 3.9 hours under it.

A third way is to keep 4 people on exactly 37.5 hours and cover the rest with relief staff: 18 hours a week, or 6 twelve-hour shifts in every 4 weeks. The "Cover a rota" tab works all of this out for your own cover, shift length and number of people, and builds a team pattern for each option.

The rules the generator keeps

At least 11 hours between shifts

No day shift straight after a night. The generator measures the gap from the end of one shift to the start of the next, using real shift times, and drops any pattern under 11 hours (regulation 10).

A weekly rest

Every 7 days in the cycle has an uninterrupted rest of 24 hours, or every 14 days has 48 hours (regulation 11). It checks every starting day, so the pattern holds whichever day your cycle begins.

Marked "tight" when the margin is thin

A weekly rest of 24 to 35 hours leaves no room for the 11 hours of daily rest on top (regulation 11(7)). Those patterns are still allowed, but they are marked and scored lower.

Your own limits

The most shifts in a row, the fewest days off in a row and the days you cannot work are never broken. Blocked days need a cycle of whole weeks, so the pattern lines up with the calendar.

What it does not check

Young workers (under 18 and past school age) have stricter rules, and some jobs and agreements change regulations 10 and 11 (regulations 21 to 24), such as security, hospitals and transport. It does not schedule the rest break within a shift, and it does not cover drivers' hours. Check these separately.

Frequently asked questions

How does the shift pattern generator work?

You enter the hours you want and the shift length. It tries every cycle up to 56 days for a whole number of shifts that gives exactly those hours on average, lays the shifts out in blocks, throws away anything that breaks the rest rules or your limits, and shows the three best by how regular they are, how fairly weekends are shared and how few nights run in a row.

Why can I not get exactly 37.5 hours a week on 12-hour shifts?

In a single week you can only work whole shifts: 3 shifts is 36 hours and 4 is 48. 37.5 hours a week is 3.125 twelve-hour shifts a week, which only comes out as a whole number over 8 weeks: 25 shifts in 56 days. The generator finds those 56-day patterns, or the nearest hours above and below if you ask for something that cannot be made.

What rest rules does it keep?

At least 11 hours between shifts, and a weekly rest of 24 hours in each 7 days or 48 hours in each 14, from the Working Time Regulations 1998 (regulations 10 and 11). These are the general rules for adult workers in Great Britain. Young workers have stricter rules, and some jobs and agreements change them (see "What it does not check" above). This is guidance, not legal advice.

What does a "tight" weekly rest mean?

Regulation 11(7) says the weekly rest should not include the 11 hours of daily rest, unless an objective, technical or work-organisation reason justifies it. So 24 to 35 hours between two shifts may not be enough on its own. The generator marks those patterns and ranks them lower.

What if my pattern averages more than 48 hours?

The 48-hour limit is an average over a reference period, normally 17 weeks. A pattern over 48 hours a week gets a warning that links to the 48-hour week calculator, which works out your real average with leave and the opt-out in mind.

How many people do I need to cover a rota 24/7?

Add up the hours that need cover in a week, 168 for round the clock with one person on each shift, and divide by the hours each person works. 168 divided by 37.5 is 4.48, so a whole number of teams gives either 4 teams at 42 hours or 5 teams at 33.6 hours. The "Cover a rota" tab does this for any cover, shift length and number of people.

What are relief shifts?

If people work their target hours but the teams do not add up to full cover, the missing hours need someone else: spare or relief staff. With 4 people on 37.5 hours covering 24/7, 18 hours a week are left, which is 6 twelve-hour shifts every 4 weeks.

How do I use a pattern in the calendar?

Press "Use this pattern". The shift calendar opens with your cycle loaded as a Custom pattern, ready to set your day 1 and add to your phone. Cycles of whole weeks start on a Monday, so day 1 is a Monday.

Does it work outside the UK?

The hours maths works anywhere. The rest checks follow the UK Working Time Regulations, so check your own local rules and your contract.

Is my data kept?

Your hours and choices are saved in this browser so they are there next time, and are not sent anywhere.

Sources

This is guidance, not legal advice. Your contract, your employer's policies and your job decide which rules apply to you; Acas gives free advice on 0300 123 1100. Check a rota you already have with the rest break checker or the 48-hour week calculator, see the shift pattern calendar, or add up hours with the UK timesheet calculator.