Hours Calculator

Free, instant, deterministic hours calculator to compute exact elapsed time, net working duration, and decimal hours for payroll or scheduling.

Start Time
End Time

Calculation Summary

Inputs have changed since this calculation. Click "Calculate Hours" to update results.
Net Working Time
--
= -- hours
Decimal Hours
--
For payroll entry
Total Elapsed Time
--
Gross duration
Total Working Minutes
--
Exact minute total

Note: Results are deterministic calculations for timekeeping and estimation. Employer-specific rounding policies (such as the 7-minute rule or 15-minute intervals) may apply.

How to Calculate Hours Between Two Times

Calculating elapsed hours involves finding the absolute difference between your starting time and finishing time. When using a 12-hour clock, times must first be normalized to a 24-hour scale (for example, 1:00 PM becomes 13:00). Then, simply subtract the start minutes from the end minutes.

Handling Overnight Shifts That Cross Midnight

If your end time is numerically lower than your start time (such as starting at 9:00 PM / 21:00 and finishing at 5:00 AM / 05:00), the calculation crosses midnight. The standard mathematical formula is: Total Minutes = (1440 - Start Minutes) + End Minutes.

Total Minutes = (1440 - Start) + End
Converting Hours & Minutes to Decimal Hours

Most modern payroll and billing systems require time entries in decimal format rather than sexagesimal (base-60) minutes. Divide the minutes portion by 60 and add to whole hours.

Decimal Hours = Hours + (Minutes ÷ 60)

Real-World Calculation Scenarios

Standard Day Shift: Start at 8:30 AM, finish at 5:00 PM with a 30-minute unpaid lunch break.
Gross: 8h 30m (510 min) – Break: 30m = Net: 8h 00m (8.00 decimal hours)
Overnight Hospital Shift: Start at 7:00 PM, finish at 7:30 AM next day with two 15-minute breaks (30 min total).
Gross: 12h 30m (750 min) – Break: 30m = Net: 12h 00m (12.00 decimal hours)
Weekly Overtime Example: A staff member works 44.5 hours in a workweek where overtime starts at 40.0 hours.
Regular: 40.0 hours (1.0x) + Overtime: 4.5 hours (1.5x)

Quick Minutes to Decimal Reference Chart

01 min
= 0.02 h
05 min
= 0.08 h
10 min
= 0.17 h
15 min
= 0.25 h
20 min
= 0.33 h
25 min
= 0.42 h
30 min
= 0.50 h
35 min
= 0.58 h
40 min
= 0.67 h
45 min
= 0.75 h
50 min
= 0.83 h
60 min
= 1.00 h

Frequently Asked Questions

Convert both start and end times to a 24-hour format and into total minutes since midnight. Subtract the start minutes from the end minutes. Finally, divide by 60 to obtain whole hours and remainder minutes.
When a shift begins on one evening and ends the next morning (for example, 10:00 PM to 6:00 AM), you calculate elapsed time by taking the time remaining until midnight (2 hours) plus the hours elapsed after midnight (6 hours), giving 8 hours total. Check "Overnight Shift" in our calculator to handle this automatically.
Yes! Click "+ Add Break" to enter any unpaid meal or rest intervals. You can add multiple breaks, and the calculator subtracts their sum from total elapsed time to present your exact Net Working Time.
To convert minutes into decimal hours, divide the minutes by 60. For example, 15 minutes is 15 ÷ 60 = 0.25 hours, 30 minutes is 30 ÷ 60 = 0.50 hours, and 45 minutes is 45 ÷ 60 = 0.75 hours. Therefore, 8 hours and 30 minutes equals 8.50 decimal hours.
Yes. The calculator uses pure deterministic integer minute math to prevent floating point discrepancies, making it ideal for checking timesheets, client invoices, and payroll submissions.
No. All calculations run strictly in your web browser. None of your entered times, shifts, break details, or notes are ever uploaded, recorded, or sent to a database.

Rate This Calculator

Was this calculator helpful and accurate? Select your star rating and share your thoughts to help us improve.

5 / 5.0 (4 verified community ratings)

Privacy Notice: Rating submissions are completely anonymous. No personally identifiable information or shift inputs are stored.