By · Updated

Hours Calculator

Hours Worked Between Two Times Minus Breaks, With Overnight Shifts

No ratings yet
Result

—

OneTask is free, with no sign-up, and built by one person.
If this tool saved you time, a coffee helps keep new ones coming.

How the Hours Calculator works

This hours calculator finds the time between a start and an end time, takes off any unpaid break and gives the hours worked in hours and minutes and in decimal hours. A finish earlier than the start is read as the next day, so night shifts work without any extra steps.

Counting the hours in a shift sounds trivial until the times do not line up on the hour. From 08:30 to 17:15 is not 8.45 hours; it is 8 hours 45 minutes, or 8.75 in decimal. Mixing those two up is one of the most common payroll mistakes, and it always costs the worker, because 45 minutes read as 0.45 hours loses 18 minutes of pay.

How the hours calculator works

The calculator turns each time into minutes after midnight and subtracts the start from the end. If the end is at or before the start, it adds 24 hours, because a shift from 22:00 to 06:00 obviously finishes the next morning. The break is then taken off the time on site to give the hours worked.

Worked examples

A day from 08:30 to 17:15 with a 30-minute lunch gives 8 hours 45 minutes on site and 8:15 worked, which is 8.25 decimal hours. At 14.50 an hour that is 119.63.

A night shift from 22:00 to 06:30 with a 45-minute break gives 8:30 on site, ending the next day, and 7:45 worked, or 7.75 decimal hours.

A split day can be done in two goes: run the morning and the afternoon separately and add the results with the time calculator.

Converting minutes to decimal hours

Decimal hours express minutes as a share of sixty. The quick reference most payroll clerks keep in their head:

Minutes Decimal hours
6 0.10
10 0.17
15 0.25
20 0.33
30 0.50
40 0.67
45 0.75
50 0.83

Divide minutes by 60 for anything not in the table. The decimal hours converter does both directions and shows the exact value when two places is not enough.

Breaks and what counts as working time

Whether a break is paid depends on your contract and local law, so this calculator simply takes off the number of minutes you enter. Leave it at zero when breaks are paid or when you are working out time on site for access or security records. The break must be shorter than the shift, since anything else is almost certainly a typing slip.

Rest breaks, meal breaks and travel time are treated differently in different places. Check what your agreement says before relying on a total for a pay dispute, and keep your own record of start, finish and break times alongside it.

Where an hours calculator helps

Tips for accurate totals

Use the 24-hour clock in your head even if your device shows am and pm, and check the morning and evening are what you meant: 7:00 to 3:00 means a night shift unless you intended 07:00 to 15:00. For a whole week of shifts, the timesheet calculator takes one line per day, totals the week and splits regular hours from overtime.

If your employer rounds clock-in times, for example to the nearest quarter hour, work out both the exact and the rounded figure. Over a year, rounding that always runs in one direction can add up to several days of unpaid time.

How many hours each shift pays

The formula is end time minus start time, plus 24 hours if the shift crosses midnight, minus the unpaid break. For example, a night shift from 22:00 to 06:00 with a 30-minute break is 7:30, or 7.50 decimal hours. Each example below uses the same rule.

Hours worked for common shifts

Start End Break (min) Hours worked Decimal
07:00 15:00 30 7:30 7.50
07:00 15:30 30 8:00 8.00
07:30 16:00 30 8:00 8.00
08:00 16:00 30 7:30 7.50
08:00 16:30 30 8:00 8.00
08:00 17:00 60 8:00 8.00
08:30 17:00 30 8:00 8.00
08:30 17:15 30 8:15 8.25
08:30 17:30 45 8:15 8.25
09:00 17:00 30 7:30 7.50
09:00 17:30 30 8:00 8.00
09:00 18:00 60 8:00 8.00
09:30 18:00 30 8:00 8.00
10:00 18:30 45 7:45 7.75
06:00 14:00 20 7:40 7.67
14:00 22:00 20 7:40 7.67
22:00 06:00 30 7:30 7.50
20:00 08:00 60 11:00 11.00
12:00 16:00 0 4:00 4.00
09:00 13:30 0 4:30 4.50
07:45 16:20 35 8:00 8.00
08:10 16:55 40 8:05 8.08

FAQ

How do I calculate hours worked with a lunch break?

Enter the start and end times and the unpaid break in minutes. The calculator subtracts the start from the end, takes off the break and shows the result as hours and minutes and as decimal hours, ready to multiply by your rate.

What if my shift goes past midnight?

Just enter the real start and end times, such as 22:00 and 06:00. When the end is at or before the start, the calculator assumes the shift finishes the next day and adds 24 hours before working out the total.

Why is 8 hours 30 minutes shown as 8.50?

Decimal hours write minutes as a fraction of an hour, and 30 minutes is half an hour, so 8:30 becomes 8.50. Payroll systems multiply decimal hours by the hourly rate, so this is the figure to use for pay.

Can I use it for more than one shift?

This page handles one start and end time. For a week of shifts, use the timesheet calculator, which takes one line per day, totals the hours and works out overtime above a threshold you choose.

See also: all Durations tools, Calendars, Countdowns, Work and Contracts, Date Formats, Time Zones and Travel, Sun and Daylight.

Related tools