Skip to main content
Reviewed for accuracy by Manoj Kumar, Mathematics Educator

Twos Complement Calculator

Calculator

Adjust values & calculate

Enter your values below. Every result is computed in your browser โ€” no data is sent to any server.

Formula: Negative: Invert bits + 1 | Range: -2^(n-1) to 2^(n-1)-1

Your Result

Worked example โ€” Two's complement of -42 = 11010110 (0xD6) | Unsigned value: 214

Reviewed for accuracy by Manoj Kumar, Mathematics Educator ยท Editorial policy