Hours Calculator

Hours and minutes between two times, minus a break, as h:mm and decimal hours for timesheets. Night shifts past midnight work too. Free, nothing is sent.

Runs in your browser. Your files are never uploaded. How it works

Calculate

Hours Calculator works out the time between a start and an end time, takes off your break, and gives the result in hours and minutes, in decimal hours and in total minutes. It is made for timesheets, shift logs and invoices that bill by the hour.

Minutes to decimal hours

Minutes Decimal Minutes Decimal
5 0.08 35 0.58
10 0.17 40 0.67
15 0.25 45 0.75
20 0.33 50 0.83
25 0.42 55 0.92
30 0.50 60 1.00

To convert yourself, divide the minutes by 60. The calculator rounds to two decimal places, the usual precision on timesheets.

Examples

  • Day shift: 09:00 to 17:30 with a 30-minute break is 8 h 00 min, 8.00 hours.
  • Short day: 08:45 to 17:15 with 45 minutes off is 7 h 45 min, 7.75 hours.
  • Night shift: 22:00 to 06:00 with no break is 8 h 00 min. The result notes that it ends the next day.

Your browser may show the time inputs with AM and PM depending on its language; the result is the same. Nothing you enter is sent anywhere. For dates rather than times, such as the days between two dates, use the other modes of Date Calculator.

Shifts that cross midnight

A shift from 22:00 to 06:00 is the case that trips up manual arithmetic: 6 minus 22 is negative, so subtracting straight gives −16 hours. The right answer is 8 hours, because the end time is on the next day.

That is handled automatically — when the end time is earlier than the start time, it is treated as the following day, and the result says so. You do not need to split a night shift into two rows.

What it cannot guess is a shift longer than 24 hours. An on-call period from Monday 09:00 to Tuesday 17:00 is 32 hours, but 09:00 → 17:00 reads as 8. For anything past a full day, count the whole days separately and add the part-day here.

Why timesheets want decimal hours

Payroll multiplies hours by a rate, and 7 h 45 min cannot be multiplied — 7.75 can. That is the only reason decimal hours exist, and it is why the result shows both.

The conversion is minutes ÷ 60, which is not the same as moving the decimal point. The mistake that costs money is writing 7 h 45 min as 7.45: the correct figure is 7.75, a difference of 18 minutes a day, or roughly 1.5 hours over a month of shifts.

Three that look almost right and are not:

Time worked Wrong Right
7 h 15 min 7.15 7.25
7 h 30 min 7.30 7.50
7 h 45 min 7.45 7.75

Only :15, :30 and :45 land on clean decimals. Everything else repeats — 20 minutes is 0.333…, shown as 0.33 — which is why timesheets settle on two decimal places and small rounding differences across a week are normal.

Breaks

The break is taken off the total, not off a particular part of the shift, so it does not matter whether it was taken at noon or in two halves. Enter the total unpaid minutes.

Paid breaks should not be entered at all — if you are paid through the break, it belongs in the hours. Whether a break is paid is a contract question, not an arithmetic one; it is the most common reason two people compute different totals from the same clock-in and clock-out times.

What this is used for

  • Timesheets — one shift per day, decimal hours into the payroll sheet.
  • Hourly invoices — total minutes keeps freelance billing exact when work comes in short blocks.
  • Overtime checks — compare the figure against contracted hours.
  • Flexitime balances — the difference between worked and expected hours, day by day.

Everything is calculated in your browser as you type. No start times, end times or shift patterns are sent anywhere.

Frequently asked questions

How do I calculate hours worked with a lunch break?

Enter the start time, the end time and the break in minutes. From 08:45 to 17:15 with a 45-minute break is 7 h 45 min, which is 7.75 decimal hours.

What are decimal hours?

Hours written as a decimal number instead of hours and minutes, which is what most timesheets, invoices and payroll systems want. 15 minutes is 0.25 hours, 30 minutes 0.5 and 45 minutes 0.75, so 7 h 30 min is 7.50 hours.

Does it work for a night shift that ends after midnight?

Yes. When the end time is earlier than the start time, the calculator assumes the shift ended the next day: 22:00 to 06:00 is 8 hours.

Can I add up a whole week?

Not in one go. Work out each day, note the decimal hours, and add those up: decimal numbers add without converting minutes.

More ways to use Date Calculator

Related tools