Free technology and media calculator

Two's Complement Calculator

Use this free two's complement calculator to calculate a clear estimate from values you enter.

Open the interactive two's complement calculator

Free tools and planners

Formula

For n bits, signed range is −2^(n−1) through 2^(n−1)−1. Negative values are encoded modulo 2^n.

Worked example

In 8-bit two's complement, −5 is 11111011 in binary and FB in hexadecimal.

Assumptions and limitations

Estimate based on the entered values. Actual device, codec, network, and software behavior can differ.

Keep moving with a practical next step

Browse free calculators, planners, and templates, or explore the blog and business directory. No subscription is required.