Home · Everyday · Bases, Binary & Logic · One's Complement Calculator

One's Complement Calculator

Ones' complement representation of a number in 8, 16 or 32 bits — negate by flipping every bit.

Your figures

Example result — edit the figures to make it yours

11110101

Ones' complement (8-bit)

Ones' complement negates by flipping every bit — which is why it has two zeros (+0 and −0) and a symmetric range. The headline figure is the unsigned value of the bit pattern.

Unsigned pattern value245
Range of this width-128 to 127

What this calculator does

Ones' complement representation of a number in 8, 16 or 32 bits — negate by flipping every bit. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.

The formula and method

Negative numbers are the bitwise flip of their positive form; range −(2ⁿ⁻¹−1) to 2ⁿ⁻¹−1

Digits are validated against the chosen base — a binary field rejects the digit 2.

Conversion goes through the exact integer value, so results are exact for the sizes accepted.

Negative values keep their sign in every base.

Worked example

With the example inputs this page opens with (signed value -10), the result is 11110101 — ones' complement (8-bit). Ones' complement negates by flipping every bit — which is why it has two zeros (+0 and −0) and a symmetric range. The headline figure is the unsigned value of the bit pattern.

Quick reference

Quick reference — varying signed value
Signed valueOnes' complement (8-bit)
-511111010
-811110111
-1011110101
-12.511110011
-1511110000
-2011101011

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the One's Complement Calculator work?

Ones' complement representation of a number in 8, 16 or 32 bits — negate by flipping every bit. Value · Width → Bit pattern. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the One's Complement Calculator need?

Value · Width → Bit pattern. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the One's Complement Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.