Skip to content

Time Calculator

Three time tools: add or subtract two durations, shift a date and time forward or back, or write out a whole sum such as 1d 2h 3m 4s + 4h 5s.

Time Calculator

Add or subtract two lengths of time.

First duration

days

hours

minutes

seconds

Operation
Second duration

days

hours

minutes

seconds

Example

This is a sample result, not your calculation. Enter your own values to replace it.

Enter two durations, choose add or subtract, then calculate the result.

Calculated time

—

In seconds

Total seconds
—

Check your entries

Enter at least one duration value (numbers, 0 or more) to calculate.

Add or Subtract Time from a Date

Start from a date and time, then move forward or back.

Operation
Amount

days

hours

minutes

seconds

Example

This is a sample result, not your calculation. Enter your own values to replace it.

Enter a start date and time, then how much time to add or subtract.

Resulting date

—

—

How it was reached

From
—
Amount
—
Days crossed
—

Check your entries

Enter a start date and time and how much to add or subtract.

Time Expression Calculator

Add and subtract several times at once by writing them out.

Put a unit after every value — d days, h hours, m minutes, s seconds — and join them with + or −.

Example

This is a sample result, not your calculation. Enter your own values to replace it.

Write an expression such as 1d 2h 3m 4s + 4h 5s and calculate it.

Result

—

In other forms

In words
—
Total seconds
—
Clock time (hh:mm:ss)
—

Check the expression

Every value needs a unit — d, h, m or s — joined by + or −.

Three calculators on this page

They are separate tools, each with its own button and its own answer, so you can use one without clearing another.

  1. Time Calculator — add or subtract two durations. Enter each in days, hours, minutes and seconds (a blank box counts as zero), choose add or subtract, and press Calculate Time.
  2. Add or Subtract Time from a Date — start from a date and a clock time and move forward or back by a duration. It gives the resulting date and time, and says how many days the shift crossed.
  3. Time Expression Calculator — write the whole sum in one box, such as 1d 2h 3m 4s + 4h 5s - 2030s.

Writing a time expression

Every value needs a unit straight after it: d for days, h for hours, m for minutes and s for seconds. Values sitting together are added, and the only operators are + and −, so there is no precedence to get wrong. 1h 30m is ninety minutes; 1h - 30m is thirty.

A bare number is the one thing it will not accept — 90 could be ninety of anything, so it asks for 90m instead of guessing.

Adding time to a date

Adding hours to a clock time is the part people get wrong, because the day rolls over at midnight rather than at 100. Two hours after 11:00 PM is 1:00 AM the next day — so the second calculator reports the resulting date as well as the time, and states how many days it crossed rather than leaving you to notice.

Going backwards works the same way: two hours before 1:00 AM is 11:00 PM the previous day. The time of day is always a real time between 00:00:00 and 23:59:59 — never a negative one.

How duration arithmetic works

Time is awkward to add by hand because it runs in base 60, not base 10 — 60 minutes roll over into an hour, not 100. The calculator sidesteps that by converting each duration to a single number of seconds, adding or subtracting those, and then breaking the total back into days, hours, minutes and seconds so the carrying is always right.

A worked example

Add 2h 30m and 1h 45m. As seconds that is 9,000 + 6,300 = 15,300 seconds; broken back down, the answer is 4h 15m — not 3h 75m. The minutes past 60 correctly carry into an extra hour, which is the step that trips up mental arithmetic.

Subtracting durations

Subtraction works the same way. 5h 15m minus 2h 50m is 18,900 − 10,200 = 8,700 seconds, or 2h 25m. If the second duration is larger than the first, the result is negative and shown with a minus sign rather than wrapping around.

Time unit conversions

UnitEquivalent
1 minute60 seconds
1 hour60 minutes = 3,600 seconds
1 day24 hours = 1,440 minutes = 86,400 seconds

How this differs from the hours calculator

This tool adds and subtracts durations — spans of time with no particular start or end. To work out time elapsed between two clock times, such as a shift from 9:00 to 17:30 with a break, use the hours calculator instead. To count days between calendar dates, use the date calculator.

Frequently asked questions

How do I add two durations?

Enter each duration in days, hours, minutes and seconds, choose Add, and the calculator combines them and normalises the result — so 2h 30m plus 1h 45m becomes 4h 15m.

Can it subtract time?

Yes. Choose Subtract to find the difference between two durations. If the result is negative, the calculator shows it with a minus sign.

How do I convert between hours, minutes and seconds?

There are 60 seconds in a minute, 60 minutes in an hour and 24 hours in a day. So one hour is 3,600 seconds, and one day is 86,400 seconds. The calculator also shows the total duration in seconds.

Why is adding time different from adding ordinary numbers?

Time is in base 60, not base 10 — 60 minutes roll over into an hour, not 100. That is why 45 minutes plus 30 minutes is 1h 15m, and why doing it by hand is easy to get wrong.

What is the difference from the hours calculator?

This tool adds and subtracts durations (spans of time). The hours calculator works out time worked between two clock times, with breaks — better for timesheets.

How do I add hours to a specific date and time?

Use the second calculator on this page. Enter a start date and clock time, choose add or subtract, and give the amount in days, hours, minutes and seconds. It reports the resulting date and time, and how many days the shift crossed.

How do I add more than two times at once?

Use the third calculator and write them out: put a unit after every value — d, h, m or s — and join the terms with + or −. For example "1d 2h 3m 4s + 4h 5s - 2030s". It is faster than filling in boxes once you know the notation, and it is the only one that takes more than two terms.

About this calculator

Method reviewed for accuracy on August 9, 2026

Built on transparent, unit-tested formulas that run entirely in your browser — see how we build our calculators.

Embed this calculator on your site — free

Add this free, mobile-friendly Time Calculator to your own website. Paste the code where you want it to appear — it stays up to date automatically, and the frame resizes to fit.

Please keep the attribution link — it's what keeps these tools free to use and embed.