Skip to content
Everyday Life

Subtract Time Calculator

Enter two time durations to find their difference. The calculator subtracts the second duration from the first, handling the borrowing across hours and minutes automatically. Results appear as days/hours/minutes/seconds, as HH:MM:SS, and as totals in each unit. A negative result means the second time is longer than the first.

Your details

Days component of the time you are subtracting from.
d
Hours component of the time you are subtracting from (0-23).
h
Minutes component of the time you are subtracting from (0-59).
m
Seconds component of the time you are subtracting from (0-59).
s
Days component of the time to subtract.
d
Hours component of the time to subtract (0-23).
h
Minutes component of the time to subtract (0-59).
m
Seconds component of the time to subtract (0-59).
s
Result
2h 25m 15s

Time difference in days, hours, minutes, and seconds

HH:MM:SS02:25:15
Total Hours2.4208h
Total Minutes145.25min
Total Seconds8,715s
Difference in hours2.4208

Time 1 is longer than Time 2 by 2h 25m 15s.

  • The difference in hours is 2.42 h, and in minutes it is 145.3 min.

Next stepUse the HH:MM:SS output to enter this result directly into scheduling software or a stopwatch.

How to subtract time

Subtracting time works on a base-60 (sexagesimal) system rather than base-10. When the seconds of the smaller time are larger than the seconds of the larger time, you borrow 60 seconds from the minutes column. Similarly, when the minutes of the smaller time are larger, you borrow 60 minutes from the hours column, and so on for hours borrowing from days. The easiest method to avoid mistakes is to convert both durations to a single unit (seconds), subtract, and then convert back. That is exactly what this calculator does internally: it turns each field into seconds, subtracts, and reformats the result.

Reading the result

The main result is shown as days, hours, minutes, and seconds (for example "2h 24m 45s"). The HH:MM:SS format gives the same value as a colon-separated string that you can enter directly into spreadsheets, timers, or scheduling apps. Total hours (decimal), total minutes, and total seconds let you use the result in calculations - for instance, multiplying total hours by an hourly wage. A negative result simply means Time 2 was longer than Time 1. The calculator handles this cleanly and shows a minus sign rather than an error.

Worked example

Suppose you worked from 09:15:00 to 17:30:45 and then subtract a 45-minute break. First, find the shift length: 17:30:45 - 09:15:00 = 8h 15m 45s. Then subtract the break: convert 8h 15m 45s to 29,745 s and 45 m to 2,700 s. The difference is 27,045 s, which converts back to 7h 30m 45s. Enter the shift start and end as separate subtractions, or use the two time fields for any pair of durations you need to compare.

Common uses

Time subtraction comes up in payroll and billing (calculating hours worked minus breaks), sports timing (lap splits, race finish minus start), project management (sprint durations, deadline countdowns), cooking (total bake time minus pre-heating time), travel planning (journey duration minus stopovers), and scientific experiments (reaction end time minus start). The HH:MM:SS output is compatible with most spreadsheet time formats, so you can paste it directly into Excel, Google Sheets, or Apple Numbers.

Quick time conversion reference

UnitEqualsSeconds
1 minute60 seconds60
1 hour60 minutes3,600
1 day24 hours86,400
1 week7 days604,800
1 hour 30 minutes90 minutes5,400
Half day (12 h)720 minutes43,200

Common equivalences used when working with time subtraction results.

Frequently asked questions

What happens when Time 2 is larger than Time 1?

The result will be negative. For example, subtracting 3 hours from 1 hour gives -2 hours. The calculator displays this with a minus sign (e.g., "-2h 0m 0s" or "-02:00:00"). This is normal and useful when you need to know how far over a limit a duration is.

How do I subtract time in hours and minutes without days or seconds?

Leave the days and seconds fields at zero and enter only the hours and minutes values. The calculator treats blank or zero fields the same way, so you can use as many or as few components as your situation needs.

Can I use this to find the duration between two clock times?

Yes. Enter the later clock time as Time 1 and the earlier time as Time 2. For example, to find how long between 14:35 and 09:10, enter 14h 35m as Time 1 and 9h 10m as Time 2. The result, 5h 25m, is the elapsed duration. If the later time is on the next day, add 24 to its hours.

Why does the calculator convert everything to seconds first?

Converting to a single unit (seconds) avoids the borrowing chain across minutes, hours, and days. Once you have two plain numbers, standard subtraction applies. Converting back at the end is straightforward: divide by 86,400 for days, take the remainder and divide by 3,600 for hours, and so on. This is the same method spreadsheets and programming languages use internally.

How do I use the HH:MM:SS result in Excel or Google Sheets?

Paste the HH:MM:SS value into a cell and format it as a time (Format Cells > Time in Excel, or Format > Number > Duration in Google Sheets). If the total is 24 hours or more, use the [h]:mm:ss custom format in Excel to prevent it from rolling over to the next day.

What is the sexagesimal system and why does time use it?

Sexagesimal means base-60. Ancient Babylonian astronomers divided the hour into 60 minutes and the minute into 60 seconds around 3,000 years ago. The choice of 60 persisted because 60 has many whole-number divisors (1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60), making fractions of an hour easy to express as whole minutes. Modern computing still uses this system for hours and minutes.

Sources

Written by Grace Mbeki, MSc Data Scientist & Educator · Nairobi, Kenya

Turning everyday numbers into clear, actionable answers for the decisions that matter most.

Search 3,500+ calculators

Loading search…