Subtraction calculator

Enter two numbers and see the difference straight away. Decimals are subtracted exactly: 0.3 − 0.1 gives 0.2, not the 0.19999999999999998 many programs show.

Decimals may use a point or a comma. A sum works too, such as 2^10 or sqrt(2).

Fill in the fields; the answer appears here straight away.

How it works

  1. Enter the values

    Type the numbers or the formula. Decimals may use a point or a comma. No idea? Click Fill in an example.

  2. Instant answer

    The answer appears as you type, with the most important intermediate values.

  3. See the working

    Under "How it's worked out" you see the steps, handy for checking your own calculation.

Why "exactly"?

Computers store decimals in binary, and numbers like 0.1 can't be written exactly that way. That is why many programs give tiny rounding errors. This calculator turns your numbers into exact fractions first, so the answer is what you would get on paper.

What can you enter?

Whole numbers, decimals with a point or a comma, negative numbers and large numbers with thousands separators such as 1,250.75. A small expression works too, such as 2^10 or sqrt(2). Need other operations? Try the division calculator or the percentage calculator.

Frequently asked questions

Is the subtraction free?

Yes. The subtraction is completely free, with no account, sign-up or usage limit.

How accurate is the result?

The tool calculates with your browser's number precision. For important calculations, always double-check what you entered.

Does it work on my phone?

Yes. The tool works in any modern browser on a phone, tablet or computer.