Enter maternity protection periods in HR software automatically
The expected due date gives you the start and end of the maternity protection period (Mutterschutzfrist) in your system.
With an expected due date of March 15, 2027, the protection period starts on February 1, 2027. If the baby is born on the due date, it ends on May 10, 2027 (§ 3 Abs. 1 und 2 MuSchG). After the birth, you add the actual date and the calculator moves the end date.
Record the expected due date from the medical certificate.
Calculate start and end with hr_mutterschutz and enter them in the absence calendar.
After the birth, add the actual date and any special case. The end date adjusts.
Two dates, two calculations
The protection period starts six weeks before the expected due date and ends eight weeks after the actual birth. If the baby arrives early, the days not taken before the birth are added at the end. For premature and multiple births, it is twelve weeks after the birth, and the same applies on request if the child has a disability.
So your software calculates twice: once with the due date for planning, and again with the real date after the birth. The rules are on the maternity protection calculator page.
Special cases the calculator knows
- Premature and multiple births, with twelve weeks after the birth.
- A disability of the child diagnosed by a doctor within the first eight weeks, at the woman's request.
- Miscarriage from the 13th week of pregnancy, since June 1, 2025: two, six or eight weeks.
The woman may shorten the protection period before the birth at her own request. That is her decision, not a calculation rule.
What the call looks like
Example with the dataset Maternity protection calculator. The response comes from the same code as the API.
Frequently asked questions
What happens if the baby arrives late?
The protection period after the birth starts from the actual date of birth, so it is extended accordingly.
Does maternity protection reduce vacation?
No. Time off due to maternity protection counts as time of employment, and vacation is not reduced for it (§ 24 MuSchG).