Enter a binary number.
The 2's complement of
We obtain the 1's complement of a binary number by subtracting each digit from 1 or alternatively by replacing each 0 with 1 and each 1 with 0.
We add 1 to the 1's complement to obtain the 2's complement.
Because the complement operation is not supposed to change the number of digits, we discard the most significant digit.
👉 Assuming the most significant bit is the sign bit, the decimal equivalents of the entered number and its complement are as following.
We can find the 2's complement of a number in two steps.
To learn an alternative method for the 2's complement calculation, you can use the calculator below.
2's complement calculator,
You can use 2's complement calculator in two ways.
You can enter a binary number to the input box and click on the "CALCULATE" button. The result and explanations appaer below the calculator
You can click on the DIE ICON next to the input box. If you use this property, a random binary number is generated and entered to the calculator, automatically. You can see the result and explanations below the calculator. You can create your own examples and practice using this property.
To check the 2's complement of another binary number you can clear the input box by clicking on the CLEAR button under the input box.
You can copy the generated solution by clicking on the "Copy Text" link, appaers under the solution panel.
Even you can download the solution as an image file with .jpg extension if you click on the "Download Solution" link at the bottom of the solution panel. You can share the downloaded image file.