Time duration & hours calculator
Find the hours and minutes between two times — including overnight shifts and breaks.
About this time duration calculator
Working out hours between two clock times gets awkward with half-hours, lunch breaks and shifts that end after midnight. This calculator does it instantly and gives the result both as hours and minutes and as decimal hours, which is the format most payroll and timesheet systems need.
If the end time is earlier than the start time, it assumes the shift ran past midnight. Add an hourly rate to see what the time is worth.
How to use the Time Duration Calculator
- Enter the start time and end time.
- Enter any unpaid break in minutes.
- Optionally add an hourly rate.
- Read the duration, decimal hours and pay.
Converting minutes to decimal hours
Decimal hours = total minutes ÷ 60
So 15 minutes = 0.25 h, 30 minutes = 0.5 h and 45 minutes = 0.75 h. A shift of 8 hours 30 minutes is 8.5 decimal hours, not 8.30.
Worked example
A shift from 9:00 AM to 5:30 PM with a 30-minute unpaid lunch is 8 hours (8.00 decimal hours). A night shift from 10:00 PM to 6:30 AM with a 30-minute break is also 8 hours.
Tips for better results
- Round consistently — many employers round to the nearest quarter hour; check your policy.
- To add up a whole week, total the decimal hours from each day.
Frequently asked questions
How do I calculate hours worked?
Subtract the start time from the end time, then subtract unpaid breaks. Convert minutes to decimal by dividing by 60.
Does it work for overnight shifts?
Yes. If the end time is earlier than the start time, it's treated as the next day.
Last reviewed: October 2026 · Results are calculated in your browser.
Related tools
Salary to Hourly Calculator
Convert annual salary to hourly pay (or hourly to salary) plus weekly and monthly amounts.
Time Zone Converter
Convert a date and time between US and world time zones, with daylight saving built in.
Time Unit Converter
Convert seconds, minutes, hours, days, weeks, months and years.