FOIL Method

The FOIL Method expands products of two binomials by multiplying each term in the first binomial by each term in the second.

(a+b)(c+d)=ac+ad+bc+bd(a + b)(c + d) = ac + ad + bc + bd

Solve a problem with FOIL Method

Type the problem. The solver will use FOIL Method where FOIL Method is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What FOIL Method takes
aa
bb
cc
dd
FOIL Method
SymbolMeaning
aaThe first term of the first binomial; if confused with bb, you lose the binomial structure and cannot apply FOIL correctly.
bbThe second term of the first binomial that is added to aa; misplacing this term into the second binomial breaks the entire multiplication.
ccThe first term of the second binomial; if its sign is misread (positive as negative or vice versa), all four products will have the wrong signs.
ddThe second term of the second binomial; forgetting to multiply by dd leaves out two of the four products FOIL requires.

When to use it

Use FOIL when you need to multiply two binomials together, such as expanding (x+2)(x+3)(x + 2)(x + 3) or solving quadratic equations.

Level

Usually taught in: Algebra I

Worked examples

1. Expand two binomials with small positive integers

Problem

Expand (x+2)(x+3)(x + 2)(x + 3).
  1. F:xx=x2F: x \cdot x = x^2

    First terms: multiply the first term of each binomial.

  2. O:x3=3xO: x \cdot 3 = 3x

    Outer terms: multiply the leftmost term of the first binomial by the rightmost term of the second.

  3. I:2x=2xI: 2 \cdot x = 2x

    Inner terms: multiply the rightmost term of the first binomial by the leftmost term of the second.

  4. L:23=6L: 2 \cdot 3 = 6

    Last terms: multiply the last term of each binomial.

  5. x2+3x+2x+6=x2+5x+6x^2 + 3x + 2x + 6 = x^2 + 5x + 6

    Combine like terms: add the two middle terms 3x+2x=5x3x + 2x = 5x.

Answer: x2+5x+6x^2 + 5x + 6

This is the simplest case of FOIL, where all terms are positive integers and it clearly shows how all four products appear before combining like terms. The final answer is a trinomial (three terms), which is typical after FOIL on two binomials.

2. Expand binomials with a negative term and a leading coefficient

Problem

Expand (2x3)(x+4)(2x - 3)(x + 4).
  1. F:2xx=2x2F: 2x \cdot x = 2x^2

    First terms: multiply the first term of each binomial, paying attention to the coefficient 22 on the xx.

  2. O:2x4=8xO: 2x \cdot 4 = 8x

    Outer terms: the coefficient 2x2x times the 44 from the second binomial.

  3. I:(3)x=3xI: (-3) \cdot x = -3x

    Inner terms: the negative sign on the 3-3 carries through, giving a negative product.

  4. L:(3)4=12L: (-3) \cdot 4 = -12

    Last terms: multiply 3-3 by 44, keeping the negative sign.

  5. 2x2+8x+(3x)+(12)=2x2+8x3x12=2x2+5x122x^2 + 8x + (-3x) + (-12) = 2x^2 + 8x - 3x - 12 = 2x^2 + 5x - 12

    Combine like terms: 8x3x=5x8x - 3x = 5x.

Answer: 2x2+5x122x^2 + 5x - 12

This example shows how to handle negative terms and coefficients other than 11 in FOIL. Keeping track of signs is crucial: the negative term 3-3 affects each of its two products. After all four products are found, combining like terms gives the final answer.

3. Expand binomials in a real-world context

Problem

A basketball arena is building a rectangular VIP seating section. The length is (x+5)(x + 5) meters and the width is (x+2)(x + 2) meters. What is the area of the section?
  1. Area=(x+5)(x+2)\text{Area} = (x + 5)(x + 2)

    Area of a rectangle is length times width, so we must expand this product.

  2. F:xx=x2F: x \cdot x = x^2

    First terms: xx times xx.

  3. O:x2=2xO: x \cdot 2 = 2x

    Outer terms: xx from the first binomial times 22 from the second.

  4. I:5x=5xI: 5 \cdot x = 5x

    Inner terms: 55 from the first binomial times xx from the second.

  5. L:52=10L: 5 \cdot 2 = 10

    Last terms: 55 times 22.

  6. x2+2x+5x+10=x2+7x+10x^2 + 2x + 5x + 10 = x^2 + 7x + 10

    Combine like terms: 2x+5x=7x2x + 5x = 7x.

Answer: x2+7x+10 square metersx^2 + 7x + 10 \text{ square meters}

Expanding binomials using FOIL is essential in real-world geometry and business problems where dimensions are expressed with variables. Once expanded, the area expression x2+7x+10x^2 + 7x + 10 can be used to find the actual area by substituting a specific value for xx, or to solve for xx given a target area.

