Arithmetic & Number Theory

Subtraction

Subtract b from a.

Formula

Formula
d = a − b

Variables

SymbolDefinitionType & rangeUnitsRole
a minuend real number (ℝ) input
b subtrahend real number (ℝ) input
d difference computed result result

Try it yourself

Interactive calculator
Result

Worked examples

Example 1
Givena = 10, b = 4
Result6
Example 2
Givena = 3, b = 9
Result-6