Skip to content
FiftyCalc Free calculators for all 50 states

Binary Subtraction Calculator

Test cases replayed : 3 of 3 match · Methodology · No outside source listed

Type two binary numbers using only 0 and 1; the calculator subtracts the second from the first.

Result

Sample figures

Difference in binary—

First number in decimal —

  • Second number in decimal—
  • Difference in decimal—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Binary Subtraction Calculator

Number to subtract from (binary, 0s and 1s, up to 15 digits): enter 0 or more. Prefilled example: 11,010.

Number to subtract (binary, 0s and 1s, up to 15 digits): enter 0 or more. Prefilled example: 1,011.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Number to subtract from (binary, 0s and 1s, up to 15 digits): enter 0 or more.
  2. Number to subtract (binary, 0s and 1s, up to 15 digits): enter 0 or more.
  3. Read the result: Difference in binary; the panel also shows First number in decimal, Second number in decimal and Difference in decimal.

How this calculator works

Binary subtraction goes column by column from the right: 0 − 0 = 0, 1 − 0 = 1, 1 − 1 = 0, and 0 − 1 needs a borrow from the next column (10 − 1 = 1).

When the second number is larger, the result is negative and is shown with a minus sign. Computers instead store negative numbers in two's complement, a different notation for the same value.

Worked example

Number to subtract from (binary, 0s and 1s, up to 15 digits)11,010
Number to subtract (binary, 0s and 1s, up to 15 digits)1,011
First number in decimal26
Second number in decimal11
Difference in decimal15
Difference in binary1111

Frequently asked questions

What is 11010 − 1011 in binary?

1111: 26 − 11 = 15.

What is 101 − 1100?

−111: 5 − 12 = −7.

Related calculators