Generic Rectangle Calculator
Multiply two polynomials step by step using the visual box method. See every partial product in a grid.
๐ What is the Generic Rectangle Method?
The generic rectangle method, also called the box method, is a visual technique for multiplying polynomials. Instead of applying the distributive property term by term in a single line, you draw a grid where one polynomial labels the rows and the other labels the columns. Every cell is then filled with the product of its row header and column header. The final expanded polynomial is found by collecting all cells that share the same power of x.
The method has direct classroom use. Middle school and high school students use it when multiplying two binomials, such as (2x + 3)(x - 4), and when multiplying a trinomial like (xยฒ + 3x + 2) by a binomial like (2x - 1). College algebra courses use it to factor quadratics by reversing the process. The generic rectangle is also used in lattice multiplication for integers and in partial-fraction decomposition in calculus, where understanding how polynomials combine helps students reverse-engineer complex rational expressions.
A common point of confusion is the difference between the generic rectangle and FOIL. FOIL is a memory device for multiplying exactly two binomials: First, Outer, Inner, Last. It lists four products and works only for that one case. The generic rectangle generalises the same idea to any polynomial sizes. When both expressions are binomials, the four cells of a 2x2 grid correspond exactly to the four FOIL terms. When one expression is a trinomial, the grid becomes 3x2 with six cells, which FOIL cannot handle. Using the generic rectangle makes the distributive property visible and eliminates the risk of missing a partial product.
This calculator builds the rectangle grid instantly from the coefficients you enter. It supports two modes: Binomial times Binomial for quadratic results, and Trinomial times Binomial for cubic results. In each mode the table shows every partial product explicitly, the expanded polynomial appears below the grid, and the individual term coefficients are listed in separate result boxes so you can check each one against your own working.