- Foundation
- About 13 min
- 5 practice questions
Converting between binary and decimal
Convert binary numbers to decimal using place values and decimal to binary by repeated division by 2.
If something looks wrong, please tell us.
Binary-decimal conversion is the most tested skill in this topic. Both directions use simple, repeatable steps.
Binary to decimal
Write the place values (from the right: 1, 2, 4, 8, 16, 32...). Add the place values wherever there is a 1.
Example 1. Convert 1011 to decimal. Places 8, 4, 2, 1 and digits 1, 0, 1, 1 give 8 + 0 + 2 + 1 = 11.
Example 2. Convert 110101 to decimal. Places 32, 16, 8, 4, 2, 1 with digits 1, 1, 0, 1, 0, 1 give 32 + 16 + 4 + 1 = 53.
Decimal to binary
Divide the number by 2 again and again, noting each remainder, until the quotient is 0. Read the remainders from bottom to top.
| Division | Quotient | Remainder |
|---|---|---|
| 25 / 2 | 12 | 1 |
| 12 / 2 | 6 | 0 |
| 6 / 2 | 3 | 0 |
| 3 / 2 | 1 | 1 |
| 1 / 2 | 0 | 1 |
Example 3. Reading remainders bottom to top gives 11001. Check: 16 + 8 + 1 = 25.
Example 4. Convert 45 to binary. 45 = 32 + 8 + 4 + 1, so the 32, 8, 4 and 1 places hold 1 and the others 0: 101101. Check by division: 45/2 = 22 r1, 22/2 = 11 r0, 11/2 = 5 r1, 5/2 = 2 r1, 2/2 = 1 r0, 1/2 = 0 r1, giving 101101.
Binary fractions
To convert 0.625 to binary, multiply the fractional part by 2 repeatedly and note the whole-number parts. 0.625 x 2 = 1.25 (1); 0.25 x 2 = 0.5 (0); 0.5 x 2 = 1.0 (1). Read downward: 0.101.
Binary to decimal: add place values where there is a 1. Decimal to binary: divide by 2 and read remainders upward.
Key takeaways
- Use place values 1, 2, 4, 8, 16, 32, 64, 128.
- Remainders are read from bottom to top.
- Always check by converting back.
Check your understanding
-
1. Convert binary 1011 to decimal.
- 13
- 11
- 9
- 7
Show answer
Answer: B. Place values 8, 4, 2, 1 with digits 1, 0, 1, 1: 8 + 2 + 1 = 11.
-
2. Convert binary 101011 to decimal.
- 45
- 53
- 43
- 41
Show answer
Answer: C. Place values 32, 16, 8, 4, 2, 1 with digits 1, 0, 1, 0, 1, 1: 32 + 8 + 2 + 1 = 43.
-
3. Convert decimal 29 to binary.
- 10111
- 11011
- 11110
- 11101
Show answer
Answer: D. 29 / 2 = 14 r1, 14 / 2 = 7 r0, 7 / 2 = 3 r1, 3 / 2 = 1 r1, 1 / 2 = 0 r1. Reading upward: 11101. Check: 16 + 8 + 4 + 1 = 29.
-
4. When converting decimal to binary by repeated division by 2, how are the remainders read?
- From the last remainder to the first (bottom to top)
- From the first remainder to the last (top to bottom)
- Only the first remainder is used
- Only the last remainder is used
Show answer
Answer: A. The last remainder is the leftmost bit, so remainders are read from bottom to top.
-
5. Convert decimal 0.375 to binary.
- 0.101
- 0.011
- 0.110
- 0.111
Show answer
Answer: B. 0.375 x 2 = 0.75 (0); 0.75 x 2 = 1.5 (1); 0.5 x 2 = 1.0 (1). Reading downward: 0.011. Check: 1/4 + 1/8 = 0.375.
Sign in to keep track of the lessons you finish.