Binary Multiplication Calculator

Multiply binary numbers using the partial products method with step-by-step visualization. View results in binary, decimal, hex, and octal. Includes partial products table and Booth's algorithm co..

Binary Multiplication Calculator

First binary number
Second binary number
Binary Product
10001111
8 bits maximum width
Decimal Product
143
13 ร— 11
Hexadecimal
0x8F
Base-16 representation
Octal
0o217
Base-8 representation
Partial Products
3
3 of 4 multiplier bits are 1
Result Bits
8
Max possible: 4 + 4 = 8

Long Multiplication

ย ย 1101 ย (13)
ร— 1011 ย (11)
1101 โ† bit 0
11010 โ† bit 1
0 โ† bit 2 (0)
1101000 โ† bit 3
10001111 ย (143)

Partial Products Table

StepMultiplier BitPositionPartial Product (Binary)Partial Product (Decimal)Running Sum
11011011313
211110102639
3020039
4131101000104143

Partial Product Alignment

bit 0:
0
0
0
0
1
1
0
1
bit 1:
0
0
0
1
1
0
1
0
bit 3:
0
1
1
0
1
0
0
0
Sum:
1
0
0
0
1
1
1
1

Booth's Algorithm Encoding

Booth's algorithm encodes runs of consecutive 1s in the multiplier to reduce the number of operations.

PositionBit TransitionAction
01โ†’0Subtract A << 0 (start of 1s run)
11โ†’1No operation (mid 1s run)
20โ†’1Add A << 2 (end of 1s run)
31โ†’0Subtract A << 3 (start of 1s run)
Planning notes, formulas, and examples

About the Binary Multiplication Calculator

The **Binary Multiplication Calculator** multiplies two binary numbers using the shift-and-add partial products method โ€” the same approach used by hardware multiplier circuits in every CPU. It provides a complete step-by-step breakdown showing each partial product, its shift position, and the final summation.

Binary multiplication is simpler than decimal multiplication because each multiplier bit is either 0 or 1: multiply by 0 gives 0, multiply by 1 copies the multiplicand. Each partial product is then shifted left by the bit position of the multiplier bit, and all partial products are summed. This elegant simplicity is why digital circuits can multiply efficiently using only AND gates and adders.

The calculator displays results in all four major bases โ€” binary, decimal, hexadecimal, and octal โ€” so you can verify conversions side by side. A detailed partial products table shows the multiplicand, the multiplier bit, the shifted partial product, and a running accumulation. For advanced study, the calculator also shows how Booth's algorithm would handle the same multiplication by encoding runs of 1s in the multiplier as subtract-then-add operations, reducing the number of additions.

This calculator is perfect for computer science courses covering computer architecture, digital logic design, or assembly language programming. Load preset examples to explore multiplication of powers of two, alternating bit patterns, maximum byte values, and other instructive cases.

When This Page Helps

Use this calculator when you need to see how a binary product is built, not just what the final product is. It takes a multiplicand and multiplier, shows each shifted partial product, and then reports the result in binary, decimal, hexadecimal, and octal. That is useful when you are checking manual work, verifying a shift-and-add routine, or explaining why multiplying by a sparse bit pattern creates only a few nonzero rows.

The extra Booth's algorithm section also gives the page a second job: comparison. If the multiplier contains long runs of 1s, the Booth table shows how those runs can be encoded as fewer add or subtract operations. That makes the calculator valuable for architecture and digital-design study, where understanding the operation count can matter as much as the numerical answer.

How to Use the Inputs

  1. Enter the multiplicand in Binary A and the multiplier in Binary B.
  2. Turn Booth's algorithm on if you want the recoded view of the same product.
  3. Use a preset such as "1101 ร— 1011" to load a clean worked example.
  4. Follow the partial-products table from top to bottom to see which rows contribute to the sum.
  5. Compare the binary, decimal, hex, and octal outputs to confirm the product quickly.
  6. Switch to a sparse multiplier or a run of 1s to see why Booth recoding can reduce additions.
Formula used
P = A ร— B. Partial products: for each bit i of B where B_i = 1, add (A << i) to the running product. Booth's: encode multiplier to reduce additions by grouping consecutive 1s.

Example Calculation

Result: 10001111

1101โ‚‚ is 13 and 1011โ‚‚ is 11, so the product is 143 decimal, which is 10001111 in binary. The partial-products table shows the shifted rows that add up to that result.

Tips & Best Practices

  • Read the multiplier from right to left so each 1-bit lines up with the correct left shift.
  • Use the partial-products table to spot missing rows when a result looks too small.
  • Compare the decimal and hex outputs if you want a fast sanity check on the binary result.
  • Booth recoding is most useful when the multiplier has long runs of 1s.

Reading The Partial Products Instead Of Only The Final Product

Binary multiplication is mechanically simple, but the important part for many learners is seeing which rows contribute to the sum. This calculator reads the multiplier one bit at a time and creates a shifted copy of the multiplicand whenever the current multiplier bit is 1. If the bit is 0, that row contributes nothing. The partial-products table then shows the binary row, its decimal value, and the running sum so you can follow the accumulation from the least significant active bit to the completed product.

That step-by-step layout is especially helpful when you want to connect multiplication with bit shifting. Multiplying by a 1-bit at position $i$ is the same as adding the multiplicand shifted left by $i$ places. The calculator makes that visible in both the long-multiplication block and the alignment diagram, where each active row is padded into its final position under the total. If you are teaching or learning why powers of two behave like pure shifts, these views make the rule concrete.

How Booth's Algorithm Fits Into The Same Example

The Booth section is included because some binary multipliers are more efficient to process than others. Instead of treating every isolated 1-bit as a separate addition, Booth recoding looks at bit transitions and compresses runs of consecutive 1s into subtract-at-start and add-at-end operations. This calculator does not replace the ordinary partial-products view with Booth encoding; it lets you compare them on the same input so you can see when the optimized method would reduce work.

That comparison becomes meaningful on examples such as 1111 or other clustered patterns, where the plain partial-products method creates many nonzero rows. The Booth table reveals the transition logic that hardware-oriented courses often discuss abstractly. Together, the standard product outputs, the per-row accumulation, and the Booth action table make the calculator useful both for correctness checks and for understanding why binary multiplication circuits are designed the way they are.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Multiply each bit of the multiplier by the multiplicand. A 0-bit contributes nothing; a 1-bit contributes the multiplicand shifted left by that bit position. Add all partial products to get the final product.