How to use this calculator
Calculate hours worked across midnight, minus unpaid breaks. Enter your values into the fields above. Your result and individual components update immediately without leaving this page.
The formula
Worked example
A shift from 7:00 PM to 7:00 AM lasts 12 hours. With a 30-minute unpaid break, paid time is 11 hours 30 minutes.
Frequently asked questions
Can I calculate an overnight shift?
Yes. If the end time is earlier than the start time, the calculator treats it as the next day.
What if my shift lasts exactly 24 hours?
Matching start and end times are treated as 24 hours. For a zero-hour interval, use a different date-aware method.
Related free tools
Important: This calculator provides arithmetic estimates, not employment, tax or legal advice. Check local rules and your own agreement before relying on a payroll figure.