What binary numbers are and why you need to convert them

Binary is a number system that uses only two digits: 0 and 1. Computers use binary because their circuits can be either on (1) or off (0). When you convert binary to decimal (the numbers you use every day), you're translating from the computer's language into yours.

A binary number like 1011 doesn't mean one thousand eleven. Each position in the number represents a power of 2, starting from the right. Understanding how to do this conversion by hand helps you see how computers actually store and process information.

Key Takeaways

  • Each position in a binary number represents a power of 2, starting with 2⁰ (which equals 1) on the far right.
  • To convert binary to decimal, multiply each digit by its power of 2, then add all the results together.
  • To convert decimal to binary, repeatedly divide by 2 and track the remainders, reading them from bottom to top.
  • Binary 1011 equals decimal 11 because (1×8) + (0×4) + (1×2) + (1×1) = 11.
  • Online calculators can verify your work, but doing the math by hand shows you how the conversion actually works.

Converting binary to decimal step by step

Start with your binary number and write the powers of 2 above each digit, from right to left. The rightmost digit sits above 2⁰ (which equals 1), the next digit sits above 2¹ (which equals 2), then 2² (which equals 4), then 2³ (which equals 8), and so on.

Take the binary number 1101. Write it out like this:

Power of 22³2²2¹2⁰
Decimal value8421
Binary digit1101

Now multiply each binary digit by its decimal value: (1×8) + (1×4) + (0×2) + (1×1) = 8 + 4 + 0 + 1 = 13. The binary number 1101 equals 13 in decimal.

Converting decimal to binary step by step

Start with your decimal number and divide it by 2. Write down the remainder (either 0 or 1). Take the result and divide by 2 again, writing down the remainder. Keep going until you reach 0.

Let's convert decimal 25 to binary. Divide 25 by 2 and get 12 with remainder 1. Divide 12 by 2 and get 6 with remainder 0. Divide 6 by 2 and get 3 with remainder 0. Divide 3 by 2 and get 1 with remainder 1. Divide 1 by 2 and get 0 with remainder 1. Now read the remainders from bottom to top: 11001. That's your binary number.

To check: (1×16) + (1×8) + (0×4) + (0×2) + (1×1) = 16 + 8 + 1 = 25. The math works.

Using a table to track your work

When you're converting larger numbers, a table keeps you organized. For binary to decimal, list each power of 2 in one row, the binary digits in another, multiply them, and add the results. For decimal to binary, create two columns: one for the division step and one for the remainder.

Here's what a decimal-to-binary table looks like for 42:

DivisionResultRemainder
42 ÷ 2210
21 ÷ 2101
10 ÷ 250
5 ÷ 221
2 ÷ 210
1 ÷ 201

Read the remainders from bottom to top: 101010. That's decimal 42 in binary.

Common binary numbers you'll see

Binary 1 equals decimal 1. Binary 10 equals decimal 2. Binary 100 equals decimal 4. Binary 1000 equals decimal 8. Notice the pattern: each is double the previous one. These powers of 2 show up constantly in computing because memory and storage are measured in powers of 2.

Binary 11111111 (eight 1s) equals decimal 255. This is the largest number you can store in 8 bits, which is why a single byte can hold values from 0 to 255. Binary 10000000 equals decimal 128, which is the midpoint.

Checking your work with online tools

After you've done the math by hand, you can verify your answer using an online binary calculator. Search for "binary to decimal converter" or "decimal to binary converter" and paste your number in. If your answer matches, you did the conversion correctly. If it doesn't, go back through your steps to find where the math went wrong.

Using a calculator to check is different from using it to do the work. When you do the conversion yourself first, you understand what's actually happening. The calculator then confirms you didn't make an arithmetic mistake.

Frequently Asked Questions

Why do computers use binary instead of decimal?

Computer circuits use electricity, which is either flowing (1) or not flowing (0). Binary matches this physical reality perfectly. Decimal would require circuits to distinguish between ten different voltage levels, which is much harder to do reliably and quickly.

What's the difference between bits and bytes?

A bit is a single binary digit: either 0 or 1. A byte is 8 bits grouped together. One byte can represent any decimal number from 0 to 255. When you see storage described as gigabytes or megabytes, that's measuring how many bytes the device can hold.

Can you convert negative numbers to binary?

Yes, but it's more complex than positive numbers. Computers use a method called "two's complement" to represent negative binary numbers. For basic learning, start with positive numbers. Once you're comfortable with those, you can explore how negative numbers work.

Do I need to memorize powers of 2?

You don't have to memorize them, but knowing the first few helps: 2⁰=1, 2¹=2, 2²=4, 2³=8, 2⁴=16, 2⁵=32, 2⁶=64, 2⁷=128, 2⁸=256. You can always calculate them if you forget, but having these in your head makes conversions faster.

What if my binary number has leading zeros?

Leading zeros don't change the value. Binary 0101 equals binary 101, which both equal decimal 5. The zeros on the left represent positions with no value. You can include them or leave them out—the answer stays the same.