ToollyX
no sign-up Β· instant Β· free

Time Duration Calculator

Find the exact duration between two clock times, in hours, minutes and decimal hours. Handles overnight shifts, unpaid break deductions, payroll-style rounding, and a full Timesheet mode for summing multiple time blocks into one total.

INPUTTwo Clock Times
OUTPUTH:M Β· Decimal Hrs
MODESSingle Β· Timesheet
UPDATESLive
PRIVACYLocal Only
728 Γ— 90 β€” Leaderboard Ad
Mode
24-Hour Format
Display results as 17:00 instead of 5:00 PM
Round to Nearest 15 Min
Rounds the final total β€” handy for payroll and timesheets
Quick Presets
Start Time
End Time
Unpaid Break30 min
MIN
Spans Midnight
Turn on if the end time is on the next day
β†Ί Reset to defaults
9:00 AM β†’ 5:00 PM
7h 30m
7.50 decimal hours
Decimal Hours
7.50
Total Minutes
450
Total Seconds
27,000
Break Deducted
30 min
DURATION BREAKDOWN
7h 30m
Worked
30m
Break
Start Time
9:00 AM
End Time
5:00 PM
Raw Duration
8h
Rounding
None
728 Γ— 90 β€” Leaderboard Ad

How to Calculate Time Duration

1Pick a mode. "Single Duration" handles one start and end time. "Timesheet" lets you add several separate time blocks and see their combined total.
2Enter your times, or tap a Quick Preset like "9-to-5 Workday" or "Night Shift." If the end time is earlier than the start, Spans Midnight switches on automatically.
3Add a break deduction if part of the time was unpaid, and toggle rounding on if your payroll policy rounds to the nearest 15 minutes.
4Read the live result. Duration, decimal hours, total minutes and seconds all update instantly, with a full breakdown and a work-versus-break bar underneath.

Features

Decimal hours built in
Every result includes a payroll-ready decimal figure alongside the plain-English "Xh Ym" duration.
Overnight shift handling
Auto-detects and correctly calculates durations that cross midnight into the next day.
Unpaid break deduction
Subtract lunch or rest periods from the raw duration to get the true worked time.
Timesheet mode
Add multiple time blocks and get one combined total, plus longest, shortest, and average block length.
Payroll-style rounding
Optional rounding to the nearest 15 minutes, matching common workplace timekeeping policy.
100% browser-based
Every time you enter, including full work schedules, stays on your device.

Decimal Hours vs. Hours and Minutes β€” Why This Calculator Shows Both

Ask someone how long they worked and they'll say "eight and a quarter hours" or "eight hours, fifteen minutes" β€” never "8.25." But hand that same figure to a payroll system, an invoicing tool, or a spreadsheet formula that multiplies hours by an hourly rate, and it needs exactly that decimal form. The trouble is that converting minutes to decimal hours isn't always the clean division people assume. Quarter-hour values are easy β€” 15 minutes is 0.25, 30 minutes is 0.5, 45 minutes is 0.75 β€” but a duration of, say, 23 minutes becomes 0.383333... hours, and rounding that by hand introduces small errors that compound across a pay period. This calculator computes the decimal figure exactly from the underlying minute count every time, so there's never a mental-math gap between the human-readable duration and the number that actually goes into a spreadsheet or invoice.

A few common minute values are worth memorising since they come up constantly: 6 minutes is exactly 0.1 hours, 12 minutes is 0.2, 15 is 0.25, 20 is roughly 0.33, 30 is 0.5, and 45 is 0.75. Anything outside that short list β€” 23 minutes, 37 minutes, 52 minutes β€” genuinely needs a calculator to get right rather than an educated guess, which is exactly the gap this tool closes.

Handling Overnight and Split Shifts Correctly

