KS3 · Computer Science

Binary to denary conversion

To you, 101 means one hundred and one. To a computer, it means five. Same three digits, different number. By the end of this lesson you'll know why.

Computer Science · Binary

Eight switches, one number

2 + 1 = 3

8-bit binary 00000011 = 3 in denary

Denary3
tap a bit to flip it

Each box is one bit: a binary digit, 0 or 1. The small number above each box is its place value. Tap a bit to flip it and watch the denary value change.

Watch out: The place values double from right to left: 1, 2, 4, 8 and so on. The leftmost bit is worth the most, not the least.

Denary vs binary

Denary (base 10)vsBinary (base 2)

You already use place value every day. Binary keeps the idea and changes just one rule.

Focus

Moving one place to the left

Denary (base 10)

Each place value is ten times the one on its right: 1, 10, 100, 1000 …

Binary (base 2)

Each place value is double the one on its right: 1, 2, 4, 8 …

The insight

This is the only rule that changes. Ones, tens, hundreds becomes ones, twos, fours.

Digits it uses

Denary (base 10)

Ten digits: 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9

Binary (base 2)

Two digits: 0 and 1. Each binary digit is called a bit.

What the digits 101 mean

Denary (base 10)

1 hundred + 0 tens + 1 one = one hundred and one

Binary (base 2)

1 four + 0 twos + 1 one = five

Writing the number twelve

Denary (base 10)

12: two digits

Binary (base 2)

1100: four bits (8 + 4)

Why binary?

?

Reason it through

Why do computers count in binary instead of denary?

Link 1 of 3

First link · your turn

A computer stores and processes data using electronic circuits. How many states does the circuit use to hold data?

2
Locked — reveal the link above first
3
Locked — reveal the link above first

Your turn · Binary to denary

Finish the conversion

Convert the binary number 01101001 to denary.

  1. Write the place values above the bits, starting with 1 on the right and doubling as you go left: 128, 64, 32, 16, 8, 4, 2, 1 above 0, 1, 1, 0, 1, 0, 0, 1.
  2. missing step
Which line is step 2?

Computer Science · Algorithms

Trace table — dry run the code

Now the other way: turn the denary number 45 into 8-bit binary. At each place value, from 128 down to 1, ask one question: does it fit into what's left?

1left ← 45
2FOR EACH place IN 128, 64, 32, 16, 8, 4, 2, 1
3 IF place <= left THEN
4 left ← left - place
5 OUTPUT 1
6 ELSE
7 OUTPUT 0
8 ENDIF
9ENDFOR
place
fits?
left
Output
Press Start to run the first line.
·

Ready when you are — step through one line at a time.

Bytes

How big can a byte go?

A group of 8 bits is called a byte. What's the largest denary number one byte can hold? Commit to a guess before you work it out.

Your estimate

500

01000

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

Computers count with just 0 and 1. Learn to read their numbers, then write your own.

What you need to know

  • Denary (also called decimal) is base 10: it uses the ten digits 0 to 9.
  • In denary, each place value is ten times the one to its right: 1, 10, 100, 1000 and so on.
  • Have a goQuick one before binary arrives: in the denary number 3000, what is the 3 actually worth?

    Three thousand.

    The 3 sits in the 1000 column, so its position multiplies it; reading it as just 3 ignores where it is, and position is the whole idea behind binary too.

  • Binary is base 2. It uses only the digits 0 and 1, and each binary digit is called a bit.
  • Computers use binary because their electronic circuits store and process data as two states: on and off.
  • Here's the one rule that changes: in binary, each place value is double the one to its right.
  • Have a goSam has a binary column worth 16 and swears the next column to its left is worth 26, 'because that's how place value works'. What is it really worth?

    32.

    Sam added ten. Binary columns double, so the next one along is 16 × 2 = 32, and even denary multiplies by ten rather than adding it.

  • So for 8 bits, the place values from right to left are 1, 2, 4, 8, 16, 32, 64 and 128.
  • Binary to denary: write the place values above the bits, then add up the columns holding a 1. A 0 column adds nothing.
  • Have a goTry it in your head: what is 10000001 in denary?

    129.

    Only the 128 and 1 columns hold a 1, so 128 + 1 = 129; counting the two 1s would give 2, which ignores what each column is worth.

  • Denary to binary: start at the largest place value. Fits into what's left? Write 1 and subtract. Doesn't fit? Write 0.
  • Keep going until every column has a bit and nothing is left over, even if that means a few 0s at the end.
  • A byte is a group of 8 bits. It can hold the denary values 0 (00000000) to 255 (11111111).

