One’s Complement vs Two’s Complement in Binary

In digital computing, one’s complement and two’s complement are two distinct mathematical representations used to store signed (positive and negative) integers in binary. While both systems use the most significant bit (MSB) as a sign indicator—where 0 denotes positive and 1 denotes negative—they differ significantly in how negative values are formed, how zero is represented, their numerical ranges, and the hardware complexity required to perform basic arithmetic operations.

Method of Calculation

The Problem of Zero

Arithmetic Operations and Circuitry

Representable Range

For an \(n\)-bit binary representation: * One’s Complement Range: \(-(2^{n-1} - 1)\) to \(+(2^{n-1} - 1)\). For an 8-bit byte, the range is \(-127\) to \(+127\). * Two’s Complement Range: \(-2^{n-1}\) to \(+(2^{n-1} - 1)\). For an 8-bit byte, the range is \(-128\) to \(+127\). The elimination of duplicate zero allows two’s complement to represent one additional negative number.

Because of its single representation of zero and simplified arithmetic circuitry, two’s complement is the universal standard used in modern processor architectures.