What is the range of an 8-bit signed (two's complement) integer?

-128 to 127. There is one more negative number than positive.

Start playing free

  1. -127 to 127
  2. -128 to 127 ✔
  3. -128 to 128

Why: With n bits the range is minus 2 to the (n-1) up to 2 to the (n-1) minus 1. For 8 bits that is -128 to 127. Zero takes one of the non-negative slots, so the positive side is one short.

Huh, didn't know that: In 8-bit two's complement, 01111111 represents 127 and 10000000 represents -128.

The dad joke
Why did 127 refuse to add one more? It knew it would end up deeply negative.
Like this card?
Play the game

References

Answer: -128 to 127. With n bits the range is minus 2 to the (n-1) up to 2 to the (n-1) minus 1. For 8 bits that is -128 to 127. Zero takes one of the non-negative slots, so the positive side is one short.

  1. OpenStax Introduction to Computer Science 5.3: Machine-Level Information Representation openstax.org/books/introduction-computer-science/pages/5-3-machine-level-information-representation
    with three bits, the two's complement method can present up to -4, which we did not find in the other two methods
    Checked 2026-10-10.

Think this answer is wrong? Tap "Challenge this answer" on the card in the game and tell us why.

Test yourself in the game