Multiplication With Signed Numbers

Learn how to perform multiplication with two's complement numbers.

Multiplication technique

To multiply two’s complement numbers we employ the same technique we used in the lesson Multiplication in Binary, with some minor changes.

Before carrying out the multiplication, we sign-extend the number to twice as many bits. This simply means that we add nn copies of the sign bit to the left of the number, where nn is the number of bits in the original number. For example:

1000100010001000 would be sign-extended to 11111111100010001111111110001000.

After this, we carry out the multiplication as before. We take the nn least-significant bits of the product as our final answer.

Get hands-on with 1400+ tech skills courses.