Binary Subtraction Calculator
Subtract two numbers and show the binary result.
Subtract binary numbers; here you enter decimals and read the binary difference.
The math behind it
Subtraction in binary follows the same borrowing rules as decimal, but in base 2. Computers usually use two's complement to subtract.
Worked example
13 − 5 = 8 = 1000 in binary.
FAQ
How do computers subtract?
They add the two's complement of the subtrahend.