One's Complement

Last Updated : 25 Jul, 2026

One's complement is a method of representing binary numbers by inverting every bit of a binary value. It is widely used in digital electronics and computer systems for representing signed numbers and performing binary arithmetic operations.

  • It is obtained by replacing every 0 with 1 and every 1 with 0.
  • It simplifies operations such as binary subtraction using complement arithmetic.
1_s_complement

How to Find One's Complement

To find the 1's complement of a binary number:

  1. Write the binary number.
  2. Replace every 0 with 1.
  3. Replace every 1 with 0.
  4. The resulting binary number is the 1's complement.

Examples 

Example 1

Binary Number: 11010011

Replace each 0 with 1 and each 1 with 0.

11010011 → 00101100

1's Complement = 00101100

Example 2

Binary Number: 00111.001

Replace each 0 with 1 and each 1 with 0 (the binary point remains unchanged).

00111.001 → 11000.110

1's Complement = 11000.110

1's Complement of 4-Bit Binary Numbers

NumberBinary Representation1's complement
000001111
100011110
200101101
300111100
401001011
501011010
601101001
701111000
810000111
910010110
1010100101
1110110100
1211000011
1311010010
1411100001
1511110000

Representation of Negative Numbers Using 1's Complement

In 1's complement representation:

  • Positive numbers remain unchanged.
  • Negative numbers are represented by taking the 1's complement of the corresponding positive binary number.
  • The leftmost bit (MSB) acts as the sign bit.
v

Range of 1's Complement Numbers

For an n-bit 1's complement representation:

  • Minimum value: -(2(n-1)-1)
  • Maximum value: +(2(n-1)-1)

Note: 1's complement has two representations for zero:

  • Positive zero: 0000...0000
  • Negative zero: 1111...1111
Comment

Explore