Free calculator

Binary Calculator — Add, Subtract and Multiply in Binary

Binary addition, subtraction and multiplication worked column by column, with every carry and borrow written in.

Binary arithmetic works like decimal arithmetic with only two digits. In addition, 1 + 1 = 10, so you write 0 and carry 1. In subtraction, 0 − 1 means borrowing 2 from the next column. For 1011 + 110 the answer is 10001, which is 11 + 6 = 17 in decimal.

Try it now

Updates as you type
Result 100012 = 1710 In decimal: 11 + 6 = 17.

Step by step

  1. Add column by column from the right. 1 + 1 = 10, so write 0 and carry 1
    2⁴2³2²2¹2⁰
    Carry111
    1011
    +110
    Sum10001
  2. Check in decimal
    10112 + 1102 = 11 + 6 = 1710 = 100012

Adding in binary

Work from the right. 0 + 0 = 0, 0 + 1 = 1, and 1 + 1 = 10: write the 0 and carry the 1 to the next column. With a carry coming in, 1 + 1 + 1 = 11: write 1 and carry 1.

In 1011 + 110 the columns give 1, 0, 0, 0 with carries running left, ending in 10001. If the signs feel fiddly at first, that is normal; the carry is the only new idea.

Subtracting and multiplying

Subtraction uses borrowing, but a borrow is worth 2 rather than 10. In 1000 − 11 you borrow all the way across and get 101. Multiplication is the easy one: multiplying by 0 gives zeros and multiplying by 1 copies the number, shifted left one place per column. Then you add the rows. 101 × 11 is 101 plus 1010, which is 1111.

Always check in decimal

Convert both inputs, do the sum, and convert back. 1000 − 11 is 8 − 3 = 5, and 5 is 101. If you need the conversions themselves, the decimal to binary guide and binary to decimal guide show them step by step.

Worked examples

Worked examples

Each one is computed by the calculator above, so the answers are the real output.

1011 + 110

Three carries ripple through the columns.

Result 100012 = 1710 In decimal: 11 + 6 = 17.

Step by step

  1. Add column by column from the right. 1 + 1 = 10, so write 0 and carry 1
    2⁴2³2²2¹2⁰
    Carry111
    1011
    +110
    Sum10001
  2. Check in decimal
    10112 + 1102 = 11 + 6 = 1710 = 100012

1000 − 11

The 1 on the left has to be borrowed across three columns.

Result 1012 = 510 In decimal: 8 − 3 = 5.

Step by step

  1. Subtract column by column from the right. When 0 − 1 comes up, borrow 2 from the next column
    2³2²2¹2⁰
    Borrow−1−1−1
    1000
    −11
    Difference101
  2. Check in decimal
    10002 − 112 = 8 − 3 = 510 = 1012

101 × 11

Two shifted copies of 101, added.

Result 11112 = 1510 In decimal: 5 × 3 = 15.

Step by step

  1. Write one copy of the first number for each 1 in the second, shifted left by that bit’s place
    2⁴2³2²2¹2⁰
    101
    ×11
    101
    +1010
    Product1111
  2. Add the shifted rows
    101 + 1010 = 1111
  3. Check in decimal
    1012 × 112 = 5 × 3 = 1510 = 11112

11 − 101

The second number is larger, so the answer is negative.

Result −102 = −210 In decimal: 3 − 5 = -2.

Step by step

  1. The second number is larger, so subtract the other way round and make the answer negative
    11 − 101 = −(101 − 11)
  2. Subtract column by column from the right. When 0 − 1 comes up, borrow 2 from the next column
    2²2¹2⁰
    Borrow−1
    101
    −11
    Difference10
  3. Check in decimal
    112 − 1012 = 3 − 5 = -210 = −102

FAQ

Questions people ask

What is 1 + 1 in binary?

10, which is two. You write 0 and carry 1.

How do you subtract binary numbers?

Column by column from the right. When you need 0 − 1, borrow from the next column to the left, which adds 2 to the current one.

How do you multiply binary numbers?

Like long multiplication: one shifted copy of the first number for every 1 in the second, then add the copies.

How many bits can I use?

Up to 32 bits per number.

Related app: Base Converter

This one lives on the website. The related app below covers the surrounding topic.

Free to download. AI explanations and dark mode are part of the optional PRO subscription.