About this tool
The Expand & FOIL Calculator multiplies out a product of binomials, polynomials, and powers and combines like terms into standard expanded form. It applies the distributive law fully: n(a + b) → na + nb, (a + b)(c + d) → ac + ad + bc + bd, and (a + b)ᵏ → the binomial repeated k times for a non-negative integer exponent. The result is ordered by descending degree with signs and coefficients normalized, so (x + 3)(x − 2) becomes x² + x − 6 and (2x − 1)³ becomes 8x³ − 12x² + 6x − 1.
When the input is exactly two parenthesized binomials, the tool additionally renders the classic FOIL breakdown — First, Outer, Inner, Last — showing each of the four products before they are summed, which mirrors how the method is taught. For longer products it simply expands term by term and reports the combined polynomial.
All coefficients are handled as exact fractions and the multiplication is a deterministic symbolic operation performed locally in your browser with an eval-free parser. Enter a product such as '(x+3)(x-2)' or '(2x-1)^3' and read the FOIL steps (when applicable) plus the fully expanded polynomial, its degree, and its term count.