Time Calculator

About this calculator

The Time Calculator adds and subtracts time in days, hours, minutes and seconds. Use it three ways: combine two durations, move a date and clock time forward or back by a duration, or type a whole expression such as 1d 2h 3m 4s + 4h 5s - 2030s. Results are normalized and also shown as decimal days, hours, minutes and seconds.

First time
Operation
Second time
Leave blank for today.
Operation
Use d, h, m, s after each value and only + or - between values.
Embed this calculator

Paste this code into a Custom HTML block on your site. The calculator fits the width of the block. Adjust the height in the code if you want more room for results.

Find this widget in the publisher directory

Why time arithmetic is different

Ordinary numbers are base 10, but clock time mixes bases. Sixty seconds make a minute, sixty minutes make an hour and twenty-four hours make a day. Adding 50 minutes to 40 minutes is not 90 of anything useful; it is 1 hour 30 minutes. The reliable way to add or subtract time is to convert everything to a single unit, usually seconds, do the arithmetic, then convert back into days, hours, minutes and seconds.

Total seconds = days × 86,400 + hours × 3,600 + minutes × 60 + seconds
Days = ⌊total ÷ 86,400⌋, hours = ⌊remainder ÷ 3,600⌋, minutes = ⌊remainder ÷ 60⌋, seconds = what is left

Adding or subtracting two durations

Enter two amounts of time and choose add or subtract. You can leave fields blank or type values that overflow, such as 90 minutes or 30 hours; the result is normalized. The answer also appears as decimal days, hours, minutes and seconds, which is handy for spreadsheets and timesheets.

Worked example

1 day 2 hours 3 minutes 4 seconds plus 23 hours 58 minutes 59 seconds:

  • First amount: 86,400 + 7,200 + 180 + 4 = 93,784 seconds.
  • Second amount: 82,800 + 3,480 + 59 = 86,339 seconds.
  • Sum: 180,123 seconds = 2 days 2 hours 2 minutes 3 seconds.
  • In decimals: 2.084757 days, 50.03417 hours, 3,002.05 minutes.

If the second amount is larger than the first in a subtraction, the result is negative and each component carries a minus sign, for example 0 days −18 hours −50 minutes −30 seconds.

Adding time to a date and clock time

The second mode starts from a calendar date and a time of day, in 12-hour or 24-hour format, and moves forward or back by days, hours, minutes and seconds. It rolls over midnight and month ends correctly. For example, 8:30:00 AM on January 15, 2026 plus 1 day 20 hours 45 minutes 10 seconds is 5:15:10 AM on Saturday, January 17, 2026. Clock arithmetic here is pure wall-clock time: daylight saving changes are not applied, so adding 24 hours always gives the same clock time on the next day.

Time expressions

The expression mode accepts any number of values joined with plus and minus signs. Each value needs a unit letter: d for days, h for hours, m for minutes and s for seconds. A single value can combine units, like 1d 2h 3m 4s. Spaces are optional. The expression 1d 2h 3m 4s + 4h 5s - 2030s + 28h equals 2d 9h 29m 19s, or 206,959 seconds.

Unit reference

UnitSecondsMinutesHours
1 minute6010.016667
1 hour3,600601
1 day86,4001,44024
1 week604,80010,080168
Common year (365 days)31,536,000525,6008,760

A note on how time is defined

The second is the base unit of time in the International System of Units. Since 1967 it has been defined by the radiation of cesium-133 atoms: exactly 9,192,631,770 cycles. A calendar day of 86,400 seconds is a convention; Earth's rotation varies slightly, which is why leap seconds have occasionally been inserted into official time. Everyday calculations like these ignore leap seconds, as do nearly all computer clocks.

Common mistakes to avoid

  • Treating minutes as decimals. 1.30 hours is 1 hour 18 minutes, not 1 hour 30 minutes. Write 1h 30m or 1.5 hours instead.
  • Forgetting to carry. 45 minutes plus 30 minutes is 1 hour 15 minutes, so the hour column must increase by one.
  • Mixing 12-hour and 24-hour times. 12:15 AM is a quarter past midnight, while 12:15 PM is a quarter past noon.
  • Ignoring the date. Adding hours to a late-evening time often moves the result to the next day, which the date mode handles for you.

Frequently asked questions

How do I add hours and minutes together?
Convert both to minutes, add them, then divide by 60: the whole number is hours and the remainder is minutes. For example 2:45 + 1:30 = 165 + 90 = 255 minutes = 4 hours 15 minutes.
How do I convert minutes to decimal hours?
Divide the minutes by 60. 45 minutes is 0.75 hours, so 7 hours 45 minutes is 7.75 hours.
What time will it be 36 hours from now?
Use the "Time from a Date" mode: enter the current date and time and add 36 hours. The result rolls over to the correct date and time.
Can I subtract a larger time from a smaller one?
Yes. The result is shown as a negative duration with a minus sign on each component.

Formulas and sample results on this page were checked against independent references. Page last reviewed or updated . How we verify calculators. Project led by Shaun Connell.