Integer Calculator

Enter two integers and choose an operation.

A whole number, positive or negative.

Operation

What to do with the two integers.

A whole number, positive or negative.

Try

Result

You entered5−(−3)5 - \left(-3\right)

8\displaystyle 8
Show the work
  1. Subtracting is adding the opposite

    Taking away −3-3 is the same as adding its opposite, 33.

    5−(−3)=5+35 - \left(-3\right) = 5 + 3
  2. Adding integers with the same sign

    Both numbers are positive, so add their sizes (55 and 33) and keep the plus sign.

    5+3=85 + 3 = 8
  3. Result

    So 5−(−3)=85 - \left(-3\right) = 8.

Worked examples