Introduction
This time calculator adds and subtracts time. You type days, hours, minutes, and seconds, and it returns the answer. It works in time units instead of plain numbers, so you do not have to carry 60s and 24s in your head.
There are two ways to use it. The first panel lets you enter two times, pick add or subtract, and see the result. The second panel lets you type a whole line like 1d 2h 30m + 4h 15m 20s - 2500s and solves the full chain at once.
The tool also shows your total in days, hours, minutes, and seconds, plus a step-by-step solution and a bar chart. If the answer is less than zero, it tells you that too. Use it for work hours, travel time, cooking, workouts, video lengths, or any other time math.
How to use our Time Calculator
Type in two time amounts, pick add or subtract, and the calculator shows the answer in days, hours, minutes, and seconds, plus the total in one unit and the steps used to get there.
Time A (Days, Hours, Minutes, Seconds): Enter the first time span. Put each part in its own box. Leave a box blank or use 0 if you do not need it. Decimals like 1.5 are fine.
Operation: Click Add to join the two times together, or Subtract to take Time B away from Time A.
Time B (Days, Hours, Minutes, Seconds): Enter the second time span the same way. If the answer is below zero, the calculator marks it as negative and tells you how much bigger Time B is.
Chart & headline unit: Pick seconds, minutes, hours, days, or weeks. This changes the big total shown and the bars in the chart.
Calculate and Clear buttons: Press Calculate to see the result, or Clear to empty every box and start over.
Time expression box: In the second panel, type a chain of times like 1d 2h 30m + 4h 15m − 90s. Use d for days, h for hours, m for minutes, and s for seconds. You can add as many plus and minus terms as you want.
Chart unit (expression panel): Choose the unit used to draw each term on the bar chart, so you can see which part adds or removes the most time.
Time Arithmetic: Adding and Subtracting Time
Time math means adding or subtracting amounts of time, like days, hours, minutes, and seconds. It is not like normal math, because time does not use groups of ten. Minutes and seconds roll over at 60, and hours roll over at 24. So 45 minutes plus 30 minutes is not 75 minutes. It is 1 hour and 15 minutes.
How Time Units Work Together
Every time unit can be turned into seconds. That makes the math simple and safe.
- 1 minute = 60 seconds
- 1 hour = 60 minutes = 3,600 seconds
- 1 day = 24 hours = 1,440 minutes = 86,400 seconds
- 1 week = 7 days = 604,800 seconds
The Easy Method
The standard method has three steps:
- Convert. Change each time into total seconds.
- Add or subtract. Work with plain numbers, so no carrying rules get in the way.
- Normalize. Break the answer back into days, hours, minutes, and seconds. Divide by 86,400 for days, then 3,600 for hours, then 60 for minutes. Whatever is left over is seconds.
For example, 5 hours 30 minutes is 19,800 seconds. Add 20 hours 45 minutes (74,700 seconds) and you get 94,500 seconds. That is 1 day, 2 hours, 15 minutes.
Carrying and Borrowing
If you add time column by column, you must carry. When seconds pass 60, move 1 to the minutes. When minutes pass 60, move 1 to the hours. When hours pass 24, move 1 to the days. Subtracting works the other way. If you do not have enough seconds, borrow 60 from the minutes. If you do not have enough minutes, borrow 60 from the hours.
Negative Results
If you take away more time than you started with, the answer is negative. That is fine. A negative answer just tells you how much bigger the second time was. For example, 2 hours minus 5 hours equals −3 hours.
Where People Use Time Math
- Work hours: adding up shifts and breaks to find total pay time.
- Sports and racing: finding lap times, splits, and gaps between runners.
- Cooking and baking: adding prep time, cook time, and rest time.
- Travel: adding flight time, layovers, and drive time.
- Video and audio: adding clip lengths to get a total run time.
- School and study plans: adding up hours spent on each subject.
Duration vs. Clock Time
A duration is a length of time, like "3 hours 20 minutes." A clock time is a point in the day, like "4:15 PM." This page works with durations. You can add and subtract them freely, and they can be longer than 24 hours without rolling over to a new date.
Quick Tips
- Decimal hours are common in pay sheets. 1.5 hours means 1 hour 30 minutes, not 1 hour 50 minutes.
- To change minutes into decimal hours, divide by 60. So 45 minutes = 0.75 hours.
- To change decimal hours into minutes, multiply by 60. So 0.4 hours = 24 minutes.
- Always use the same unit on both sides before you add or subtract.