Book a lesson
HomeResourcesBinary Explained
GCSE Computer Science

Binary and Hexadecimal Explained

Binary and hexadecimal appear in almost every GCSE Computer Science paper. This guide explains how both number systems work, how to convert between them, how binary addition works, and what overflow errors are.

Book a session All resources

What this guide covers

How binary number representation works and why computers use it
Converting between binary, hexadecimal, and decimal with worked tables
Binary addition step by step โ€” with the carry method explained
Overflow errors โ€” what they are and how to spot them in exam questions
SEN-friendly conversion methods that work every time

What is binary?

Binary is a number system that uses only two digits โ€” 0 and 1. Every piece of data inside a computer is ultimately stored and processed as binary digits called bits.

Each column in a binary number represents a power of 2. To convert binary to decimal, add up the column values wherever there is a 1.

Why do computers use binary?

Computers are built from transistors โ€” tiny electronic switches with two states: on and off. Binary maps directly on to this: 1 means on, 0 means off. Two states make circuits simpler, more reliable, and far cheaper to manufacture than any system with more distinct values.

Everything a computer does โ€” adding numbers, displaying text, playing a sound โ€” comes down to manipulating on/off states at extraordinary speed.

Bits and bytes

A single binary digit is a bit. Eight bits make a byte. A byte can represent 256 values (0โ€“255) โ€” enough for one character of text or one pixel of a simple image.

1 kilobyte = 1,024 bytes. 1 megabyte = 1,024 KB. 1 gigabyte = 1,024 MB. These units appear in exam questions about file sizes and storage.

Converting between number systems

The three systems you need for GCSE are decimal (base 10), binary (base 2), and hexadecimal (base 16).

1286432168421Decimal
0101001183 (64+16+2+1)
10011101157 (128+16+8+4+1)
11111111255 (all bits set)

To convert decimal to binary: find the largest power of 2 that fits, put a 1, subtract, and repeat for each remaining column.

Place value table

Memorise these 8 values โ€” write them first in every binary question.

Binary column values โ€” memorise these 8 numbers2โท12812โถ6402โต3212โด1612ยณ802ยฒ402ยน212โฐ10Example: 178 = 128+32+16+2 = 10110010
key termBinaryBase 2 โ€” uses only 0 and 1
key termBitA single binary digit
key termByte8 bits grouped together
key termOverflowResult too large to store
key termHexBase 16 โ€” uses 0โ€“9 and Aโ€“F

Hexadecimal โ€” base 16

Hex uses sixteen symbols: 0โ€“9 then A (10), B (11), C (12), D (13), E (14), F (15). One hex digit represents exactly four binary bits, so long binary strings become much shorter. Web colours use hex โ€” the Miss ICT cyan is #4da9c9.

Binary to hex

Group bits into nibbles (groups of 4) from the right. Convert each nibble separately.

Binary:  1010  1111
Nibble1: 1010 = A (=10)
Nibble2: 1111 = F (=15)
Result:  AF

Hex to decimal

Multiply each hex digit by its place value (powers of 16 from right).

Hex: 3F
3 ร— 16ยน = 48
F ร— 16โฐ = 15
Decimal: 63

Binary addition and overflow

Binary addition has four rules. Carries happen at 2 rather than 10:

0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 10   (write 0, carry 1)
1 + 1 + 1 = 11  (write 1, carry 1)

Worked example

Add 01101010 and 00110101:

  0110 1010
+ 0011 0101
----------
  1001 1111  (= 159)

Overflow errors

If the result needs more bits than are available, an overflow error occurs. The leading bit is lost, giving a completely wrong answer. This is a common exam question โ€” you need to spot when it happens and explain why.

SEN-friendly study tip

Binary questions become much easier when you write the column headers out first before doing anything else.

1. Write headers first

Always write 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 before you start. Having them visible removes one source of error.

2. Work right to left

Find the largest power of 2 that fits the number. Mark a 1. Subtract. Repeat. This method never fails.

3. Check by converting back

Convert your binary answer back to decimal to verify. Takes 30 seconds and catches most mistakes.

Need help with binary?

Binary and data representation appear in almost every GCSE Computer Science paper. Miss ICT sessions focus on the exact methods that get marks โ€” not vague explanations.

Book a GCSE sessionBrowse resources

Frequently asked questions

What powers of 2 do I need to memorise?

For 8-bit binary: 1, 2, 4, 8, 16, 32, 64, 128. Writing them at the top of your answer is fine in the exam.

What is the largest value an 8-bit number can store?

255 โ€” that is 11111111 in binary or FF in hex. The formula is 2โฟ โˆ’ 1 where n is the number of bits.

Is hexadecimal actually used in real computing?

Yes, constantly. Memory addresses, colour codes, MAC addresses, error codes, and assembly language all use hex because it is far more compact than writing binary.

What is the difference between binary and hexadecimal?

Both are just different ways of writing numbers. Binary uses base 2, hex uses base 16. Computers store everything in binary โ€” hex is a shorthand humans use to read and write binary values more easily.

Related resources

GCSE Topic

Algorithms Explained

Searching, sorting, pseudocode, and trace tables โ€” step by step

Practice

Binary and Hex Worksheet

Structured practice questions with worked answers

Revision

Algorithm Cheat Sheet

Quick reference card for all major GCSE algorithm types

Tutoring

1-to-1 GCSE Tutoring

Expert support from a GCSE examiner โ€” ยฃ60/hour

Book a session โ†’
โœ” GCSE examiner ยท โœ” DBS checked