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

32 + 4 + 1 = 37

8-bit binary 00100101 = 37 in denary

Decimal37
tap a bit to flip it

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.

Exam line: Binary to decimal: add up the place values of the columns holding a 1.
Watch out: Place values grow to the left. The right-most column is worth 1, and the left-most of the eight is worth 128.

Decimal vs binary

Decimal (denary)vsBinary

You already trust the decimal table. Here is how binary differs from it.

Focus

Digits you can use

Decimal (denary)

0 to 9 (base 10)

Binary

Only 0 and 1 (base 2)

The insight

The base is the range of values a digit can take, which is why a binary number never contains a 2.

Each place value is a power of

Decimal (denary)

10

Binary

2

How each place value compares with the one before

Decimal (denary)

Multiplied by 10 (1, 10, 100, 1000...)

Binary

Multiplied by 2 (1, 2, 4, 8, 16...)

How to show which system a number is in

Decimal (denary)

101 with a small 10 after it

Binary

101 with a small 2 after it

Decimal to binary

Turn 60 into binary: you supply the decisions

Convert the decimal number 60 into binary using a place value table.

  1. Write the place values 128, 64, 32, 16, 8, 4, 2, 1 and start on the left with 60.
  2. 128 is bigger than 60, so put a 0 under it. 64 is also bigger than 60, so another 0.A column whose place value is larger than what is left always gets a 0.
  3. missing step
Which line is step 3?

Exam line: Start on the left. Where a place value fits, put a 1 and subtract it. Where it is too big, put a 0.

Check the work

Catch the slip, then catch it with a check

A student converts 111011 (binary) into decimal. Find the line where they go wrong.

A student's answer — which line goes wrong?

Exam line: Add only the columns holding a 1, then convert back to check.

What do you think?

Which idea is closest to yours?

Three friends are arguing about binary numbers. Each one is sure.

Which is closest to what you think right now?
How sure are you?

Exam line: Binary place values double, the subscript names the base, and the largest 8-bit value is 255.

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

1Binary is a base-2 number system. Its place values are 1, 2, 4, 8, 16, 32, 64, 128 and so on, each one double the one before.
2Binary to decimal: line the digits up in the table and add the place values of the columns holding a 1. Columns holding 0 contribute nothing.
3Decimal to binary: from the left, put a 1 and subtract wherever a place value fits, put a 0 wherever it is too big, and fill with 0s once the result is 0.
4Check a conversion by converting your answer back, and show the base with a subscript: 101 with a 2 is binary, 101 with a 10 is decimal.
5The largest 8-bit binary value is 11111111, which is 255 in decimal.

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?
A digit's value depends on its position in the number.
What does the base of a number system tell you?
The range of values a digit can take: decimal (base 10) uses 0 to 9, binary (base 2) uses only 0 and 1.
What are the first eight binary place values, right to left?
1, 2, 4, 8, 16, 32, 64, 128. Each is the previous one multiplied by 2.
Decimal place values are powers of what? Binary place values?
Decimal: powers of 10. Binary: powers of 2.
In binary to decimal, which columns contribute to the total?
Only the columns holding a 1. Each adds its place value; columns holding 0 add nothing.
Decimal to binary: where does the first 1 go?
Under the first place value that is less than or equal to the number. Put a 1 there and subtract that place value.
What goes in a column whose place value is larger than the amount left?
A 0.
The amount left reaches 0 part-way along the table. What goes in the remaining columns?
0s.
How can you check a conversion?
Convert your answer back again. You should get the number you started with.
How do you show the base of a number?
With a subscript after it: 101 with a 2 is binary, 101 with a 10 is decimal.
What is the largest number an 8-bit binary value can represent?
11111111 in binary, which is 255 in decimal.
What does 'denary' mean?
The same as decimal: the base-10 number system.

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 posted

More Edexcel GCSE Computer Science topics

See the full Edexcel Computer Science curriculum →

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.