Multiply two binomials with the FOIL method — enter (ax + b)(cx + d) and see the First, Outer, Inner, Last steps worked out. Free, fast, and mobile-friendly.
Home » Math Calculators » FOIL Method Calculator
Multiplying (2x + 3)(x + 4) by hand means tracking four mini-multiplications and then combining the middle terms — a bookkeeping exercise where one dropped sign ruins everything. The FOIL method organizes the chaos: multiply the First terms, the Outer terms, the Inner terms, and the Last terms, then add. Our free FOIL Method Calculator performs all four multiplications instantly and shows each letter’s step, so you see exactly where every term of the answer comes from.
FOIL is most students’ first encounter with the distributive property in full force, and it opens the door to factoring, completing the square, and the quadratic formula. Every one of those topics is FOIL run forward or backward. A student who can FOIL fluently — and who understands why it works rather than just chanting the letters — has the single most-used algebraic skill of high school mathematics. This calculator is built to teach both the mechanics and the meaning.
Enter any four coefficients (including negatives and decimals), and the tool handles the sign bookkeeping that causes most errors: it labels each of the four products, combines the Outer and Inner like terms, and presents the simplified quadratic. Use it to check homework, to explore patterns like (x + a)(x + b), or to verify each step of a longer problem. The letters give you the order; the calculator gives you the certainty.
(x + )(x + )
Tip: for minus signs, enter a negative number (e.g. −3 for − 3).
FOIL is not a separate rule of algebra — it is the distributive property applied twice. Start with (a + b)(c + d) and treat the first binomial as a single quantity: (a + b)(c + d) = (a + b)c + (a + b)d. Distribute again over each product: ac + bc + ad + bd. Rearranged, that is ac (First) + ad (Outer) + bc (Inner) + bd (Last). The catchy acronym just names the four products the distributive law was always going to produce.
Seeing this matters because FOIL only works for two binomials. Students who memorize the letters without the distributive meaning try to “FOIL” trinomials like (x + 2)(x² + 3x + 1) and fail — but the distributive property handles any product: multiply every term of the first polynomial by every term of the second. FOIL is the 2×2 case of that universal rule; understanding the general principle means never being trapped by the acronym’s limits.
Geometrically, FOIL is area. Draw a rectangle with sides (a + b) and (c + d), split each side at the plus sign, and the big rectangle divides into four smaller ones with areas ac, ad, bc, bd. The total area is the sum — exactly the FOIL expansion. This picture explains why all four terms are positive when a, b, c, d are positive, and it makes sign errors visible: a negative coefficient shrinks (or flips) its sub-rectangle.
The like-terms combination is where the x-term of the quadratic comes from. In (2x + 3)(x + 4), the Outer product 8x and Inner product 3x are both multiples of x, so they merge: 8x + 3x = 11x. The x² term (First) and constant (Last) stand alone. Every quadratic’s three coefficients are born this way — which is why factoring a quadratic means reverse-engineering the FOIL that created it.
(ax + b)(cx + d) = acx² + (ad + bc)x + bd
First: acx² · Outer: adx · Inner: bcx · Last: bd — then combine the two x-terms.
First: 2x · x = 2x². Outer: 2x · 4 = 8x. Inner: 3 · x = 3x. Last: 3 · 4 = 12. Combine: 2x² + 8x + 3x + 12 = 2x² + 11x + 12. Check by substitution: at x = 1, (5)(5) = 25 and 2 + 11 + 12 = 25. The check passes — a habit worth building.
Enter a=1, b=−5, c=1, d=2. First: x². Outer: 2x. Inner: −5x. Last: −10. Combine: x² + 2x − 5x − 10 = x² − 3x − 10. The negative Inner term dominates the positive Outer one — exactly the sign bookkeeping students find hardest, and exactly what the calculator’s labeled steps make visible.
First: x². Outer: −5x. Inner: 5x. Last: −25. Combine: x² − 5x + 5x − 25 = x² − 25. The middle terms cancel — the signature of (a + b)(a − b) = a² − b². Recognizing this pattern saves enormous time in factoring.
First: 3x². Outer: −1.5x. Inner: 4x. Last: −2. Combine: 3x² + 2.5x − 2. FOIL works identically for decimals and fractions — the letters do not care what kind of numbers the coefficients are.
A ball’s height is modeled by h(t) = −(2t − 5)(t + 3). Expanding the product with FOIL: (2t − 5)(t + 3) = 2t² + 6t − 5t − 15 = 2t² + t − 15, so h(t) = −2t² − t + 15. The expanded quadratic reveals the initial height (15 m) and lets the vertex formula find the peak time — factored form hides both.
A business models profit as P(x) = (50 − 2x)(x + 10), where x is the price increase in dollars. FOIL: 50x + 500 − 2x² − 20x = −2x² + 30x + 500. The quadratic’s vertex at x = 7.5 gives the optimal $7.50 increase. Nobody optimizes the factored form directly — expansion comes first, always.
Mental-math users FOIL constantly without naming it: 97 × 103 = (100 − 3)(100 + 3) = 10,000 − 9 = 9,991. Recognizing near-hundreds as binomials turns hard multiplication into difference-of-squares. The calculator trains the pattern recognition that makes such tricks instant.
FOIL’s four products are the 2×2 case of a universal rule: to multiply polynomials, multiply every term of the first by every term of the second. A binomial times a trinomial gives six products; a trinomial times a trinomial gives nine. Students who see FOIL as “the” multiplication method hit a wall at trinomials, while those who see it as one case of “every times every” never do.
This general rule is also what makes polynomial multiplication associative and commutative in the ways you expect — it inherits them from the number system via distribution. And it is the reason (x + a)(x + b) = x² + (a + b)x + ab, the identity behind Vieta’s formulas: the sum and product of a quadratic’s roots are visible directly in its coefficients. FOIL forward gives the coefficients; factoring reverses it to find the roots.
Computer algebra systems multiply polynomials with algorithms far fancier than FOIL (Karatsuba, FFT-based methods) for huge inputs — but every one of them is mathematically equivalent to “every times every.” The acronym scales poorly; the distributive idea scales forever.
First: 6x². Outer: 21x. Inner: −4x. Last: −14. Combine: 6x² + 17x − 14. Verify at x = 1: (1)(9) = 9 and 6 + 17 − 14 = 9. The substitution check catches sign errors fast.
First: x². Outer: 4x. Inner: 4x. Last: 16. Combine: x² + 8x + 16 — the perfect-square pattern (x + a)² = x² + 2ax + a². Memorize the pattern; FOIL-verify until it is automatic.
First: 25x². Outer: 5x. Inner: −5x. Last: −1. Combine: 25x² − 1 — difference of squares again, (ax)² − b². Spotting it in advance turns four multiplications into one.
FOIL also runs backwards as factoring: given x² + 11x + 12, find the binomials whose First/Outer/Inner/Last produce it. The Last product 12 factors as 3 × 4, and 3x + 4x = 7x ≠ 11x… try 2 × 6: 2x + 6x = 8x, no; 1 × 12: 13x, no. Hmm — actually x² + 11x + 12 doesn’t factor over integers (try (x+?)(x+?) with factors of 12: 3+4=7, 2+6=8, 1+12=13). A better example: x² + 7x + 12 = (x + 3)(x + 4), since 3 × 4 = 12 and 3x + 4x = 7x. Every factoring problem is a FOIL puzzle in reverse — which is why FOIL fluency is the prerequisite for all of factoring.
FOIL (x + 6)(x + 2). Solution: x² + 2x + 6x + 12 = x² + 8x + 12.
FOIL (2x − 5)(x − 3). Solution: 2x² − 6x − 5x + 15 = 2x² − 11x + 15. Watch the Last sign: (−5)(−3) = +15.
FOIL (x + 9)(x − 9) and name the pattern. Solution: x² − 9x + 9x − 81 = x² − 81 — difference of squares, (a + b)(a − b) = a² − b².
Priya consistently got (x − 4)(x + 3) wrong, answering x² + 7x − 12. Her error: she computed the Inner product as (+4)(x) = 4x instead of (−4)(x) = −4x — the minus sign belonged to the 4, but she left it behind. Correct FOIL: x² + 3x − 4x − 12 = x² − x − 12.
Her teacher’s fix was mechanical: circle each term with its sign before multiplying, and verify by substituting x = 0 (gives the Last product, −12 ✓) and x = 1 (LHS: (−3)(4) = −12; her wrong answer: 1 + 7 − 12 = −4 ✗). The substitution check exposed the error in seconds. She now FOILs with circled signs and spot-checks — the calculator’s labeled steps are built to teach exactly this workflow.
The FOIL Method Calculator multiplies binomials (ax + b)(cx + d) via First (acx²), Outer (adx), Inner (bcx), Last (bd) products, then combines the like x-terms into acx² + (ad + bc)x + bd. It accepts negative and decimal coefficients, labels each of the four steps, and shows the combination line. FOIL is the 2×2 case of the distributive property (“every term times every term”), with geometric meaning as sub-rectangle areas.
First, Outer, Inner, Last — the four products when multiplying two binomials. For (a + b)(c + d): First ac, Outer ad, Inner bc, Last bd. The sum ac + ad + bc + bd is the expanded product.
First: 2x². Outer: 8x. Inner: 3x. Last: 12. Combine the x-terms: 2x² + 11x + 12. Verify by substituting x = 1: (5)(5) = 25 and 2 + 11 + 12 = 25.
Yes — attach each term’s sign before multiplying. In (x − 5)(x + 2), the Inner product is (−5)(x) = −5x and the Last is (−5)(2) = −10, giving x² − 3x − 10. Enter negatives directly in the calculator.
Because FOIL produces a cross term: (x + 3)(x + 3) = x² + 3x + 3x + 9 = x² + 6x + 9. Squaring a sum always yields the middle term 2ax — forgetting it is the classic “freshman’s dream” error.
No — FOIL only covers two binomials. For anything larger, use the general distributive rule: multiply every term of the first polynomial by every term of the second. FOIL is simply the 2×2 case of that universal method.
When the middle terms cancel: (x + 5)(x − 5) = x² − 5x + 5x − 25 = x² − 25. In general, (a + b)(a − b) = a² − b². Spotting it saves all four multiplications.
Substitute simple values: x = 0 must give the Last product (the constant term), and x = 1 must make both sides equal. For (2x + 3)(x + 4) = 2x² + 11x + 12, x = 1 gives 25 = 25. A mismatch means a sign or arithmetic slip.
Factoring (FOIL in reverse), completing the square, and the quadratic formula all build on FOIL. Every quadratic you will ever solve is a FOIL product waiting to be unpacked — which is why the method is drilled so thoroughly.
Cite this page as: FOIL Method Calculator. Sigma Calculator. Retrieved October 9, 2026, from https://sigmacalculator.net/math-calculators/foil-method-calculator/
Last updated: October 9, 2026