Binary Calculator

Add, subtract, multiply, and divide binary numbers with step-by-step breakdowns. See the decimal equivalents, bit counts, and every carry or borrow in the arithmetic. Free, private, and runs entirely in your browser.

Binary Arithmetic

Enter two binary numbers, choose an operation, and click Calculate to see the result with a step-by-step breakdown.

Result
—
Decimal A
—
Decimal B
—
Result in Decimal
—
Operation
—

Step-by-step breakdown

Summary

What does this Binary Calculator do?

This free online binary calculator performs the four basic arithmetic operations on binary numbers: addition, subtraction, multiplication, and division. Binary is the base-2 number system used by every computer on the planet, so understanding binary arithmetic is fundamental to computer science, digital electronics, and programming.

Beyond just giving you the answer, this calculator shows the full step-by-step process. You'll see each column-by-column addition with carries, each borrow in subtraction, each partial product in multiplication, and each subtraction step in long division. It also converts everything to decimal so you can verify the result intuitively.

Everything runs locally in your browser. The numbers you enter never leave your device — no server, no logs, no tracking. You can calculate as many binary operations as you want, with no limits and no signup.

How to use the Binary Calculator

  1. Enter the first binary number: Type a binary value (only 0s and 1s) into the "A" field. The input accepts up to 32 bits.
  2. Choose an operation: Click one of the four operator buttons — +, −, ×, or ÷.
  3. Enter the second binary number: Type the second binary value into the "B" field.
  4. Click Calculate: The result appears instantly, along with the decimal equivalents and a step-by-step breakdown.
  5. Copy if needed: Use the "Copy Results" button to grab a formatted summary.

That's it. No signup, no email, no waiting. The entire process takes seconds.

Binary arithmetic rules

Binary arithmetic follows simpler rules than decimal because there are only two digits. Here's the complete reference.

Binary addition
0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 10 (0, carry 1)
1 + 1 + 1 = 11 (1, carry 1)
Binary subtraction
0 − 0 = 0
1 − 0 = 1
1 − 1 = 0
0 − 1 = 1 (borrow 1 from the next higher bit)
Binary multiplication
0 × 0 = 0
0 × 1 = 0
1 × 0 = 0
1 × 1 = 1

Multiply the multiplicand by each bit of the multiplier (0 or 1), then add the partial products shifted left.
Binary division
Use long division: at each step, compare the partial dividend to the divisor.
If divisor ≤ partial dividend → write 1, subtract
If divisor > partial dividend → write 0, bring down next bit
Continue until all bits are used.

The key insight is that binary arithmetic is exactly like decimal arithmetic — just with only two digits. Carries work the same way (1+1 produces a carry), borrows work the same way (0−1 requires borrowing), and multiplication by a single bit is trivial (multiply by 0 or by 1).

Binary to decimal conversion reference

Each position in a binary number represents a power of 2, starting from 2⁰ on the right. Here's the reference table for the first 16 values.

Binary Decimal Power breakdown Hex
00000—0
000112⁰1
001022¹2
001132¹ + 2⁰3
010042²4
010152² + 2⁰5
011062² + 2¹6
011172² + 2¹ + 2⁰7
100082³8
100192³ + 2⁰9
1010102³ + 2¹A
1011112³ + 2¹ + 2⁰B
1100122³ + 2²C
1101132³ + 2² + 2⁰D
1110142³ + 2² + 2¹E
1111152³ + 2² + 2¹ + 2⁰F

To convert binary to decimal: multiply each binary digit by its positional power of 2 and add the results. For example, 1011 = 1×8 + 0×4 + 1×2 + 1×1 = 11.

Where binary arithmetic is used in real life

Binary isn't just a classroom topic — it's the foundation of everything digital.

Computer processors

Every CPU, GPU, and microcontroller performs arithmetic in binary. The ALU (Arithmetic Logic Unit) inside a processor executes binary addition, subtraction, multiplication, and division using logic gates. When you add two numbers in a program, the CPU is doing binary arithmetic at the transistor level.

Digital electronics

Digital circuits like adders, subtractors, and multipliers are built from logic gates (AND, OR, NOT, XOR). Full adders and ripple-carry adders are standard building blocks in digital design, and they implement the same binary addition rules this calculator shows.

