GCSE · Computer Science · Eduqas · Spec C500QS

Denary, binary and hexadecimal counting

Think of an odometer: each wheel rolls from 9 to 0 and nudges the next one. Binary and hexadecimal work the same way, with different-sized wheels.

Computer Science · Number systems

Flip the bits, watch the number jump

4 + 2 + 1 = 7

8-bit binary 00000111 = 7 in denary

Denary value7
tap a bit to flip it between 0 and 1

In denary, every column is worth ten times the column on its right. In binary, every column is worth twice the column on its right. This is an 8-bit binary number: tap a bit to flip it and watch the denary total change. Make it 7, then try to make it one bigger.

Exam line: Binary to denary: add up the place values of the columns that hold a 1.
Watch out: A 0 column adds nothing. Only the columns holding a 1 go into the sum.

Predict the carry

In denary, 99 + 1 = 100. In binary, 0111 + 1 = 1000. Now it's hexadecimal's turn.

In hexadecimal, what is 0F + 1?

Computer Science · Number representation

One number, three ways of writing it

Tap the bits. They sit in groups of four, and every group of four becomes exactly one hexadecimal digit.

128
64
32
16
8
4
2
1
Decimal
105
Binary
0110 1001
Hexadecimal
0x69
64+32+8+1=105
Exam line: Four bits make one hexadecimal digit, because 16 = 2 × 2 × 2 × 2 = 2⁴.
Watch out: Group the bits from the right. If the leftmost group is short, pad it with leading zeros.

Computer Science · Converting from denary

Finish the working

Convert denary 77 to binary. Then convert denary 173 to hexadecimal, and check it by converting back to denary.

  1. Write the binary place values: 128, 64, 32, 16, 8, 4, 2, 1. The 128 column is bigger than 77, so it gets a 0.Always start from the largest place value that could fit.
  2. missing step
Which line is step 2?

Exam line: Out of denary: subtract place values for binary, divide by 16 for hexadecimal. Into denary: multiply each digit by its place value.

Computer Science · Binary to hexadecimal

Find the line where it goes wrong

A student converts the binary number 1011101 to hexadecimal. Which line is where it goes wrong?

A student's answer — which line goes wrong?

Exam line: Split the bits into groups of four starting from the right, and pad the leftmost group with leading zeros if it is short.

Computer Science · Why hexadecimal?

Why do people use hexadecimal?

The same value can be written as 10110110 in binary or as B6 in hexadecimal.

Which idea is closest to what you think about why the second version exists?
How sure are you?

Exam line: Hexadecimal is a shorter way of writing binary: one hexadecimal digit replaces four bits. The computer itself still stores and processes the value in binary.

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

Three number systems, one idea: digits times place values, and a carry when you run out of symbols.

What you need to know

  • Denary is base 10: ten digits, 0 to 9, and each place is worth ten times the place to its right.
  • Binary is base 2: only 0 and 1, each one called a bit, and each place is worth twice the place to its right.
  • Have a goOne binary column is worth 16. What is the column immediately to its left worth?

    32

    Each binary place is worth twice the place to its right, so the next one along to the left is 16 × 2, not 16 + 1.

  • Hexadecimal is base 16: the digits 0 to 9, then the letters A to F. A is 10, B is 11, up to F, which is 15.
  • Have a goA friend says the hexadecimal digit E must be worth 5, because E is the fifth letter of the alphabet. Is your friend right? What is E worth?

    No. E is worth 14.

    The letters carry on from 9, not from 1: A is 10, B is 11, C is 12, D is 13, so E is 14.

  • Hexadecimal places are worth 1, 16, 256 and so on, each sixteen times the place to its right.
  • In every system, a number's value is each digit times its place value, all added together. Leading zeros change nothing.
  • Counting is one rule: the rightmost digit goes up one, and past the largest symbol (9, 1 or F) it resets to 0 and carries 1 left.
  • Have a goIn binary, what is 1 + 1? There is no symbol 2, so think about what the rule says happens.

    10

    1 is the largest binary symbol, so adding 1 resets that digit to 0 and carries 1 to the left. 10 here means one two and no units, not ten.

  • To turn binary into denary, write the place values above the bits and add up the ones that sit over a 1.
  • To turn denary into binary, subtract the largest place value that fits. To turn it into hexadecimal, divide by 16.
  • One hexadecimal digit is exactly four bits, because 16 = 2 × 2 × 2 × 2 = 2⁴, so binary and hexadecimal convert group by group.
  • People use hexadecimal because it is shorter than binary and easier to read and copy correctly. The computer still stores binary.

