Everyday · Calculator

Time calculator: hours between times, add and subtract

Three handy time tools in one. Find out how long it is between two clock times, add or subtract hours and minutes from a time, or add up a list of hours worked for a timesheet, with decimal hours for payroll.

  • Free
  • No sign up
  • Private
Wall clock and hourglass on a shelf with a notebook
Advertisement

How to calculate hours between two times

  1. Pick a mode. Choose Time between, Add or subtract, or Add up hours.
  2. Enter the start and end times. Type the clock times. If the end is earlier than the start, it is counted as the next day.
  3. Take off any unpaid break. Enter the break in minutes to get the hours actually worked.
  4. Read the result. See the time in hours and minutes, plus decimal hours for payroll and total minutes.

The three modes

Advertisement

The formula and a worked example

Hours worked = end time − start time − unpaid break. If the end time is earlier than the start time, add 24 hours first, because the shift ends the next day.

For example, 9:45 AM to 2:30 PM: from 9:45 to 2:45 would be 5 hours, and 2:30 is 15 minutes earlier, so the answer is 4 hours 45 minutes, or 4.75 decimal hours. A night shift from 10:00 PM to 6:00 AM is 6:00 + 24:00 − 22:00 = 8 hours.

Quick reference: common shift lengths

ShiftUnpaid breakHours workedDecimal hours
7:00 AM to 3:00 PMNone8 h 00 min8.00
9:00 AM to 5:00 PM30 min7 h 30 min7.50
8:30 AM to 5:00 PM30 min8 h 00 min8.00
7:00 AM to 7:00 PM60 min11 h 00 min11.00
10:00 PM to 6:00 AMNone8 h 00 min8.00

Work hours with lunch: how much does the break take off?

Real runs for an 8:00 AM to 4:30 PM day with different unpaid breaks:

Unpaid breakHours workedDecimal hoursMinutes
None8 h 30 min8.50510
30 min8 h 00 min8.00480
45 min7 h 45 min7.75465
60 min7 h 30 min7.50450

Two more common days: 9:00 AM to 6:00 PM with a 60 minute lunch is 8 hours, and 6:45 AM to 3:15 PM with a 30 minute lunch is also 8 hours.

Adding up a weekly timesheet

Switch to Add up hours and paste one day per line. A real run of 8:15, 7:45, 8:30, 7:50 and 6:40 totals 39 h 00 min (39.00 decimal hours). A heavier week of 8:30, 9:15, 8:45, 9:00 and 8:20 totals 43 h 50 min, or 43.83 decimal hours.

In the US, hourly workers covered by the Fair Labor Standards Act get at least 1.5 times their pay for hours over 40 in a week. In that second week that is 3 h 50 min of overtime, 3.83 decimal hours. In the EU, the Working Time Directive caps the average week at 48 hours including overtime.

What time will it be in 8 hours?

The Add or subtract mode answers questions like this and tells you when the answer falls on another day. Real runs:

StartAdd or subtractResult
2:00 PMadd 3 h 45 min5:45 PM, same day
11:30 PMadd 8 h7:30 AM, 1 day later
8:00 AMsubtract 9 h 30 min10:30 PM, 1 day earlier
9:15 AMadd 36 h9:15 PM, 1 day later

Counting days rather than hours, such as the time between two dates or days until a holiday, is a job for the date calculator.

When the clocks change

In autumn the clocks go back one hour: on 25 October 2026 in the UK and most of Europe, and on 1 November 2026 in the US and Canada. An overnight shift that runs through the change really lasts one hour longer, so 10:00 PM to 6:00 AM that night is 9 hours, not 8. In spring, when the clocks go forward, the same shift is 7 hours. The calculator counts clock time, so add or take off that hour yourself on those two nights.

Converting minutes to decimal hours

Payroll and invoices often need hours as decimals rather than hours and minutes. Divide the minutes by 60: 30 minutes is 0.5 hours, 15 minutes is 0.25 and 45 minutes is 0.75. So 7 hours 45 minutes is 7.75 hours.

MinutesDecimal hours
60.10
100.17
150.25
200.33
300.50
400.67
450.75
500.83
Example timesheet: 9:00 AM to 5:30 PM with a 30 minute unpaid lunch is 8 hours of work, or 8.00 decimal hours.

Need to know someone's exact age or count days to a birthday? Use the age calculator. Checking what those hours pay after tax? Try the US paycheck calculator or the UK salary calculator.

Frequently asked questions

How do I calculate hours between two times?
Subtract the start time from the end time, adding 24 hours if the end time is on the next day, then take off any unpaid break. The calculator above does this for you and also shows decimal hours.
How many hours is 7:00 AM to 3:00 PM?
7:00 AM to 3:00 PM is 8 hours. With a 30 minute unpaid lunch it is 7 hours 30 minutes, or 7.5 decimal hours.
How many hours is 9:45 to 2:30?
9:45 AM to 2:30 PM is 4 hours 45 minutes, which is 4.75 decimal hours.
How do I calculate the difference between two times in Excel?
Put the start time in A1 and the end time in B1, then use =(B1-A1)*24 for decimal hours. For shifts that cross midnight, use =MOD(B1-A1,1)*24.
How many hours is 8 to 4:30 with a 30 minute lunch?
8:00 AM to 4:30 PM is 8 hours 30 minutes. Take off a 30 minute unpaid lunch and you worked 8 hours, or 8.00 decimal hours.
How do I add up hours worked in a week?
Use the Add up hours mode and enter one day per line as 7:30 or 7.5. For example 8:15, 7:45, 8:30, 7:50 and 6:40 add up to 39 hours.
What time will it be 8 hours from 11:30 PM?
7:30 AM the next day. The Add or subtract mode shows the new time and whether it falls on the same day, the next day or the day before.
How do I convert minutes to decimal hours?
Divide the minutes by 60. For example 45 minutes is 0.75 hours, so 6 hours 45 minutes is 6.75 hours.
Advertisement

More free tools