Networking and IP addresses

IPv4 addresses are 32-bit binary numbers. Subnet masks, CIDR notation, and network ranges all rely on binary arithmetic. Understanding binary is essential for anyone working with network configuration or cybersecurity.

Cryptography

Modern encryption algorithms (AES, RSA, elliptic-curve cryptography) operate on binary data. Bitwise operations, modular arithmetic, and binary exponentiation are core to cryptographic primitives.

Programming and data representation

Every integer, character, image, and video is stored as binary. Bitwise operations (AND, OR, XOR, NOT, shifts) are used in low-level programming, compression algorithms, hash functions, and graphics programming. Understanding binary makes these operations intuitive.

Why use this Binary Calculator?

Instant results

No server round-trip means your answer appears the moment you click Calculate. Zero waiting.

Step-by-step breakdown

See each column addition with carries, each borrow in subtraction, each partial product in multiplication, and every step of long division.

100% private

Everything runs in your browser. The numbers you enter never leave your device — no server, no logs, no tracking.

Decimal side-by-side

Every result also shows the decimal equivalent, so you can sanity-check your answer at a glance.

No limits

Calculate as many binary operations as you want. No daily caps, no watermarks, no "upgrade to pro" nonsense.

Works offline

Once the page loads, you can use the calculator without an internet connection. Bookmark it for exam prep.

Common mistakes to avoid

  • Forgetting the carry in 1+1. The most common error in binary addition is writing 1+1=2. It's actually 10 in binary (0 with a carry of 1).
  • Mixing up borrow and carry. Carries happen in addition (going left, adding 1). Borrows happen in subtraction (going left, subtracting 1). They look similar but are opposite operations.
  • Assuming binary subtraction works like decimal. The rule 0−1 = 1 with borrow is counterintuitive at first. The borrowed 1 becomes 2 in the current position, so 0−1 becomes 10−1 = 1 with a borrow.
  • Forgetting to align binary numbers by the least-significant bit. When adding or subtracting, always align from the right (the 2⁰ position), not the left. Otherwise the place values don't match.
  • Dividing without bringing down bits. Binary long division requires bringing down the next bit each time, just like decimal long division requires bringing down the next digit.
  • Ignoring the sign bit in signed arithmetic. This calculator handles unsigned (positive) binary numbers. Signed binary (two's complement) is a separate topic with different rules.

Frequently asked questions

A binary number is a number expressed in base-2, using only two digits: 0 and 1. Each position represents a power of 2. For example, the binary number 1011 equals 1×2³ + 0×2² + 1×2¹ + 1×2⁰ = 8 + 0 + 2 + 1 = 11 in decimal.
Binary addition follows four rules: 0+0=0, 0+1=1, 1+0=1, 1+1=10 (0 with carry 1). When three 1s are added, the result is 11 (1 with carry 1). Carries propagate from right to left, just like decimal addition.
Binary subtraction follows these rules: 0−0=0, 1−0=1, 1−1=0, 0−1=1 with a borrow of 1 from the next higher bit. The borrowed 1 becomes 2 in binary (10), so 0−1 becomes 10−1=1 with a borrow.
Binary multiplication is like decimal multiplication: 0×0=0, 0×1=0, 1×0=0, 1×1=1. Multiply the multiplicand by each bit of the multiplier and add the partial products, shifting left by one position for each row.
Binary division uses long division: repeatedly subtract the divisor from the dividend (or partial dividend) and record the quotient bits. If the divisor fits, write 1; otherwise write 0. Bring down the next bit and repeat.
This calculator supports binary numbers up to 32 bits (values up to about 4 billion in decimal). For larger numbers, you'd need a dedicated big-integer tool or a programming language with arbitrary-precision arithmetic.
In standard binary, numbers are unsigned (non-negative). To represent negative numbers, computers use two's complement, where the leftmost bit acts as a sign bit. This calculator works with unsigned binary numbers, so all inputs should be non-negative.
Yes, completely free. No signup, no watermark, no hidden charges. Use it as many times as you want, for homework, work, or personal projects.
Absolutely. Everything runs in your browser using JavaScript. The numbers you enter never leave your device — there is no server processing, no logging, and no data storage. Close the tab and it's gone.