Skip to topic
    ← Back to course topics

    Binary arithmetic — AQA GCSE Computer Science

    Binary arithmetic encompasses the rules and operations used by digital systems to add binary numbers and execute logical bit shifts. Mastering addition rules and identifying 8-bit overflow errors is essential for achieving top marks in AQA GCSE Computer Science Paper 1.

    Binary arithmetic explained

    This statement fixes the size of binary addition answers in 8525: at most 8 bits, and no carry out beyond the 8th bit.

    Read the full explanation

    In practice you add two 8-bit values column by column from the right, and the leftmost (8th) column is the last one you complete. If that column would generate a carry out, the question is outside the published scope, so you will not be asked to represent a 9th bit. Use it to plan practice: keep both operands within 8 bits, align them under place values 2⁷ down to 2⁰, and stop at the 8th bit. Check your answer has no more than eight digits and that any carry you wrote sits inside the 8-bit field.

    Your focus

    1. Add two binary values and produce an answer of no more than 8 bits.
    2. Align operands correctly by place value before performing column addition.
    3. Recognise when a calculation would carry beyond the 8th bit and falls outside the published scope.

    Which command word is this?

    Produce the exact binary result. Always display carried bits in your working to secure intermediate marks.

    Binary arithmetic exam tips

    Topic Overview

    Binary arithmetic forms the core foundation of processor execution, dictating how an Arithmetic Logic Unit (ALU) carries out computational tasks using electronic logic gates. In AQA GCSE Computer Science, students are required to manipulate unsigned binary integers, perform reliable binary additions, and execute logical shifts.

    This topic directly links low-level bit representation to real-world software behaviour, teaching students to identify hardware limitations such as overflow errors and integer truncation. Mastering these operations is essential for answering both computational and theory-based architecture questions across Paper 1.

    Key Concepts
    • →Core rules of binary addition: 0+0=0, 0+1=1, 1+1=10 (0 carry 1), and 1+1+1=11 (1 carry 1).
    • →Overflow errors: occur when the result of an arithmetic operation exceeds the maximum value an allocated register can hold (e.g. greater than 255 in an 8-bit register).
    • →Logical binary shifts: shifting bits left multiplies the value by 2 for each place shifted, while shifting right performs integer division by 2 for each place shifted.
    • →Data truncation: right shifts can cause least significant 1 bits to drop off, causing precision loss; left shifts can cause most significant 1 bits to drop off, causing overflow.
    Examiner Tips
    • 💡Write both operands right-aligned and label place values 2⁷ to 2⁰ before adding any column.
    • 💡Add from the rightmost column leftwards, recording each carry above the next column, and stop after the 8th bit.
    • 💡After adding, count the digits in your answer to confirm it is no longer than 8 bits.
    • 💡Always clearly show your carry bits directly above or below the addition columns; examiners award working marks even if a minor addition slip occurs.
    • 💡When explaining an overflow error, always state the maximum capacity (e.g. 8 bits / 255) and note that the 9th bit cannot be stored in the register.
    • 💡Double-check all binary arithmetic by converting the inputs and your final binary answer into denary to guarantee 100% accuracy.
    Common Mistakes
    • Writing a 9th bit when the 8th column carries. Correction: the published scope excludes carrying beyond the 8th bit, so answers stay within 8 bits.
    • Misaligning operands so the columns do not match place values. Correction: line up both numbers on the right so 2⁰ sits under 2⁰ and 2⁷ under 2⁷ before adding.
    • Assuming the answer must always be exactly 8 bits. Correction: the maximum length is 8 bits, so a shorter answer with leading zeros omitted is still valid.
    • Writing '2' or '10' directly in a single bit column during addition rather than recording a 0 and carrying 1 to the next place-value column.
    • Believing that a logical right shift divides accurately for all integers, forgetting that odd numbers lose their 0.5 fractional component due to bit truncation.
    • Thinking overflow means a general program crash rather than a specific condition where an arithmetic result exceeds the fixed capacity of the hardware register.
    Revision Plan
    1. 1Day 1-2: Memorise the four primary binary addition rules and practise 4-bit addition calculations.
    2. 2Day 3-4: Progress to 8-bit binary additions involving multiple consecutive carries, verifying each by converting to denary.
    3. 3Day 5-6: Practise logical left and right shifts by 1, 2, and 3 places, documenting both binary patterns and arithmetic effects.
    4. 4Day 7: Tackle AQA exam-style questions focused on overflow identification and short explanation answers.
    Exam Question Types
    • 📋8-bit addition calculations: Direct 2-mark questions requiring addition of two binary numbers with carries shown.
    • 📋Overflow analysis questions: 2-3 mark scenario questions asking whether overflow has occurred and requiring an explanation of its impact on the CPU.
    • 📋Logical bit shift operations: 1-2 mark questions asking students to shift a given binary pattern and state the new denary value or arithmetic consequence.
    Command Word Expectations (AQA)
    Calculate / Add

    Produce the exact binary result. Always display carried bits in your working to secure intermediate marks.

    Explain

    Identify a specific cause and provide an linked consequence (e.g. state that a 9th bit is generated, which cannot be stored in an 8-bit register, resulting in an overflow error and incorrect output).

    State

    Provide a concise numerical or factual answer without needing to elaborate on working (e.g. naming the mathematical effect as 'multiplication by 8').

    How Students Lose Marks (Examiner Pitfalls)
    Pitfall: Stating that an overflow error occurs simply because 'the number is too big' without technical context.
    ❌ Weak Answer (Loses Marks):An overflow error happens because the answer is too big and has 9 bits.
    Example improved answer:An overflow error occurs because the result of the addition requires 9 bits (exceeding 255 in denary), which exceeds the fixed 8-bit register limit of the CPU, causing the most significant carry bit to be discarded and resulting in an incorrect calculated value.
    Examiner Tip: Always explicitly mention the bit limit (e.g. 8 bits) and that the most significant bit cannot be stored in the allocated space, leading to an incorrect result.
    Pitfall: Assuming logical right shifts perform exact division without accounting for lost bits on odd numbers.
    ❌ Weak Answer (Loses Marks):A right shift of 1 place divides the number by 2 exactly.
    Example improved answer:A logical right shift of 1 place performs integer division by 2; if the least significant bit before the shift is a 1, it is discarded, resulting in truncation and a loss of precision.
    Examiner Tip: Specify that logical right shifts represent integer division (DIV) where odd numbers lose their fractional 0.5 value because the rightmost bit drops out.
    Step-by-Step Worked Solutions

    Question: Add the following two 8-bit binary integers together: 01011100 and 00111010. Show all your working, including any carries.

    1. 1.Step 1: Align the numbers vertically from right (least significant bit) to left: 01011100 + 00111010.
    2. 2.Step 2: Add column by column from right to left. Column 1 (units): 0 + 0 = 0. Column 2 (twos): 0 + 1 = 1. Column 3 (fours): 1 + 0 = 1. Column 4 (eights): 1 + 1 = 0, carry 1. Column 5 (sixteens): 1 + 1 + 1 (carry) = 1, carry 1. Column 6 (thirty-twos): 0 + 1 + 1 (carry) = 0, carry 1. Column 7 (sixty-fours): 1 + 0 + 1 (carry) = 0, carry 1. Column 8 (one-hundred-twenty-eights): 0 + 0 + 1 (carry) = 1, carry 0.
    3. 3.Step 3: Verify using denary equivalents: 01011100 = 64 + 16 + 8 + 4 = 92; 00111010 = 32 + 16 + 8 + 2 = 58; 92 + 58 = 150. Binary result 10010110 = 128 + 16 + 4 + 2 = 150.
    Final Answer: 10010110 (Denary: 150, no overflow)

    Question: Perform a logical shift left of 2 places on the binary pattern 00010110. State the denary value before and after the shift, and explain the mathematical effect.

    1. 1.Step 1: Move each bit two positions to the left: 00010110 becomes 01011000.
    2. 2.Step 2: Fill the two vacated least significant bit positions on the right with zeros.
    3. 3.Step 3: Convert both values to denary to verify the effect. Original (00010110) = 16 + 4 + 2 = 22. New (01011000) = 64 + 16 + 8 = 88.
    4. 4.Step 4: State mathematical effect: Shifting left by 2 positions multiplies the original value by 2 to the power of 2 (2^2 = 4). 22 multiplied by 4 is 88.
    Final Answer: Shifted binary: 01011000; Original denary: 22; New denary: 88; Mathematical effect: Multiplied by 4
    Active Recall Memory Test
    What is the binary addition rule for 1 + 1 + 1?
    Key Fact: 1 with a carry of 1 (which represents 3 in denary, written as binary 11).
    What causes an overflow error in an 8-bit register during binary addition?
    Key Fact: An overflow error occurs when the sum requires 9 bits (exceeds 255), meaning the most significant bit cannot be accommodated in the 8-bit space.
    What is the mathematical effect of performing a logical binary shift right by 3 places?
    Key Fact: It performs integer division by 8 (2^3), discarding any bits that shift past the least significant position.
    Which binary digit is always used to pad the vacated spaces in a logical shift?
    Key Fact: 0 (zero).
    Frequently Asked Questions
    What is an overflow error in binary arithmetic?
    An overflow error occurs when the result of a calculation is too large to be represented within the allocated number of bits. For example, if adding two 8-bit numbers produces a 9-bit answer, the ninth bit cannot be stored in an 8-bit register. The CPU discards or misinterprets this extra bit, leading to incorrect calculations and potential software instability.
    How do you add three binary 1s together?
    In binary, 1 + 1 + 1 equals 3 in denary. Three in binary is written as 11. Therefore, you write down a 1 in the current column and carry a 1 over to the next higher place-value column on the left.
    Why does a logical binary shift to the left multiply a number?
    Every column in binary represents a power of two that is twice the value of the column to its right (e.g. 1, 2, 4, 8, 16). Moving all bits one place to the left moves every value into a column that is double its previous weight, effectively multiplying the entire number by 2. Shifting by n places multiplies the number by 2^n.
    Does shifting an odd binary number to the right lose data?
    Yes. A logical right shift performs integer division (truncation). An odd binary number always has a 1 in the units column (least significant bit); shifting right pushes this 1 off the register into oblivion. This represents the loss of the fractional 0.5 value, causing loss of precision.
    Can overflow happen during a logical left shift?
    Yes, an overflow can occur during a logical left shift if a 1 is shifted out of the most significant bit position of the fixed-width register. When this happens, the arithmetic result no longer accurately represents multiplication by 2^n because crucial data has been lost.