GCSE · Computer Science · Edexcel · Spec 1CP2
Denary↔binary conversion
Is 101 one hundred and one, or is it five? One tiny thing next to the number decides it. Find out what, and you can convert both ways.
Computer Science · Data representation
Flip the bits, watch the number
Tap a switch to flip that bit. Each column is worth double the one on its right, and only the columns holding a 1 count. Try switching on just the 4 and the 1, then switch on all eight.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Binary is just place value where the columns double instead of going up in tens.
What you need to know
- Place value means a digit's worth depends on where it sits in the number.
- Base means the range of values a digit can take: base 10 uses 0 to 9, base 2 uses just 0 and 1.
- In decimal every place value is ten times the last one; in binary every place value is double the last one.
- Right to left, the binary place values are 1, 2, 4, 8, 16, 32, 64, 128 and so on.
Have a goZed says the binary place values go 1, 2, 3, 4, 5 because 'you just count up'. What rule shows he's wrong?
Each place value is the previous one multiplied by 2: 1, 2, 4, 8, 16.
Binary columns double. They don't go up by one each time, and they don't go up in tens like decimal.
- To go from binary to decimal, line the digits up with the right-most digit in the right-most column, then add the 1-columns.
Have a goThe table is 8 | 4 | 2 | 1 and the digits underneath are 1 0 1 1. Which columns do you add, and what do you get?
8 + 2 + 1 = 11.
Only the columns holding a 1 are added. The 4 column holds a 0, so it contributes nothing.
- Going the other way, start on the left: put a 1 under the first place value that fits, then subtract it.
- Any column bigger than what's left gets a 0, and once nothing is left, 0s fill the rest.
Have a goTurn 6 into binary using the columns 4, 2 and 1. What goes under each one?
1, 1, 0, so 6 is 110 in binary.
4 fits (6 − 4 = 2) and 2 fits (2 − 2 = 0). With nothing left, the last column is a 0, not a 1.
- Check any conversion by converting your answer back. If you don't land on the number you started with, you have slipped.
- A small subscript shows the base: 101 with a 2 is binary, 101 with a 10 is decimal.
- The largest 8-bit binary value is 11111111, which is 255 in decimal.
The big picture
Binary is place value with columns that double: 1, 2, 4, 8 and onwards. To go from binary to decimal, add up the place values of the columns holding a 1. To go from decimal to binary, work from the left, put a 1 and subtract wherever a place value fits, then check by converting back.
Key points
Worked example
Problem
Convert 11010 (binary) to decimal using the place value table, then check your answer.
⚠ Watch out
Reading binary with decimal habits: seeing 101 and thinking one hundred and one, or expecting the columns to grow in tens. Binary columns double, and the small subscript tells you which system you are reading.
Memory hook
Binary to decimal: ADD the 1-columns. Decimal to binary: SUBTRACT as you place each 1. Then convert back to check. Columns double: 1, 2, 4, 8, 16...
Check yourself
Close the page. Write the eight binary place values from memory, then use them to turn 100110 (binary) into decimal and 25 (decimal) into binary. Convert each answer back to check it.
Flashcards
(12)What is place value?
What does the base of a number system tell you?
What are the first eight binary place values, right to left?
Decimal place values are powers of what? Binary place values?
In binary to decimal, which columns contribute to the total?
Decimal to binary: where does the first 1 go?
What goes in a column whose place value is larger than the amount left?
The amount left reaches 0 part-way along the table. What goes in the remaining columns?
How can you check a conversion?
How do you show the base of a number?
What is the largest number an 8-bit binary value can represent?
What does 'denary' mean?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore Edexcel GCSE Computer Science topics
How this lesson was checked. This Edexcel GCSE Computer Science (specification 1CP2)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 21 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.