Time Calculator — Free Online Time Addition & Subtraction Tool
Add or subtract hours, minutes, and seconds from any starting time.
Base Time
Time to Add/Subtract
Result
Original Time
08:00:00
Total Seconds
37,800
Common Time Conversions Reference Table
| Duration | Minutes | Seconds | Decimal Hours |
|---|---|---|---|
| 0:15:00 | 15 | 900 | 0.25 |
| 0:30:00 | 30 | 1,800 | 0.50 |
| 1:00:00 | 60 | 3,600 | 1.00 |
| 2:30:00 | 150 | 9,000 | 2.50 |
| 4:00:00 | 240 | 14,400 | 4.00 |
| 8:00:00 | 480 | 28,800 | 8.00 |
| 12:00:00 | 720 | 43,200 | 12.00 |
| 24:00:00 | 1,440 | 86,400 | 24.00 |
Related Calculators
Hours Calculator
Calculate the number of hours and minutes between two times with midnight crossing support.
Time Duration Calculator
Find the exact duration between two times in hours, minutes, seconds, and decimal hours.
Time Difference Calculator
Calculate the difference between two times with direction indicator and decimal conversion.
Time Card Calculator
Track weekly work hours with daily entries, break deductions, and overtime calculations.
Date Calculator
Calculate differences between dates or add days, weeks, months, and years to any date.
Percentage Calculator
Calculate percentages, percentage changes, and percentage differences with five modes.
About this calculator
Time Addition and Subtraction Formula
Total Seconds = (H x 3600) + (M x 60) + S + (addH x 3600) + (addM x 60) + addS Result Time = Total Seconds mod 86400 Day Overflow = floor(Total Seconds / 86400) Variables Explained
- H, M, S: The base time hours, minutes, and seconds. These represent your starting point in 24-hour format.
- addH, addM, addS: The hours, minutes, and seconds to add (positive) or subtract (negative). When subtracting, these values are negated internally.
- Total Seconds: The raw sum of all time components converted to seconds. This intermediate value can be negative (when subtracting a larger duration from a smaller time) or greater than 86,400 (when the result extends past midnight).
- 86,400: The number of seconds in one day (24 hours x 60 minutes x 60 seconds). This constant is used for the modulo operation that wraps time within a single day.
- mod (modulo): The remainder after division. This operation ensures the result time stays within 0-86,399 seconds (00:00:00 to 23:59:59).
- Day Overflow: The number of whole days the result exceeds or precedes the current day. Positive values mean future days; negative values mean previous days.
Step-by-Step Example
Add 5 hours 45 minutes to 20:30:00:
- Convert base time to seconds: (20 x 3,600) + (30 x 60) + 0 = 72,000 + 1,800 = 73,800 seconds
- Convert addition to seconds: (5 x 3,600) + (45 x 60) + 0 = 18,000 + 2,700 = 20,700 seconds
- Sum: 73,800 + 20,700 = 94,500 seconds
- Day overflow: floor(94,500 / 86,400) = 1 day
- Remaining seconds: 94,500 mod 86,400 = 8,100 seconds
- Convert back: 8,100 / 3,600 = 2 hours, remainder 900 / 60 = 15 minutes, 0 seconds
- Result: 02:15:00 (+1 day)
This means adding 5 hours 45 minutes to 8:30 PM pushes the time to 2:15 AM the next day.
Sources
- ISO 8601 Date and Time Standard — International Organization for Standardization
- National Institute of Standards and Technology (NIST) — Time and Frequency Division
- timeanddate.com — Time Zone and Duration Calculator Reference
Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and may not reflect exact values.
Last updated: November 3, 2026