Skip to calculator

Time Calculator

Add or subtract durations, offset a date and time, or evaluate a time expression.

What you get
  • Duration arithmeticAdd or subtract two sets of time units.
  • Date and expression modesOffset a date or enter expressions such as 2h 30m.
  • Worked exampleFollow sample inputs and check the calculated result.

Two durations

Add or subtract two sets of time units.

Calculations run in your browser.

Result · Two durations

Ready to calculate

Result breakdown

MeasureValue
Time Calculator guide

Duration arithmetic

Use the Time Calculator to add or subtract durations, offset a date and time, or evaluate a time expression.

How the calculation works

Durations convert to seconds before arithmetic. Date/time offsets use a fixed 24-hour day.

Date and expression modes

Offset a date or enter expressions such as 2h 30m.

An expression such as 2h 30m - 45m gives 1 hour 45 minutes. In Date offset mode, an offset beyond midnight moves the calendar date as well as the clock.

Worked example

Example inputs include First days 0, First hours 1, First minutes 30, First seconds 0. The result is 0d 3h 0m 0s.

How to read the result

An expression groups consecutive terms under the preceding sign. In 2h - 30m 10s, both the 30 minutes and 10 seconds are subtracted.

Add durations or move a date and time

Use two durations to combine time already spent on different tasks. The expression mode is useful when the arithmetic is already written in your notes. Choose the date offset when you want a finish time instead of an elapsed interval. For example, adding three hours to 22:00 advances the clock to 01:00 the following day.

Use units to check the arithmetic

Convert everything to seconds when checking a mixed-unit calculation by hand. One minute is 60 seconds, one hour is 3,600 seconds and a fixed day is 86,400 seconds. If the answer is a date and time, check the resulting date as well as the clock value, especially when subtracting from a time soon after midnight.

Check a finish time and a duration separately

Use duration arithmetic for time recorded against tasks. For example, 1 hour 20 minutes plus 55 minutes is 2 hours 15 minutes. Use the date offset when the answer needs to be a calendar day and clock time. A start at 22:45 plus 2 hours 15 minutes finishes at 01:00 the following day.

The same interval can be expressed as 135 minutes or 8,100 seconds. If your inputs include several units, converting them to seconds is a simple way to check the arithmetic. Set the operator before the second interval so an addition is not accidentally entered as a subtraction.

Common questions

Yes. Subtracting a longer duration from a shorter one produces a negative result.

Use d for days, h for hours, m for minutes and s for seconds. Separate additions and subtractions with the corresponding signs.

Yes. For example, 90 minutes plus 45 minutes is 2 hours and 15 minutes.

It uses fixed 24-hour days. Use the time-zone calculator when a location-specific clock change matters.

Use it to remove one duration from another or to work backward from a known date and time.

Explore more Date & Time tools.

Browse calculators