Skip to main content

Hours Calculator – Time Duration Between Two Times

Calculate hours and minutes between a start and end time online for free. Deduct breaks, handle overnight shifts, and get decimal hours for timesheets and payroll.

Written & reviewed by Helperzy Editorial Team · Updated July 2026

Hours & minutesBreak deductionOvernight shiftsDecimal hoursFree

Total Duration

8h 30m

8.50 decimal hours

Total Minutes

510

Decimal Hours

8.50

100% Private

All calculations run locally in your browser. Nothing is uploaded.

How to Use Hours Calculator

1

Enter Start and End Times

Set the start time and end time using the time pickers. If the end is earlier than the start, the calculator assumes the shift ran overnight and adds a day. Double-check that an overnight result is what you intended.

2

Add Any Break

Optionally enter unpaid break time in minutes, such as 30 for a lunch, and it is subtracted from the total. Enter breaks as a number of minutes rather than a clock time. Leave it at zero if there is no break to deduct.

3

Read the Total

See the duration three ways: hours and minutes, total minutes, and decimal hours. Use decimal hours for payroll and invoices since they multiply cleanly by a rate. The result updates instantly whenever you change an input.

Work Out the Hours Between Two Times, Break Included

The Helperzy Hours Calculator measures how much time passes between a start time and an end time, then reports it as hours and minutes, as a total number of minutes, and as decimal hours. It is built for the everyday task of totalling worked time: timesheets, payroll, freelance billing, and any moment you need to know exactly how long a shift or activity ran. Enter a start and an end, optionally take off a break, and the answer appears without you doing any arithmetic on paper. The tool is especially handy when a shift straddles midnight, because mental subtraction across the 12-hour mark is where most arithmetic errors happen. The method is straightforward but handles the awkward cases for you. In words, the duration equals the end time minus the start time, minus any break; and if the end time is earlier than the start, the tool adds twenty-four hours to cover a shift that crosses midnight. So a period from 22:00 to 06:00 is treated as eight hours rather than a nonsensical negative eight. Break time is entered in minutes and subtracted from the gross span. Finally the result is converted to decimal hours by taking the leftover minutes and dividing by sixty, since 30 minutes is half an hour, or 0.50. The formula in full: decimal hours = whole hours + (remaining minutes ÷ 60), and the gross span uses the 24-hour correction whenever end is less than start. Here is a worked example. Say you clock in at 09:00 and clock out at 17:30, with an unpaid 30-minute lunch. The raw span from 09:00 to 17:30 is eight and a half hours, which is 510 minutes. Subtract the 30-minute break and you are left with 480 minutes, or eight hours exactly, which the tool shows as 8h 00m, 480 minutes, and 8.00 decimal hours. Now picture a night shift from 22:00 to 06:00 with a 45-minute break: the calculator sees 06:00 is less than 22:00, adds 24 hours to get a raw span of 8 hours, removes 45 minutes, and returns 7h 15m, or 7.25 decimal hours. A third case: 07:45 to 16:15 with a 60-minute lunch gives 8.5 gross hours minus 1 hour = 7h 30m, displayed as 7.50 in decimal. The three output formats each earn their place. Hours and minutes is the natural way to read a shift, total minutes is handy when you are summing many short tasks, and decimal hours is what payroll and invoicing systems expect because it multiplies cleanly by an hourly rate. A freelancer billing 7.25 hours at a 50-dollar rate drops that figure into the invoice as 362.50 without further maths. A manager checking a weekly timesheet can add several decimal totals with a simple sum. Hospitality staff who juggle split shifts — say a morning and an evening turn — run the calculator twice and add both decimals for the day total. A couple of pitfalls are worth flagging. The overnight rule assumes any end time earlier than the start belongs to the next day, so double-check that you really meant an overnight shift and not a typo — entering 17:00 to 09:00 by accident would report 16 hours rather than the 8 you intended. Remember to enter breaks as minutes, not as a clock time, and only deduct unpaid breaks; a paid 15-minute tea break does not reduce your billable hours. Some payroll systems round to the nearest quarter-hour, so a raw 7.42 might become 7.50 on your official timesheet. These figures are a calculation aid, not a substitute for your employer's official payroll rules on rounding or overtime. Everything runs locally in your browser, nothing is uploaded, and the mobile-first layout makes it easy to log hours from your phone at the end of a shift.

Hours Calculator Formula & Method

Hours = (End − Start) − Break; if End < Start add 24h; decimal hours = whole hours + minutes ÷ 60

Examples: Hours Calculator

Input

09:00 to 17:30, 30-min break

Result

8h 00m (8.00 hours)

8.5h span − 0.5h break = 8.00 decimal hours.

Input

22:00 to 06:00, 45-min break

Result

7h 15m (7.25 hours)

Overnight adds 24h → 8h gross − 0.75h = 7.25 hours.

Frequently Asked Questions – Hours Calculator

Enter your start time and end time, and the calculator instantly shows the total in hours and minutes plus decimal hours. You can also enter a break in minutes to deduct unpaid time, so the total reflects only the hours actually worked.