Built and fact-checked by the DocNectar team — see our editorial standards
Key Features
Instant Calculation
Get accurate results in real time with our optimized algorithm.
Mobile Friendly
Fully responsive design. Works on all devices & screen sizes.
Privacy Focused
Your data stays on your device. We don't store any inputs.
100% Free
No hidden costs. This tool is completely free forever.
The one's complement of a binary number is found by flipping every single bit — every 0 becomes a 1 and every 1 becomes a 0. It's a foundational operation in digital logic and computer architecture, forming the basis of one's-complement signed number representation (an early scheme, still relevant historically and in certain checksum algorithms, for representing negative numbers in binary) and serving as the essential intermediate step in computing two's complement, the signed-number representation used by virtually all modern computer hardware.
How it works
Enter a binary number. The calculator inverts every bit position independently: each 0 becomes a 1, and each 1 becomes a 0 — equivalent to the bitwise NOT operation found in most programming languages.
- Enter binary number.
- Click Calculate to see your results.
Examples
10110
Flipping every bit: 1→0, 0→1, 1→0, 1→0, 0→1, giving 01001. One's complement of 10110 is 01001.
11111111 (all 1s, 8-bit)
Flipping every bit gives 00000000 — the one's complement of an all-1s byte is always all zeros, and vice versa.
Common mistakes to avoid
- Confusing one's complement (flip all bits) with two's complement (flip all bits, then add 1) — they differ by that final +1 step.
- Forgetting to account for leading zeros — the bit-width you flip within changes the result if the number isn't already padded to a fixed size.
- Assuming one's complement of a number added to itself gives zero the same way two's complement does — one's complement arithmetic has its own quirks, including two representations of zero.