Skip to content

Germany's working hours

The rule

Germany’s Working Hours Act (Arbeitszeitgesetz) holds working time to:

  • 8 hours a working day (Monday to Saturday), extendable to 10 where the average over 6 months or 24 weeks stays at 8 a working day;
  • never more than 10 hours a day;
  • 11 hours’ rest between working days;
  • breaks of 30 minutes for more than 6 hours of work and 45 for more than 9, taken in breaks of at least 15 minutes.

These are limits to be told of: the hours worked are paid as they are.

Who uses it

Employers in Germany. A collective agreement may set other reference periods or limits; a layer of its own changes the parameters.

How the recipe does it

Configuration only: the package (package.toml) has one layer.

[[layer]]
id = "arbeitszeit"
[[layer.step]]
id = "day"
uses = "standard/limit"
params = { over = "10h", kind = "day_over_10h" }
[[layer.step]]
id = "average"
uses = "standard/average_limit"
params = { over = "48h", weeks = 24, kind = "average_over_8h_a_day" }
[[layer.step]]
id = "rest"
uses = "standard/rest"
params = { at_least = "11h" }
[[layer.step]]
id = "breaks"
uses = "standard/break_time"
params = { tiers = [{ after = "6h", at_least = "30m" }, { after = "9h", at_least = "45m" }], shortest = "15m" }
  • limit flags any day of more than 10 hours.
  • average_limit holds the 24 weeks to each week’s end to 8 hours a working day: six working days a week, 48 hours a week on average. A day of up to 10 hours is flagged only where it takes the average past that.
  • rest flags less than 11 hours between working days.
  • break_time flags a day of more than 6 hours with less than 30 minutes of breaks, or more than 9 with less than 45, counting breaks of 15 minutes or more.

Parameters

StepParameterMeaning
limitover, kindThe longest working day.
average_limitover, weeks, kind8 hours a working day as 48 a week, over 24 weeks.
restat_leastThe rest between working days.
break_timetiers, shortestThe breaks due past 6 and 9 hours, and the shortest that counts.

What the scenarios show

  • ten-hours-a-day-while-the-average-holds: days of 9 hours 45 within an average of 40.4 hours a week.
  • an-average-over-8-hours-a-working-day: 24 weeks of 58.5 hours.
  • a-day-over-10-hours: 11 hours in a day.
  • breaks-of-30-and-45-minutes: two 15-minute breaks meet the 30; 30 minutes for 9 hours 30 do not meet the 45.
  • a-lunch-that-never-ended-in-the-period-before-is-not-the-end-of-the-shift: the same where the lunch sits in the pay period before.
  • a-lunch-that-never-ended-is-not-the-end-of-the-shift: a person who left on lunch ended the shift at the work before it, not at the lunch the next shift’s in closes, so Monday’s start is far more than 11 hours later.

This is a common way to watch these limits; check the rules where you operate. Rules change and vary by collective agreement and sector: the reference period may be 6 calendar months, Sundays and public holidays have rules of their own, and recording all working time is required.

Get the recipe

The recipe’s package and its scenarios are in the example packages repository: attendance/germany_working_hours. Test it, or your own copy of it, with hourctl attend test, and publish it with hourctl attend pkg publish.

The policy package

The package’s layers, with the standard steps each one runs and their settings:

germany_working_hours/package.toml
name = "germany_working_hours"
version = "1.0.0"
description = "Germany's working hours (Arbeitszeitgesetz), flagged for review: 8 hours a working day, up to 10 where 24 weeks average 8, 11 hours' rest, and breaks of 30 minutes past 6 hours and 45 past 9."
# A day of more than 10 hours is flagged; up to 10 is allowed only while
# the 24 weeks to each week's end average no more than 8 hours a working
# day (Monday to Saturday: 48 a week). Rest of 11 hours between days, and
# breaks of 30 minutes past 6 hours of work and 45 past 9, in breaks of
# 15 minutes or more.
[[layer]]
id = "arbeitszeit"
[[layer.step]]
id = "day"
uses = "standard/limit"
params = { over = "10h", kind = "day_over_10h" }
[[layer.step]]
id = "average"
uses = "standard/average_limit"
params = { over = "48h", weeks = 24, kind = "average_over_8h_a_day" }
[[layer.step]]
id = "rest"
uses = "standard/rest"
params = { at_least = "11h" }
[[layer.step]]
id = "breaks"
uses = "standard/break_time"
params = { tiers = [{ after = "6h", at_least = "30m" }, { after = "9h", at_least = "45m" }], shortest = "15m" }

