Free Online Calculator

Time Calculator

Add or subtract days, hours, minutes and seconds, move a date and time forward or back, or calculate a time expression.

Last updated: Free, no sign-up Private — runs in your browser

Add or Subtract Two Time Values

Leave any field blank to count it as 0.

First time value

Second time value

Add or Subtract Time from a Date

Start from a date and time, then add or subtract days, hours, minutes and seconds to get the new date and time.

Time Calculator in Expression

Type values with d, h, m, s and join them with + or −. Example: 1d 2h 3m 4s + 4h 5s - 2030s

Quick answer: how to add or subtract time

Convert every value to seconds (1 day = 86,400 s, 1 hour = 3,600 s, 1 minute = 60 s), add or subtract, then convert back to days, hours, minutes and seconds. Example: 1 d 2 h 3 m 4 s + 4 h 5 s = 1 day 6 hours 3 minutes 9 seconds.

Overview of the Time Calculator

The Time Calculator adds and subtracts amounts of time. Use it for timesheets and payroll hours, shift lengths, project estimates, cooking or travel times, video and audio durations, or any sum such as “2 hours 45 minutes plus 3 hours 30 minutes”.

It contains three tools. The first adds or subtracts two time values entered as days, hours, minutes and seconds. The second starts from a date and clock time and moves forward or backward by an amount of time. The third accepts an expression like 1d 2h 3m 4s + 4h 5s − 2030s and evaluates it. Blank fields count as zero, and every calculation runs in your browser.

For the time between two dates, use the Age Calculator; to convert a clock time between cities, use the Time Zone Calculator.

How We Calculate Time

Time is not decimal — 60 seconds make a minute and 24 hours make a day — so the calculator converts everything into one unit (seconds), does the arithmetic there, and converts back.

  1. Convert each value to seconds: days × 86,400 + hours × 3,600 + minutes × 60 + seconds.
  2. Add or subtract the two totals. A negative result means you subtracted more than you started with.
  3. Convert back: days = total ÷ 86,400 (rounded down); hours from the remainder ÷ 3,600; minutes from what is left ÷ 60; the final remainder is seconds.
  4. For a date and time, the total is added to or subtracted from the start moment, so month ends, leap days and year changes are handled automatically.
  5. For expressions, each number with d, h, m or s is converted to seconds; the operator before it decides whether it is added or subtracted.
total seconds = days × 86,400 + hours × 3,600 + minutes × 60 + seconds
result = total₁ ± total₂
days = ⌊result ÷ 86,400⌋   hours = ⌊(result mod 86,400) ÷ 3,600⌋
minutes = ⌊(result mod 3,600) ÷ 60⌋   seconds = result mod 60

Daylight saving: the date-and-time tool works in plain clock time, with no time zone, so it never adds or removes an hour for daylight saving. If your two times fall in different zones, convert them first with the Time Zone Calculator.

Worked examples (calculated with this tool)
First valueOpSecond valueResult
1 day 2 hours 3 minutes 4 seconds+4 hours 5 seconds1 day 6 hours 3 minutes 9 seconds
8 hours 45 minutes+3 hours 30 minutes12 hours 15 minutes
1 day−5 hours 30 minutes18 hours 30 minutes
1 hour 30 minutes+1 hour 15 minutes2 hours 45 minutes
2 days−2 days 1 second−1 second

Units of Time

These are the standard relationships the calculator uses.

Units of time
UnitEquals
Millisecond0.001 second
SecondBase unit of time (SI)
Minute60 seconds
Hour60 minutes = 3,600 seconds
Day24 hours = 1,440 minutes = 86,400 seconds
Week7 days = 604,800 seconds
Common year365 days = 31,536,000 seconds
Leap year366 days = 31,622,400 seconds
Average Gregorian year365.2425 days
Month28 to 31 days (Feb: 28, or 29 in a leap year)
Decade / Century / Millennium10 / 100 / 1,000 years

Minutes to Decimal Hours Chart

Timesheets often need minutes as decimal hours (for example 1 hour 30 minutes = 1.5 hours). Divide the minutes by 60.

Minutes to decimal hours
MinutesDecimal hoursRounded to 2 places
5 minutes0.08330.08
6 minutes0.10.10
10 minutes0.16670.17
12 minutes0.20.20
15 minutes0.250.25
20 minutes0.33330.33
30 minutes0.50.50
40 minutes0.66670.67
45 minutes0.750.75
50 minutes0.83330.83
60 minutes11.00

Time Calculator — Frequently Asked Questions

How do I add time in hours and minutes?

Add the minutes first; if they reach 60 or more, carry whole hours over, then add the hours. For example, 2 h 45 min + 3 h 30 min = 6 h 15 min. The calculator does this carrying for you using seconds.

How do I subtract time?

Choose “Subtract (−)”. The second value is taken away from the first. If the second is larger, the answer shows a minus sign (for example −1 hour).

How many seconds are in a day, hour and minute?

A day has 86,400 seconds, an hour has 3,600 seconds and a minute has 60 seconds.

How do I convert minutes to decimal hours?

Divide the minutes by 60. 15 minutes = 0.25 hours, 30 minutes = 0.5 hours and 45 minutes = 0.75 hours. See the conversion chart on this page.

Can I use decimals, such as 1.5 hours?

Yes. The number fields and the expression box accept decimals, so 1.5h is the same as 1h 30m.

What expression format does the calculator accept?

Numbers followed by d, h, m or s, joined with + or −, for example 1d 2h 3m 4s + 4h 5s − 2030s. Spaces are optional. Anything else is rejected with a message pointing to the problem.

How do I add or subtract time from a date?

Use the second tool: pick a start date and time, choose add or subtract, enter the days, hours, minutes and seconds, and press Calculate to see the new date, time and weekday.

Does daylight saving time affect the result?

No. The tool uses plain clock time without a time zone, so it never adds or removes an hour for daylight saving. Use the Time Zone Calculator when zones matter.

How do I find the hours between two clock times?

Enter the later time as the first value and the earlier time as the second, then choose Subtract. For overnight spans, add 24 hours to the later time first.

Is the Time Calculator free and private?

Yes. It is free, needs no sign-up, and all calculations happen in your browser — nothing you type is sent or stored.

Need a custom calculator or tool on your website?

Our team designs and develops fast, SEO-ready websites and web tools. Tell us what you need.

Call Us WhatsApp

Get a Free Quote

Tell us a bit about your project — we'll get back to you shortly.

2 + 3 =
Call WhatsApp