What binary is and why you might need to convert it
Binary is a number system that uses only two digits: 0 and 1. Computers use binary because their circuits can only be in two states — on or off, which map to 1 and 0. When you convert binary to decimal (the numbers we use every day), you're translating from the computer's language into ours.
You might need to do this if you're learning how computers work, troubleshooting network settings, reading error codes, or working with programming. The math is straightforward once you understand the pattern — each position in a binary number represents a power of 2, not a power of 10 like decimal does.
Key Takeaways
- Each position in a binary number represents a power of 2, starting from 2⁰ on the right and doubling as you move left.
- To convert binary to decimal, multiply each digit by its position value and add all the results together.
- To convert decimal to binary, repeatedly divide by 2 and collect the remainders in reverse order.
- Binary 1010 equals decimal 10, and binary 11111111 equals decimal 255 — knowing a few common conversions helps you spot patterns.
Converting binary to decimal: the step-by-step method
Start with a binary number — let's use 1011. Write the position values above each digit, starting from the right. The rightmost digit is position 0, so its value is 2⁰ = 1. The next digit left is position 1, so its value is 2¹ = 2. Keep going: position 2 is 2² = 4, and position 3 is 2³ = 8.
Now multiply each binary digit by its position value. For 1011: the rightmost 1 times 1 equals 1. The next 1 times 2 equals 2. The next 0 times 4 equals 0. The leftmost 1 times 8 equals 8. Add them up: 1 + 2 + 0 + 8 = 11. So binary 1011 is decimal 11.
The pattern holds for any length. Binary 10010 breaks down as: (1 × 16) + (0 × 8) + (0 × 4) + (1 × 2) + (0 × 1) = 16 + 2 = 18. You only add the position values where the binary digit is 1, so you can skip the zeros.
Converting decimal to binary: the division method
Start with a decimal number — let's use 13. Divide it by 2 and write down the remainder (either 0 or 1). Then divide the result by 2 again and write down that remainder. Keep going until you reach 0. The binary number is the remainders read from bottom to top.
For decimal 13: 13 ÷ 2 = 6 remainder 1. Then 6 ÷ 2 = 3 remainder 0. Then 3 ÷ 2 = 1 remainder 1. Then 1 ÷ 2 = 0 remainder 1. Read the remainders from bottom to top: 1101. So decimal 13 is binary 1101. You can check this by converting back: (1 × 8) + (1 × 4) + (0 × 2) + (1 × 1) = 8 + 4 + 1 = 13. It matches.
This method works because division by 2 is how you extract each binary digit. The remainder tells you whether that position is 0 or 1, and dividing the quotient by 2 again moves you to the next position.
Common binary numbers worth memorizing
A few conversions appear so often that recognizing them saves time. Binary 1 is decimal 1. Binary 10 is decimal 2. Binary 100 is decimal 4. Binary 1000 is decimal 8. Notice the pattern: a 1 followed by zeros equals a power of 2. Binary 10000 is 16, binary 100000 is 32, and so on.
For combinations, binary 11 is decimal 3 (2 + 1). Binary 111 is decimal 7 (4 + 2 + 1). Binary 1111 is decimal 15 (8 + 4 + 2 + 1). Binary 11111111 (eight 1s) is decimal 255 — this one shows up constantly in networking and color codes. If you remember that eight binary digits can represent 0 through 255, you've got a useful anchor point.
Using a table to check your work
When you're learning, a reference table helps you verify conversions without redoing the math. Here are some common ones:
| Binary | Decimal |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 10 | 2 |
| 11 | 3 |
| 100 | 4 |
| 101 | 5 |
| 110 | 6 |
| 111 | 7 |
| 1000 | 8 |
| 1010 | 10 |
| 1111 | 15 |
| 10000 | 16 |
| 11111111 | 255 |
Print this table or bookmark it while you're practicing. After a few conversions, the patterns become automatic and you won't need to look them up.
Why the math works: powers of 2 explained
Decimal uses powers of 10. The rightmost digit represents 10⁰ = 1, the next is 10¹ = 10, then 10² = 100, and so on. That's why the number 523 means (5 × 100) + (2 × 10) + (3 × 1). Binary does the same thing but with powers of 2 instead.
In binary, the rightmost digit is 2⁰ = 1, the next is 2¹ = 2, then 2² = 4, then 2³ = 8, then 2⁴ = 16, and so on. Each position doubles. This is why binary numbers get large in decimal quickly — binary 10000000 (eight digits) is already decimal 128. But it's also why binary is efficient for computers: you only need two symbols (0 and 1) to represent any number, no matter how large.
Frequently Asked Questions
Can I convert larger binary numbers the same way?
Yes. The method doesn't change — you still multiply each digit by its power of 2 and add them up. Binary 11010110 is (1 × 128) + (1 × 64) + (0 × 32) + (1 × 16) + (0 × 8) + (1 × 4) + (1 × 2) + (0 × 1) = 128 + 64 + 16 + 4 + 2 = 214. It takes longer with more digits, but the logic is identical.
What's the difference between binary and hexadecimal?
Hexadecimal uses 16 digits (0–9 and A–F) instead of 2. It's another way computers represent numbers, often used in color codes and memory addresses because it's more compact than binary. Binary 11111111 is hexadecimal FF — much shorter to write. You convert hexadecimal to decimal the same way as binary, but each position is a power of 16 instead of a power of 2.
Do I need to memorize the powers of 2?
Not all of them, but knowing the first eight helps: 1, 2, 4, 8, 16, 32, 64, 128. These cover binary numbers up to eight digits, which is common in computing. If you need larger numbers, you can calculate the power on the fly or look it up — the conversion method works either way.
Why do computers use binary instead of decimal?
Computers use binary because their circuits have two stable states: on (1) and off (0). Decimal would require circuits with ten different states, which is much harder to build reliably. Binary is simpler, faster, and less prone to errors in physical hardware.