Hours Calculator: How to Add Up Work Hours and Time Between Clock-Ins

Everyday June 28, 2026

Add up work hours between clock-in and clock-out, subtract breaks, handle overnight shifts, and convert to decimal hours for pay.

What an Hours Calculator Does

Working out how many hours fall between two times sounds simple until you actually try it — and discover that time runs in base 60, not base 10, that shifts cross midnight, and that payroll wants the answer in decimal hours rather than hours and minutes. An hours calculator handles all of that, taking a start time and an end time and returning the total worked, ready for a timesheet or a paycheck.

The everyday value is obvious for anyone who tracks time. Employees verifying their hours, managers totaling a timesheet, freelancers billing clients, and shift workers spanning midnight all need an accurate total — and small errors add up to real money over a pay period. An hours calculator removes the awkward minute-to-decimal conversion and the midnight wraparound that trip up manual calculations, giving a precise figure every time.

This guide explains how to calculate hours between two times, why decimal conversion matters for pay, how to handle breaks and overnight shifts, and the common mistakes the calculator helps you avoid.

Calculating Hours Between Two Times

At its core, finding hours worked means subtracting the start time from the end time. The complication is that time is measured in hours and minutes, where 60 minutes make an hour, so you cannot simply subtract the numbers as if they were decimals.

The reliable method is to handle hours and minutes separately, borrowing when needed. If the end minutes are smaller than the start minutes, you borrow an hour (60 minutes) to subtract cleanly.

Example: A shift from 9:15 AM to 5:00 PM.

A calculator does this borrowing automatically, which is exactly where manual timesheet math tends to go wrong, especially across many entries.

Converting to Decimal Hours

Here is the step that confuses people most: payroll systems and billing usually need time in decimal hours, not hours and minutes. Forty-five minutes is not 0.45 of an hour — it is 0.75, because 45 minutes is three-quarters of 60.

To convert minutes to decimal, divide the minutes by 60.

Decimal hours = Hours + (Minutes ÷ 60)

Example: The 7 hours 45 minutes above:

This matters enormously for pay. At an hourly rate, you multiply the decimal hours by the rate, so using 7.45 instead of 7.75 would shortchange the worker. An hours calculator outputs the decimal figure directly, eliminating the most common and costly timesheet error. Once you have decimal hours, calculating gross pay is straightforward, and a take-home paycheck calculator then shows what remains after deductions.

Subtracting Breaks and Lunch

Most shifts include unpaid breaks, which must be subtracted to find actual paid hours. The approach is to calculate the gross time between clock-in and clock-out, then subtract the break time.

Example: Clocked in 9:00 AM, out 5:30 PM, with a 30-minute unpaid lunch.

Handling breaks correctly is essential for accurate pay, and it is easy to forget or miscount them across a week. A good hours calculator lets you enter break time so it is deducted automatically rather than left to a separate, error-prone subtraction.

Handling Overnight Shifts

Shifts that cross midnight are the classic trap. If someone clocks in at 10:00 PM and out at 6:00 AM, naive subtraction (6 − 22) gives a negative number, which is obviously wrong. The fix is to recognize that the end time is on the next day.

The method is to add 24 hours to the end time before subtracting:

An hours calculator detects when the end time is earlier than the start time and assumes the shift crossed midnight, applying this correction for you. This single feature saves overnight and shift workers from a recurring headache, since the manual version is so easy to get wrong.

12-Hour vs. 24-Hour Time

Time can be written in 12-hour format with AM/PM, or 24-hour format (also called military time). Both describe the same moments, but mixing them causes errors — confusing 12:00 PM (noon) with 12:00 AM (midnight) is a notorious one.

12-Hour24-Hour
12:00 AM (midnight)00:00
9:15 AM09:15
12:00 PM (noon)12:00
5:30 PM17:30
11:45 PM23:45

Converting to 24-hour format before calculating removes the AM/PM ambiguity, which is why many hours calculators work internally in 24-hour time. When entering times, double-check noon and midnight in particular, since they are the two values people most often mislabel.

Overtime and Pay Periods

In the United States, hours worked beyond a standard threshold — commonly more than 40 in a workweek — are often paid at an overtime rate. An hours calculator helps by giving you accurate weekly totals, which is the basis for identifying overtime in the first place.

To turn hours into pay, you multiply the decimal hours by the hourly rate, applying any overtime premium to the qualifying hours. Across a pay period, accuracy compounds: a few minutes miscounted each day becomes a meaningful sum over weeks. This is why precise hour totals matter not just for fairness but for compliance, and why a reliable calculation is worth the small effort. A salary calculator helps translate between hourly and annual figures when you need the bigger picture.

