Binary Calculator – Add, Subtract Binary Numbers

Perform arithmetic on binary numbers and convert the result.

About This Calculator

Perform arithmetic on binary numbers and convert the result. Use the calculator above for instant results.

Worked Examples

Example 1: 1010 + 0110

  • 10 + 6 = 16 | Binary: 10000

Answer: 10000 (16)

Example 2: 1111 AND 1010

  • 15 AND 10 = 10 | Binary: 1010

Answer: 1010 (10)

Example 3: 1100 XOR 1010

  • 12 XOR 10 = 6 | Binary: 0110

Answer: 0110 (6)

Who Uses This Calculator?

💻
CS Students

Binary arithmetic practice.

🔧
Engineers

Digital logic circuit design.

🏫
Teachers

Demo binary operations.

📊
Programmers

Understand bitwise operations.

Common Mistakes to Avoid

❌ Binary overflow

Binary addition can overflow. 1111 + 0001 = 10000 (5 bits). Always check bit width for your system.

❌ Signed vs unsigned

This calculator uses unsigned integers. Negative binary (two's complement) requires different handling.

Frequently Asked Questions

Binary addition rules?

0+0=0, 0+1=1, 1+0=1, 1+1=10 (carry 1). Same as decimal but base-2.

AND, OR, XOR used for?

AND: masking bits. OR: setting bits. XOR: toggling bits, checksum, encryption. NOT: inverting all bits.

Two's complement?

For signed negative binary, invert all bits and add 1. Used by all modern computers for signed integers.