Skip to content
CalcTide logo
Time & Date

Hours Calculator

An hours calculator helps you find the exact time difference between a start time and end time without counting by hand. This hours calculator works for regular daytime schedules, short appointments, split errands, and overnight shifts that pass midnight. Enter a start time, an end time, and optional break minutes to get the total in minutes, a decimal-hour figure, and a simple hours-and-minutes result you can read at a glance. It is useful when you need to calculate hours between two times for a work shift, lunch break, volunteer block, travel leg, study session, or any schedule where small timing mistakes can add up.

Time & DateBy

Quick answer

The calculator first converts each clock time into minutes after midnight, which makes the subtraction consistent.

What this tells you

  • •The calculator first converts each clock time into minutes after midnight, which makes the subtraction consistent.
  • •If the end time is earlier than the start time, the tool treats the range as crossing midnight instead of marking it invalid.
  • •Break minutes are subtracted after the raw duration is found, so the result shows net time rather than total on-the-clock time.
  • •Results appear in both readable form, such as 7h 45m, and decimal form, such as 7.75 hours, because different records use different formats.
  • •If break minutes are longer than the time span entered, the calculator floors the net result at 0 instead of returning a negative number.

How to Use

  1. 1Enter the start time in 24-hour HH:MM format. For example, type 08:30 for 8:30 AM or 17:45 for 5:45 PM.
  2. 2Enter the end time in the same HH:MM format. If the shift or event ends after midnight, still enter the actual clock time, such as 06:00.
  3. 3Add break minutes if part of the period should not count toward the final total. Leave the field at 0 when no break needs to be removed.
  4. 4Run the calculation to see the total minutes, total decimal hours, and a readable result in hours and minutes.
  5. 5Use the readable result when you want a quick schedule check, and use the decimal result when you need payroll, billing, or spreadsheet-friendly hours.

How It Works

Formula

Convert start time to minutes after midnight Convert end time to minutes after midnight Raw duration = end minutes - start minutes If raw duration is negative, add 1440 minutes Net duration = max(0, raw duration - break minutes) Total hours = net duration / 60

The method in this hours calculator matches the formula code exactly. Each time is turned into a minute count from midnight, so 09:00 becomes 540 and 17:30 becomes 1050. Subtracting start from end gives the raw duration. When that subtraction is negative, the tool adds 1,440 minutes, which is one full day, to represent an overnight span. After that, break minutes are removed from the raw duration. If the break is longer than the span entered, the calculator returns zero instead of a negative result. The final answer is shown as total minutes, decimal hours rounded to two decimal places, and a readable hours-and-minutes format.

Calculation note: values are processed in the order shown above, using the current input units.

Worked Examples

Standard day shift with lunch

Start time09:00
End time17:30
Break30 min
Result8h 0m

From 09:00 to 17:30 is 8 hours and 30 minutes, or 510 minutes. Subtract the 30-minute break and the net time becomes 480 minutes. That equals exactly 8h 0m, which is also 8.00 decimal hours.

Overnight shift

Start time22:00
End time06:00
Break0 min
Result8h 0m

The end time is earlier on the clock than the start time, so the calculator treats the shift as crossing midnight. From 22:00 to midnight is 2 hours, and from midnight to 06:00 is 6 more hours. The total is 480 minutes, which equals 8h 0m.

Workday with a longer break

Start time08:15
End time16:45
Break45 min
Result7h 45m

The raw span from 08:15 to 16:45 is 8 hours and 30 minutes, or 510 minutes. After subtracting a 45-minute break, 465 minutes remain. That converts to 7h 45m, which the tool also shows as 7.75 hours in decimal form.

Split shift entered as one span with the gap as the break

Start time06:30
End time18:30
Break210 min
Result8h 30m

Ray drives a school bus from 06:30 to 10:30, goes home, and drives again from 14:00 to 18:30. Instead of running two calculations, he enters the first start, the last end, and the 3 hour 30 minute midday gap as 210 break minutes. The raw span is 720 minutes, the break brings it down to 510 minutes, and the result reads 8h 30m, or 8.5 decimal hours. Spans Midnight shows No because 18:30 is later on the clock than 06:30.

Late-night task that crosses midnight

Start time23:45
End time01:15
Break10 min
Result1h 20m

The raw time from 23:45 to 01:15 is 90 minutes because the period continues into the next day. Subtract the 10-minute break and 80 minutes remain. That equals 1h 20m, and the decimal display rounds to 1.33 hours.

Break longer than the time span

Start time10:00
End time10:20
Break30 min
Result0h 0m

The raw duration is only 20 minutes. Since the break entered is 30 minutes, the net duration would otherwise fall below zero. The calculator prevents negative time and returns 0h 0m instead.

Standard work hours per period

How common weekly schedules translate into daily, monthly, and annual hours, with the federal 2,087-hour year next to the 2,080-hour private-sector convention.

