FutureLogic Lesson โ†’ Data Representation โ†’ Cambridge IGCSE 0478

Binary & Hexadecimal Explained Simply

A complete student-friendly lesson for Cambridge IGCSE Computer Science. Learn why computers use binary, how conversions work, why hexadecimal exists, and how to avoid the mistakes that cost marks.

Binary & Hexadecimal Explained Simply

If you have just started learning Computer Science, Binary can look strange at first. A page full of 1s and 0s does not immediately feel like a number system. It can look more like a secret code.

Many students ask the same questions: Why do computers use Binary? Why do we need Hexadecimal? Why can't computers just use the normal numbers we use every day?

Those are good questions. In this FutureLogic lesson, we are going to answer them properly. We will not just memorise methods. We will understand why they work.

โฑ Estimated lesson time: 15โ€“20 minutes
๐ŸŽฏ Level: Cambridge IGCSE 0478
๐Ÿ“˜ Best used with the free revision notes

Before we begin...

If Binary feels confusing at first, that does not mean you are bad at Computer Science. It usually means you have been shown the method before you understood the reason behind it.

This lesson is designed to build confidence first. We will start with the idea, then move into the method, then practise the exam skills.

By the end of this lesson, you will be able to:

โœ“Explain why computers use Binary.
โœ“Convert Binary to Denary.
โœ“Convert Denary to Binary.
โœ“Explain why Hexadecimal is used.
โœ“Convert Binary and Hexadecimal.
โœ“Recognise overflow and two's complement mistakes.
FutureLogic doesn't measure success by downloads. It measures success by understanding.

Why students find Binary difficult

Most students do not struggle with Binary because it is too hard. They struggle because they are often asked to convert numbers before anyone has explained why Binary exists.

That is the wrong order. If you start with a table of place values, Binary feels like something to memorise. If you start with the computer hardware, Binary begins to make sense.

Why do computers use Binary?

Imagine a simple light switch. It has only two reliable positions:

  • OFF
  • ON

Now imagine shrinking that switch until billions of them can fit inside a tiny computer chip. Those tiny electronic switches are called transistors.

A transistor can be thought of as having two reliable electrical states. Engineers represent those two states using the digits 0 and 1.

Electrical StateBinary Value
OFF0
ON1

This is why Binary is a base-2 number system. It only uses two digits: 0 and 1. Your revision notes summarise this clearly: electronic circuits have two states, ON and OFF, represented by 1 and 0.

Did you know? Every image, sound, video, game and website eventually becomes patterns of 0s and 1s inside the computer. Binary is not just a school topic. It is the foundation of digital technology.
Exam Tip: If an exam question asks why computers use Binary, mention that electronic circuits have two reliable states: ON and OFF.

Check Your Understanding 1

  1. What are the two digits used in Binary?
  2. What do ON and OFF represent?
  3. Why is Binary suitable for electronic circuits?
Check the answer

Binary uses 0 and 1. These match the two reliable electronic states of a circuit: OFF and ON.


What are Binary place values?

In Denary, the number system we normally use, each column is worth ten times more as you move left. That is why we have ones, tens, hundreds and thousands.

Binary works in a similar way, but because it is base-2, each column is worth two times more as you move left.

1286432168421
2โท2โถ2โต2โด2ยณ2ยฒ2ยน2โฐ

The key place values for an 8-bit binary number are:

128 64 32 16 8 4 2 1

These are the values you should write above every 8-bit binary number before converting. Your revision notes give exactly the same exam warning: do not try to do the place values in your head.

Golden Rule: Write the place values first. Most conversion errors happen because students rush this step.

Binary to Denary: how to convert

To convert Binary to Denary, look at each column. If the bit is 1, include that place value. If the bit is 0, ignore that place value.

Worked example: Convert 01010101 to Denary

1286432168421
01010101
โ€”64โ€”16โ€”4โ€”1
64 + 16 + 4 + 1 = 85

So:

01010101โ‚‚ = 85โ‚โ‚€

The small โ‚‚ means Binary. The small โ‚โ‚€ means Denary. You do not always need to write those small base numbers in your exam answer, but they are useful while learning.

Teacher Tip: Ask students to say the active place values aloud before adding them. This catches arithmetic errors early and reinforces the process.

Check Your Understanding 2

Convert 10101010 into Denary.

Hint: Add the active place values where the bit is 1.

Check the answer

10101010 = 128 + 32 + 8 + 2 = 170.


Denary to Binary: how to convert

Converting Denary to Binary works in the opposite direction. Start with the largest place value on the left and ask one question each time:

Does this place value fit into the number I have left?

If it fits, write 1 and subtract it. If it does not fit, write 0 and move to the next place value.

Worked example: Convert 45 to Binary

Place ValueFits into 45?BitRemainder
128No045
64No045
32Yes113
16No013
8Yes15
4Yes11
2No01
1Yes10

Reading the bits from top to bottom gives:

45โ‚โ‚€ = 00101101โ‚‚

The leading zeros matter. In an 8-bit answer, 00101101 is better than just writing 101101, because it shows the complete 8-bit pattern.

Exam Tip: Always pad your answer to 8 bits when the question expects an 8-bit binary answer.

What is Hexadecimal?

Hexadecimal is a base-16 number system. That means it uses sixteen symbols instead of two or ten.

The symbols are:

0 1 2 3 4 5 6 7 8 9 A B C D E F

The letters represent the values from 10 to 15.

DenaryHexBinaryDenaryHexBinary
000000881000
110001991001
22001010A1010
33001111B1011
44010012C1100
55010113D1101
66011014E1110
77011115F1111
Teacher Tip: Students only need to memorise Aโ€“F. The rest follows from counting in Binary using four-bit groups.

