binary addition calculator

Allowed characters: 0 and 1 (optional 0b prefix).

Try examples:

What is binary addition?

Binary addition is the process of adding numbers in base-2, where each digit can only be 0 or 1. It follows the same carry concept you use in decimal math, but with simpler rules because there are only two symbols.

This calculator helps you add two binary values instantly and also shows the carry logic column by column, making it useful for students, developers, and anyone learning digital systems.

Binary addition rules (quick reference)

  • 0 + 0 = 0 (carry 0)
  • 0 + 1 = 1 (carry 0)
  • 1 + 0 = 1 (carry 0)
  • 1 + 1 = 10 (write 0, carry 1)

When a carry enters a column, you simply add it too. For example, 1 + 1 + carry(1) = 11 in binary, so you write 1 and carry 1 again.

How this calculator works

1) Input normalization

The tool accepts plain binary strings like 10101 or prefixed values like 0b10101. Spaces are removed, and validation checks that only 0s and 1s remain.

2) Decimal conversion with BigInt

Internally, each binary number is converted to a decimal BigInt value, which allows accurate math with very large inputs that can exceed standard integer limits.

3) Bit-by-bit carry simulation

In addition to returning the final sum, the calculator walks from right to left through each bit position and computes:

  • carry-in
  • column total
  • result bit
  • carry-out

That step table mirrors the way binary addition is performed manually on paper.

Worked example

Suppose you add 1011 and 1101:

  • Rightmost: 1 + 1 = 0, carry 1
  • Next: 1 + 0 + carry 1 = 0, carry 1
  • Next: 0 + 1 + carry 1 = 0, carry 1
  • Leftmost: 1 + 1 + carry 1 = 1, carry 1
  • Final carry gives leading 1

Result: 11000.

Why binary addition matters

Binary arithmetic is foundational in computer science and electronics. CPUs, memory systems, logic circuits, and low-level software all rely on bitwise operations and base-2 math.

  • Understand how processors perform arithmetic
  • Learn data representation and overflow behavior
  • Strengthen skills for digital logic, networking, and systems programming

Common mistakes to avoid

  • Forgetting to propagate carry across multiple columns
  • Mixing decimal intuition with binary place values
  • Entering non-binary characters (like 2, 8, or letters)
  • Dropping the final carry bit

Use the step table above whenever you need to verify your work or troubleshoot a mismatch.

đź”— Related Calculators