Common Time-Tracking Mistakes

A few errors recur in hour calculations. The biggest is the decimal conversion mistake — treating 30 minutes as 0.30 instead of 0.50 — which directly affects pay. The second is mishandling overnight shifts, producing negative or wildly wrong totals. The third is forgetting to subtract breaks, overstating paid hours. The fourth is AM/PM confusion, especially around noon and midnight.

An hours calculator eliminates all four by converting, wrapping around midnight, deducting breaks, and working in unambiguous time. Understanding the mistakes, though, makes you a better checker of your own timesheet — and able to spot when a total looks off before it reaches payroll.

Rounding Time and Billing Increments

Beyond the raw calculation, two practical conventions affect how hours are recorded. The first is timesheet rounding. Some employers round clock times to a set increment — often the nearest quarter-hour (15 minutes) — rather than recording exact minutes. Under common rounding practice, times are rounded to the nearest increment in a way that should average out fairly over time, neither systematically favoring the employer nor the employee. Knowing whether and how your hours are rounded helps you understand any small differences between your own tally and the official one.

The second convention is billing increments, which matter for freelancers and professionals who bill by time. Many bill in fractions of an hour — quarter-hours or tenths of an hour are common — rather than to the exact minute. A tenth of an hour is six minutes, so a task taking 20 minutes might be billed as 0.3 or 0.4 hours depending on the rounding rule. Deciding your increment in advance and applying it consistently keeps invoices clear and fair.

In both cases, the underlying decimal-hour figure from an hours calculator is the starting point, with the rounding applied on top. The key is consistency: a rounding rule applied the same way every time is transparent and defensible, whereas ad hoc rounding invites disputes. When time translates directly into pay or invoices, a clear, consistent method matters as much as the calculation itself.

How to Use an Hours Calculator Effectively

Enter the start and end times carefully, being precise about AM and PM (or use 24-hour format to avoid ambiguity). Add any unpaid break time so it is deducted, and let the tool handle overnight shifts by simply entering the actual clock-out time even if it is the next morning. Read the result in decimal hours when calculating pay, and in hours-and-minutes when you just need the duration.

A practical habit is to total each day as you go and keep a running weekly figure, so overtime is easy to spot and the pay period reconciles cleanly. Accurate time tracking is one of those small disciplines that quietly prevents disputes and lost earnings.

Key Takeaways

Frequently Asked Questions

How do I calculate hours worked between two times? Subtract the start time from the end time, handling hours and minutes separately. For 9:15 AM to 5:00 PM, that's 7 hours 45 minutes. An hours calculator does it instantly.

How do I convert minutes to decimal hours? Divide the minutes by 60. So 45 minutes is 0.75 hours and 30 minutes is 0.50 hours. This decimal figure is what payroll uses to calculate pay.

How do I calculate hours for an overnight shift? Add 24 hours to the end time before subtracting. A shift from 10 PM to 6 AM is 8 hours (30:00 − 22:00). A calculator detects this automatically.

Do I subtract lunch breaks? Yes, if they are unpaid. Calculate the total time between clock-in and clock-out, then subtract the break to find paid hours.

Why is 30 minutes 0.5 and not 0.3 in decimal? Because there are 60 minutes in an hour, so 30 minutes is half an hour. Dividing 30 by 60 gives 0.5. Using 0.3 would undercount the time and the pay.

Does my employer round my hours? Some do, often to the nearest quarter-hour. Fair rounding should average out over time rather than consistently favoring one side. Knowing your employer's rounding rule explains any small differences between your own total and the official one.

Conclusion

An hours calculator turns the deceptively tricky math of time into a clean, accurate total ready for any timesheet or paycheck. By understanding how to subtract times correctly, convert minutes to decimal hours, handle breaks and overnight shifts, and avoid the AM/PM trap, you can track work time with confidence and make sure every minute is counted. Time is money in the most literal sense here — and getting the hours right is the first step to getting paid right.

Try the hours calculator and explore the related time and pay tools for the rest of your tracking.

Suggested Internal Links

Suggested Image Ideas

Optional Schema Recommendations

Disclaimer: This article is for general informational purposes. Overtime rules and pay calculations vary by jurisdiction and employer. Confirm the rules that apply to your situation.

Have a question, a correction, or a calculator request? Contact our editorial team — we usually reply within a day.