SkillSha LogoSkillSha
Computer organisation ยท Binary arithmetic

Booth's Multiplication Calculator: Every Step of the Register Table

Booth's algorithm multiplies two signed binary numbers in two's complement by looking at the last bit of Q and the extra bit Qโ‚‹โ‚ in each of n steps: 10 means A = A โˆ’ M, 01 means A = A + M, and 00 or 11 means no operation โ€“ then A, Q and Qโ‚‹โ‚ are shifted right arithmetically. Enter any two integers and a bit width below to see the real register values after every operation, step through them one at a time, and get the product in binary and decimal.

Examples:
M (multiplicand)
0111
decimal 7
โˆ’M (two's complement)
1001
decimal -7
Q (multiplier)
0011
decimal 3

Register table

StepAQQโ‚‹โ‚Operation
0000000110Initialise: A = 0, Q = multiplier, Qโ‚‹โ‚ = 0
1100100110Qโ‚€Qโ‚‹โ‚ = 10 โ†’ A = A โˆ’ M
1110010011Arithmetic shift right (A, Q, Qโ‚‹โ‚)
2111001001Qโ‚€Qโ‚‹โ‚ = 11 โ†’ no add/subtract; arithmetic shift right
3010101001Qโ‚€Qโ‚‹โ‚ = 01 โ†’ A = A + M
3001010100Arithmetic shift right (A, Q, Qโ‚‹โ‚)
4000101010Qโ‚€Qโ‚‹โ‚ = 00 โ†’ no add/subtract; arithmetic shift right
Final product (A Q, 8 bits)
00010101
Decimal
21
โœ“ matches 7 ร— 3 = 21

The product is read from A followed by Q. Its leading bit is the sign bit: 0, so the value is positive. The product of two 4-bit numbers always fits in 8 bits, so no overflow is possible.

The table is produced by actually running Booth's algorithm on the registers โ€“ every row is a real intermediate value, and the final product is checked against ordinary multiplication. Inputs outside the range of the chosen bit width are rejected with the minimum width you need.

How do I use the Booth's algorithm calculator?

  1. 1Enter the multiplicand (M) and the multiplier (Q) as decimal integers โ€“ negative numbers are allowed.
  2. 2Choose a bit width. Each value must fit in that many bits of two's complement.
  3. 3Read the binary forms of M, โˆ’M and Q, then the register table for every step.
  4. 4Press Step through to reveal one operation at a time, with the active row highlighted.
  5. 5Check the final product in binary and decimal.

Booth's algorithm steps

Initialise: A = 0, Q = multiplier, Qโ‚‹โ‚ = 0, M = multiplicand, count = n
Qโ‚€Qโ‚‹โ‚ = 10 โ†’ A = A โˆ’ M ยท 01 โ†’ A = A + M ยท 00 / 11 โ†’ no operation
Arithmetic shift right A, Q, Qโ‚‹โ‚; count = count โˆ’ 1; repeat until count = 0

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.

Frequently asked questions

What is Booth's multiplication algorithm?

Booth's algorithm is a method for multiplying signed binary integers in two's complement form. It scans the multiplier bit pairs (Q0, Q-1) and adds or subtracts the multiplicand only when the pair is 01 or 10, then performs an arithmetic right shift. It was published by Andrew D. Booth in 1951.

What do A, Q, Q-1 and M mean?

M holds the multiplicand, Q holds the multiplier, A is the accumulator that starts at 0, and Q-1 is an extra bit to the right of Q that starts at 0. At the end, A followed by Q holds the 2n-bit product.

What is an arithmetic right shift?

All bits of the combined A, Q, Q-1 register move one place to the right, the last bit of Q moves into Q-1, the last bit of A moves into the first bit of Q, and the sign bit of A is copied so the sign is preserved.

How many steps does Booth's algorithm take?

Exactly n steps for n-bit operands. Each step has one decision (add, subtract or nothing) followed by one arithmetic right shift.

Can Booth's algorithm overflow?

The 2n-bit product of two n-bit numbers always fits, so the final result cannot overflow. The one special case is a multiplicand equal to the most negative n-bit value (for example โˆ’8 in 4 bits), whose negative does not fit in n bits; this calculator then adds one guard bit to A and M, which is the standard fix.