Weekly hoursPer day (5-day week)Per month (x 52 / 12)Per year (x 52)
20486.671,040
306130.001,560
357151.671,820
37.57.5162.501,950
408173.332,080
459195.002,340
5010216.672,600
40 (federal 2,087-hour year)8.03173.922,087

Computed as weekly hours divided by 5 for the day, multiplied by 52 for the year, and that annual figure divided by 12 for the month. The 2,087-hour row is the federal pay conversion factor set by 5 U.S.C. 5504(b) and applied by the U.S. Office of Personnel Management, which averages the leap-year cycle instead of assuming exactly 52 weeks. Private payroll usually uses 2,080.

Decimal hours, overnight spans, and what this calculator does not decide

Use the readable format when you want to check a schedule quickly. A result like 6h 40m is easier to read than 6.67 when you are planning a day, confirming a shift handoff, or checking whether an appointment block fits before another task.

Use decimal hours when the number goes into payroll software, billing logs, spreadsheets, or project reports. Many systems expect values like 7.50 or 2.25 instead of a mixed hours-and-minutes format, and the calculator gives both so you never need a second conversion step. Do not treat minutes as hundredths of an hour: 7h 30m is 7.50 hours, not 7.30, and 7h 45m is 7.75 hours because 45 minutes is three quarters of an hour.

Overnight spans follow one hard rule here. When the end time is earlier on the clock than the start time, the tool adds 1,440 minutes and assumes the end falls on the next day. It cannot represent a span longer than 24 hours, so a 30-hour on-call stretch needs two calculations or the time calculator linked below.

Break minutes come straight off the total, and the tool does not judge whether a break should be paid. Under the federal regulations, a bona fide meal period of 30 minutes or more during which the employee is completely relieved from duty is not work time (29 CFR 785.19), while short rest breaks of 5 to about 20 minutes count as hours worked (29 CFR 785.18). Enter only the unpaid time in the break field. Employers may also round punches to the nearest quarter hour if the practice does not shortchange employees over time (29 CFR 785.48(b)), which is why a timesheet total can differ from the exact figure shown here by a few minutes.

The result is a duration, not a pay calculation. Federal overtime under the Fair Labor Standards Act starts after 40 hours in a workweek (29 CFR 778.101), and the workweek itself is any fixed and regularly recurring 168-hour period that can begin on any day and at any hour (29 CFR 778.105). Some states add daily overtime as well, such as California, where Labor Code section 510 applies time and a half after 8 hours in a workday and double time after 12. Add up the week from the daily results and apply those thresholds separately.

Try the Time Calculator

Common mistakes

  • Typing times in an invalid format such as 9, 9.00, or 24:15 instead of a valid HH:MM entry.
  • Forgetting to remove unpaid break minutes, which makes the final hours look too high.
  • Reading a decimal answer like 7.50 as 7 hours and 50 minutes when it actually means 7 hours and 30 minutes.
  • Assuming an end time earlier than the start time is an error when it may simply mean the shift crossed midnight.
  • Entering rounded times from memory instead of the exact clock-in and clock-out values, which can create avoidable small errors.

Embed this calculator on your site

Paste this code where you want the calculator to appear. It is responsive, mobile-friendly, resizes automatically, and is free to use as long as the credit line stays in place.

<script src="https://calctide.com/embed.js" data-tool="hours-calculator" async></script> <p style="font-size:12px;margin:4px 0 0">Hours Calculator by <a href="https://calctide.com/time-date/hours-calculator/">CalcTide</a></p>

Preview the embed at /embed/hours-calculator/.

Frequently Asked Questions

Enter the start time, end time, and any break minutes, and the calculator returns the net duration right away. It shows the answer in minutes, decimal hours, and a readable hours-and-minutes format so you can use the version that fits your record.
Yes, it supports overnight shifts automatically. If the end time is earlier than the start time, the calculator assumes the time period crossed midnight and adds one full day before subtracting breaks.
Yes, you can subtract break time by entering the number of break minutes. The tool removes that amount after it finds the raw duration, which helps you estimate net hours worked instead of total elapsed time.
From 9:00 AM to 5:00 PM is 8 hours. If you also subtract a 30-minute unpaid lunch, the net result becomes 7h 30m, which is 7.50 decimal hours.
From 8:00 AM to 4:30 PM is 8 hours and 30 minutes before any break deduction. If you remove a 30-minute lunch, the net working time becomes 8h 0m.
It shows both because different tasks use different formats. Decimal hours are easier for payroll sheets and invoices, while hours plus minutes are usually easier for schedule checks and day-to-day planning.
The calculator returns zero in that case. It does not allow negative net time, so any break that exceeds the raw duration reduces the final result to 0h 0m.
No, it does not account for daylight saving changes or time-zone differences. It treats both entries as simple clock times in the same place, so use a more advanced method if your timing crosses a DST change or involves multiple zones.
It estimates hours calculator outputs using the visible inputs and formula assumptions on this page.

Explore More in Time & Date