">

Hours Calculator

Work out how many hours are between two times. Add as many entries as you need, subtract breaks, and switch between decimal and hours:minutes.

How to use it

Enter a start time and an end time. You can type times however you normally would — 9, 930, 9:30, 5p and 17:30 are all understood, and the reading is shown underneath so you can spot a typo immediately.

Add break minutes if some of that time was unpaid. Use Add entry to total several separate periods, such as a morning and an afternoon session, or several days at once.

Example. From 9:00 AM to 5:30 PM is 8 hours 30 minutes. Take off a 30 minute lunch and you have 8 hours exactly, shown as 8.00 in decimal or 8:00 in hours and minutes.

Decimal hours versus hours and minutes

These are two ways of writing the same duration, and mixing them up is the single most common payroll mistake. Eight and a half hours is 8.50 in decimal, but 8:30 in hours and minutes. It is never 8.30.

To convert minutes to decimal, divide by 60. Fifteen minutes is 0.25, twenty minutes is 0.33, forty-five minutes is 0.75. Payroll systems almost always want the decimal form, which is why this calculator shows both at once.

Shifts that cross midnight

If the end time is earlier than the start time, the calculator assumes the period ran overnight rather than treating it as an error. Entering 10:00 PM to 6:00 AM gives 8 hours, not a negative number.

Common shift lengths

These are the spans people look up most often. The middle column is the raw time on the clock; the last column is what you are actually paid for after a 30 minute unpaid lunch.

ShiftTotal timeLess 30 min lunch
9:00 AM - 5:00 PM8:00 (8.00)7:30 (7.50)
9:00 AM - 5:30 PM8:30 (8.50)8:00 (8.00)
8:00 AM - 4:00 PM8:00 (8.00)7:30 (7.50)
8:00 AM - 4:30 PM8:30 (8.50)8:00 (8.00)
8:00 AM - 5:00 PM9:00 (9.00)8:30 (8.50)
7:00 AM - 3:00 PM8:00 (8.00)7:30 (7.50)
7:00 AM - 3:30 PM8:30 (8.50)8:00 (8.00)
6:00 AM - 2:00 PM8:00 (8.00)7:30 (7.50)
7:00 AM - 7:00 PM12:00 (12.00)11:30 (11.50)
7:00 PM - 7:00 AM12:00 (12.00)11:30 (11.50)
11:00 PM - 7:00 AM8:00 (8.00)7:30 (7.50)
10:00 PM - 6:00 AM8:00 (8.00)7:30 (7.50)

Minutes to decimal hours: full chart

Every minute from 1 to 60, rounded to three decimal places. Payroll systems usually accept two, so 0.283 becomes 0.28.

MinDecMinDecMinDec
10.017210.35410.683
20.033220.367420.70
30.05230.383430.717
40.067240.40440.733
50.083250.417450.75
60.10260.433460.767
70.117270.45470.783
80.133280.467480.80
90.15290.483490.817
100.167300.50500.833
110.183310.517510.85
120.20320.533520.867
130.217330.55530.883
140.233340.567540.90
150.25350.583550.917
160.267360.60560.933
170.283370.617570.95
180.30380.633580.967
190.317390.65590.983
200.333400.667601.00

24-hour and military time

Many timesheets and most of the world outside the United States use the 24-hour clock, sometimes called military time. After midday you add 12: 1:00 PM becomes 13:00, 5:30 PM becomes 17:30, and 11:00 PM becomes 23:00. Midnight is 00:00 and midday is 12:00.

This calculator accepts either. Type 17:30 or 1730 and it reads 5:30 PM; type 5:30p and it reads the same thing. Whichever you use, the interpretation is shown underneath so there is no ambiguity.

12-hour24-hour12-hour24-hour
12:00 AM00:0012:00 PM12:00
1:00 AM01:001:00 PM13:00
2:00 AM02:002:00 PM14:00
6:00 AM06:006:00 PM18:00
8:00 AM08:008:00 PM20:00
11:00 AM11:0011:00 PM23:00

A note on rounding your own totals

Resist the urge to round each day before adding them up. Rounding seven daily figures to two decimal places and then totalling introduces an error of up to a few minutes across a week, which is real money over a year. Add the exact minutes first and round once at the end — which is what this calculator does internally.

Where the time goes

If you are totalling a whole week of shifts and want overtime worked out as well, the time card calculator gives you a seven or fourteen day grid with overtime rules and gross pay. If you only need to know what your overtime hours are worth, the overtime calculator does that directly. This page is the quicker option when you just need the hours between two times.

Common questions

How many hours is 9 to 5?

Nine in the morning to five in the afternoon is 8 hours. If you take an unpaid 30 minute lunch, your paid time is 7 hours 30 minutes, or 7.50 in decimal.

How many hours is 9 to 5:30?

That is 8 hours 30 minutes on the clock, or 8.50 in decimal. After a 30 minute unpaid lunch it is exactly 8 hours.

How many hours is 8 to 4:30?

Eight in the morning to half past four is 8 hours 30 minutes, or 8.50 decimal. Less a 30 minute lunch, that is 8 hours paid.

How do I calculate hours and minutes?

Subtract the start time from the end time, then subtract any unpaid break. This calculator does it for you and shows the answer in both decimal hours and hours:minutes.

How do I convert minutes into decimal hours?

Divide the minutes by 60. So 15 minutes is 0.25 hours, 30 minutes is 0.50, and 45 minutes is 0.75. Note that 8 hours 30 minutes is written 8.50, not 8.30.

Why does my timesheet say 8.50 instead of 8.30?

Because payroll uses decimal hours rather than hours and minutes. Thirty minutes is half an hour, which is 0.50 in decimal. Writing it as 8.30 would mean 8 hours and 18 minutes.

Does it handle overnight shifts?

Yes. If the end time is earlier than the start time, the period is treated as crossing midnight. 10:00 PM to 6:00 AM returns 8 hours.

Can I add up more than one time period?

Yes. Press Add entry for as many start and end pairs as you need, and the running total at the side sums all of them.

Can I enter times in 24-hour format?

Yes. Both 17:30 and 1730 are read as 5:30 PM, and you can mix formats between fields. The parsed time is shown under each box.

Related calculators