The big picture

Binary is place value with one rule changed. Denary (base 10) uses the digits 0 to 9, and each place value is ten times the one to its right. Binary (base 2) uses only 0 and 1, called bits, and each place value is double the one to its right. Computers use binary because their circuits store and process data as two states, on and off. To read binary, add up the place values of the columns holding a 1. To write it, work down from 128: if a place value fits, write 1 and subtract; if not, write 0. One byte (8 bits) holds 0 to 255.

Key points

1Denary = base 10, digits 0–9, place values × 10 each step left.
2Binary = base 2, digits 0 and 1 (each one a bit), place values × 2 each step left.
3Computers use binary: their circuits have two states, on and off.
48-bit place values, left to right: 128, 64, 32, 16, 8, 4, 2, 1.
5Binary → denary: add the place values of the 1 columns only.
6Denary → binary: biggest place value first; fits → 1 and subtract, doesn't fit → 0. Fill every column.
71 byte = 8 bits = denary 0 to 255.

Worked example

Problem

Convert the denary number 200 to 8-bit binary, then check your answer by converting it back.

⚠ Watch out

Reading binary as if it were denary, so thinking 101 means one hundred and one. Looks convincing. It isn't: in binary, 101 is 4 + 1 = 5. The other trap is adding up every place value. Only the columns holding a 1 count; a 0 adds nothing.

🧠

Memory hook

Picture a row of eight light switches labelled 128, 64, 32, 16, 8, 4, 2, 1. Lights on count. Lights off don't. Every light on? 255.

✓

Check yourself

Without scrolling up: what is 00010110 in denary? What is 19 as an 8-bit binary number? What is the largest number one byte can hold? (Answers: 22, 00010011 and 255.)

Flashcards

(14)
What is denary?
The base-10 number system you use every day. It uses the ten digits 0 to 9.
In denary, how does each place value compare with the one to its right?
Ten times bigger: 1, 10, 100, 1000 and so on.
What is binary?
The base-2 number system. It uses only the two digits 0 and 1.
What is a bit?
A single binary digit: a 0 or a 1.
Why do computers use binary?
Their electronic circuits store and process data as two states, on and off, so each digit only needs two values.
In binary, how does each place value compare with the one to its right?
Double: 1, 2, 4, 8 and so on.
The eight place values of an 8-bit number, from left to right?
128, 64, 32, 16, 8, 4, 2, 1
How do you convert binary to denary?
Write the place values above the bits, then add the place values of every column holding a 1.
What does a column holding 0 add to the total?
Nothing. Only the columns holding a 1 count.
How do you convert denary to binary?
Start at the largest place value. If it fits into what's left, write 1 and subtract it; if not, write 0. Move on to the next place value.
Converting denary to binary: when do you stop?
When every column has a bit and nothing is left over. Columns after the last 1 still get a 0.
Does the binary number 101 mean one hundred and one?
No. In binary, 101 means 4 + 1 = 5.
What is a byte?
A group of 8 bits.
What range of denary values can one byte hold?
0 (00000000) to 255 (11111111).

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 KS3 Computer Science topics

See the full KS3 Computer Science curriculum →

How this lesson was checked. This KS3 Computer Sciencelesson 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 30 October 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.

Helpful guides for parents and students