Math · Every step shown

FOIL Method Calculator

Expand (ax + b)(cx + d) into a trinomial using First, Outer, Inner, Last.

Enter your numbers

Press Solve with steps to see the answer and how to get it.

Job: Algebra
Your answer

Press Solve with steps to see the answer and every step.

How it works, examples and FAQ

Multiply First terms, Outer terms, Inner terms, and Last terms, then combine the like (x) terms.

Example: (2x + 3)(x − 4) — First: 2x², Outer: −8x, Inner: 3x, Last: −12. Combining: 2x² − 5x − 12.

What does FOIL stand for?
First, Outer, Inner, Last — the four pairs of terms you multiply when expanding two binomials.

What's (2x + 3)(x − 4) expanded?
2x² − 5x − 12.

Does FOIL work for any two binomials?
Yes — it's just a memory trick for the distributive property applied twice, so it always works for multiplying two two-term expressions.

More math calculators

Snap a photo of a problem →   All math tools →   All calculators →

These calculators show the method as well as the answer, so you can learn the steps and check your own work. If a result ever looks wrong, tell us on the Contact page with the numbers you entered.

Save or print your results

On a phone, choose Save as PDF on the next screen to keep a copy.