Hours calculator

The hours and minutes between two times, and a time calculator to add or take away hours. Every answer in hours and minutes and in decimal hours, as you type.

Hours between two times

Hours and minutes Example8:30
Decimal hours8.50

8 hours 30 minutes 9:00 AM to 5:30 PM

Add or take away hours

Type each time as 3h 45m, 3:45, 45m or 3.75. Press + to switch a time to take it away.

Total Example6:15
Decimal hours6.25

6 hours 15 minutes

Free for your own website, with no account and no ads.

Put the hours calculator on your website

Paste this code into an HTML or embed block on any page. Your visitors use the calculator right there, the same as here: free, no sign-up, no ads, and nothing they type is sent anywhere.

Preview it

It fits any width from a phone up to 640 px and grows to the calculator's height. The line under it links to this page, so your visitors can see where it comes from. Every calculator you can embed

Free calculator by Billsmith

Working with hours and minutes

Time between two times

End time minus start time. 9:00 AM to 5:30 PM is 8 hours 30 minutes. When the end is earlier than the start, the time runs past midnight: add 24 hours, so 10:00 PM to 6:15 AM is 8 hours 15 minutes.

Type times as 9, 9am, 9:30 PM or 21:30. In 12 hour mode an end time with no AM or PM is read as the next one after the start, so 9 to 5 is 9:00 AM to 5:00 PM; the answer shows how it read them.

Adding and taking away

Add the hours and the minutes separately, then carry every 60 minutes into an hour: 3h 45m + 2h 30m = 5h 75m = 6h 15m. To take away, borrow an hour as 60 minutes when you need to: 5h 10m − 2h 30m = 4h 70m − 2h 30m = 2h 40m.

The calculator does this for any list of up to 20 times, and the total can go below zero if you take away more than you add.

Decimal hours

Payroll, timesheets and invoices use decimal hours because they multiply by a rate. Divide the minutes by 60: 45 minutes is 0.75, so 6 hours 45 minutes is 6.75 hours. Back the other way, multiply the decimal part by 60: 0.4 hours is 24 minutes.

The calculator keeps the exact time and rounds only the answer it shows, to 2 decimal places, half up. Three times 7:20 are 22.00 hours, while three times 7.33 are 21.99, because 7.33 hours is a little under 7:20.

Rounding and overtime at work

US federal rules accept rounding start and stop times to the nearest 5 minutes, tenth or quarter hour only if, over time, it does not leave employees unpaid for time they worked (29 CFR 785.48). Non-exempt employees get at least 1.5 times their regular rate for hours over 40 in a workweek (US Department of Labor); some states, such as California, also have daily overtime.

A whole week of hours

For in and out times every day, lunch breaks, the weekly total, overtime after 40 hours and gross pay, use the time card calculator. For a signed record of hours by job over any period, use the timesheet template, which turns into an invoice at the same total.

Billing by the hour

Hours times your rate is the labor on an invoice: 6.25 hours at $40 is $250. Not sure what an hour of your time should cost? The day rate calculator works it out from what you want to earn, and the free invoice generator turns the hours into a PDF invoice.

This page explains how the calculator works out time. It is not legal or employment advice.

Questions

How do I calculate the hours between two times?

Take the start time from the end time. If the end is earlier than the start, the time runs past midnight, so add 24 hours. 9:00 AM to 5:30 PM is 8 hours 30 minutes, or 8.50 hours. 10:00 PM to 6:15 AM is 8 hours 15 minutes.

How do I add hours and minutes together?

Add the hours and the minutes separately, then turn every 60 minutes into an hour. 3 hours 45 minutes plus 2 hours 30 minutes is 5 hours 75 minutes, which is 6 hours 15 minutes, or 6.25 hours.

How do I convert minutes to decimal hours?

Divide the minutes by 60. 15 minutes is 0.25 of an hour, 30 minutes is 0.50, 45 minutes is 0.75 and 20 minutes is 0.33. So 7 hours 20 minutes is 7.33 hours.

How do I turn decimal hours back into hours and minutes?

Keep the whole hours and multiply the part after the point by 60. 7.75 hours is 7 hours and 0.75 x 60 = 45 minutes, so 7:45. 7.33 hours is 7 hours and 19.8 minutes, about 7:20.

Can work time be rounded?

US federal rules accept recording start and stop times to the nearest 5 minutes, or the nearest tenth or quarter of an hour, as long as over time it does not leave employees unpaid for time they actually worked (29 CFR 785.48). This calculator does not round the time itself; it rounds only the decimal answer it shows, to 2 places.

When do hours count as overtime?

Under the federal Fair Labor Standards Act, employees who are not exempt must be paid at least 1.5 times their regular rate for hours worked over 40 in a workweek, according to the US Department of Labor. Some states, such as California, also have daily overtime. The time card calculator on this site works out the federal 40 hour split for a week.