Time Calculator

Add or subtract durations in hours, minutes, and seconds, or calculate hours worked between two times with unpaid breaks deducted and decimal hours for payroll.

Calculation

First duration

Operation

Second duration

Result

4:15:00

4.25 hours in decimal

  • Hours, minutes, seconds4h 15m 0s
  • Total minutes255
  • Total seconds15,300
  • Decimal hours4.25

Why time arithmetic trips people up

Time is sexagesimal — base 60 — not decimal, so ordinary column arithmetic gives wrong answers. Adding 2:45 and 1:30 as though they were decimals produces 3:75, which needs carrying: 75 minutes is 1 hour 15 minutes, giving the correct 4:15.

The reliable approach is to convert everything to the smallest unit, do the arithmetic, then convert back. Two hours 45 minutes is 165 minutes; one hour 30 minutes is 90 minutes; the sum of 255 minutes is 4 hours 15 minutes. This is exactly what the calculator does internally.

Units of time
UnitIn secondsEquals
Minute60 seconds1/60 hour
Hour3,600 seconds60 minutes
Day86,400 seconds24 hours
Week604,800 seconds7 days; 168 hours
Month (average)2,629,746 seconds30.44 days; 730.5 hours
Year (average)31,556,952 seconds365.2425 days; 8,765.8 hours

Decimal hours for payroll

Payroll systems work in decimal hours, where 7 hours 30 minutes is 7.5 rather than 7.30. Converting means dividing the minutes by 60, not moving a decimal point — a distinction that causes real payroll errors.

The common values are worth knowing: 15 minutes is 0.25, 20 minutes is 0.333, 30 minutes is 0.5, and 45 minutes is 0.75. Awkward figures like 7 hours 20 minutes become 7.333, and some employers round timesheets to the nearest quarter hour, which US federal rules permit provided the rounding does not systematically favor the employer.

Minutes to decimal hours
MinutesDecimal hoursNearest quarter hour
50.08330
60.10
100.16670.25
120.20.25
150.250.25
200.33330.25
250.41670.5
300.50.5
350.58330.5
400.66670.75
450.750.75
500.83330.75
550.91671

Overnight shifts and breaks

When an end time is earlier than a start time, the shift crossed midnight. A shift from 22:00 to 06:00 is 8 hours, not negative 16, and this calculator adds 24 hours automatically when it detects that case.

Whether breaks are paid depends on jurisdiction and length. Under US federal law, short rest breaks of 5 to 20 minutes are generally compensable, while bona fide meal periods of 30 minutes or more usually are not, provided the employee is fully relieved of duty. Many states impose stricter requirements, so subtract only genuinely unpaid time.

Hours worked for common shifts
ShiftUnpaid break (min)Hours workedDecimal
09:00 – 17:00307:307.5
09:00 – 17:30308:008
08:00 – 16:30607:307.5
07:00 – 15:30308:008
10:00 – 18:45458:008
14:00 – 22:30308:008
22:00 – 06:00307:307.5
23:00 – 07:30607:307.5

Rounding to the quarter hour

US federal rules allow timesheets to be rounded to the nearest quarter hour, provided the rounding does not consistently favour the employer. The standard way to do that is the seven-minute rule: minutes 1 to 7 past a quarter round down, 8 to 14 round up. Over many punches the rounding averages out; on any single day it can add or remove up to seven minutes.

The seven-minute rule
Minutes past the hourRounds toExample
0 – 7 minutesRound down to :008:07 → 8:00
8 – 22 minutesRound to :158:19 → 8:15
23 – 37 minutesRound to :308:33 → 8:30
38 – 52 minutesRound to :458:40 → 8:45
53 – 59 minutesRound up to the next hour8:56 → 9:00

Frequently asked questions

How do I add hours and minutes correctly?

Convert both durations to minutes, add them, then convert back. For 2:45 plus 1:30: 165 + 90 = 255 minutes, which is 4 hours 15 minutes. Adding the columns directly gives 3:75, which is not a valid time.

How do I convert minutes to decimal hours?

Divide the minutes by 60. So 30 minutes is 0.5 hours and 20 minutes is 0.333 hours. Note that 7 hours 30 minutes is 7.5 in decimal, not 7.30 — a frequent source of payroll errors.

How do I calculate hours worked across midnight?

Add 24 hours to the end time before subtracting. A shift from 22:00 to 06:00 spans 8 hours. The calculator detects this automatically when the end time is earlier than the start.

Should I deduct breaks from hours worked?

Deduct unpaid breaks only. Under US federal rules, short rest breaks of 5 to 20 minutes are usually paid, while meal periods of 30 minutes or more where the employee is relieved of all duty are usually unpaid. State rules can be stricter, so check local requirements.

Last reviewed . Results are estimates for informational purposes only.