How to use the Binary Multiplication Calculator tool
- Enter the multiplicand in the First binary number box.
- Enter the multiplier in the Second binary number box. Example fills the boxes with 1011 and 11.
- Select Multiply to compute the product.
- Read the product on the Binary line and its base 10 value on the Decimal line.
- Select Copy to copy the product, or Clear to multiply different numbers.
How binary multiplication works
Multiplying in binary is long multiplication with the easiest possible times table. Each bit of the multiplier is 0 or 1, so each partial product is either all zeros or a copy of the multiplicand. Every copy is shifted left by the position of the bit that produced it, and the shifted copies are added.
This is called shift-and-add. It is the basis of multiplier circuits, which generate all partial products with AND gates and then sum them with rows or trees of adders. The calculator itself multiplies arbitrary-precision integers directly in your browser and prints the product, which matches the hand method bit for bit.
Worked example: 1101 times 101
The multiplier 101 has ones at positions 0 and 2. That gives two partial products: 1101 unshifted and 1101 shifted left by two places. The middle row is zero. Adding the rows gives 1000001. In decimal the problem is 13 × 5 = 65.
1101 (13)
x 101 (5)
---------
1101
0000
1101
---------
1000001 (65)
Binary: 1000001
Decimal: 65How long the product can be
A product never needs more bits than the two operands have between them. Multiplying an m-bit number by an n-bit number gives at most m + n bits. Two 8-bit values at their maximum show the bound: 11111111 × 11111111 is 1111111000000001, exactly 16 bits, or 65,025.
Processors handle this by returning double-width products or by keeping only the low half and discarding the rest. This calculator has no register width, so it always shows the full product. Truncate it yourself if you are modeling fixed-width multiplication.
Multiplying by powers of two
A multiplier with a single 1 bit shifts the other number left. Multiplying by 10 appends one zero, by 100 two zeros and by 1000 three. So 1011 × 1000 is 1011000, which is 11 × 8 = 88. This is the reason a left shift by k positions is the same as multiplying by two to the power k, and why compilers turn multiplications by constants into shifts and adds.
Signs, input format and errors
Each operand is a binary whole number of up to 4,096 characters, optionally starting with a minus sign or a 0b prefix. Signs follow the usual rule: -1011 × 11 is -100001, and -101 × -11 is 1111. Negative results are written with a minus sign, not in two's complement. Anything multiplied by 0 returns 0. Spaces inside a number or digits other than 0 and 1 cause an Invalid base-2 digit error, and an empty box returns Enter a base-2 whole number.
Frequently asked questions
What are the rules of binary multiplication?
There are four single-bit cases: 0 × 0 = 0, 0 × 1 = 0, 1 × 0 = 0 and 1 × 1 = 1. Multi-bit multiplication applies them to form partial products, then adds those with binary addition.
What is 1011 times 11 in binary?
It is 100001. The operands are 11 and 3 in decimal, and their product is 33. By shift-and-add, 1011 plus 10110 equals 100001.
How many bits will the product have?
At most the sum of the operand lengths, and at least one less than that sum when neither operand has leading zeros. A 4-bit number times a 2-bit number yields 5 or 6 bits.
Can I multiply negative binary numbers?
Yes. Prefix an operand with a minus sign. One negative operand gives a negative product, and two give a positive one. The tool treats inputs as signed magnitudes, so do not enter two's complement patterns.
Does the calculator show the partial products?
No. It prints the final product in binary and decimal only. The worked example on this page shows how to lay out the partial products by hand if you need the intermediate rows.
Is there overflow for large numbers?
No. The arithmetic uses big integers, so the product of two 4,096-bit operands is still exact. Only the input length is capped, at 4,096 characters per operand.