Time calculator — add or subtract durations

Blank fields count as zero · up to 10 rows

RESULT

04:15:00

2h 30m + 1h 45m · the time calculator recalculates as you type

DECIMAL DAYS
0.177083
DECIMAL HOURS
4.25
TOTAL MINUTES
255
TOTAL SECONDS
15,300
SHOW STEPS
Row 1 → seconds
2h × 3,600 + 30m × 60 = 9,000 s
Row 2 → seconds
1h × 3,600 + 45m × 60 = 6,300 s
Signed sum
9,000 + 6,300 = 15,300 s
Carry back up
15,300 s = 0d 4h 15m 0s → 04:15:00

Time calculator.

Add or subtract hours, minutes and seconds, find the elapsed time between two clock times, or shift a time across midnight. This free time calculator gives every answer as HH:MM:SS and decimal hours at once — ready to copy or share.

EXACT TO THE SECOND MIDNIGHT-SAFE NO SIGN-UP RUNS IN YOUR BROWSER

Why adding time by hand goes wrong

FIG. 1 — 24 H FRAME

A shift from 21:45 to 06:15 — subtract the clock numbers and you get −15.5 h. Count through midnight and the true elapsed time is 8 h 30 m.

Features

01 / 06

WHAT IT IS

What is a time calculator?

2:30:00 + 1:45:00
= 9,000 s + 6,300 s
= 15,300 s → 4:15:00

A time calculator is a calculator built for base-60 quantities: it adds and subtracts durations, measures elapsed time between two points, and moves clock times forward or backward — jobs a decimal calculator gets wrong because an hour has sixty minutes, not a hundred.

Why a normal calculator can't add time

Punch 2.30 + 1.45 into a desk calculator and you get 3.75 — but two and a half hours plus an hour and three quarters is 4 h 15 m. This site converts every entry to whole seconds, adds or subtracts them as integers, then rebuilds the clock form, so the sixty-carry can never be missed.

How time addition handles midnight and negatives

When an end time lands before its start, the span is counted into the next day and labeled so — an 11:00 PM to 6:00 AM shift is seven hours, not minus seventeen. And subtracting time past zero produces an honest negative duration, minus sign in every format, instead of a silently clamped result.

NIST's Times of Day FAQs calls 12 a.m. and 12 p.m. ambiguous, so the inputs also support 24-hour notation.

Where the decimal answers come from

Decimal days and decimal hours are printed from the exact second count: 15,300 seconds is 4.25 hours because 15,300 ÷ 3,600 is exactly 4.25. Fixed precision, trailing zeros trimmed, and no rounding anywhere in the middle of a calculation.

Who it's for

05 GROUPS
  1. STEP 01

    Pick a mode

    Add or subtract time, elapsed time between two points, clock ± duration, or a typed expression.

  2. STEP 02

    Type the values

    Digits only, blank counts as zero, and overflow like 90 minutes normalizes on its own.

  3. STEP 03

    Read it four ways

    One calculation, four formats — clock, decimal hours, minutes, seconds — recalculated as you type.

  4. STEP 04

    Copy or share

    Every format has its own copy button; the share link carries your inputs in the URL.

Formulas

DURATION → SECONDS

t = 86,400·d + 3,600·h + 60·m + s

TIME BETWEEN

span = t₂ − t₁ + (t₂ < t₁ ? 86,400 : 0)

DECIMAL HOURS

H = t / 3,600 → 4 dp

CLOCK SHIFT

clock = ((t₀ + Δ) mod 86,400 + 86,400) mod 86,400

CARRY BACK

s → m at 60 → h at 60 → d at 24

A week, totalled

WEEK TOTAL · DURATION ONLY 38:45:00 · 38.75 h

Hours only, by design — rate and overtime math belongs on the Time Card Calculator.

23:30 + 2:00 = 25:30 raw
25:30 − 24:00 = 1:30 AM next day

The same integer-second engine converts payroll decimals on Time to Decimal and prices overtime on Time and a Half.

Time calculator FAQ

TAP TO OPEN

How do I add hours and minutes without decimals?

Type them as they are — 2 h 30 m plus 1 h 45 m. This time calculator converts everything to seconds internally, does integer arithmetic, and carries minutes at sixty on the way back out, so the answer is 4 h 15 m, never 3.75-something. Blank fields count as zero, and overflow values like 90 minutes normalize automatically.

How do I add up my work hours for the week?

One row per day in Add/Subtract mode: an 8:30 AM to 5:15 PM day minus a 45-minute break is 8 hours — five such rows total 40:00:00, shown beside 40.0 decimal hours for payroll. For clock-in/clock-out entry with break deduction and a printable weekly report, use the Time Card Calculator.

What happens when a time span crosses midnight?

In Time Between mode an end time earlier than the start is treated as the next day and labeled that way. 11:00 PM to 1:30 AM is 2 h 30 m, not a negative number — the time calculator adds 24 hours once and tells you it did. Spans longer than one midnight need explicit dates, which the Time Duration Calculator handles.

How do I convert a duration to decimal hours?

Every result here already shows decimal hours next to the clock form: 7 h 45 m reads 7.75, because 45 minutes is 45/60 = 0.75 of an hour — not 0.45. For batch conversion in both directions, including decimal-to-clock, use the Time to Decimal Calculator.

How do I subtract time from a total?

Switch a row’s operator to minus. To take 45 minutes off 2 h 30 m, set the second row to − and type 45 minutes: the answer is 1 h 45 m. Subtract past zero and the result flips to an honest negative duration — minus sign in every format, with a note saying why.

Does it handle durations longer than 24 hours?

Yes. Totals roll up into days — 30 h 90 m normalizes to 1 day, 07:30:00 — and the decimal, total-minutes and total-seconds formats keep counting past any day boundary.

What can I type into the time calculator expression mode?

Tokens like 1d, 2h, 30m, 45s, clock literals like 1:30, and the + and − operators. Consecutive tokens sum, so 1d 2h 30m + 45m - 20s evaluates to 1 day, 03:14:40. Anything the parser cannot read is highlighted in place as you type.

Is this time calculator free?

Yes — free, no sign-up, no install, no usage limits. Calculations run locally in your browser.

How accurate is this time calculator?

Exact to the second. All arithmetic happens on integer seconds; decimal forms are printed from that exact count to fixed precision and never rounded mid-calculation. The formulas and the full test suite are public on the methodology page.

More time calculators

08 LIVE · P1

Accuracy. Integer-second arithmetic, exact to the second. Formulas and test cases are public on the methodology page.

Privacy. Calculations run locally in your browser. See the privacy policy for what third-party scripts may process.

UPDATED 2026-08-01