FOIL and the distributive property
The distributive property says a(b + c) = ab + ac: multiply each term inside the parentheses by the factor outside. FOIL is that same rule applied twice to a product of two binomials. It stops working once a factor has three or more terms, where you need the distributive property directly or a box. All three methods produce the same terms.
For students and parents planning test prep or coursework: one hour with George Li, one to one by video, is $180, $200 or $160, by subject. You leave with a written plan within one working day.
Book your first sessionMultiply (2x - 3)(x + 4) using the distributive property and using FOIL, then multiply (x² + 2x - 1)(x - 3) with a box.
- Distribute the first binomial over the second: (2x - 3)(x + 4) = 2x(x + 4) - 3(x + 4).
- Distribute again: 2x² + 8x - 3x - 12.
- Combine like terms: 2x² + 5x - 12.
- Check with FOIL. First: 2x · x = 2x². Outer: 2x · 4 = 8x. Inner: -3 · x = -3x. Last: -3 · 4 = -12. The four products are the same as in step 2.
- For (x² + 2x - 1)(x - 3), list the factors on the sides of a box and fill each cell with a product: x² gives x³ and -3x², 2x gives 2x² and -6x, and -1 gives -x and 3.
- Add the cells by like terms: x³ + (-3x² + 2x²) + (-6x - x) + 3 = x³ - x² - 7x + 3.
Answer (2x - 3)(x + 4) = 2x² + 5x - 12, and (x² + 2x - 1)(x - 3) = x³ - x² - 7x + 3.
Original problems by George Li Tutoring; the methods are the ones in OpenStax, Intermediate Algebra 2e, section 5.3
What do term, binomial and trinomial mean?
A term is a product of numbers and variables, such as 2x, 5y^2 or -3xy. Terms added together make a polynomial. One term is a monomial, two terms make a binomial and three make a trinomial. So (x + 5) is a binomial, and x^2 + 3x + 2 is a trinomial. FOIL is a method for one pair of binomials, and the vocabulary tells you quickly whether it applies.
What is the distributive property?
The distributive property says multiplication spreads over addition: a(b + c) = ab + ac. OpenStax puts it plainly: multiplying a polynomial by a monomial is really just applying the distributive property. Numbers show why it holds. To compute 7 × 23, split 23 into 20 + 3. Then 7 × 23 = 7 × 20 + 7 × 3 = 140 + 21 = 161.
With a monomial in front, every term inside gets a copy: 3x(2x² - 5x + 4) = 6x³ - 15x² + 12x. Watch the signs. The most common slip is to multiply the first term and forget the rest, or to drop a minus sign when the factor is negative.
How is FOIL a special case?
FOIL is the distributive property used twice on two binomials, with a memory aid for the four products. The letters stand for First, Outer, Inner, Last, the four pairings of a term from the first binomial with a term from the second. In the worked example above, step 1 is the first use of the distributive property, step 2 is the second, and the four terms 2x², 8x, -3x and -12 are exactly First, Outer, Inner and Last.
That is why FOIL is only a shortcut and not a different rule. If you forget the letters, rebuild the answer from the distributive property. If you remember the letters, you still get the right answer only when each factor has two terms.
If this is where an algebra course is slipping, the math tutoring page shows how a session works, and a first session starts from the problems you missed. The study planner turns your weeks and weekly hours into a schedule.
How do you FOIL, step by step?
Write the four products in order, then combine the like terms. Here are two products, each shown as a table of its four pieces.
| Product | First | Outer | Inner | Last | Result after combining |
|---|---|---|---|---|---|
| (m + 4)(m - 9) | m^2 | -9m | 4m | -36 | m^2 - 5m - 36 |
| (4n + 3)(n + 6) | 4n^2 | 24n | 3n | 18 | 4n^2 + 27n + 18 |
The middle terms are the ones to watch. In the first row the outer and inner products are -9m and 4m, and they combine to -5m. A product of two binomials usually ends up with three terms, a trinomial, because the two middle products are like terms. The sum of the inner and outer products is the new middle coefficient, so it is the number most worth double-checking.
Multiplying is the only operation FOIL covers. It does not add, subtract or divide binomials.
Where does FOIL stop working?
FOIL stops working when a factor has more than two terms, because there are then more than four products. OpenStax says so directly: the FOIL method only applies to multiplying binomials, not other polynomials. Count the products to see why. Every term in one factor must multiply every term in the other, so a factor with m terms times a factor with n terms gives m × n products.
| Factors | Terms in each | Products to form | Does FOIL fit? |
|---|---|---|---|
| binomial × binomial | 2 and 2 | 4 | Yes |
| trinomial × binomial | 3 and 2 | 6 | No |
| trinomial × trinomial | 3 and 3 | 9 | No |
| monomial × trinomial | 1 and 3 | 3 | No, use the distributive property |
A second place students get caught is the square of a binomial. (x + 4)² is (x + 4)(x + 4), so it has the four FOIL products: x² + 4x + 4x + 16 = x² + 8x + 16. The tempting answer x² + 16 leaves out the middle terms. Test with x = 1: (1 + 4)² = 25, and x² + 8x + 16 gives 1 + 8 + 16 = 25, while x² + 16 gives only 17.
How do you multiply longer polynomials?
Use the distributive property directly, or the box method, which is the distributive property laid out so no product is skipped. Write one polynomial across the top and the other down the side. Fill each cell with the product of its row and column terms, then add cells that have the same power of x. The worked example shows a 3 by 2 box that gives six cells and four distinct powers of x after combining.
OpenStax also teaches a vertical method that works for all polynomials, set out like a multi-digit whole-number multiplication. The box and the column give the same terms, so pick the one you make fewer mistakes with. Before you finish, count your cells or partial products. If a 3-term by 2-term product does not have six, one is missing.
Can you FOIL three binomials?
Only two at a time. Use FOIL on one pair, then distribute that result over the third factor. For (x + 1)(x + 2)(x + 3), the first pair gives x^2 + 3x + 2. Multiplying by x + 3 gives x^3 + 3x^2 + 3x^2 + 9x + 2x + 6, which is x^3 + 6x^2 + 11x + 6. A quick check: at x = 1 the product is 2 times 3 times 4, which is 24, and the polynomial gives 1 + 6 + 11 + 6, which is 24 as well.
How do you run FOIL backwards?
Factoring a trinomial of the form x^2 + bx + c is FOIL in reverse. The last terms of the two binomials must multiply to c, and the outer and inner products must add to b, so you look for two numbers with product c and sum b. For x^2 + 7x + 12, the numbers 3 and 4 multiply to 12 and add to 7, so it factors as (x + 3)(x + 4). For x^2 - 4x + 4, the numbers -2 and -2 work, so it is (x - 2)^2.
Quadratic equations on tests lean on this move. Take 2x^2 - 18x = 44. Move everything to one side and divide by 2 to get x^2 - 9x - 22 = 0. The numbers -11 and 2 multiply to -22 and add to -9, so the equation factors as (x - 11)(x + 2) = 0, and the roots are 11 and -2. Substituting 11 gives 2 times 121 minus 198, which is 44, as required.
When should you distribute, and when should you leave it factored?
Distribution is a choice. Use it when it removes parentheses so you can combine like terms or isolate a variable. Leave a product alone when keeping it factored serves you better. If (x - 3)(x + 5) = 0, the factored form gives the roots 3 and -5 at once, and multiplying out would only make the work longer.
Watch the signs when the outside factor is negative, because every sign inside flips: -3(2x - 5) = -6x + 15. Lost points here usually trace back to a minus sign that did not get distributed. To solve 3(x - 4) - 2(x + 6) = 1, distribute both factors to get 3x - 12 - 2x - 12 = 1, combine to x - 24 = 1, and add 24 to find x = 25.
An area picture shows why the rule works. A rectangle 4 tall and (x + 6) wide splits into a piece of area 4x and a piece of area 24, so the whole is 4x + 24. The same picture, drawn with two splits, is the box method for FOIL.
Original practice
These problems are our own. Try each one cold, then compare with the answer given.
- Multiply 3x(2x² - 5x + 4). Answer: 6x³ - 15x² + 12x.
- Multiply (x - 6)(x + 2). Answer: x² + 2x - 6x - 12 = x² - 4x - 12.
- Multiply (3x + 1)(2x - 5). Answer: 6x² - 15x + 2x - 5 = 6x² - 13x - 5.
- Multiply (x + 2)(x² - 2x + 4). Answer: x³ - 2x² + 4x + 2x² - 4x + 8 = x³ + 8. The middle terms cancel.
- Expand (2x - 1)². Answer: 4x² - 2x - 2x + 1 = 4x² - 4x + 1.
- Multiply (4a - 5)(3a + 2). Answer: 12a² + 8a - 15a - 10 = 12a² - 7a - 10.
- Factor x² + 7x + 12. Answer: (x + 3)(x + 4), since 3 times 4 is 12 and 3 plus 4 is 7.
- Solve 3(x - 4) - 2(x + 6) = 1. Answer: 3x - 12 - 2x - 12 = 1, so x - 24 = 1 and x = 25.
- Multiply (x + 1)(x + 2)(x + 3). Answer: x³ + 6x² + 11x + 6.
If you miss one, label the cause: a skipped product, a sign error, or a like-terms slip. A broader set of mixed algebra is in our original math practice set. For the next step in this strand, see finding an inverse function, and for geometry practice, see area and perimeter of polygons. We teach the method and do not complete graded work.
Common questions
What does FOIL stand for?
First, Outer, Inner, Last. They name the four products you form when you multiply two binomials: first terms, outer terms, inner terms and last terms.
Is FOIL the same as the distributive property?
FOIL is the distributive property applied twice to two binomials, with a memory aid for the four products. You can always get the answer from the distributive property alone.
Can I use FOIL on a trinomial?
No. FOIL names four products, and a trinomial times a binomial has six. Use the distributive property, a box or the vertical method instead.
Why is (x + 4)² not x² + 16?
Squaring means multiplying the binomial by itself, which gives four products. Two of them, 4x and 4x, add to the middle term 8x, so the correct expansion is x² + 8x + 16.
What is reverse FOIL?
It is factoring a trinomial: find two numbers whose product is the last term and whose sum is the middle coefficient, then write them as the second terms of two binomials.
Can you use FOIL on more than two binomials?
Not in one pass. Multiply one pair with FOIL, then distribute that answer over the next factor.