Hours Calculator

Work out a shift length from clock-in to clock-out

  • 100% Free
  • Files stay private
  • Works in your browser
Try it now·Hours Calculator
optional · minutes deducted

Enter a start and end time to get the duration in hours and minutes, as decimal hours and in total minutes. Enable “crosses midnight” for overnight shifts.

How it works

  1. Set start and end times

    Fill in Start time and End time, and add an optional Break in minutes to deduct.

  2. Calculate the shift

    For an overnight shift, switch on End time is on the next day (crosses midnight), then press Calculate.

  3. Read and copy the duration

    See the Total duration plus Hours : minutes, Decimal hours and Total minutes. Press Copy to copy the total as hours and minutes.

Work out the duration between a start and end time in hours and minutes, as decimal hours and in total minutes. Handles overnight shifts and unpaid breaks.

What is Hours Calculator?

The Hours Calculator measures how much time elapses between two clock times. It returns the span in hours and minutes, as a decimal number of hours, and as a total in minutes, and it can deduct an unpaid break. Because it also supports durations that cross midnight, it is well suited to timesheets, shift work and any task where you need an accurate elapsed-time figure.

Who Benefits from This Tool

  • Hourly workers: total a shift and see the decimal hours needed for payroll.
  • Managers and schedulers: check shift lengths including overnight coverage.
  • Freelancers: convert worked time into decimal hours for invoicing.
  • Students and tutors: add up study or session time accurately.
  • Anyone tracking time: measure the gap between two times without mental math.

Key Features

  • Multiple formats: results in hours and minutes, decimal hours, and total minutes.
  • Overnight support: a toggle handles shifts that cross midnight.
  • Unpaid break deduction: subtract a number of break minutes from the total.
  • Clear validation: catches end-before-start times and breaks longer than the span.
  • Copy the duration: copy the hours-and-minutes result in one click.
  • Quick sample: load a typical 9-to-5 example with a 30-minute break.
  • Runs client-side: all calculations stay in your browser.

How to Use

  1. Enter a Start time and an End time.
  2. Optionally enter a Break in minutes to deduct from the total.
  3. Turn on crosses midnight if the end time is on the next day.
  4. Click Calculate to see the duration in every format.
  5. Use Copy, Try a sample, or Reset as needed.

Common Use Cases

  • Totalling a workday to enter decimal hours on a timesheet.
  • Calculating an overnight shift that starts in the evening and ends the next morning.
  • Deducting a lunch break to find net paid hours.
  • Converting a session length into minutes for scheduling.
  • Checking how long an activity or appointment actually ran.

Tips and Best Practices

  • Use decimal hours for payroll and invoicing, since most rate calculations expect that format.
  • For a shift ending after midnight, enable the crosses-midnight toggle rather than guessing the span.
  • Enter the break as whole minutes; it is deducted from the gross time between the two times.
  • If the tool reports the end is before the start, check whether the shift actually crosses midnight.
  • Copy the hours-and-minutes result to paste directly into notes or timesheets.

Limitations and Notes

This calculator works with clock times rather than full dates, so a span can cover at most a single crossing of midnight when the overnight toggle is on. It assumes a single continuous period with one optional break, and it does not apply overtime rules, rounding policies or pay rates. All processing happens in your browser, so the times you enter are never uploaded or stored.

FAQs

Enter the start and end clock times, then turn on the crosses-midnight toggle. The tool adds a full day so the duration comes out positive and correct.

Decimal hours express minutes as a fraction of an hour. For example, 8 hours 30 minutes becomes 8.5. This format is commonly used for payroll and billing.

The break is entered in minutes and subtracted from the gross time between the start and end times, giving you the net duration.

If the end time is earlier than the start time and the overnight toggle is off, the span would be negative. Enable crosses-midnight to fix it.

No. It measures elapsed time only. You can multiply the decimal hours by your own rate afterward.

Yes. All calculations run locally in your browser, so nothing you enter is sent anywhere.

More Online Calculators

Other tools in Online Calculators.

All Online Calculators