Skip to content
Tooltip KitTooltip Kit
Hr
Calculator Tools

Hours Calculator

Calculate the hours and minutes between two times, with breaks and overnight shifts.

Quick answer

Calculate the hours and minutes between two times, with breaks and overnight shifts. The Hours Calculator is 100% free, runs entirely in your browser with no sign-up or installation, and keeps your data private.

Popular tools

All 106 tools

What is the Hours Calculator?

This hours calculator (also called an hr calculator or hour calculator) finds the time between two clock times in hours and minutes, with an option to subtract unpaid breaks. It handles overnight shifts too, so a shift from 10:00 PM to 6:00 AM is counted correctly as 8 hours rather than a negative number.

Use it to fill in a timesheet, check hours on a payslip, track freelance work, or plan a schedule. It's also the first step in working out pay: once you know the hours, you can multiply by your hourly rate or use the overtime calculator.

How to calculate hours worked

  1. 1

    Enter the start time.

  2. 2

    Enter the end time. If it's earlier than the start time, the calculator treats it as the next day (an overnight shift).

  3. 3

    Enter any unpaid break, such as a 30-minute lunch.

  4. 4

    Read the total time worked in hours and minutes.

Why use this hours calculator

Overnight shifts handled

Shifts that cross midnight are calculated correctly without manual adjustments.

Breaks subtracted

Remove unpaid breaks so the result matches the hours you're actually paid for.

Fast timesheets

Calculate each day in seconds instead of counting on a clock.

Private

Works in your browser with no account.

Converting hours and minutes for timesheets

Time worked = end time − start time − breaks. A shift from 9:00 AM to 5:30 PM with a 30-minute break is 8 hours 30 minutes minus 30 minutes, which is 8 hours.

Payroll often needs hours as a decimal. To convert minutes to a decimal hour, divide by 60: 15 minutes is 0.25 hours, 30 minutes is 0.5, and 45 minutes is 0.75. So 7 hours 45 minutes is 7.75 hours. A common mistake is writing 7h45m as 7.45, which undercounts the time.

For overnight shifts, the calculator adds 24 hours when the end time is earlier than the start time. A shift from 10:00 PM to 6:00 AM is 8 hours.

To work out pay, multiply the decimal hours by your hourly rate. If some of those hours are overtime, use the overtime calculator to apply the right multiplier.

Frequently asked questions

How do I calculate hours between two times?
Subtract the start time from the end time, then subtract any unpaid breaks. If the shift crosses midnight, add 24 hours to the end time first; the calculator does this automatically.
How do I convert minutes to decimal hours?
Divide the minutes by 60. For example, 45 minutes ÷ 60 = 0.75 hours.
Can it calculate night shifts?
Yes. If the end time is earlier than the start time, it's treated as the next day.
Is 7 hours 30 minutes the same as 7.30 hours?
No. 7 hours 30 minutes is 7.5 hours in decimal. 7.30 hours would be 7 hours 18 minutes.
How do I calculate hours from login and logout time?
Enter your login time as the start time and your logout time as the end time, then subtract any break. For example, login 9:15 AM and logout 6:00 PM with a 45-minute break is 8 hours.
How do I calculate hours in 24-hour time?
Convert both times to 24-hour format, subtract the start from the end, and add 24 hours if the result is negative. For example, 22:00 to 06:00 is 06:00 + 24:00 − 22:00 = 8 hours.
How do I add up hours for a whole week?
Calculate each day separately, convert each result to decimal hours, then add the days together. Five days of 8 hours 15 minutes is 5 × 8.25 = 41.25 hours.

Related tools