CalculatorSwitch
Calculator Switch
Time

Time Calculator

Last updated:

How to Use This Calculator

Step 1: Enter the first time value using the Days, Hours, Minutes, and Seconds fields. For example, to enter 2 days and 3 hours, type 2 in Days and 3 in Hours. Leave any unused fields at 0.

Step 2: Select the operation — Add (+) or Subtract (−) — from the dropdown menu. Adding combines two time values into a total. Subtracting finds the difference.

Step 3: Enter the second time value in the second set of Days, Hours, Minutes, and Seconds fields.

Step 4: Click Calculate. The result appears in days (if applicable), hours, minutes, and seconds. The calculator handles all the carrying automatically — 90 minutes becomes 1 hour 30 minutes, 25 hours becomes 1 day 1 hour. The total seconds and total hours are shown in the breakdown.

Understanding Time Arithmetic

Time arithmetic works differently from regular math because time uses a base-60 system (sexagesimal) rather than the base-10 system we use for regular numbers. There are 60 seconds in a minute and 60 minutes in an hour. This means you cannot simply add or subtract time values like regular numbers — 1:45 + 0:30 is not 1:75 but rather 2:15.

The base-60 system originates from ancient Sumerian and Babylonian mathematics, dating back over 4,000 years. The Babylonians chose 60 because it is divisible by many numbers (1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, and 60), making fractions and divisions cleaner. This system survived through Greek astronomy and eventually became the standard for measuring time and angles worldwide.

Carrying in time arithmetic works like carrying in regular addition, but triggers at 60 instead of 10. When seconds exceed 59, you carry 1 to minutes and subtract 60 from seconds. When minutes exceed 59, you carry 1 to hours and subtract 60 from minutes. Subtraction uses borrowing — if you need to subtract more minutes than you have, you borrow 1 hour (60 minutes).

Common situations where time arithmetic is needed include: calculating total work hours across a shift, adding cooking or baking times for multiple steps, computing travel duration with stops, scheduling meetings by adding buffer time, and determining elapsed time for fitness activities.

This calculator handles all the base-60 carrying and borrowing automatically, converting everything to seconds internally, performing the arithmetic, and converting back to hours, minutes, and seconds.

How Time Addition and Subtraction Works

The calculator converts all time values to seconds, performs the arithmetic, and converts back. This approach avoids the complexity of base-60 carrying.

Step 1 — Convert to Seconds:
Total Seconds = (Hours × 3,600) + (Minutes × 60) + Seconds

For 2 hours, 45 minutes, 30 seconds:
Total = (2 × 3,600) + (45 × 60) + 30 = 7,200 + 2,700 + 30 = 9,930 seconds

Step 2 — Perform the Operation:
For addition: Result = Time1 (in seconds) + Time2 (in seconds)
For subtraction: Result = Time1 (in seconds) − Time2 (in seconds)

Step 3 — Convert Back:
Hours = floor(TotalSeconds / 3,600)
Remaining = TotalSeconds mod 3,600
Minutes = floor(Remaining / 60)
Seconds = Remaining mod 60

For 9,930 seconds:
Hours = floor(9,930 / 3,600) = 2
Remaining = 9,930 mod 3,600 = 2,730
Minutes = floor(2,730 / 60) = 45
Seconds = 2,730 mod 60 = 30
Result: 2h 45m 30s

If the subtraction result is negative, the calculator shows a negative sign before the time value, indicating the second time was larger than the first.

Time Unit Conversion Reference

UnitEquivalentSeconds
1 minute60 seconds60
1 hour60 minutes3,600
1.5 hours90 minutes5,400
2 hours120 minutes7,200
8 hours480 minutes28,800
12 hours720 minutes43,200
24 hours1,440 minutes86,400
1 week168 hours604,800
Quarter hour15 minutes900
Half hour30 minutes1,800

Examples

Example 1: Adding Work Shift Hours
You worked two shifts today: 3 hours 45 minutes in the morning and 4 hours 20 minutes in the afternoon. Enter 0d 3h 45m 0s, select Add, and enter 0d 4h 20m 0s. Result: 8h 5m 0s. The math: 45 + 20 = 65 minutes, which carries to 1 hour and 5 minutes.

Example 2: Multi-Day Project Time
A project took 2 days 6 hours in phase one and 1 day 18 hours in phase two. Enter 2d 6h 0m 0s + 1d 18h 0m 0s. Result: 4d 0h 0m 0s. The 6 + 18 = 24 hours carries into an additional day.

Example 3: Subtracting Break Time
Your total shift was 1 day 2 hours (26 hours) but you took a 1 hour 45 minute lunch break. Enter 1d 2h 0m 0s, select Subtract, and enter 0d 1h 45m 0s. Result: 1d 0h 15m 0s — you worked 24 hours and 15 minutes of billable time.

Tips for Working with Time Calculations

Convert everything to the same unit first. If you are mixing hours and minutes, convert hours to minutes (multiply by 60) or use this calculator to avoid manual conversion errors.

Remember the 60-minute rule. When adding times manually, do not write 75 minutes — carry the extra 15 minutes as hours. This calculator handles carrying automatically, but it helps to verify results mentally.

Use subtraction for elapsed time. To find how long something took, enter the end time first and subtract the start time. For example, a meeting from 2:15 PM to 4:50 PM: enter 4h 50m and subtract 2h 15m = 2h 35m.

Round for estimates, be exact for billing. For rough scheduling, round to the nearest quarter hour (15 minutes). For timesheets and billing, use exact minutes — the difference adds up over weeks.

Negative results are valid. If you subtract a larger time from a smaller one, the result will be negative. This indicates the second time value is larger — useful for checking if you have enough time for a task.

Frequently Asked Questions

Can I add more than two time values?
The calculator adds or subtracts two time values at once. To add three or more time values, calculate the first two, note the result, then use that result as the first value and add the third. For example, to add 1h 30m + 2h 15m + 0h 45m: first get 3h 45m, then add 0h 45m to get 4h 30m.
What happens if the result is negative?
A negative result means the second time value is larger than the first. The calculator displays a minus sign before the time. For example, subtracting 3h from 2h gives -1h 0m 0s. This is useful for determining shortfalls or time remaining.
Can I enter values greater than 60 in the minutes or seconds fields?
Yes. The calculator converts everything to total seconds internally, so entering 90 minutes is equivalent to entering 1 hour and 30 minutes. However, for clarity, it is better to use standard values (0-59 for minutes and seconds) when possible.
When do days appear in the result?
Days appear in the result only when the total time equals or exceeds 24 hours. For example, 20 hours + 5 hours = 1d 1h 0m 0s. If the result is under 24 hours, only hours, minutes, and seconds are shown. This keeps the output clean for short time calculations while properly representing longer durations.
Why does time use a base-60 system instead of base-10?
The base-60 (sexagesimal) system comes from ancient Babylonian mathematics, dating back over 4,000 years. They chose 60 because it has many divisors (1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60), making it easy to divide time into halves, thirds, quarters, and fifths without fractions.
Can I use decimal hours instead?
This calculator uses hours, minutes, and seconds format. To convert the result to decimal hours, divide total seconds by 3,600. For example, 2h 30m = 9,000 seconds ÷ 3,600 = 2.5 hours. Many payroll systems use decimal hours for easier multiplication with hourly rates.

Related Calculators

Time 1

Time 2

Was this useful?