Hours Calculator

Calculate hours worked between two times, with breaks and overtime.

24-hour or AM/PM.
24-hour or AM/PM.
Hours per day beyond which time counts as overtime. Set 0 to disable.
Total hours
Regular hours
Overtime hours
Total minutes

Results update as you type.

About this calculator

An hours calculator turns a start and end time into total hours worked, subtracting any unpaid break and splitting the result into regular and overtime hours once you pass a daily threshold. Enter times in 24-hour HH:MM or with AM/PM; an end time before the start is treated as an overnight shift. It also reports the paid time as total minutes.

It first measures the gap between clock-in and clock-out (rolling past midnight if needed), then subtracts the unpaid break in minutes to give the paid hours. If you set a daily overtime threshold, any paid time above it is peeled off into an overtime bucket while the rest stays as regular hours; set the threshold to 0 to treat everything as regular. The final figures come out in decimal hours so they drop straight into a pay calculation.

For example, a shift from 9:00 am to 6:00 pm with a 30-minute unpaid break is 8.5 paid hours; with the overtime threshold at 8 hours that splits into 8 regular plus 0.5 overtime. An overnight shift from 22:00 to 06:30 with a 30-minute break comes to 8.0 paid hours. Use it to add up a day’s hours worked, check a paycheck, or size overtime before it is billed.

Frequently asked questions

How is the break handled?

The unpaid break in minutes is subtracted from the worked span before the hours are reported. A 09:00–17:30 shift with a 30-minute break is 8.0 paid hours.

How are overtime hours split out?

Any hours above the daily overtime threshold are moved from regular to overtime. With an 8-hour threshold, a 9.5-hour day is 8 regular plus 1.5 overtime. Set the threshold to 0 to count everything as regular.

How do I calculate hours worked between two times?

Enter your clock-in and clock-out times, set the unpaid break, and the tool returns the paid hours as a decimal — for example 9:00 to 17:30 with a 30-minute break is 8.0 hours.

Does it handle overnight or graveyard shifts?

Yes. When the end time is earlier than the start, it adds 24 hours, so a 22:00 to 06:00 shift is counted as 8 hours rather than a negative span.

Can I get pay as well as hours?

This tool focuses on the hours. To multiply hours by an hourly rate and see gross pay for one or more shifts, use the time card calculator.

Is the break paid or unpaid?

The break you enter is treated as unpaid and subtracted from the worked time. If your break is paid, leave the break field at 0.

❤️ Love Calculator.Free? Share it

𝕏  X Facebook Reddit
API — use this calculator from code

Call this calculator as a free JSON endpoint — no key required. Send the field values below as query parameters or JSON. Read the full API docs →

Endpoint

GET https://calculator.free/api/v1/hours-calculator/

curl

curl "https://calculator.free/api/v1/hours-calculator/?start=09:00&end=17:30"

JavaScript fetch()

const r = await fetch(
  "https://calculator.free/api/v1/hours-calculator/?" + new URLSearchParams({
    "start": "09:00",
    "end": "17:30"
  }));
const data = await r.json();
console.log(data.results);

Results are estimates for general guidance only, not financial, medical or tax advice.