Factoring Calculator
Factorise a quadratic into brackets, or say why it will not factorise.
Multiply two binomials, with all four products shown.
From (ax + b).
From (cx + d).
| Step | Product |
|---|
FOIL Calculator multiplies two binomials and shows the four products separately before collecting them. FOIL is a memory aid for the order: First, Outer, Inner, Last, meaning the two leading terms, the two outside terms, the two inside terms and the two constants.
The two middle products are the part people get wrong, because they have to be added together rather than written separately. The page prints that collection as its own line, so if your answer differs from this one it is usually visible immediately which of the four products went astray.
FOIL only works for two binomials. It is not a general rule for multiplying brackets, and for a trinomial or anything longer the right method is to multiply every term in the first bracket by every term in the second, which is what FOIL is a special case of.
The page shows its working, not just its answer. Where there is a formula it is printed with your own numbers substituted in, so you can check the result rather than take it on trust -- which is the difference between a calculator you can use for something that matters and one you cannot.
Everything runs inside your browser. What you type is never uploaded, never logged and never stored, and the calculator keeps working if your connection drops after the page has loaded.
More tools: FreeToolsHub.org
The FOIL Calculator is used by writers, developers, students, marketers and anyone else who needs the job done once without installing software. Common cases include:
First, Outer, Inner, Last — the order in which the four pairs of terms are multiplied when two binomials are expanded.
Because the Outer and Inner products are both multiples of x, so they are like terms. Collecting them is what turns four products into a three-term quadratic.
No. FOIL is specific to two binomials. For longer brackets, multiply each term of the first by each term of the second; FOIL is just that rule when both brackets have two terms.
Because the Outer and Inner products cancelled, which happens when the brackets are (x + k)(x - k). That is the difference of two squares, and the result has no x term.
If the FOIL Calculator is not quite what you need, these other free tools solve closely related problems, and there are 35 more in math calculators.
Factorise a quadratic into brackets, or say why it will not factorise.
Roots, discriminant, vertex and the full working for ax2 + bx + c = 0.
Powers, including negative and fractional exponents.
Three calculators: percent of a number, what percent one number is, and change.
Absolute value of a number, or the absolute difference of two.
Checked and rebuilt on 2026-10-18. The method this calculator uses is described in the section above, and corrections go through the contact page.