# ⇩ COMPLEMENT CALCULATORS ⇩

#### 2'S COMPLEMENT CALCULATOR

Enter a binary number.

RESULT

The 2's complement of 0101 is 1011.

DESCRIPTIONS

Step 1: Find the 1's Complement

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.

Step 2: Add 1 to the 1's Complement

We add 1 to the 1's complement to obtain the 2's complement.

OTHER INFORMATION

👉 Assuming the most significant bit is the sign bit, the decimal equivalents of the entered number and its complement are as following.

• (0101)2 = (5)10
• (1011)2 = (-5)10
Copied to clipboard
Copy Text

# ⇩ COMPLEMENT CALCULATORS ⇩

## INFORMATION

### 2'S COMPLEMENT OF A BINARY NUMBER

We can find the 2's complement of a number in two steps.

• First, we find the 1's complement of that number,
• Then we add 1 to the 1's complement.

To learn an alternative method for the 2's complement calculation, you can use the calculator below.

### WHAT IS 2'S COMPLEMENT CALCULATOR?

2's complement calculator,

• Computes the twos complement of an entered binary number,
• Graphically illustrates the calculation,
• Finds the decimal representaiton of the entered number and it complement and
• Describes the solution step by step.

### HOW TO USE 2'S COMPLEMENT CALCULATOR?

You can use 2's complement calculator in two ways.

• #### USER INPUTS

You can enter a binary number to the input box and click on the "CALCULATE" button. The result and explanations appaer below the calculator

• #### RANDOM INPUTS

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.

• #### CLEARING THE INPUT BOX

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.