Binary Calculator

Perform basic binary calculations like addition, subtraction, multiplication, and division with ease. Simply enter the binary numbers (using only 0s and 1s), select the operation you want to perform, and get instant results. The final answer will be shown in three formats: binary, decimal, and hexadecimal for better understanding.

Only 0s and 1s
Decimal: -
Only 0s and 1s
Decimal: -

Binary Arithmetic Guide

Binary Number System

The binary number system uses only two digits: 0 and 1. Each digit is called a bit (short for binary digit). Binary numbers are the foundation of modern computing because computers and digital devices work using two states — on and off.

Positional values: Rightmost bit = 2⁰ (1), next = 2¹ (2), next = 2² (4), next = 2³ (8), etc.

Example: 1011₂ = (1×8) + (0×4) + (1×2) + (1×1) = 8 + 0 + 2 + 1 = 11₁₀

Binary Addition Rules

Binary addition follows four simple rules:

A B Sum Carry
0000
0110
1010
1101

Example: 1011 + 1101 = 11000 (11 + 13 = 24)

When adding binary numbers with multiple bits, you must include any carry from the previous step — just like in decimal addition. The process is actually simpler because binary uses only two digits: 0 and 1.

Binary Subtraction Rules

Binary subtraction follows four simple rules:

A B Difference Borrow
0000
1010
1100
0111

Example: 1101 − 1011 = 0010 (13 − 11 = 2)

When subtracting, if the top bit is smaller than the bottom bit, you borrow 1 from the next left bit. That borrowed 1 becomes binary 10 (which equals 2 in decimal).

Binary Multiplication Rules

Binary multiplication follows four simple rules:

A B Product
000
010
100
111

Example: 101 × 11 = 1111 (5 × 3 = 15)

Binary multiplication works like decimal multiplication. Multiply each digit and shift left for each new row, then add the partial results together.

Binary Division Rules

Binary division is similar to decimal long division and follows simple rules:

A B Result
010
111
00Undefined
10Undefined

Example: 1111 ÷ 11 = 101 (15 ÷ 3 = 5)

Binary division uses repeated subtraction. Compare the divisor with the leftmost bits of the dividend, subtract when possible, and continue step by step like long division.

Binary Addition Example

Binary addition is performed from right to left, carrying over when the sum exceeds 1.

Step Operation Result Carry
11 + 101
21 + 0 + carry 101
30 + 1 + carry 101
41 + carry 101

Example: 1011 + 1101 = 11000 (11 + 13 = 24)

Binary Subtraction Example

Binary subtraction is done from right to left, borrowing from the next bit when needed.

Step Operation Result Borrow
11 − 100
20 − 111
3Borrowed 1 → 10 − 010
41 − 100

Example: 1101 − 1011 = 0010 (13 − 11 = 2)

Binary Multiplication Example

Binary multiplication is similar to decimal multiplication using partial products.

Step Operation Partial Result
1101 × 1101
2101 × 1 (shift left)1010
3Add partial results1111

Example: 101 × 11 = 1111 (5 × 3 = 15)

Binary Division Example

Binary division follows long division by repeatedly subtracting the divisor from the dividend.

Step Operation Quotient Bit Remainder
111 into 11100
2Bring down next bit (1)001
311 into 11100

Example: 1111 ÷ 11 = 101 (15 ÷ 3 = 5)