digiwleeaTools
LearnGlossaryAboutCheat sheetHow a CPU worksToolsOpen the lab →

Two's complement of 64

The 8-bit two's complement of 64 is 11000000, the bit pattern that represents -64 (minus 64). Written as a signed 8-bit number, 64 itself is 01000000.

Two's complement of 64 (8-bit)11000000

Invert and add 1

Here is the two's complement of 64 at 8 bits, step by step (invert the bits of 64 and add 1):

  1. Write 64 in 8-bit binary: 01000000.
  2. Invert every bit (the one's complement): 10111111.
  3. Add 1: 11000000.

64 at 4, 8, and 16 bits

Width64 as a signed numberTwo's complement of 64
4-bit
8-bit0100000011000000
16-bit00000000010000001111111111000000

A dash means 64 (or its negation) is outside that width's signed range: 4-bit two's complement holds -8 to 7, 8-bit holds -128 to 127, and 16-bit holds -32768 to 32767.

Convert any number

Two's complement is how computers store signed integers, so one adder can both add and subtract. Read the full two's complement lesson, or convert any value at 8, 16, or 32 bits with the two's complement calculator.

Want to see two's complement do real work? Open the lab and wire a subtractor from an adder and inverters, or follow the free course from a transistor up to an 8-bit CPU.

Open the two's complement calculator →

Frequently asked

What is the two's complement of 64?

The 8-bit two's complement of 64 is 11000000, the bit pattern for -64. You get it by writing 64 in binary (01000000), inverting every bit (10111111), then adding 1.

How do you write 64 in two's complement?

64 in 8-bit two's complement is 01000000. Positive numbers are identical to plain binary, so no inverting is needed. At 16 bits it is 0000000001000000.

What is 64 in 16-bit two's complement?

64 in 16-bit two's complement is 0000000001000000. Two's complement sign-extends a shorter value by copying the sign bit to the left, so the value is unchanged from its 8-bit form.