Common mistakes

Where FOIL Method usually goes wrong
Answer came out wrong
Writing (a+b)(c+d)=ac+bd(a + b)(c + d) = ac + bd, ignoring the middle terms.
Remember that both the first and second terms of one binomial must multiply both terms of the other. Write out all four products: ac+ad+bc+bdac + ad + bc + bd, then combine like terms.
Writing (x2)(x3)=x26(x - 2)(x - 3) = x^2 - 6 by incorrectly handling the negative signs.
Carefully apply the sign to each product: F:x2F: x^2, O:3xO: -3x, I:2xI: -2x, L:+6L: +6. Then combine: x23x2x+6=x25x+6x^2 - 3x - 2x + 6 = x^2 - 5x + 6.
Writing (2x+3)(x1)=2x2+3x23(2x + 3)(x - 1) = 2x^2 + 3x - 2 - 3, treating unlike terms as if they were alike.
Perform all four steps of FOIL carefully: F:2x2F: 2x^2, O:2xO: -2x, I:3xI: 3x, L:3L: -3. Group the four products and combine only the like terms: 2x2+(2x+3x)3=2x2+x32x^2 + (-2x + 3x) - 3 = 2x^2 + x - 3.
The mistakeWhy it is wrongThe fix
Writing (a+b)(c+d)=ac+bd(a + b)(c + d) = ac + bd, ignoring the middle terms.FOIL requires all four products: you cannot skip the outer and inner terms adad and bcbc.Remember that both the first and second terms of one binomial must multiply both terms of the other. Write out all four products: ac+ad+bc+bdac + ad + bc + bd, then combine like terms.
Writing (x2)(x3)=x26(x - 2)(x - 3) = x^2 - 6 by incorrectly handling the negative signs.Negative signs apply to each product separately: (2)(3)=+6(-2) \cdot (-3) = +6, not 6-6, and you must include the inner and outer terms as well.Carefully apply the sign to each product: F:x2F: x^2, O:3xO: -3x, I:2xI: -2x, L:+6L: +6. Then combine: x23x2x+6=x25x+6x^2 - 3x - 2x + 6 = x^2 - 5x + 6.
Writing (2x+3)(x1)=2x2+3x23(2x + 3)(x - 1) = 2x^2 + 3x - 2 - 3, treating unlike terms as if they were alike.Only true like terms can be combined; while 2x-2x and 3x3x are like terms, the constants 2-2 and 3-3 come from different products and cannot simply be added.Perform all four steps of FOIL carefully: F:2x2F: 2x^2, O:2xO: -2x, I:3xI: 3x, L:3L: -3. Group the four products and combine only the like terms: 2x2+(2x+3x)3=2x2+x32x^2 + (-2x + 3x) - 3 = 2x^2 + x - 3.

Tips and when to use something else

  • FOIL is a memory aid for the Distributive Property applied twice: (a+b)(c+d)=a(c+d)+b(c+d)=ac+ad+bc+bd(a + b)(c + d) = a(c + d) + b(c + d) = ac + ad + bc + bd. If you forget FOIL, this is the method to fall back on.
  • FOIL only works for two binomials (four terms total). If you have (a+b+c)(d+e)(a + b + c)(d + e) or any factor with three or more terms, use the Distributive Property step by step instead.
  • After FOIL, always look for like terms to combine—this simplifies your answer and is usually where signs are checked. Many mistakes come from skipping this step.
  • If you are expanding (a+b)2(a + b)^2 or (ab)2(a - b)^2, you can use FOIL, but the perfect square trinomial formula—(a+b)2=a2+2ab+b2(a + b)^2 = a^2 + 2ab + b^2—is faster and less error-prone.

Frequently asked questions

Why is this method called FOIL?
FOIL is an acronym for First, Outer, Inner, Last—the order in which you multiply pairs of terms from two binomials. It is a mnemonic device to help you remember all four products you must find, rather than forgetting the outer and inner terms.
Can I use FOIL with three binomials or trinomials?
FOIL applies specifically to two binomials, so no. For more terms, you apply the Distributive Property step by step: multiply the first factor by each term in the second, then combine those results. This is the general approach that FOIL is based on.
Is FOIL the only way to multiply two binomials?
No. The Distributive Property is the universal method. FOIL is just a shorthand memory trick for organizing the four products when you have two binomials. Some people prefer to draw a box (area model) to avoid missing any products, and that works just as well.
What is the connection between FOIL and the Quadratic Formula?
FOIL is used to expand binomials into quadratic expressions (polynomials of degree 2). Once you have a quadratic in standard form ax2+bx+cax^2 + bx + c, you can use the Quadratic Formula to solve for the roots. Learning FOIL helps you recognize quadratic patterns and set up equations to solve.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18