REVISION GUIDE · IGCSE 0478 AND A LEVEL 9618
How to convert binary to denary (with worked examples)
The place value method for 8-bit numbers, worked examples including 11001000, the reverse method from denary to binary, and the two’s complement trap.
1. The place value method
Each bit in a binary number has a place value. In an 8-bit number the place values, from left to right, are 128, 64, 32, 16, 8, 4, 2 and 1. To convert to denary, add the place values of every column that contains a 1.
| 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|
| 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 |
For 11001000, the 1s are under 128, 64 and 8, so 11001000 = 128 + 64 + 8 = 200.
2. More worked examples
| Binary | Columns with a 1 | Denary |
|---|---|---|
| 11001000 | 128 + 64 + 8 | 200 |
| 00101101 | 32 + 8 + 4 + 1 | 45 |
| 01111111 | 64 + 32 + 16 + 8 + 4 + 2 + 1 | 127 |
| 10101010 | 128 + 32 + 8 + 2 | 170 |
| 10000001 | 128 + 1 | 129 |
| 11111111 | 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 | 255 |
3. Denary to binary
Go the other way by working from the biggest place value down. Write a 1 if the place value fits into what is left, then subtract it; otherwise write a 0.
Example: convert 75 to 8-bit binary.
128 does not fit: 0. 64 fits, 75 − 64 = 11: 1. 32: 0. 16: 0. 8 fits, 11 − 8 = 3: 1. 4: 0. 2 fits, 3 − 2 = 1: 1. 1 fits: 1.
75 = 01001011
Always give the number of bits the question asks for. If it says 8-bit, include leading zeros, so 75 is 01001011 and not 1001011.
4. The two’s complement trap
Read the question carefully. If it says the number is in two’s complement, the leftmost column is worth −128 instead of 128. Then 11001000 is −128 + 64 + 8 = −56, not 200. If the question says unsigned, or says nothing about negative numbers, use the normal place values.
For more on negative numbers and hexadecimal, see our binary, hex and two’s complement guide.
5. Mistakes that cost marks
- Writing the place values the wrong way round: 1 goes on the right, 128 on the left.
- Missing leading zeros when the question asks for 8 bits.
- Using unsigned place values for a two’s complement number.
- Giving the answer without working when the question says “show your working”.
6. How to practise
Calculators are not allowed in the exam (see can you use a calculator in IGCSE Computer Science?), so practise by hand. Convert five random numbers a day, then check them with the binary and hex converter. The IGCSE data representation page has self-marking questions on binary, hex and file sizes.
Frequently asked questions
What is 11001000 in binary to denary?
200. The 1s are in the 128, 64 and 8 columns, and 128 + 64 + 8 = 200. If the number is in two’s complement, it is −56.
What is the largest denary number an 8-bit binary number can store?
255, which is 11111111 in binary. The smallest is 0.
How do I convert denary to binary?
Start at the largest place value. Write 1 if it fits into the number and subtract it, or 0 if it does not, then move to the next place value until you reach 1.
Want more practice with binary? In a 1-to-1 lesson we can practise binary, hex and two’s complement questions together. Book a free demo →