Binary Calculator

2
2

Calculation Result

Binary Arithmetic Tool

Perform binary arithmetic operations — add, subtract, and convert binary numbers. Enter any binary value and see results in decimal, hex, and octal with step-by-step computation breakdowns.

5Number Systems
Precision
0msLatency
Interactive Tool Module

Simulated ALU Engine Matrix

The Arithmetic Logic Unit (ALU) sits at the core of all modern CPUs. Below is a visualization of how two binary inputs branch outwards into parallel operations instantly.

Parallel ALU Output Bus
ADDITION (A+B)
Wait...
SUBTRACT (A-B)
Wait...
MULT (A * B)
Wait...
FAQ

Frequently Asked Questions

How does binary addition work?
Binary addition follows simple rules: 0+0=0, 0+1=1, 1+0=1, 1+1=10 (0 with carry 1), and 1+1+1=11 (1 with carry 1). You add column by column from right to left, carrying over just like decimal addition. Example: 1011 + 1101 = 11000₂ (11 + 13 = 24₁₀).
How does binary subtraction work?
Binary subtraction uses borrowing: 0-0=0, 1-0=1, 1-1=0, 0-1=1 (with borrow). When subtracting 1 from 0, you borrow from the next higher bit, which gives you 10₂ (2) minus 1 = 1. Alternatively, you can add the 2's complement of the subtrahend.
How does binary multiplication work?
Binary multiplication is simpler than decimal because you only multiply by 0 or 1. Multiply the binary number by each bit of the multiplier: if the bit is 1, copy the number (shifted left); if 0, write zeros. Then add all partial products. Example: 101 × 11 = 1111₂ (5 × 3 = 15₁₀).
What is binary overflow?
Binary overflow occurs when the result of an arithmetic operation exceeds the maximum value that can be represented with the given number of bits. For unsigned 8-bit numbers, overflow happens above 255 (11111111₂). For signed 8-bit, overflow occurs above 127 or below -128. Overflow can cause unexpected results in programs.
Can you divide binary numbers?
Yes, binary division works like long division in decimal but simpler since you only compare with 0 or 1. At each step, check if the divisor fits into the current portion: if yes, write 1 and subtract; if no, write 0 and bring down the next digit. The process continues until all digits are processed.
What are the basic rules of binary arithmetic?
Binary arithmetic has four basic operations: Addition (0+0=0, 0+1=1, 1+1=10), Subtraction (0-0=0, 1-0=1, 1-1=0, 10-1=1), Multiplication (0×0=0, 0×1=0, 1×1=1), and Division (0÷1=0, 1÷1=1). All follow the same principles as decimal arithmetic but with only two digits.
Copied to clipboard!