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
- 10 + 6 = 16 | Binary: 10000
Answer: 10000 (16)
- 15 AND 10 = 10 | Binary: 1010
Answer: 1010 (10)
- 12 XOR 10 = 6 | Binary: 0110
Answer: 0110 (6)
Who Uses This Calculator?
Binary arithmetic practice.
Digital logic circuit design.
Demo binary operations.
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.