Skip to content
MixTool

Time duration calculator

Work out the hours between two times — overnight shifts included — or total up a timesheet in hours and minutes.

  • Runs entirely in your browser
  • Free · no sign-up
  • Works on phone and desktop
Loading tool…

Hours and minutes, sorted

Enter a start and end time and optionally a break to get the time worked in hours and minutes, plus decimal hours (7 h 45 min = 7.75 h) for payroll and invoices. If the end time is earlier than the start, the shift is treated as running past midnight.

Switch to Add up hours to total several durations — a week of shifts, study sessions or billable tasks — with an average per entry.

How to calculate hours between two times

  1. 1

    Enter start and end times

    Use the time pickers.

  2. 2

    Add a break

    In minutes, if you want it subtracted.

  3. 3

    Read the duration

    Hours and minutes plus decimal hours.

Key features

  • Overnight shifts

    Handles times past midnight.

  • Break deduction

    Unpaid breaks subtracted automatically.

  • Decimal hours

    Ready for payroll.

  • Timesheet totals

    Add any number of entries.

Common uses

  • Shift workers: Hours worked per shift.
  • Freelancers: Billable hours for invoices.
  • Students: Track study time.

Tips and good to know

  • To convert decimal hours back, multiply the decimal part by 60: 7.75 h = 7 h 45 min.
  • For hourly pay, multiply decimal hours by your rate or use the Salary Calculator.

Frequently asked questions

How do I calculate hours worked?

Subtract the start time from the end time and deduct any unpaid break. 9:30 to 18:15 with a 45-minute break is 8 hours.

How are overnight shifts handled?

If the end time is earlier than the start, 24 hours are added, so 22:00 to 06:00 is 8 hours.

What are decimal hours?

Hours written as a decimal number: minutes ÷ 60. 30 minutes = 0.5 h, 45 minutes = 0.75 h.

Helpful guides