Math glossary

Binary Multiplication: Rules, Shifts, and Worked Examples

Multiply binary integers and fractions with shift-and-add. Work through six examples and check signed values, carries, and overflow.

TL;DR

Multiply by each binary digit, shift each partial product to match its place, and add in base 2. A multiplier bit of 1 copies the other factor. A bit of 0 contributes zero.

Key Points

  • The one-bit products are zero except for 1×1=11\times1=1.
  • A left shift by one position doubles a nonnegative binary integer when enough space is available.
  • Align partial products by place value. Add using base-2 carries.
  • For binary fractions, use the total fractional places of both factors before removing trailing zeros.
  • Check the bit width and signed representation when using a fixed-width register.

What are the binary multiplication rules?

Binary uses digits 0 and 1. The four possible single-digit products are:

First bit Second bit Product
0 0 0
0 1 0
1 0 0
1 1 1

The binary number system guide explains why the rightmost bit of a whole number is the units place, followed by the twos, fours, and eights. Place value determines where a partial product belongs. McMaster University, Number Systems and Binary Arithmetic

Binary partial products for eleven times six shift one and two places before being added
The ones in the second factor are in the twos and fours places. The two nonzero rows represent 22 and 44.

How do you multiply two binary numbers by hand?

  1. Write one factor above the other with their rightmost digits aligned.
  2. Read the bottom factor from right to left. For a 1, copy the top pattern. For a 0, use a zero row.
  3. Move the copied row left by the bottom bit’s position, counting the rightmost position as zero.
  4. Add the rows one at a time in binary. Two ones give 10210_2, so write 0 and carry 1. Three ones give 11211_2, so write 1 and carry 1.

For 10112×11021011_2\times110_2, the rightmost bit is zero. The next bit copies 101121011_2 one place left as 10110210110_2. The last bit copies it two places left as 1011002101100_2. Adding gives 100001021000010_2. This is the same place-value method as decimal long multiplication, with powers of two instead of ten. University of Iowa, Binary Multiplication Algorithms

Why does the shift-and-add method work?

Write the bottom factor as a sum of powers of two. For example, 1102=22+21110_2=2^2+2^1. Multiplying the top factor aa by that sum gives a·22+a·21a\cdot2^2+a\cdot2^1. The distributive property explains the two rows.

A left shift by kk positions multiplies an unsigned integer by 2k2^k if all result bits fit. You can skip zero rows because their contributions are zero. A computer can use the same idea by choosing a partial product for each bit and adding the shifted results. Circuit Quest, Binary Multiplication by Hand

How do binary fractions, negative numbers, and bit width change the process?

For nonnegative fractions, temporarily remove both binary points. Multiply as integers, then count back from the right by the total number of fractional bits removed. Each fractional bit represents an additional division by 2. Add leading zero bits when needed to show the point clearly. The number systems guide explains fractional place values.

For ordinary signed numbers written with a minus sign, multiply magnitudes and apply the sign. A fixed-width signed value may instead use two’s complement, where the highest bit has a negative place weight. Determine the intended representation before reading the bits. For instance, the four-bit string 110121101_2 denotes 13 as an unsigned value and −3-3 in four-bit two’s complement.

Two unsigned numbers of at most nn bits can require up to 2n2n product bits. Keeping only the low nn bits leaves the result modulo 2n2^n. If the intended value is out of range, that truncated result is not the full product. University of Michigan, Binary Arithmetic

Worked Binary Multiplication Examples

Example 1

Multiply 101121011_2 by 1102110_2.

  1. The nonzero bits in the second factor are at positions 1 and 2.
  2. Add the rows 10110210110_2 and 1011002101100_2.
  3. The result is 100001021000010_2. In decimal, 11·6=6611\cdot6=66.

Example 2

Multiply 110121101_2 by 1012101_2.

  1. The bottom 1 bits are in the units and fours positions.
  2. Add 110121101_2 and 1101002110100_2.
  3. The result is 100000121000001_2, equal to 13·5=6513\cdot5=65.

Example 3

Multiply 1112111_2 by 1112111_2.

  1. The three partial products are 1112111_2, 111021110_2, and 11100211100_2.
  2. Adding the first two gives 10101210101_2.
  3. Adding the last gives 1100012110001_2, equal to 7·7=497\cdot7=49.

Example 4

Find 10.12×1.1210.1_2\times1.1_2.

  1. Removing one fractional bit position from each factor leaves 1012101_2 and 11211_2.
  2. Their integer product is 111121111_2.
  3. Restore two fractional positions to get 11.11211.11_2. In decimal, 2.5·1.5=3.752.5\cdot1.5=3.75.

Example 5

Two four-bit two’s-complement inputs are 110121101_2 and 001020010_2. Find the signed product and check whether it fits in four bits.

  1. The signed inputs are −3-3 and 2.
  2. Their product is −6-6, which lies in the four-bit signed range from −8-8 to 7.
  3. Add 16 to −6-6 to obtain its four-bit pattern 101021010_2. As a check, that pattern has value −8+2=−6-8+2=-6 under this interpretation.

Example 6

Multiply the unsigned four-bit values 111121111_2 and 001120011_2. What happens if only four result bits are kept?

  1. The decimal product is 15·3=4515\cdot3=45.
  2. The full binary product is 1011012101101_2.
  3. Its low four bits are 110121101_2, or 13. This is 4545 modulo 16. The full value needs six bits.

Mistakes That Change a Binary Product

Mistake 1: Shifting only when the multiplier bit is 1

A zero contributes no row. Its position still affects how much to shift later rows.

Mistake 2: Writing a decimal carry in the result column

In base 2, 1+1=1021+1=10_2. Write the 0 in that column and carry 1 left.

Mistake 3: Treating all leading 1s as sign bits

The highest bit has an ordinary positive weight in an unsigned value. It has a negative weight in a fixed-width two’s-complement value. Check which convention applies.

Try It Yourself

  1. Find 1012×112101_2\times11_2.
  2. Find 0.12×0.120.1_2\times0.1_2.
  3. Multiply 100121001_2 by 1002100_2 using one shift.

Answers and Reasoning

  1. Add 1012101_2 and 101021010_2 to get 111121111_2.
  2. Each factor is one-half, so the product is one-quarter, or 0.0120.01_2.
  3. Shift left twice to get 1001002100100_2, equal to decimal 36.

Frequently Asked Questions

What happens when you multiply by 10 in binary?

10210_2 equals decimal 2. A left shift by one position gives the product if all bits can be stored.

Can binary multiplication give more digits than the factors?

Yes. For instance, 1112×1112111_2\times111_2 gives 1100012110001_2. Save enough positions for the entire result.

How can you check a binary product quickly?

Convert both factors and the result to decimal for a second calculation. You can also use binary place values and confirm that each nonzero partial row starts in the position marked by the corresponding multiplier bit.

Conclusion

  • Use the four one-bit rules and shift each row by place value.
  • Add partial rows with binary carries.
  • Restore fractional places and check word width or sign conventions when they apply.

Read More

Research Behind This Article

  1. McMaster University, 4D6 Lab Manual: Number Systems. McMaster Physics
  2. Douglas W. Jones, CS:2630 Notes, Chapter 9: Beyond Add and Subtract. University of Iowa
  3. University of Michigan, Binary Arithmetic. University of Michigan EECS
  4. Circuit Quest, Binary Multiplication by Hand. Circuit Quest