A plain subtraction of two clock times breaks the moment a shift crosses midnight β€” a night-shift worker clocking in at 10:00 PM and out at 6:00 AM the next morning would, on a naive calculator, appear to have worked a negative eight hours. This tool watches for that condition automatically: as soon as the end time is numerically earlier than or equal to the start time, the Spans Midnight switch flips on and the calculation adds a full 24 hours before subtracting, producing the correct positive duration. The switch stays manually adjustable too, which matters for the one genuinely ambiguous case β€” a start and end time that are numerically identical, which could mean either a zero-length entry or a full 24-hour shift, depending on context only you know.

Split shifts β€” a morning session, a gap, then an afternoon session β€” are a different problem entirely, because they aren't one continuous span at all; they're two or more separate spans that need to be added together. That's exactly what Timesheet mode is built for, and it's covered in detail below.

728 Γ— 90 β€” Leaderboard Ad

Timesheet Mode β€” Summing Multiple Time Blocks

Most time duration calculators stop at a single start and end time, which is fine for a simple shift but falls short the moment real work happens in pieces β€” a freelancer logging three separate client sessions in one day, a retail employee with a split morning-and-evening shift, or anyone reconstructing a full week from scattered clock-in and clock-out notes. Timesheet mode adds as many time blocks as needed, each with its own optional break deduction, and combines them into a single running total. Alongside the grand total, it surfaces the longest block, the shortest block, and the average block length β€” genuinely useful context when you're eyeballing a week's worth of entries for anything that looks off, like a block that's suspiciously short or a day that's noticeably longer than the rest.

Rounding Rules and Payroll Conventions

Many employers don't pay to the exact minute β€” they round worked time to the nearest 15-minute increment as a matter of policy, partly for simplicity and partly because it was standard practice long before digital time clocks existed. The Round to Nearest 15 Min switch reproduces that convention on demand: turn it on and the final total β€” not each individual entry β€” rounds to the closest quarter hour. Leave it off whenever you need the precise, unrounded figure, such as when billing a client by the exact minute rather than a rounded block.

Payroll Mistakes This Calculator Is Built to Avoid

The most expensive mistake in manual timesheet math is the midnight-crossing shift being subtracted as if it were same-day, silently producing a negative or wildly wrong total that either gets caught and manually patched β€” inconsistently, shift to shift β€” or worse, gets missed entirely and paid incorrectly. The second most common is forgetting to subtract the break at all, which quietly overpays every single shift by the length of the lunch period, an error that compounds fast across a pay period with dozens of shifts. The third is rounding each individual time block instead of rounding the combined total β€” each separate rounding step can drift up to seven and a half minutes in either direction, and those small drifts stack up across a multi-block day or a full week far more than a single rounding pass applied once, at the end, to the true total. This calculator handles all three automatically: overnight detection, explicit break deduction, and rounding applied only at the total level, exactly matching standard payroll practice.

Real-World Uses

  • Freelance and contract billing β€” calculate exact hours worked on a project before generating an invoice.
  • Hourly payroll verification β€” check that a paycheck matches the actual clock-in and clock-out times for a shift.
  • Night-shift and healthcare scheduling β€” correctly calculate overnight shifts that cross midnight without manual adjustment.
  • Cooking and meal prep β€” work out how long a slow-cooked or marinated dish needs, given a start time and a target finish time.
  • Travel and flight duration β€” estimate elapsed travel time between a departure and arrival clock time on the same day.
  • Study and workout session logging β€” total up multiple session blocks across a day using Timesheet mode.

Why Browser-Based Processing Matters

The Time Duration Calculator runs entirely client-side. The times you enter β€” full work schedules, client billing sessions, or personal routines β€” are never transmitted to any server. For a duration calculation you'd rather not log anywhere, that matters as much as getting the arithmetic right. For calendar-day spans instead of clock-time spans, use the Date Difference Calculator; for working days that exclude weekends and holidays, use the Business Days Calculator.

Verified by ToollyX Team Β· Last updated June 2026

Frequently Asked Questions

728 Γ— 90 β€” Leaderboard Ad

Related Tools