Time & attendance

Time duration calculator

Free time duration calculator and elapsed time calculator for shift workers and payroll prep. Find hours and minutes between two times or dates — with break deductions, decimal hours, and overnight shift auto-detect. Three modes: same-day times, multi-day date ranges, and add/subtract time. Export CSV or PDF — no sign-up. For weekly FLSA timesheets, use the time card calculator.

How this time duration calculator works

  • Between times

  • Date & time

  • Add / subtract

  1. Pick a calculator mode

    Between times (same day), Date & time (multi-day), or Add / subtract time.

  2. Enter start and end (or base time + duration)

    Use 24-hour or browser time pickers. Add break minutes when you need net work time.

  3. Read net duration and decimal hours

    Copy decimal hours into timesheets or export CSV/PDF for records.

How to calculate time between two times

Decimal hours conversion

MinutesDecimal hoursExample (8h + X min)
5 min0.088.08 h
10 min0.178.17 h
15 min0.258.25 h
20 min0.338.33 h
30 min0.508.50 h
45 min0.758.75 h
50 min0.838.83 h
60 min1.009.00 h

Overnight shifts and breaks

Add or subtract time

Date and time across multiple days

12-hour vs 24-hour (military) time

Time duration in timesheets and payroll

Frequently asked questions about this time duration calculator

How do I calculate elapsed time between two times?

Elapsed time is the clock span from start to end. Subtract start from end in 24-hour format (add 24 hours if the shift crosses midnight). Example: 9:00 AM to 5:30 PM = 8 h 30 m = 8.50 decimal hours. Use Between times mode and subtract break minutes for net work time.

How do I calculate duration with a lunch break?

Calculate the gross span between clock-in and clock-out, then subtract unpaid break minutes. Example: 9:00–17:45 with a 45-minute break = 8.00 net hours.

How do overnight shifts work?

When the end time is earlier than the start (e.g. 22:00 to 06:00), add 24 hours to the end before subtracting. Enable Overnight shift or use auto-detect in the calculator.

What are decimal hours and why do payroll systems use them?

Decimal hours express time as a decimal number: 2 h 15 m = 2.25 h. Payroll imports and hourly rate math multiply cleanly against decimal hours.

How do I convert minutes to decimal hours?

Divide minutes by 60. Fifteen minutes = 0.25 h, thirty minutes = 0.50 h, forty-five minutes = 0.75 h.

How do I calculate time across multiple days?

Use Date & time mode. Enter start date/time and end date/time. The calculator shows total duration and calendar days between the dates.

How do I add or subtract time from a start time?

Use Add / subtract mode. Enter a base date and time, choose add or subtract, and enter hours and minutes. Midnight crossover is handled automatically.

What is the difference between elapsed time and net work time?

Elapsed time is the full clock span. Net work time subtracts unpaid breaks. Timesheets and payroll usually need net work time.

Can I use this for weekly timesheet totals?

This tool calculates one span at a time. For a full weekly grid with FLSA overtime and optional pay estimate, use the time card calculator.

Does this handle time zones?

No. Enter local wall-clock times only. For cross-timezone math, convert both timestamps to the same zone first, then enter the local values.

How do I calculate time duration in Excel?

With start in A2 and end in B2 as Excel time values, gross decimal hours = (B2-A2)*24. If the shift crosses midnight, add 1 to B2 first: ((B2+1)-A2)*24. Subtract breaks as -(break_minutes/60) from that result. Format the result cell as Number, not Time.

How is this different from a time card calculator?

A time duration calculator finds the span between two times or dates. A time card calculator totals a full week of shifts, deducts breaks per day, and splits FLSA weekly overtime.