The basic method: divide by 2 and track remainders

To convert a decimal number to binary, divide the number by 2 repeatedly and write down the remainder each time. The remainders, read from bottom to top, form your binary answer. This works because binary is base 2 — each position represents a power of 2 instead of a power of 10.

Start with your decimal number. Divide it by 2. Write the remainder (either 0 or 1) to the right. Take the whole number result and divide by 2 again. Keep going until you reach 0. Then read all the remainders backward, from the last one you wrote to the first.

For example, to convert 13 to binary: 13 ÷ 2 = 6 remainder 1. Then 6 ÷ 2 = 3 remainder 0. Then 3 ÷ 2 = 1 remainder 1. Then 1 ÷ 2 = 0 remainder 1. Reading the remainders backward gives 1101, which is 13 in binary.

Key Takeaways

  • Divide your decimal number by 2 repeatedly and record each remainder until you reach 0.
  • Read the remainders from bottom to top to get your binary number.
  • You can verify your answer by adding up the powers of 2 that correspond to each 1 in the binary number.
  • The place-value method works best for smaller numbers; the division method is faster for larger ones.
  • Binary numbers use only 0 and 1, so every remainder will be one of those two digits.

Working through a larger example step by step

Let's convert 45 to binary using the division method. Write 45 at the top and divide by 2: you get 22 with remainder 1. Write the 1 to the right. Divide 22 by 2: you get 11 with remainder 0. Divide 11 by 2: you get 5 with remainder 1. Divide 5 by 2: you get 2 with remainder 1. Divide 2 by 2: you get 1 with remainder 0. Divide 1 by 2: you get 0 with remainder 1.

Now read the remainders from bottom to top: 101101. That is 45 in binary. To check: the positions from right to left represent 2⁰, 2¹, 2², 2³, 2⁴, and 2⁵. Reading 101101, that is (1 × 32) + (0 × 16) + (1 × 8) + (1 × 4) + (0 × 2) + (1 × 1) = 32 + 8 + 4 + 1 = 45. The math checks out.

The place-value method for smaller numbers

If you know the powers of 2, you can also work backward. Write down the powers of 2 from right to left: 1, 2, 4, 8, 16, 32, 64, 128, and so on. Then ask: does my decimal number contain this power of 2? If yes, write 1 under it. If no, write 0.

For 13: the powers of 2 are 1, 2, 4, 8, 16. Does 13 contain 8? Yes, so write 1. Subtract: 13 − 8 = 5. Does 5 contain 4? Yes, so write 1. Subtract: 5 − 4 = 1. Does 1 contain 2? No, so write 0. Does 1 contain 1? Yes, so write 1. Reading left to right, you get 1101 — the same answer as before.

This method is slower for large numbers but helps you understand what each binary digit actually means. It also works well if you are learning binary for the first time.

Why the division method is faster for large numbers

The division method requires no memorization of powers of 2 and works the same way no matter how large the number is. You only need to know how to divide by 2 and identify remainders. For numbers in the hundreds or thousands, this is much quicker than the place-value method.

The place-value method requires you to either memorize or calculate powers of 2 up to the size of your number. For 1000, you would need to know that 2¹⁰ = 1024, which is larger than 1000, so you start there. The division method skips this step entirely.

Checking your work by converting back

Once you have a binary answer, convert it back to decimal to verify. Assign each digit a power of 2, starting from 2⁰ on the right. Multiply each binary digit by its power of 2, then add all the results.

For binary 1101: the rightmost 1 is in the 2⁰ place (value 1). The next 0 is in the 2¹ place (value 0). The next 1 is in the 2² place (value 4). The leftmost 1 is in the 2³ place (value 8). Sum: 1 + 0 + 4 + 8 = 13. If this matches your original decimal number, your conversion is correct.

Common mistakes and how to avoid them

The most common error is reading the remainders in the wrong order. Always read from bottom to top, not top to bottom. Write your remainders clearly in a column so you do not lose track of which one came last.

Another mistake is stopping too early. Keep dividing until you reach 0, not until you reach 1. If you stop at 1, you will miss the final remainder and get the wrong answer. Also, double-check your division: a single arithmetic error early on will throw off the entire result.

When using the place-value method, make sure you subtract correctly after each step. If you forget to subtract, you will count the same power of 2 twice and get a number that is too large.

Frequently Asked Questions

Can I convert a decimal number with a decimal point, like 5.5?

Yes, but the method is different. Convert the whole number part (5) using the division method. For the fractional part (.5), multiply by 2 repeatedly and record the whole number part of each result. For 0.5: 0.5 × 2 = 1.0, so the first binary decimal digit is 1. The answer is 101.1 in binary.

What if my decimal number is 0?

Binary 0 is the same as decimal 0. The conversion is already complete. If you use the division method, 0 ÷ 2 = 0 remainder 0, so you stop when ready with the answer 0.

Do I need to add leading zeros to my binary number?

No. Binary 1101 and binary 01101 represent the same number. Leading zeros do not change the value. Add them only if a specific system or assignment requires a certain number of digits.

Why is binary used in computers?

Computers use binary because electronic circuits have two stable states: on and off, or high voltage and low voltage. These map naturally to 1 and 0. All computer data, from text to images to sound, is stored and processed as binary numbers.

Is there a faster way to convert very large numbers?

The division method is already the fastest manual approach. For very large numbers, a calculator or computer will do the conversion when ready. If you are learning by hand, the division method remains the most reliable.