Hours Calculator

Calculate hours and minutes between two times, across midnight if needed, minus break time — ideal for timesheets, shift lengths and payroll.

How the hours are counted

The calculator takes the clock time from start to end, subtracts your break, and reports the result three ways: hours and minutes (for people), decimal hours (for timesheets and payroll) and total minutes. If the end time is at or before the start time, the shift is assumed to cross midnight and 24 hours are added automatically — 22:00 to 06:00 is 8 hours, no checkbox needed. Tick "overnight shift" only when the end time is on the next day but later on the clock, e.g. 09:00 today to 17:00 tomorrow (32 hours).

Worked example

Shift from 08:30 to 17:15 with a 45-minute lunch: the raw span is 8 hours 45 minutes (525 minutes); minus the 45-minute break leaves 8 hours 0 minutes worked — exactly 8.00 decimal hours, or 480 minutes. Repeated five days a week, that is a 40-hour week.

Decimal hours for payroll

Timesheets record time as decimal hours because pay is hourly-rate × hours. Minutes convert by dividing by 60: 15 minutes = 0.25, 20 minutes = 0.33, 45 minutes = 0.75. So a 7 hour 50 minute shift is 7.83 decimal hours, and at $18/hour it pays 7.83 × 18 = $140.94. The calculator rounds decimal hours to two places, the usual payroll precision.

Common uses

Frequently asked questions

How do overnight shifts work?
If the end time is at or before the start time (say 22:00 to 06:00), the calculator assumes the shift crosses midnight and adds 24 hours automatically. You can also tick "overnight shift" explicitly — useful when a shift ends the next day at a later clock time, like 09:00 to 17:00 the following day.
How are breaks handled?
Break minutes are subtracted from the raw start-to-end duration, giving the paid or worked time. A 9:00–17:30 day with a 30-minute lunch is 8 hours worked. The break must be shorter than the shift itself.
What are decimal hours and why do timesheets use them?
Decimal hours express minutes as a fraction of an hour: 7 hours 45 minutes is 7.75 hours. Payroll systems multiply decimal hours by the hourly rate, so 7:45 at $20/h is 7.75 × 20 = $155.
How do I convert minutes to decimal hours myself?
Divide the minutes by 60: 20 minutes is 0.33 hours, 45 minutes is 0.75 hours. So 8h 20m becomes 8.33 in a timesheet.
Can I calculate my weekly hours?
The result includes a ×5 projection — one shift repeated over a five-day week. For weeks with varying shifts, calculate each day and add the decimal hours together.