Shift Pattern Calculator
Repeats a shift pattern forwards and backwards from the date its cycle starts. The day of the cycle is the number of days from the start date, modulo the cycle length, plus one, and the letter at that position is the shift. Average weekly hours are shifts per cycle times hours per shift times seven, divided by the cycle length. Shifts, hours and full weekends off are counted day by day for the calendar year.
Pick a shift pattern, or type your own, and give one date on which its cycle starts. The calculator then tells you which shift falls on any date, when your next day off and next shift are, and how many shifts, hours and full weekends off the calendar year holds. A six-week calendar and a month-by-month table follow, and if several crews share the rota it lists which crew is on duty each day.
How the calculation works
A shift pattern is a short list of days that repeats without end. Number the days of one cycle from 1, and any date maps to a position in the cycle by counting days from the start date and discarding whole cycles:
day of cycle = ((date − start date) mod cycle length) + 1
The same formula works for dates before the start date, so the start can be any day 1 you know, past or future. The letter at that position is the shift: D for a day shift, N for a night shift, E for an evening shift, O for a day off. The average week follows from one cycle:
average weekly hours = shifts per cycle × hours per shift × 7 ÷ cycle length
The yearly figures are counted, not averaged. The calculator walks through every day from 1 January to 31 December of the year being checked and counts the shifts, multiplies them by the hours per shift, and counts the weekends on which both Saturday and Sunday are days off. A shift belongs to the day it starts, so a night shift that begins on 31 December counts in the old year.
With more than one crew, each crew runs the same pattern, starting an equal share of the cycle after the one before. Crew A is the rota described by the rest of the result. The number of crews has to divide the cycle length.
A worked example
The form opens on 4 on 4 off with 12-hour shifts and a cycle that starts on Monday 4 January 2027. Checked on 17 November 2026, which is 48 days, or six whole cycles, before that start, the date is day 1 of 8: a day shift, the first of four in a row. The next shift is Wednesday 18 November and the next day off is Saturday 21 November, in 4 days. One cycle is 8 days with 4 shifts and 4 off, an average of 42 hours a week.
In 2026 this rota has 184 shifts and 2,208 hours, with 18 of the year's 52 weekends fully off. November 2026 holds 16 shifts and 192 hours, and April 14 shifts and 168 hours. Move the date to check into 2027 and the year has 182 shifts, 2,184 hours and 21 full weekends off. Set the crews to 2 and the duty table shows crew A on from 17 to 20 November, crew B from 21 to 24 November, and crew A again from the 25th. To total the hours you actually worked in a week, use the work hours calculator.
The patterns in the list
The same name can cover different layouts, so check the letters in the pattern field against your own rota. The presets use these layouts, and the figures come from the calculator itself.
- 4 on, 4 off is 4D4O at 12 hours. Any seven days hold three or four shifts, and a year holds 181 to 184. The two variants in the list put two days and two nights in each block, or alternate blocks of days and nights over 16 days.
- 2-2-3 shift is two on, two off, three on, two off, two on, three off: seven shifts in 14 days and 42 hours a week at 12 hours.
- DuPont is the 28-day layout usually published under that name: four nights, three off, three days, one off, three nights, three off, four days, seven off. It also averages 42 hours.
- 24 on, 48 off, 48 on, 96 off and the nine-day Kelly pattern use 24-hour shifts and average 56 hours a week.
- 5 on, 2 off at 8 hours is the 40-hour week, with 261 shifts and 2,088 hours in 2027.
- 7 on, 7 off and 14 on, 14 off average 42 hours at 12 hours a shift, 8 on, 6 off averages 48 and 14 on, 7 off averages 56.
What is known about shift schedules
Nobody keeps a register of shift patterns. Plain Language About Shiftwork, a booklet published in 1997 by the US National Institute for Occupational Safety and Health, says there are hundreds of schedules in use and that "no thorough records are kept by the federal government, trade organizations, or labor unions". It adds that the most common schedule is probably five days on a single shift followed by two days off, and that offshore oil rig workers might work two weeks on the rig followed by two weeks at home. Citing the Bureau of Labor Statistics, it put about 15.5 million Americans on evening, night, irregular or rotating schedules. This is why the page gives no origin for the named patterns: the accounts in circulation disagree, and none could be traced to a record.
The booklet describes schedules by features rather than names: whether shifts are permanent or rotating, how many shifts pass before a change, whether the rotation runs forward from days to evenings to nights, and how much work comes before a rest. The pattern field captures those features directly.
The UK Health and Safety Executive's guidance Managing shiftwork, first published in 2006, turns such features into good-practice guidelines. It suggests limiting shifts to 12 hours including overtime, limiting consecutive working days to five to seven, setting a limit of two to three consecutive shifts where shifts are longer than 8 hours or fall at night, rotating forward, and building regular free weekends into the schedule. The run length, the weekends-off count and the calendar let you hold a pattern against that guidance.
Hours limits the averages meet
Two legal texts are written in the same terms as the calculator's averages. The European Union's Working Time Directive, 2003/88/EC, requires that average working time for each seven-day period, including overtime, does not exceed 48 hours, measured over a reference period that member states may set at up to four months, and it entitles every worker to 11 consecutive hours of rest in each 24-hour period. A 12-hour 4 on 4 off rota averages 42 hours, under that figure, while the 24-hour patterns average 56.
In the United States, 29 CFR 553.230 says that for employees engaged in fire protection on a 28-day work period no overtime is required under section 7(k) of the Fair Labor Standards Act until hours worked exceed 212, and for law enforcement 171. On 24 on, 48 off or the Kelly pattern, any 28 days hold nine or ten shifts, which is 216 or 240 hours. The overtime pay calculator prices extra hours once you know how many there are, and the pay period calculator lists the paydays those hours fall into.
The calculator counts scheduled shifts only. It knows nothing of leave, shift swaps, overtime or public holidays, and national law and your contract, not this page, decide which hours limits apply to you.
Frequently asked questions
How does a 4 on 4 off shift pattern work?
You work four shifts in a row, then have four days off, and the eight-day cycle repeats. Because eight days is one more than a week, the block of shifts starts a day later each week, so every weekday takes its turn. The preset assumes 12-hour shifts. A variant in the list alternates four day shifts and four night shifts with four days off after each, which makes a 16-day cycle.
How many hours a week is 4 on 4 off?
With 12-hour shifts it averages 42 hours a week: four shifts of 12 hours every eight days. Any seven days in a row hold three or four shifts, so a single week is 36 or 48 hours. A calendar year holds between 181 and 184 shifts depending on where the cycle starts; a cycle starting on Monday 4 January 2027 gives 182 shifts and 2,184 hours in 2027.
What is a 2-2-3 shift?
A 2-2-3 shift is a 14-day pattern of two shifts on, two days off, three on, two off, two on and three off. That is seven shifts a fortnight, or 42 hours a week on 12-hour shifts. Because the cycle is exactly two weeks long, each shift always falls on the same weekday, and a cycle that starts on a Monday gives every other weekend off.
What is the DuPont schedule?
The layout usually published under that name is a 28-day cycle of 12-hour shifts: four nights, three days off, three days, one day off, three nights, three days off, four days, then seven days off. It holds 14 shifts in 28 days, an average of 42 hours a week. Four crews starting seven days apart cover every day and every night.
What is the difference between 24/48, 48/96 and Kelly schedules?
All three use 24-hour shifts and average 56 hours a week. On 24/48 you work one shift and have two days off, a three-day cycle. On 48/96 you work two shifts back to back and have four days off, a six-day cycle. The nine-day pattern commonly called the Kelly schedule is a shift, a day off, a shift, a day off, a shift, then four days off.
How do I enter my own shift pattern?
Type one letter for each day of the cycle: D for a day shift, N for a night shift, E for an evening shift and O for a day off. A number in front of a letter repeats it, so 2D2N4O means DDNNOOOO. The pattern needs at least one shift and one day off and can be up to 120 days long. Then set the hours per shift and a date on which day 1 of the cycle falls.
Sources
- Plain Language About Shiftwork, DHHS (NIOSH) Publication No. 97-145, National Institute for Occupational Safety and Health, 1997
- Managing shiftwork: Health and safety guidance (HSG256), Health and Safety Executive, 2006
- Directive 2003/88/EC concerning certain aspects of the organisation of working time, Official Journal of the European Union, via EUR-Lex, 2003
- 29 CFR § 553.230 – Maximum hours standards for work periods of 7 to 28 days, section 7(k), Legal Information Institute, Cornell Law School