Signed up recently but had issues with the confirmation email?

Click Forgot password and follow the reset steps. You can choose the same password you used when you signed up. This should then provide access.

Remember to check Spam and Junk. The email will be from auth@progressbytes.co.uk.

Revision notesQuestionsFor schools
Revise Computing
Log inStart revising free
Revision notesQuestionsFor schoolsLog in

© 2026 Revise Computing · revisecomputing.co.uk

Worried about something?Question Bank UpdatesPrivacy noticeTermsContact

Revise Computing is an independent revision resource. It is not affiliated with, or endorsed by, OCR (Oxford Cambridge and RSA Examinations).

Knowledge/A Level/H446/01 Computer systems/Data Types/Addition and subtraction of binary integers

Addition and subtraction of binary integers

Addition and subtraction of binary integers.

1.4.1 Data Types

Practise exam questions

Data Types — Note 4 of 10

Candidates should be able to perform addition and subtraction on integer binary numbers. (These numbers could be positive or negative using two’s complement representation.)

What you need to know

Binary addition follows simple rules with carries. Subtraction is carried out by adding the two's complement of the number being subtracted, so a computer only needs circuitry for addition.

What to know

  • Addition rules: 0+0=0, 0+1=1, 1+1=10 (write 0, carry 1), 1+1+1=11 (write 1, carry 1).
  • Work from the right (least significant bit) to the left, carrying as you go.
  • Subtraction: to calculate A - B, convert B to its two's complement negative and ADD it to A. Ignore any carry out of the MSB.
  • You can also subtract directly, column by column, borrowing from the next column on the left when you need 0 - 1. Either method is credited if the borrows or the two's complement step are shown.
  • In two's complement, overflow has occurred if two positive numbers give a negative result, or two negative numbers give a positive result.

Code examples

Subtraction: 45 - 20 by adding -20
text
  45     0 0 1 0 1 1 0 1
+ -20    1 1 1 0 1 1 0 0
        ---------------
       1 0 0 0 1 1 0 0 1   -> discard the carry out of the MSB
Result   0 0 0 1 1 0 0 1   = 25

Key terms

Overflow

The result of a calculation is too large to fit in the number of bits available, so the result is wrong.

Exam technique

  • Tip:Show your carries (or borrows) clearly; there is often a mark for the carries themselves, and method marks are available even if the final answer is wrong.
  • Mistake:Treating a carry out of the MSB as an error in two's complement subtraction. That carry is simply discarded.
  • Mistake:Working the sum out in denary and converting the answer back to binary. This scores nothing, even when the answer is right: the method must be shown in binary.

Past exam questions

  • June 2026Paper 1Q5(a)2marks
  • June 2026Paper 1Q5(b)2marks
  • June 2024Paper 1Q4(e)2marks
  • June 2022Paper 1Q3(a)(iii)3marks
  • June 2019Paper 1Q10(d)2marks
  • June 2018Paper 1Q9(a)2marks
  • June 2018Paper 1Q9(b)2marks

Ready to test yourself?

Practise 1.4.1 questions
← Previous noteSign and magnitude and two's complement to represent negative numbers1.4.1 Data TypesNext note →Represent positive integers in hexadecimal1.4.1 Data Types

Back to Data Types

Data Types

Note 4 of 10

  1. 1Primitive data types: integer, real/floating point, character, string and Boolean
  2. 2Represent positive integers in binary
  3. 3Sign and magnitude and two's complement to represent negative numbers
  4. 4Addition and subtraction of binary integers
  5. 5Represent positive integers in hexadecimal
  6. 6Convert positive integers between binary, hexadecimal and denary
  7. 7Representation and normalisation of floating point numbers in binary
  8. 8Floating point arithmetic: addition and subtraction
  9. 9Bitwise manipulation and masks: shifts, combining with AND, OR and XOR
  10. 10How character sets (ASCII and UNICODE) are used to represent text
Topic overview