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/Sign and magnitude and two's complement…

Sign and magnitude and two's complement to represent negative numbers

Use of sign and magnitude and two’s complement to represent negative numbers in binary

1.4.1 Data Types

Practise exam questions

Data Types — Note 3 of 10

Candidates should know how to store negative numbers using Sign and Magnitude and two’s complement. Candidates should be able to convert denary numbers to sign and magnitude, and two’s complement – and vice-versa

What you need to know

Negative integers can be represented in binary using sign and magnitude or two's complement. Two's complement is used by computers because binary addition works correctly with it and there is only one representation of zero.

What to know

  • Sign and magnitude: -45 in 8 bits = 10101101. Range in 8 bits: -127 to +127.
  • Sign and magnitude drawbacks: two representations of zero (00000000 and 10000000), and normal binary addition gives wrong answers.
  • To make a number negative in two's complement: write the positive binary, flip every bit, then add 1. (Or: from the right, copy up to and including the first 1, then flip the remaining bits.)
  • Two's complement: -45 = 11010011 (-128 + 64 + 16 + 2 + 1). Range in 8 bits: -128 to +127.
  • Two's complement benefits: one representation of zero; a slightly larger range (-128 to +127, not -127 to +127); addition and subtraction work with ordinary binary addition, so the CPU only needs an adder circuit.

Code examples

Converting -45 to 8-bit two's complement
text
+45           0 0 1 0 1 1 0 1
Flip bits     1 1 0 1 0 0 1 0
Add 1       + 0 0 0 0 0 0 0 1
-45           1 1 0 1 0 0 1 1

Check: -128 + 64 + 16 + 2 + 1 = -45

Key terms

Sign and magnitude

The most significant bit (MSB) is the sign (0 = positive, 1 = negative) and the remaining bits hold the size of the number.

Two's complement

The MSB has a NEGATIVE place value. In 8 bits the place values are -128 64 32 16 8 4 2 1.

Exam technique

  • Tip:To convert two's complement to denary, add the place values using -128 for the MSB.
  • Tip:Count your bits before moving on. An 8-bit answer with a digit missing or added scores nothing, even if the method was right.
  • Mistake:Forgetting to add 1 after flipping the bits.
  • Mistake:Mixing up the two methods. In sign and magnitude only the MSB changes (-45 = 10101101); in two's complement you flip the bits and add 1 (-45 = 11010011). Check which one the question asks for.

Past exam questions

  • June 2024Paper 1Q4(a)(i)1mark
  • June 2024Paper 1Q4(a)(ii)1mark
  • June 2023Paper 1Q3(b)(i)1mark
  • June 2023Paper 1Q3(b)(ii)1mark
  • June 2023Paper 1Q3(b)(iii)1mark
  • June 2022Paper 1Q3(a)(ii)1mark
  • November 2020Paper 1Q3(a)(i)1mark
  • June 2019Paper 1Q10(c)2marks
  • June 2017Paper 1Q6(b)(i)1mark
  • June 2017Paper 1Q6(b)(ii)1mark

Ready to test yourself?

Practise 1.4.1 questions
← Previous noteRepresent positive integers in binary1.4.1 Data TypesNext note →Addition and subtraction of binary integers1.4.1 Data Types

Back to Data Types

Data Types

Note 3 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