Scenarios

Each scenario gives a person’s punches and setup and the timecard they must produce, worked out with this package adopted (the format).

A day of 11 hours of work is flagged whatever the average: Germany's working day is 10 hours at the most
scenarios/a-day-over-10-hours.toml
description = "A day of 11 hours of work is flagged whatever the average: Germany's working day is 10 hours at the most"
punch = [
{ at = "2026-10-05 06:00", kind = "in" }, { at = "2026-10-05 12:00", kind = "out" }, { at = "2026-10-05 12:45", kind = "in" }, { at = "2026-10-05 17:45", kind = "out" },
]
[policy]
zone = "Europe/Berlin"
[[measure]]
id = "hours"
kind = "duration"
[expect]
week = "2026-10-05"
exceptions = [{ kind = "day_over_10h", at = "2026-10-05 12:45" }]
As a lunch that never ended is not the end of the shift in the same pay period, it is not across a period's edge either: Friday ends at 11:46 with a second lunch start and no lunch end, in the period before, and Monday's in closes the lunch at 08:04 of the next period, far more than 11 hours later
scenarios/a-lunch-that-never-ended-in-the-period-before-is-not-the-end-of-the-shift.toml
description = "As a lunch that never ended is not the end of the shift in the same pay period, it is not across a period's edge either: Friday ends at 11:46 with a second lunch start and no lunch end, in the period before, and Monday's in closes the lunch at 08:04 of the next period, far more than 11 hours later"
punch = [
{ at = "2026-10-02 07:53", kind = "in" },
{ at = "2026-10-02 11:46", kind = "lunch_start" }, { at = "2026-10-02 12:17", kind = "lunch_start" },
{ at = "2026-10-05 08:04", kind = "in" }, { at = "2026-10-05 12:06", kind = "lunch_start" }, { at = "2026-10-05 12:41", kind = "lunch_end" }, { at = "2026-10-05 16:31", kind = "out" },
]
[policy]
zone = "Europe/Berlin"
pay_periods = { every_days = 7, from = "2026-09-28" }
[expect]
week = "2026-10-05"
exceptions = []
A person who left on lunch (a second lunch start, no lunch end and no out) ended their shift at the work before the lunch, not when the next shift begins: Friday ended at 11:46, and Monday 08:04 is far over 11 hours later (the lunch is closed by the next in)
scenarios/a-lunch-that-never-ended-is-not-the-end-of-the-shift.toml
description = "A person who left on lunch (a second lunch start, no lunch end and no out) ended their shift at the work before the lunch, not when the next shift begins: Friday ended at 11:46, and Monday 08:04 is far over 11 hours later (the lunch is closed by the next in)"
punch = [
{ at = "2026-10-01 08:22", kind = "in" }, { at = "2026-10-01 12:05", kind = "lunch_start" }, { at = "2026-10-01 12:54", kind = "lunch_end" }, { at = "2026-10-01 16:29", kind = "out" },
{ at = "2026-10-02 07:53", kind = "in" },
{ at = "2026-10-02 11:46", kind = "lunch_start" }, { at = "2026-10-02 12:17", kind = "lunch_start" },
{ at = "2026-10-05 08:04", kind = "in" }, { at = "2026-10-05 12:06", kind = "lunch_start" }, { at = "2026-10-05 12:41", kind = "lunch_end" }, { at = "2026-10-05 16:31", kind = "out" },
]
[policy]
zone = "Europe/Berlin"
pay_periods = { every_days = 14, from = "2026-09-28" }
[expect]
week = "2026-10-05"
exceptions = []
Six days a week of 9 hours 45 for 24 weeks average 58.5 hours a week, more than 8 a working day: flagged about the week's last work
scenarios/an-average-over-8-hours-a-working-day.toml
description = "Six days a week of 9 hours 45 for 24 weeks average 58.5 hours a week, more than 8 a working day: flagged about the week's last work"
punch = [
{ at = "2026-10-05 07:00", kind = "in" }, { at = "2026-10-05 11:30", kind = "out" }, { at = "2026-10-05 12:15", kind = "in" }, { at = "2026-10-05 17:30", kind = "out" },
{ at = "2026-10-06 07:00", kind = "in" }, { at = "2026-10-06 11:30", kind = "out" }, { at = "2026-10-06 12:15", kind = "in" }, { at = "2026-10-06 17:30", kind = "out" },
{ at = "2026-10-07 07:00", kind = "in" }, { at = "2026-10-07 11:30", kind = "out" }, { at = "2026-10-07 12:15", kind = "in" }, { at = "2026-10-07 17:30", kind = "out" },
{ at = "2026-10-08 07:00", kind = "in" }, { at = "2026-10-08 11:30", kind = "out" }, { at = "2026-10-08 12:15", kind = "in" }, { at = "2026-10-08 17:30", kind = "out" },
{ at = "2026-10-09 07:00", kind = "in" }, { at = "2026-10-09 11:30", kind = "out" }, { at = "2026-10-09 12:15", kind = "in" }, { at = "2026-10-09 17:30", kind = "out" },
{ at = "2026-10-10 07:00", kind = "in" }, { at = "2026-10-10 11:30", kind = "out" }, { at = "2026-10-10 12:15", kind = "in" }, { at = "2026-10-10 17:30", kind = "out" },
]
[policy]
zone = "Europe/Berlin"
[[measure]]
id = "hours"
kind = "duration"
[[labor]]
workday = "2026-09-28"
measure = "hours"
quantity = "58h 30m"
category = "work"
recorded = "2026-09-28 18:00"
[[labor]]
workday = "2026-09-21"
measure = "hours"
quantity = "58h 30m"
category = "work"
recorded = "2026-09-21 18:00"
[[labor]]
workday = "2026-09-14"
measure = "hours"
quantity = "58h 30m"
category = "work"
recorded = "2026-09-14 18:00"
[[labor]]
workday = "2026-09-07"
measure = "hours"
quantity = "58h 30m"
category = "work"
recorded = "2026-09-07 18:00"
[[labor]]
workday = "2026-08-31"
measure = "hours"
quantity = "58h 30m"
category = "work"
recorded = "2026-08-31 18:00"
[[labor]]
workday = "2026-08-24"
measure = "hours"
quantity = "58h 30m"
category = "work"
recorded = "2026-08-24 18:00"
[[labor]]
workday = "2026-08-17"
measure = "hours"
quantity = "58h 30m"
category = "work"
recorded = "2026-08-17 18:00"
[[labor]]
workday = "2026-08-10"
measure = "hours"
quantity = "58h 30m"
category = "work"
recorded = "2026-08-10 18:00"
[[labor]]
workday = "2026-08-03"
measure = "hours"
quantity = "58h 30m"
category = "work"
recorded = "2026-08-03 18:00"
[[labor]]
workday = "2026-07-27"
measure = "hours"
quantity = "58h 30m"
category = "work"
recorded = "2026-07-27 18:00"
[[labor]]
workday = "2026-07-20"
measure = "hours"
quantity = "58h 30m"
category = "work"
recorded = "2026-07-20 18:00"
[[labor]]
workday = "2026-07-13"
measure = "hours"
quantity = "58h 30m"
category = "work"
recorded = "2026-07-13 18:00"
[[labor]]
workday = "2026-07-06"
measure = "hours"
quantity = "58h 30m"
category = "work"
recorded = "2026-07-06 18:00"
[[labor]]
workday = "2026-06-29"
measure = "hours"
quantity = "58h 30m"
category = "work"
recorded = "2026-06-29 18:00"
[[labor]]
workday = "2026-06-22"
measure = "hours"
quantity = "58h 30m"
category = "work"
recorded = "2026-06-22 18:00"
[[labor]]
workday = "2026-06-15"
measure = "hours"
quantity = "58h 30m"
category = "work"
recorded = "2026-06-15 18:00"
[[labor]]
workday = "2026-06-08"
measure = "hours"
quantity = "58h 30m"
category = "work"
recorded = "2026-06-08 18:00"
[[labor]]
workday = "2026-06-01"
measure = "hours"
quantity = "58h 30m"
category = "work"
recorded = "2026-06-01 18:00"
[[labor]]
workday = "2026-05-25"
measure = "hours"
quantity = "58h 30m"
category = "work"
recorded = "2026-05-25 18:00"
[[labor]]
workday = "2026-05-18"
measure = "hours"
quantity = "58h 30m"
category = "work"
recorded = "2026-05-18 18:00"
[[labor]]
workday = "2026-05-11"
measure = "hours"
quantity = "58h 30m"
category = "work"
recorded = "2026-05-11 18:00"
[[labor]]
workday = "2026-05-04"
measure = "hours"
quantity = "58h 30m"
category = "work"
recorded = "2026-05-04 18:00"
[[labor]]
workday = "2026-04-27"
measure = "hours"
quantity = "58h 30m"
category = "work"
recorded = "2026-04-27 18:00"
[expect]
week = "2026-10-05"
exceptions = [{ kind = "average_over_8h_a_day", at = "2026-10-10 12:15" }]
Past 6 hours a day has 30 minutes of breaks, past 9 hours 45, each break of 15 minutes or more: Monday's 7 hours with two 15-minute breaks meet it; Tuesday's 9 hours 30 with 30 minutes do not
scenarios/breaks-of-30-and-45-minutes.toml
description = "Past 6 hours a day has 30 minutes of breaks, past 9 hours 45, each break of 15 minutes or more: Monday's 7 hours with two 15-minute breaks meet it; Tuesday's 9 hours 30 with 30 minutes do not"
punch = [
{ at = "2026-10-05 08:00", kind = "in" }, { at = "2026-10-05 11:00", kind = "out" }, { at = "2026-10-05 11:15", kind = "in" }, { at = "2026-10-05 13:00", kind = "out" }, { at = "2026-10-05 13:15", kind = "in" }, { at = "2026-10-05 15:30", kind = "out" },
{ at = "2026-10-06 07:00", kind = "in" }, { at = "2026-10-06 12:00", kind = "out" }, { at = "2026-10-06 12:30", kind = "in" }, { at = "2026-10-06 17:00", kind = "out" },
]
[policy]
zone = "Europe/Berlin"
[[measure]]
id = "hours"
kind = "duration"
[expect]
week = "2026-10-05"
exceptions = [{ kind = "break_short", at = "2026-10-06 00:00" }]
Five days of 9 hours 45 in a week after 23 of 40 hours: no day over 10 hours, and the 24 weeks average 40.4 hours a week, under 48: nothing is flagged
scenarios/ten-hours-a-day-while-the-average-holds.toml
description = "Five days of 9 hours 45 in a week after 23 of 40 hours: no day over 10 hours, and the 24 weeks average 40.4 hours a week, under 48: nothing is flagged"
punch = [
{ at = "2026-10-05 07:00", kind = "in" }, { at = "2026-10-05 11:30", kind = "out" }, { at = "2026-10-05 12:15", kind = "in" }, { at = "2026-10-05 17:30", kind = "out" },
{ at = "2026-10-06 07:00", kind = "in" }, { at = "2026-10-06 11:30", kind = "out" }, { at = "2026-10-06 12:15", kind = "in" }, { at = "2026-10-06 17:30", kind = "out" },
{ at = "2026-10-07 07:00", kind = "in" }, { at = "2026-10-07 11:30", kind = "out" }, { at = "2026-10-07 12:15", kind = "in" }, { at = "2026-10-07 17:30", kind = "out" },
{ at = "2026-10-08 07:00", kind = "in" }, { at = "2026-10-08 11:30", kind = "out" }, { at = "2026-10-08 12:15", kind = "in" }, { at = "2026-10-08 17:30", kind = "out" },
{ at = "2026-10-09 07:00", kind = "in" }, { at = "2026-10-09 11:30", kind = "out" }, { at = "2026-10-09 12:15", kind = "in" }, { at = "2026-10-09 17:30", kind = "out" },
]
[policy]
zone = "Europe/Berlin"
[[measure]]
id = "hours"
kind = "duration"
[[labor]]
workday = "2026-09-28"
measure = "hours"
quantity = "40h"
category = "work"
recorded = "2026-09-28 18:00"
[[labor]]
workday = "2026-09-21"
measure = "hours"
quantity = "40h"
category = "work"
recorded = "2026-09-21 18:00"
[[labor]]
workday = "2026-09-14"
measure = "hours"
quantity = "40h"
category = "work"
recorded = "2026-09-14 18:00"
[[labor]]
workday = "2026-09-07"
measure = "hours"
quantity = "40h"
category = "work"
recorded = "2026-09-07 18:00"
[[labor]]
workday = "2026-08-31"
measure = "hours"
quantity = "40h"
category = "work"
recorded = "2026-08-31 18:00"
[[labor]]
workday = "2026-08-24"
measure = "hours"
quantity = "40h"
category = "work"
recorded = "2026-08-24 18:00"
[[labor]]
workday = "2026-08-17"
measure = "hours"
quantity = "40h"
category = "work"
recorded = "2026-08-17 18:00"
[[labor]]
workday = "2026-08-10"
measure = "hours"
quantity = "40h"
category = "work"
recorded = "2026-08-10 18:00"
[[labor]]
workday = "2026-08-03"
measure = "hours"
quantity = "40h"
category = "work"
recorded = "2026-08-03 18:00"
[[labor]]
workday = "2026-07-27"
measure = "hours"
quantity = "40h"
category = "work"
recorded = "2026-07-27 18:00"
[[labor]]
workday = "2026-07-20"
measure = "hours"
quantity = "40h"
category = "work"
recorded = "2026-07-20 18:00"
[[labor]]
workday = "2026-07-13"
measure = "hours"
quantity = "40h"
category = "work"
recorded = "2026-07-13 18:00"
[[labor]]
workday = "2026-07-06"
measure = "hours"
quantity = "40h"
category = "work"
recorded = "2026-07-06 18:00"
[[labor]]
workday = "2026-06-29"
measure = "hours"
quantity = "40h"
category = "work"
recorded = "2026-06-29 18:00"
[[labor]]
workday = "2026-06-22"
measure = "hours"
quantity = "40h"
category = "work"
recorded = "2026-06-22 18:00"
[[labor]]
workday = "2026-06-15"
measure = "hours"
quantity = "40h"
category = "work"
recorded = "2026-06-15 18:00"
[[labor]]
workday = "2026-06-08"
measure = "hours"
quantity = "40h"
category = "work"
recorded = "2026-06-08 18:00"
[[labor]]
workday = "2026-06-01"
measure = "hours"
quantity = "40h"
category = "work"
recorded = "2026-06-01 18:00"
[[labor]]
workday = "2026-05-25"
measure = "hours"
quantity = "40h"
category = "work"
recorded = "2026-05-25 18:00"
[[labor]]
workday = "2026-05-18"
measure = "hours"
quantity = "40h"
category = "work"
recorded = "2026-05-18 18:00"
[[labor]]
workday = "2026-05-11"
measure = "hours"
quantity = "40h"
category = "work"
recorded = "2026-05-11 18:00"
[[labor]]
workday = "2026-05-04"
measure = "hours"
quantity = "40h"
category = "work"
recorded = "2026-05-04 18:00"
[[labor]]
workday = "2026-04-27"
measure = "hours"
quantity = "40h"
category = "work"
recorded = "2026-04-27 18:00"
[expect]
week = "2026-10-05"
exceptions = []