The big picture

Denary, binary and hexadecimal all work the same way: every digit is multiplied by its place value and the results are added up, and when a digit runs past the largest symbol it resets to 0 and carries 1 to the left. Because 16 = 2⁴, one hexadecimal digit stands for exactly four bits, which is why people use hexadecimal as a shorter way of writing binary.

Key points

1Every number is its digits times their place values, added together. This is true in denary, binary and hexadecimal.
2Binary places go 1, 2, 4, 8, 16, 32, 64, 128. Hexadecimal places go 1, 16, 256.
3Counting past the largest symbol (9, 1 or F) resets the digit to 0 and carries 1 to the left.
4Four bits make exactly one hexadecimal digit, so hexadecimal writes binary with a quarter as many digits.

Worked example

Problem

Convert denary 90 to binary, then to hexadecimal by grouping the bits, then check your hexadecimal answer by converting it back to denary.

⚠ Watch out

Reading a hexadecimal or binary number as though it were denary. Hexadecimal 4C is not 4 + 12, and binary 101 is not one hundred and one. Multiply each digit by its own place value first, then add.

🧠

Memory hook

Odometer wheels: a denary wheel rolls over after 9, a binary wheel after 1, a hexadecimal wheel after F. Four bits per hex digit. Group from the right.

✓

Check yourself

Pick a denary number from 20 to 60. Convert it to binary, then hexadecimal, then back to denary. Did you land where you started?

Flashcards

(14)
Denary: how many digits does it use, and what is each place worth compared with the one to its right?
Ten digits, 0 to 9 (base 10). Each place is worth ten times the place to its right.
Binary: which digits does it use, and what is one binary digit called?
Only 0 and 1 (base 2). Each binary digit is called a bit.
What are the first eight binary place values, from the right?
1, 2, 4, 8, 16, 32, 64, 128. Each place is worth twice the place to its right.
Hexadecimal: how many symbols does it use, and which are they?
Sixteen (base 16): the digits 0 to 9 and the letters A to F.
What do the hexadecimal letters A to F stand for?
A = 10, B = 11, C = 12, D = 13, E = 14, F = 15.
What are the first three hexadecimal place values, from the right?
1, 16, 256. Each place is worth sixteen times the place to its right.
How do you find the value of a number in any of these systems?
Multiply each digit by its place value and add the results. Leading zeros do not change the value.
What happens when a digit goes past the largest symbol while counting, and what is the largest symbol in each system?
It resets to 0 and 1 is carried into the next place to the left. The largest symbols are 9 in denary, 1 in binary and F in hexadecimal.
Binary to denary: what is the method?
Write the place values above the bits and add together the place values of every bit that is 1.
Denary to binary: give the two methods.
Subtract the largest place value that fits (1 where it fits, 0 where it does not) until nothing remains, or divide by 2 repeatedly and read the remainders from last to first.
Denary to hexadecimal: how does dividing by 16 give the digits (two-digit result)?
The whole-number quotient is the sixteens digit and the remainder is the units digit, each written as its hexadecimal symbol.
How many bits does one hexadecimal digit stand for, and why?
Exactly four bits (0000 to 1111 for 0 to F), because 16 = 2 × 2 × 2 × 2 = 2⁴.
Binary to hexadecimal: how do you split the bits, and what if the left group is short?
Split into groups of four starting from the right. Add leading zeros to the leftmost group if needed, then replace each group with its hexadecimal digit.
Why is hexadecimal used, and what does the computer actually store?
It is a shorter way of writing binary, with a quarter as many digits, so people can read, remember and copy it more easily. The computer itself still stores and processes binary.

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 Eduqas GCSE Computer Science topics

See the full Eduqas Computer Science curriculum →

How this lesson was checked. This Eduqas GCSE Computer Science (specification C500QS)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 16 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.