How do I use the Booth's algorithm calculator?
- 1Enter the multiplicand (M) and the multiplier (Q) as decimal integers โ negative numbers are allowed.
- 2Choose a bit width. Each value must fit in that many bits of two's complement.
- 3Read the binary forms of M, โM and Q, then the register table for every step.
- 4Press Step through to reveal one operation at a time, with the active row highlighted.
- 5Check the final product in binary and decimal.
Booth's algorithm steps
The product is the 2n-bit value A Q. If its first bit is 1 the product is negative; subtract 22n from the unsigned value to get the decimal result.
Worked example: 7 ร 3 with 4 bits
M = 0111, โM = 1001, Q = 0011. Step 1: QโQโโ = 10, so A = 0000 + 1001 = 1001, then shift โ A = 1100, Q = 1001, Qโโ = 1. Step 2: pair 11, shift โ A = 1110, Q = 0100, Qโโ = 1. Step 3: pair 01, A = 1110 + 0111 = 0101, shift โ A = 0010, Q = 1010, Qโโ = 0. Step 4: pair 00, shift โ A = 0001, Q = 0101. Product = 0001 0101 = 21.
Why Booth's algorithm is used
A run of 1s in the multiplier is handled with one subtraction at its start and one addition at its end instead of one addition per bit, and negative multipliers need no special handling. That is why Booth recoding is a standard topic in computer organisation and appears in GATE CS. Practise more COA questions in the GATE CSE Mock Test.
Sources and review
Prepared and reviewed by the Skillsha Editorial Team ยท Last reviewed December 2026. Found an error or a newer official rule? Tell us through the contact page and we will update this tool.