Sign and magnitude

Sign and magnitude is the simplest way to store negative numbers in binary. Comparing it with two's complement shows why computers prefer the second.

Practise this lesson free (6 questions)

More tools

How it works

The left bit is the sign: 0 means positive, 1 means negative.
The other 7 bits hold the magnitude (size) as an ordinary binary number.
+5 = 00000101 and -5 = 10000101.

Range

With 8 bits the magnitude uses 7 bits, so it goes up to 127.
Range: -127 to +127.
There are two zeros: 00000000 (+0) and 10000000 (-0).

Why two's complement is preferred

Sign and magnitude wastes a pattern on -0.
Normal binary addition does not work when you mix positive and negative sign and magnitude numbers.
Two's complement has one zero, a wider range (-128 to +127) and normal addition works.
Worked example

Write -37 in 8-bit sign and magnitude.

  1. 37 in 7 bits = 0100101
  2. Negative, so the sign bit is 1

Answer: 10100101

Key idea

In sign and magnitude the left bit is the sign (1 = negative) and 7 bits hold the size. Range -127 to +127 with two zeros. Two's complement avoids these problems.

Key words
Sign and magnitude
Signed binary where the left bit is the sign (1 = negative) and the rest is the size.
Binary
Base 2: the number system that uses only the digits 0 and 1.
Two's complement
Signed binary where the left bit has a negative place value (-128 in 8 bits).
Bit
A single binary digit, 0 or 1.
Binary addition
0 + 0 = 0, 0 + 1 = 1, 1 + 1 = 0 carry 1, 1 + 1 + 1 = 1 carry 1. A carry out of the leftmost bit means overflow.

All GCSE and International GCSE Computer Science key terms and definitions โ†’

Quick check

Try two quick questions

See if it has sunk in. Answers are marked straight away.

Extra practice

2 more questions

Try each one, then tap to check.

  1. Write -9 in 8-bit sign and magnitude.

    Show the answer

    Answer: 10001001

    The sign bit is 1 for negative. The other 7 bits hold 9 = 0001001. So 10001001.

  2. Write -75 in 8-bit sign and magnitude.

    Show the answer

    Answer: 11001011

    The sign bit is 1 for negative. The other 7 bits hold 75 = 1001011. So 11001011.

Check you have got it

Answer 6 quick questions with instant marking. If you get one wrong, GCSE-ready shows you why and gives you another go. It is free, and you do not need an account.

Video for this lesson coming soon. Subscribe on YouTube

Sources and references

Facts checked against the sources below, 17 October 2026. Last updated 2 October 2026. Spotted a mistake? Tell us and we will fix it.

Related lessons