Calculator-Online.net

Calculator Online

Calculator-Online.net

Calculator Online

Follow Us On:

Your Result is copied!
Advertisement

Two's Complement Calculator

Enter any logical number (binary, decimal, or hexadecimal), select the number of binary digits, and hit the calculate button to find the two's complement with detailed steps

Advance
Simple

Number of Bits-128 to 127

Hex Number Range8 Digits (without leading zeros)

Binary Number Range0-9 and A-F (16-Digits)

Advertisement

Two's Complement Calculator

Use our free Two's Complement Calculator to compute the 2's complement of any decimal, binary, or hexadecimal number. This tool simplifies number conversions by providing results in multiple formats, including:

  • One's complement
  • Two's complement
  • Signed binary to decimal
  • Hexadecimal

What Is Two's Complement?

Two's complement is a method used in computing to represent signed integers in binary. It enables encoding of both positive and negative numbers efficiently. To compute the 2's complement of a binary number:

  1. Find the one's complement by inverting all bits (0 → 1, 1 → 0).
  2. Add 1 to the least significant bit (LSB) of the result.

Example: Convert decimal 20 to 2's complement (8-bit):

  • Decimal 20 → Binary: 00010100
  • One's complement: 11101011
  • Add 1 → Two's complement: 11101100

How the Two's Complement Calculator Works

Input:

  • Select the number type: decimal, binary, or hexadecimal.
  • Enter the value in the input field.
  • Specify the binary bit-length if required.
  • Click "Calculate" to see the results.

Output:

  • Two's complement of the entered number.
  • Displayed in binary, decimal, hexadecimal, and one’s complement formats.

Two's Complement Addition and Subtraction

Input:

  • Enter the first 2's complement binary number.
  • Enter the second 2's complement binary number.
  • Select the operation: addition or subtraction.
  • Click "Calculate" to get the result.

Output:

  • Result of adding or subtracting the 2's complement numbers.

Reference

Wikipedia: Two's complement representation. Calculation proceeds from the least significant bit (LSB) to the most significant bit (MSB).

animal image
sales modal popup close

Easter into Action, Save With Satisfaction

UPTO

50 %

OFF

Online Calculator

Calculator Online

Get the ease of calculating anything from the source of calculator online

Email us at

Contact Us

© Copyrights 2026 by Calculator-Online.net