Free Mathematics tool

Subtraction Calculator

Subtract positive, negative, or decimal values and see the difference on a number line.

Calculator

Calculate with Subtraction

Enter positive, negative, or decimal values without thousands separators.

Difference

Your result will appear here.

Formula

Formula and variables

a−b=da - b = d
a
the minuend, or starting value
b
the subtrahend, or value being removed
d
the difference

Subtraction finds the signed change from the minuend after removing the subtrahend. It is equivalent to adding the opposite of the subtrahend.

Domain note: Inputs must be finite decimal values. Do not enter commas or other thousands separators.

How it works

How to use this calculator

  1. 1

    Enter the minuend, which is the starting value.

  2. 2

    Enter the subtrahend, which is the value to subtract.

  3. 3

    Press Calculate difference.

  4. 4

    Review the exact expression and number-line direction.

Worked examples

A complete example

Problem: Subtract 19 from 54.

Substitution: 54 − 19

Result: 54 − 19 = 35

Removing 19 from 54 leaves a difference of 35.

Interpretation

Understand the result

A positive difference is above zero; a negative difference means the subtrahend was greater than the minuend. Decimal results are formatted without insignificant trailing zeros.

Common mistakes

  • Reversing the minuend and subtrahend.
  • Dropping the sign when the result is negative.
  • Treating subtraction as commutative; in general, a − b is not the same as b − a.
FAQ

Frequently asked questions

Can the difference be negative?

Yes. When the subtrahend is greater than the minuend, the result is below zero.

Can I subtract a negative number?

Yes. Subtracting a negative is equivalent to adding its positive opposite.

Does the calculator support decimals?

Yes. It uses high-precision decimal arithmetic and removes unnecessary trailing zeros from the display.

References

References & technical sources

Keep calculating

Related calculators