Skip to topic
    ← Back to course topics

    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.

    Read the Number bases study guideFull revision notes for AQA GCSE Computer Science

    Your focus

    1. State the base and legal digits of decimal, binary and hexadecimal.
    2. Explain how place value in a base relates to powers of that base.
    3. 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
    1. 1Day 1: Master 8-bit binary to denary and denary to binary conversions using the column addition and subtraction methods.
    2. 2Day 2: Practice hexadecimal to denary conversions, memorising the values of letters A through F.
    3. 3Day 3: Practice the split-nibble technique to convert directly between 8-bit binary and 2-digit hexadecimal.
    4. 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)
    Convert

    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.

    Explain

    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)
    Pitfall: Confusing hexadecimal place values with decimal values when converting letters A-F.
    ❌ Weak Answer (Loses Marks):1A in hex is 110 in denary because A is 10.
    Example improved answer:In hexadecimal, the digit '1' represents 1 x 16 = 16, and 'A' represents 10 x 1 = 10. Adding these together (16 + 10) gives 26 in denary.
    Examiner Tip: Always write down the column headings (16 and 1) above a 2-digit hex number, and note down that A=10, B=11, C=12, D=13, E=14, F=15 before calculating.
    Pitfall: Stating that computers use hexadecimal to run programs or save memory space in hardware.
    ❌ Weak Answer (Loses Marks):Hexadecimal is used because it takes up less memory in the computer CPU.
    Example improved answer:Computers process data purely in binary. Hexadecimal is used as a human-friendly shorthand because it is much shorter, easier for programmers to read and debug, and less error-prone to transcribe than long strings of binary digits.
    Examiner Tip: Never claim that computers store or process hex natively. Always frame hexadecimal as an aid for human programmers and computer scientists.
    Step-by-Step Worked Solutions

    Question: Convert the 8-bit binary number 10110110 into its hexadecimal equivalent. Show all your working.

    1. 1.Step 1: Split the 8-bit binary pattern into two distinct 4-bit nibbles: 1011 and 0110.
    2. 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. 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. 4.Step 4: Combine the two hexadecimal digits to produce the final answer.
    Final Answer: B6

    Question: Convert the denary integer 179 into an 8-bit binary number.

    1. 1.Step 1: Write out the 8-bit binary place value table: 128, 64, 32, 16, 8, 4, 2, 1.
    2. 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. 3.Step 3: 51 < 64, so place a '0' under 64.
    4. 4.Step 4: 51 >= 32, so place a '1' under 32. Remainder: 51 - 32 = 19.
    5. 5.Step 5: 19 >= 16, so place a '1' under 16. Remainder: 19 - 16 = 3.
    6. 6.Step 6: 3 < 8, so place a '0' under 8. 3 < 4, so place a '0' under 4.
    7. 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. 8.Step 8: Verify all 8 bits: 128 + 32 + 16 + 2 + 1 = 179.
    Final Answer: 10110011
    Active Recall Memory Test
    What are the numerical values of the hexadecimal digits C and F in denary?
    Key Fact: C = 12 and F = 15.
    How many binary bits are represented by a single hexadecimal digit?
    Key Fact: 4 bits (1 nibble).
    Why can digital computers only process data represented in binary?
    Key Fact: Because computer processors are built from transistors and logic gates that only operate in two electrical states: on (1) or off (0).
    What is the maximum denary value that can be represented by an unsigned 8-bit binary number?
    Key Fact: 255 (calculated as 2^8 - 1).
    Frequently Asked Questions
    Why do computers use binary instead of decimal?
    Computers rely on binary because their microprocessors consist of electronic switches called transistors. It is physically reliable and cost-effective to detect whether an electrical voltage is present ('on' or 1) or absent ('off' or 0). Designing components to reliably distinguish between 10 distinct voltage levels for base-10 would make circuits far more complex and prone to electrical interference.
    What is the easiest way to convert binary to hexadecimal?
    The simplest method is the nibble split. Divide your binary number into groups of four bits starting from the right. Then, calculate the denary value of each four-bit group (using place values 8, 4, 2, 1) and convert any value from 10 to 15 into its letter equivalent (A-F). Finally, write the hex characters side by side.
    Do I need to memorise hexadecimal letters beyond F for GCSE Computer Science?
    No, hexadecimal is base-16, which means it uses exactly sixteen distinct symbols: digits 0 through 9, followed by the letters A through F (where F represents decimal 15). The system never uses letters past F because 16 is represented as '10' in base-16.
    Where is hexadecimal actually used in real-world computer systems?
    Hexadecimal is widely used in computing contexts where humans must read binary data. Examples include HTML/CSS 24-bit colour codes (e.g. #FFFFFF for white), MAC addresses for network cards, IPv6 addresses, memory dump addresses during software debugging, and machine code error codes.