Skip to content
CalculatorAtlas

Subtract Times Calculator

Tested

Difference between two durations.

Tested, not yet published. The formula for this calculator is implemented and passes its automated checks. This page stays non-indexable until it is reviewed and published.

Results

Enter your values and press Calculate. Results appear here.

  • • Result

Quick answer

Difference = a − b. 5:30 minus 2:45 is 2:45:00, or 2.75 decimal hours.

Enter a time and a time to subtract. The calculator returns the difference and decimal hours. Use this subtract times calculator to check your own figures.

Related tools: Add Times Calculator: Total of several durations in hours, minutes and seconds. Average Time Calculator: Average of several durations. Minutes Between Two Times Calculator: Minutes between two clock times, wrapping past midnight.

How to use the Subtract Times Calculator

  1. Type time.
  2. Type time to subtract.
  3. Press Calculate to see the result, and use Reset to start again.
Inputs of the Subtract Times Calculator
InputWhat to enterAllowed values
TimeText—
Time to subtractText—

Formula and method

Formula

difference = a − b

IEEE-754 double precision; shown to the decimals indicated.

A negative result means b is longer than a.

Worked examples

These examples are verified: each one is an automated test case that the live calculator must reproduce exactly.

Example 1

Inputs: Time = 5:30; Time to subtract = 2:45.

Results of example 1
ResultValue
Difference2:45:00
Decimal hours2.75

Example 2

Inputs: Time = 1:00; Time to subtract = 1:30:15.

Results of example 2
ResultValue
Difference-0:30:15
Decimal hours-0.5042

Example 3

Inputs: Time = 10:00:00; Time to subtract = 0:00:01.

Results of example 3
ResultValue
Difference9:59:59
Decimal hours9.9997

The first line is the headline result (difference). Below it the subtract Times Calculator lists decimal hours, which describe the same case from other angles. IEEE-754 double precision; shown to the decimals indicated.

Borrowing

30 minutes minus 45 minutes needs a borrowed hour: 4:90 − 2:45 = 2:45.

Negative results

The result can be negative if you subtract the larger time.

Borrowing minutes

5:30 minus 2:45 is 2:45. The easiest check is to convert both to minutes: 330 − 165 = 165 minutes, which is 2 h 45 min or 2.75 hours.

A common use is the time left in a budget: 8:00 minus 5:50 leaves 2:10, because 480 − 350 = 130 minutes.

What happens with invalid input

These messages are produced by the calculator itself, so you know what to fix.

  • Time: entering "x" shows "“x” is not a time like 1:30 or 0:45:30." beside that field and no result.
  • Time to subtract: left empty shows "Enter time to subtract." beside that field and no result.

Choosing between the Subtract Times Calculator and similar calculators

Each row shows what a related calculator on this site asks for and what it returns, so you can pick the one that matches your question.

Choosing between the Subtract Times Calculator and similar calculators
CalculatorYou enterIt returns
[Add Times Calculator](/time/add-times-calculator/)times to addTotal time
[Average Time Calculator](/time/average-time-calculator/)times to averageAverage time
[Minutes Between Two Times Calculator](/time/minutes-between-two-times/)start time and end timeMinutes
[Time Card Calculator](/time/time-card-calculator/)start times, end times and unpaid break per dayTotal time
[Time From Now Calculator](/time/minutes-from/)start time and minutes to addResulting time

Background: dates and times

Date and time results depend on the conventions a tool uses: whether the end date counts, whether weekends and holidays are skipped, how months of different lengths are handled and whether time zones are applied. This page states its convention, and the worked examples show it.

Dates use the Gregorian calendar and calendar days unless the page says otherwise; check deadlines against the rule in your contract or regulation.

Assumptions and limitations

  • Result can be negative

If a required value is empty, not a number, or outside its allowed range, the form marks that field with a message and shows no result instead of a misleading number. The automated checks deliberately try invalid entries for time and time to subtract to confirm this.

Frequently asked questions

What is 3:15 − 1:30?

3:15 minus 1:30 is 1 h 45 min, i.e. 1:45.

Can I use seconds?

Yes. Enter times as h:mm:ss to include seconds, e.g. 5:30:30 − 2:45:15 = 2:45:15.

How do I add?

To add durations use the Add Times calculator.

How do I convert 2:45 to decimal hours?

Divide the minutes by 60: 2 + 45 ÷ 60 = 2.75 hours.

How do I work out the time left from a total?

Subtract the time used from the total. 8:00 minus 5:50 leaves 2:10.

What does the Subtract Times Calculator calculate?

Difference between two durations. It returns Difference and Decimal hours.

What formula does the Subtract Times Calculator use?

difference = a − b. A negative result means b is longer than a.

What do I need to enter in the subtract Times Calculator?

You enter Time and Time to subtract.

How is the result rounded or limited?

IEEE-754 double precision; shown to the decimals indicated. Result can be negative.

What is an example of a subtract Times result?

With time 5:30 and time to subtract 2:45, the difference is 2:45:00.

Sources

  • NIST Special Publication 811, Guide for the Use of the International System of Units (SI): minute, hour and day are non-SI units accepted for use with the SI (60 min = 1 h, 24 h = 1 d)

Content last reviewed 2026-11-04. Formulas and worked examples are checked by automated tests against independently computed values.