Why is Hexadecimal used?

Computers use Binary, but long Binary numbers are difficult for humans to read. Hexadecimal makes Binary shorter and easier to work with.

The important fact is this:

Each hexadecimal digit represents exactly 4 binary bits.

Four bits are called a nibble. This makes conversion between Binary and Hexadecimal very neat.

ReasonExplanation
Shorter than binary8 binary bits can be written as 2 hexadecimal digits.
Easier to readFF is easier for humans to check than 11111111.
Easy to convertSplit Binary into groups of 4 bits and convert each group.
Used in computingColour codes, memory addresses and MAC addresses often use Hexadecimal.
Exam Tip: A strong exam answer says: Hexadecimal is shorter than Binary because each hexadecimal digit represents 4 bits, making it easier for humans to read and less prone to error.

Binary to Hexadecimal: how to convert

To convert Binary to Hexadecimal, split the binary number into groups of four bits from the right. Then convert each group into one hexadecimal digit.

Worked example: Convert 11111111 to Hexadecimal

1111 1111
F F

So:

11111111โ‚‚ = FFโ‚โ‚†

This is why Hexadecimal is useful. Eight binary digits become just two hexadecimal digits.

Worked example: Convert 10100111 to Hexadecimal

1010 0111
A 7

So:

10100111โ‚‚ = A7โ‚โ‚†

Check Your Understanding 3

  1. What is hexadecimal A in binary?
  2. Why is Hexadecimal easier for humans to read than long Binary strings?
  3. How many bits does one hexadecimal digit represent?
Check the answer

A = 1010. Hexadecimal is shorter and easier to read because each hex digit represents exactly 4 bits.


Binary Addition

Binary addition works column by column, just like Denary addition. The difference is that Binary can only use 0 and 1, so when a column becomes too large, you carry into the next column.

SumResultCarry
0 + 000
0 + 110
1 + 101
1 + 1 + 111
Exam Tip: Always write carry digits above the next column. Do not track them mentally.
Teacher Tip: Binary addition is best taught column by column. Insist on visible carry digits so students do not try to hold the whole process in memory.

What is Overflow?

Overflow happens when the result of a binary addition is too large to fit into the number of bits available.

For example, in 8 bits:

11111111 + 00000001 = 100000000

The true answer needs 9 bits. But if only 8 bits are available, the extra bit cannot be stored. The stored result becomes:

00000000

That is overflow. The result is wrong because the answer did not fit into the available number of bits.

Exam Tip: If there is a carry out of the most significant bit, overflow has occurred.

What is Two's Complement?

Two's complement is a method used to represent negative numbers in Binary.

The method has two steps, and the order matters:

  1. Invert all the bits.
  2. Add 1.

Worked example: Find the two's complement of 00101101

StepActionResult
1Invert all bits11010010
2Add 111010011

So the two's complement version is:

11010011
Exam Tip: Invert first, add 1 second. Never reverse the order.

Exam Focus

In Cambridge IGCSE questions, Binary and Hexadecimal marks often come from accuracy and method. Show your place values, show your carries, split Hexadecimal into groups of four bits, and use the correct order for two's complement.

The method matters. Even if the final answer goes wrong, clear working can still help you gain marks.


Common Exam Mistakes

โœ— Forgetting place values.
Write 128 64 32 16 8 4 2 1 above the number before converting.
โœ— Missing carries in binary addition.
Write carry digits above the column. A missed carry changes everything to the left.
โœ— Mixing Binary and Denary.
Pause before calculating and check which number system the question requires.
โœ— Forgetting leading zeros.
If the question expects 8 bits, write the full 8-bit answer.
โœ— Incorrect Hexadecimal grouping.
Split Binary into nibbles of 4 from the right.
โœ— Reversing two's complement steps.
Always invert first, then add 1.

Examiner Tips

  • Show your working. Method marks can still be awarded even if the final answer is wrong.
  • Write place values above numbers. It takes seconds and prevents common errors.
  • Check carries carefully. A missed carry can ruin the answer.
  • Practise conversions regularly. Speed and accuracy come from repetition.

Quick Quiz

  1. Convert 10101010 into Denary.
  2. Convert 45 into 8-bit Binary. Show your working.
  3. What is hexadecimal A in Binary?
  4. What causes overflow, and how can you detect it?
  5. Convert 00110011 to its two's complement.

Quick Quiz Answers

  1. 10101010 = 128 + 32 + 8 + 2 = 170
  2. 45 = 32 + 8 + 4 + 1 = 00101101
  3. Hexadecimal A = 1010
  4. Overflow occurs when the result is too large for the available bits. It can be detected when there is a carry out of the most significant bit.
  5. Invert: 11001100. Add 1: 11001101

Final Summary

Binary

Base-2. Uses only 0 and 1. Matches ON/OFF electronic states.

Binary โ†’ Denary

Add the place values where a 1 appears.

Denary โ†’ Binary

Subtract place values from left to right. Pad to 8 bits.

Hexadecimal

Base-16. Uses 0โ€“9 and Aโ€“F. One hex digit equals 4 bits.

Binary Addition

1 + 1 gives 0 with a carry of 1.

Overflow

The result is too large for the available number of bits.

Two's Complement

Invert all bits, then add 1. Used for negative numbers.

Exam Success

Show working, write place values and practise little and often.

If Binary finally makes sense, you have not just memorised a method. You have understood the language every computer uses.
FutureLogic Education

Computer Science should feel clear, visual and achievable.

Download free revision PDFs, explore the Learning Hub, or try FutureLogic resources designed to help students move from confusion to confidence.