Hours Calculator
Enter a start time and an end time — get the span in h/m and decimal hours. If the end is earlier than the start, it's treated as past midnight automatically.
Duration
–
Copied!How to use
- Pick the start time and end time.
- Press Calculate hours — duration in h/m and decimal format appears. End before start = past midnight (auto +24h).
The formula
Duration = End − Start (mod 24 hours)
23:00 → 06:30 is 7.5 hours, not negative — the calculator wraps around midnight. Decimal hours (7.50) are what timesheets and invoicing use.
Frequently asked questions
How many hours between 8am and 5pm?
9 hours (8:00 → 17:00). Subtract any unpaid break separately — see our time card calculator.
How do I calculate overnight hours?
If the end time is smaller than the start time, add 24 hours to the end. The calculator does this automatically.
What are decimal hours?
Minutes as a fraction of an hour: 15m = 0.25, 30m = 0.50, 45m = 0.75. Payroll multiplies rate × decimal hours.