Ad Space
Math Calculators

Two's Complement Calculator

Convert a signed decimal integer into its two's complement binary representation for a given bit width.

Two's complement binary
Unsigned decimal equivalent
Ad Space — 300×250

About the Two's Complement Calculator

Two's complement is the standard way computers represent negative integers in binary. Positive numbers are stored normally, while negative numbers are stored as the value that, when added to the positive equivalent, produces zero (with overflow ignored).

Formula: for a negative value v with n bits, two's complement = 2n + v

This representation lets addition and subtraction use the same hardware circuitry regardless of sign, which is why virtually all modern processors use it.

Ad Space