Skip to content

Hours Calculator

Calculate hours between two times or add hours to a time. Perfect for payroll timesheets.

Share this tool

The Math Behind It

The time duration in decimal hours is computed by subtracting the start time (converted to decimal hours) from the end time (converted to decimal hours).

HElapsed duration (in decimal hours)
T_2End time represented in decimal hours
T_1Start time represented in decimal hours

Manual Calculation Example

Let's calculate the duration from 9:30 AM to 5:15 PM.

Convert to 24-Hour Format
Represent both start and end times in 24-hour time.
9:30 AM = 09:30, 5:15 PM = 17:15
Convert to Decimal Hours
Divide minutes by 60 and add to hours.
09:30 = 9 + 30/60 = 9.5 hours; 17:15 = 17 + 15/60 = 17.25 hours
Subtract Times
Subtract start time from end time to find the duration.
17.25 - 9.5 = 7.75 hours
Convert to Hours and Minutes
Multiply the decimal portion by 60 to convert back to minutes.
7.75 hours = 7 hours and (0.75 × 60) = 7 hours and 45 minutes

How elapsed hours are calculated

In Time Between mode the tool converts each HH:MM entry to minutes after midnight and subtracts start from end. If the end is earlier than the start, it adds 24 hours to the end, treating it as the next day. Results are shown as hours and minutes, total minutes, and decimal hours (minutes ÷ 60, to two decimals). In Add Hours mode it adds your hours and minutes to the start time and shows the resulting clock time in 24-hour format, wrapping past midnight.

Equal start and end times return 0, not 24 hours, so a full 24-hour shift has to be entered as two parts. A span longer than 24 hours cannot be entered at once. Add Hours does not say how many days it wrapped: 21:00 plus 8 hours 30 minutes reads 05:30 with no next-day label.

Second worked example: an overnight shift with an unpaid meal

Inputs: start 22:45, end 07:15. Start = 22 × 60 + 45 = 1,365 minutes. Because 07:15 is earlier, the end becomes 7 × 60 + 15 + 1,440 = 1,875 minutes. Difference: 1,875 − 1,365 = 510 minutes, or 8 hours 30 minutes, or 8.50 decimal hours. The calculator shows 8 h 30 m, 510 minutes and 8.50 h.

There is no break box. If the worker took a 30-minute meal break fully relieved of duty, subtract it by hand: 8.50 − 0.50 = 8.00 hours. Two 15-minute rest breaks in the same shift stay in the total.

What counts as hours worked for US payroll

The US Department of Labor's Fact Sheet #22 on the Fair Labor Standards Act says rest periods of short duration, usually 20 minutes or less, must be counted as hours worked. Bona fide meal periods, typically 30 minutes or more, generally need not be paid, but only when the employee is completely relieved from duty for the purpose of eating. Canadian provinces set their own break rules, so check your provincial employment standards.

Clock changes are not detected. On the night clocks fall back, a shift from 23:00 to 07:00 lasts 9 real hours but reads 8 here; on the spring-forward night it lasts 7. Payroll for those nights should use the actual elapsed time.

Limits and edge cases

  • Breaks are not subtracted; remove unpaid meal periods yourself.
  • Equal start and end times give 0 hours, and one entry cannot exceed 24 hours.
  • Daylight saving changes are ignored.
  • Overtime, pay rates and rounding rules are not applied.
  • Add Hours shows the clock time only, with no count of days passed.

Disclaimer: Use this as a timesheet check, not a pay determination. Whether a break, a rounded punch or an overtime hour is paid depends on FLSA rules, provincial standards and your employment contract, so settle payroll questions from official time records.

Sources checked

Frequently Asked Questions

How do I calculate hours worked?
Enter your start time and end time. Our calculator will subtract the start from the end to give you the total duration in hours and minutes.
Does this handle overnight shifts?
Yes. If your end time is earlier than your start time (e.g., Start 10 PM, End 6 AM), the calculator assumes the shift ends the next day.
How do I convert minutes to decimal hours?
Divide the minutes by 60. For example, 30 minutes / 60 = 0.5 hours. Our calculator shows this decimal conversion automatically.
Does the calculator subtract lunch breaks?
No. It measures start to end. Subtract an unpaid meal break yourself: a 22:45 to 07:15 shift is 8.50 hours, or 8.00 hours after a 30-minute unpaid meal. Under DOL Fact Sheet #22, short rest breaks of about 20 minutes or less count as hours worked.
How do I calculate a 24-hour shift?
Entering the same start and end time returns 0, not 24. Split the shift into two entries, such as 08:00 to 20:00 and 20:00 to 08:00, and add the results.
What happens on a daylight saving time night?
The calculator does not detect clock changes. On the night clocks fall back, 23:00 to 07:00 is 9 real hours but shows 8; on the spring-forward night it is 7 real hours.

Managing Time Calculations

Whether you're filling out a timesheet or planning a road trip, accurate time calculations prevent errors. Time uses base-60 (not decimal), making mental math tricky.

🕒

Base-60 System

1.5 hours = 1 hour 30 minutes, not 1 hour 50 minutes!

🌙

Night Shifts

Crossing midnight (24:00) complicates math. Our tool handles this.

About the Hours Calculator

Calculate total hours worked from start and end times. Add up timesheet durations.

Results are estimates; verify regulated rates, eligibility rules, and professional decisions with the cited primary source.

Important: Educational Purposes OnlyThe calculators, estimates, and financial formulas provided on CalculatorVillage.com are for informational and educational purposes only. They are not intended as certified financial planning, tax, legal, or investment advice. Actual rates, terms, and returns will vary. Always consult with a qualified professional before making significant financial decisions.