Number bases — AQA GCSE Computer Science
Verified courseTeaching note checked against the official specification.
Number bases define the number of unique digits used to represent values in computer science, specifically decimal (base-10), binary (base-2), and hexadecimal (base-16). Understanding these bases is essential for AQA GCSE Computer Science to convert between data representations and explain why computers execute instructions exclusively using binary logic gates.
Number bases explained
This heading introduces the number bases you must recognise and work with in GCSE Computer Science: decimal (base 10), binary (base 2) and hexadecimal (base 16).
Read the full explanation
Understanding a base means knowing how many distinct digits it uses, how each position carries a place value that is a power of the base, and how the same quantity can be written differently in each system. For example, the decimal value 13 is 1101 in binary and D in hexadecimal. You should be able to state the base of a given representation, identify which digits are legal in it, and convert between bases. Recognising the base lets you interpret a string of digits correctly rather than assuming it is decimal.
Your focus
- State the base and legal digits of decimal, binary and hexadecimal.
- Explain how place value in a base relates to powers of that base.
- Convert a small quantity between decimal, binary and hexadecimal representations.
Number bases exam tips
Topic Overview
Number bases are foundational mathematical systems used in Computer Science to represent numerical data and memory states. While humans traditionally use denary (base-10), digital computer architectures rely entirely on binary (base-2) because their microprocessors are constructed from billions of microscopic transistors that exist in one of two physical states: on (voltage present) or off (voltage absent).
To make raw binary strings manageable for developers, computer scientists use hexadecimal (base-16) as a concise shorthand. Mastery of base conversions between denary, binary, and hexadecimal is critical for understanding low-level data representation, addressing modes, colour codes, and network protocols across the AQA specification.
Key Concepts
- →Base definition: The base or radix indicates the total count of unique symbols (digits) available in that system: Base-2 (0-1), Base-10 (0-9), and Base-16 (0-9 followed by A-F).
- →Binary place values: Columns increase exponentially from right to left by powers of two (1, 2, 4, 8, 16, 32, 64, 128 for a standard byte).
- →Nibble mapping: Exactly 4 binary bits (one nibble) correspond to exactly 1 hexadecimal character, because 2 to the power of 4 equals 16.
- →Human utility of hexadecimal: Hexadecimal reduces the length of binary strings by a factor of four, reducing transcription mistakes in MAC addresses, IPv6 addresses, and HTML colour codes.
Marking Points
- Decimal is base 10 and uses the ten digits 0–9.
- Binary is base 2 and uses only the digits 0 and 1.
- Hexadecimal is base 16 and uses 0–9 plus A–F, where A represents 10 and F represents 15.
- Each position in a number has a place value that is a power of the base: in base 10 the columns are 10⁰, 10¹, 10² …; in base 2 they are 2⁰, 2¹, 2² …; in base 16 they are 16⁰, 16¹, 16² …
- The same quantity can be represented in different bases, for example decimal 13 equals binary 1101 and hexadecimal D.
- The base tells you how many distinct digit symbols the system uses before a new column is needed.
Examiner Tips
- 💡Learn the digit set for each base so you can spot an invalid representation quickly.
- 💡Remember the place-value columns are powers of the base, which explains why 10 in any base equals that base in decimal.
- 💡Practise converting a small decimal number such as 13 into binary and hexadecimal to confirm you understand the relationship.
- 💡Always sketch out an 8-column place value grid (128, 64, 32, 16, 8, 4, 2, 1) across the top of your exam page for binary conversion questions to prevent arithmetic slips.
- 💡When asked why hexadecimal is preferred over binary, use phrases like 'shorter representation', 'easier for humans to read and understand', and 'less prone to typing errors' to hit mark scheme keywords.
- 💡Double-check your final bit string contains exactly 8 bits if the question asks for a full byte, padding with leading zeroes if necessary.
Common Mistakes
- Assuming every number written without a label is decimal: correction — check the context, because 10 in binary means two and 10 in hexadecimal means sixteen.
- Thinking hexadecimal uses only the letters A–F with no digits: correction — hexadecimal uses 0–9 as well as A–F, sixteen symbols in total.
- Believing the digit 2 is valid in binary: correction — binary uses only 0 and 1, so any digit of 2 or above signals a different base.
- Believing that hexadecimal saves memory inside computer chips. In reality, computers store and process every piece of data purely in binary; hex is purely an interface notation for human convenience.
- Forgetting that 10 in hexadecimal is equivalent to denary 16, not denary 10, because the first column represents 16s and the zero represents units.
- Confusing the letters in hexadecimal by starting 'A' at 9 instead of 10, which shifts all subsequent letters by one.
Revision Plan
- 1Day 1: Master 8-bit binary to denary and denary to binary conversions using the column addition and subtraction methods.
- 2Day 2: Practice hexadecimal to denary conversions, memorising the values of letters A through F.
- 3Day 3: Practice the split-nibble technique to convert directly between 8-bit binary and 2-digit hexadecimal.
- 4Day 4: Work through timed AQA past-paper questions focusing on contextual reasons why hexadecimal is used in real computing systems.
Exam Question Types
- 📋Direct conversion calculations: 1-mark or 2-mark procedural questions requiring conversions between denary, binary, and hexadecimal.
- 📋Short explanation questions: 2-mark questions asking why programmers prefer hexadecimal over binary for representing memory addresses or colour codes.
- 📋Data analysis and state identification: Questions asking students to identify valid hexadecimal values or determine the maximum value expressible in a given number of bits.
Command Word Expectations (AQA)
Show the mathematical transformation from one base to another. Include working out or place value grids to secure method marks even if a minor arithmetic error occurs.
Give reasons or causes for why a particular base is used, linking your points clearly (e.g. state a benefit of hexadecimal and explain why that helps a software developer).
How Students Lose Marks (Examiner Pitfalls)
Step-by-Step Worked Solutions
Question: Convert the 8-bit binary number 10110110 into its hexadecimal equivalent. Show all your working.
- 1.Step 1: Split the 8-bit binary pattern into two distinct 4-bit nibbles: 1011 and 0110.
- 2.Step 2: Calculate the decimal value of each nibble using the place values 8, 4, 2, 1. For the first nibble (1011): 8 + 0 + 2 + 1 = 11. For the second nibble (0110): 0 + 4 + 2 + 0 = 6.
- 3.Step 3: Convert any decimal value from 10 to 15 into its corresponding hexadecimal character (A=10, B=11, C=12, D=13, E=14, F=15). 11 becomes 'B', and 6 remains '6'.
- 4.Step 4: Combine the two hexadecimal digits to produce the final answer.
Question: Convert the denary integer 179 into an 8-bit binary number.
- 1.Step 1: Write out the 8-bit binary place value table: 128, 64, 32, 16, 8, 4, 2, 1.
- 2.Step 2: Compare 179 to each place value from left to right. 179 >= 128, so place a '1' under 128. Remainder: 179 - 128 = 51.
- 3.Step 3: 51 < 64, so place a '0' under 64.
- 4.Step 4: 51 >= 32, so place a '1' under 32. Remainder: 51 - 32 = 19.
- 5.Step 5: 19 >= 16, so place a '1' under 16. Remainder: 19 - 16 = 3.
- 6.Step 6: 3 < 8, so place a '0' under 8. 3 < 4, so place a '0' under 4.
- 7.Step 7: 3 >= 2, so place a '1' under 2. Remainder: 3 - 2 = 1. Finally, 1 >= 1, so place a '1' under 1.
- 8.Step 8: Verify all 8 bits: 128 + 32 + 16 + 2 + 1 = 179.