Hours Calculator

Find the time between two clock times, or add and subtract hours and minutes.

Hours between two times

12-hour (5:15 pm) or 24-hour (17:15). End before start = overnight.

Add or subtract hours & minutes

Formats: 7:45, 7.75 (decimal hours), 7h 45m, 45m. Start a line with - to subtract.

How to calculate hours between two times

  1. Convert both times to 24-hour format. 8:30 AM becomes 08:30; 5:15 PM becomes 17:15.
  2. Subtract the start from the end. Subtract minutes first; if the start minutes are larger, borrow 60 minutes from the hours. 17:15 − 08:30 → 16:75 − 08:30 = 8:45.
  3. Handle midnight. If the end time is earlier than the start, add 24:00 to the end time before subtracting.
  4. Remove unpaid breaks. 8:45 minus a 30-minute lunch = 8:15.
  5. Convert to decimal if needed. 15 ÷ 60 = 0.25, so 8:15 = 8.25 hours.

Adding and subtracting durations

When you add up time, remember that minutes roll over at 60, not 100. Adding 4:50 and 3:20 gives 7 hours 70 minutes, which is 8:10. This is why adding times in a regular calculator or spreadsheet often gives wrong answers. The add/subtract tool above accepts hours:minutes, decimal hours and “h/m” notation on separate lines, mixes them correctly and shows the result in all three formats.

Typical uses include totaling hours across several jobs, adding up project or billable time, adding overtime from multiple timesheets, or subtracting time off from a scheduled total.

Common time calculations

Common shifts
ShiftBreakHoursDecimal
9:00 AM – 5:00 PM30 min7:307.50
8:00 AM – 5:00 PM60 min8:008.00
7:00 AM – 3:30 PM30 min8:008.00
8:30 AM – 5:15 PM45 min8:008.00
7:00 AM – 7:00 PM30 min11:3011.50
11:00 PM – 7:00 AMnone8:008.00

Rounding time for payroll

Many employers round punch times rather than paying to the exact minute. U.S. Department of Labor rules (29 CFR 785.48) allow rounding to the nearest 5 minutes, tenth of an hour (6 minutes) or quarter hour (15 minutes), as long as the practice is neutral over time and does not consistently shortchange employees. With quarter-hour rounding, a punch at 8:07 rounds down to 8:00 and a punch at 8:08 rounds up to 8:15. If your workplace rounds, round each punch first and then enter the rounded times; if it pays to the minute, enter the exact times shown on the clock.

Tracking a full week? The time card calculator totals every day, separates overtime and estimates gross pay. Working with 24-hour schedules? See the military time chart.

Frequently asked questions

How many hours is 9 AM to 5 PM?

9:00 AM to 5:00 PM is 8 hours. If you take an unpaid 30-minute lunch, you worked 7.5 hours (7:30).

How do I calculate hours between two times that cross midnight?

Add 24 hours to the end time, then subtract the start time. 11:00 PM to 7:00 AM: 7 + 24 = 31, 31 − 23 = 8 hours. The calculator does this automatically whenever the end time is earlier than the start time.

How do I add hours and minutes together?

Add the minutes, then the hours. If the minutes reach 60 or more, carry 1 hour for every 60 minutes. 3:45 + 2:30 = 5 hours 75 minutes = 6:15. Use the add/subtract tool above to total any list of durations.

What is 8 hours and 45 minutes in decimal?

Divide the minutes by 60: 45 ÷ 60 = 0.75, so 8 hours 45 minutes is 8.75 decimal hours. The time to decimal calculator converts any value.

Can I subtract time?

Yes. In the add/subtract tool, start a line with a minus sign, for example -0:30, to subtract 30 minutes from the running total.