Skip to content
YouNeed Tools
Free VPN

Hours Calculator

Type a start and end time to get the hours and minutes between them, take off a break, or add up any list of durations.

Calculate

Earlier than the start? We count it as the next day.

Show times as

9:00 AM to 5:30 PM

8 h

Hours and minutes

8:00

Decimal hours

8.00

For timesheets and pay

Minutes

480

8 h 30 min on the clock, less a 30 min break.

Worked out on your device. Nothing you type is sent anywhere.

Worked example

A shift from 8:45 AM to 5:15 PM with a 30-minute unpaid lunch: 17:15 − 8:45 = 8 h 30 min, less the break = 8 h (8:00, or 8.00 decimal hours). A night shift from 10:00 PM to 6:30 AM with a 45-minute break crosses midnight: 2 hours to midnight plus 6 hours 30 minutes after = 8 h 30 min, less 45 minutes = 7 h 45 min (7.75 hours).

Minutes to decimal hours

MinutesDecimal hoursMinutesDecimal hours
50.08350.58
100.17400.67
150.25450.75
200.33500.83
250.42550.92
300.50

Payroll often rounds to the nearest quarter hour (0.25). The US Department of Labor allows rounding to the nearest 5, 10 or 15 minutes only if it evens out over time and doesn’t always favour the employer.

Common mistakes with time sums

  • Treating 1:30 as 1.3 hours. One hour thirty is 1.5 hours; 1.3 hours is 1 hour 18 minutes.
  • Subtracting across midnight on a normal calculator gives a negative number; add 24 hours to fix it.
  • Mixing 12-hour times without AM or PM. “From 9 to 5” is 8 hours only if the 5 is PM. When you leave AM/PM off, a number from 1 to 24 is read as the 24-hour clock.
  • Daylight saving changes: on the night the clocks go forward a night shift is an hour shorter, and an hour longer when they go back. The calculator works from clock times, so adjust by an hour on those two nights.

Need a full weekly timesheet with pay and overtime? The time card calculator handles a whole week. For the 24-hour clock itself, see the military time converter.

Hours for pay, travel and study

For pay, decimal hours make the sum simple: 37 hours 30 minutes at $18.50 an hour is 37.5 × 18.50 = $693.75. For overtime, work out the hours for each day first, then add them up for the week, because overtime rules in the US (over 40 hours a week) and many UK contracts look at the weekly total. For travel, a flight leaving at 22:40 and landing at 06:15 local time crosses midnight, but if it also crosses time zones you need to convert both times to the same zone first. For study logs and freelance tracking, add each session as a line in the durations list and keep a running total for the week or the project.

Related tools

Sources

Checked on November 26, 2026:

Frequently asked questions

How do I calculate hours between two times?
Turn both times into minutes after midnight, take the start from the end and turn the minutes back into hours and minutes. 8:45 is 525 minutes and 17:15 is 1,035, so the gap is 510 minutes, which is 8 hours 30 minutes.
What if the shift goes past midnight?
If the end time is earlier than the start, the calculator counts it as the next day: 10 PM to 6:30 AM is 8 hours 30 minutes. For shifts longer than 24 hours, use the days between dates calculator as well.
How do I turn minutes into decimal hours?
Divide the minutes by 60. 15 minutes is 0.25 hours, 30 is 0.5, 45 is 0.75 and 20 is 0.33. So 7 hours 45 minutes is 7.75 hours, which is what most payroll systems want.
Can I type times in 24-hour format?
Yes. Type 17:30, 1730, 5:30 pm or 5.30pm; they all mean the same. You can switch the display between 12-hour and 24-hour.
How do I add up hours and minutes?
Switch to “Add up durations” and type one duration per line, such as 2:30, 1h 45m or 90 (minutes). Start a line with a minus sign to take it away. The total is shown in hours and minutes and decimal hours.
Is my timesheet stored?
No. Everything is worked out on your device.

Last updated: 2026-11-26