FOIL Calculator
Calculate FOIL Calculator instantly with our math tool. Shows detailed work, formulas used, and multiple solution methods.
Reviewed for accuracy by Manoj Kumar, Mathematics Educator
FOIL Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser — no data is sent to any server.
Formula: (ax + b)(cx + d) = acx^2 + (ad + bc)x + bd
Worked example — 8x^2 + 22x + 15
Formula
(ax + b)(cx + d) = acx^2 + (ad + bc)x + bd
FOIL multiplies First (ac), Outer (ad), Inner (bc), and Last (bd) terms. The x^2 coefficient is the product of the first terms, the x coefficient is the sum of outer and inner products, and the constant is the product of the last terms.
Worked Examples
Example 1: Multiply (2x + 3)(4x + 5)
Problem:Use the FOIL method to expand (2x + 3)(4x + 5).
Solution:First: 2x * 4x = 8x^2 Outer: 2x * 5 = 10x Inner: 3 * 4x = 12x Last: 3 * 5 = 15 Combine like terms: 8x^2 + 10x + 12x + 15 = 8x^2 + 22x + 15
Result:8x^2 + 22x + 15
Example 2: Multiply (x - 4)(x + 7)
Problem:Use FOIL to expand (x - 4)(x + 7).
Solution:First: x * x = x^2 Outer: x * 7 = 7x Inner: -4 * x = -4x Last: -4 * 7 = -28 Combine: x^2 + 7x - 4x - 28 = x^2 + 3x - 28
Result:x^2 + 3x - 28
Frequently Asked Questions
What does FOIL stand for and how does it work?
FOIL is an acronym that stands for First, Outer, Inner, Last, representing the four multiplications needed when multiplying two binomials together. When you have an expression like (ax + b)(cx + d), First means multiply the first terms of each binomial (a times c), Outer means multiply the outer terms (a times d), Inner means multiply the inner terms (b times c), and Last means multiply the last terms (b times d). After performing all four multiplications, you combine like terms to get the final trinomial result. FOIL is essentially a systematic way to apply the distributive property twice, ensuring no terms are missed during multiplication.
Is FOIL only used for binomials or can it be applied to other polynomials?
FOIL is specifically designed for multiplying two binomials (expressions with exactly two terms each). It cannot be directly applied to trinomials or larger polynomials because the acronym only accounts for four products, which is exactly how many you get from two two-term expressions. For multiplying larger polynomials, you must use the general distributive property, where every term in the first polynomial is multiplied by every term in the second polynomial. For example, multiplying a binomial by a trinomial produces six individual products, not four. However, the underlying principle behind FOIL, which is systematic distribution, extends to polynomials of any size.
How do you handle negative numbers when using FOIL?
Handling negative numbers in FOIL requires careful attention to sign rules. When a term in either binomial is negative, you must include that negative sign in the multiplication. Remember that a negative times a positive gives a negative result, and a negative times a negative gives a positive result. For example, with (x - 3)(x + 5): First gives x times x = x^2, Outer gives x times 5 = 5x, Inner gives -3 times x = -3x, and Last gives -3 times 5 = -15. Combining: x^2 + 5x - 3x - 15 = x^2 + 2x - 15. The most common mistake is forgetting to carry the negative sign through the Inner and Last multiplications.
What is the connection between FOIL and the distributive property?
FOIL is actually a specific application of the distributive property of multiplication over addition. The distributive property states that a(b + c) = ab + ac. When multiplying two binomials (a + b)(c + d), you first distribute the entire first binomial across the second: a(c + d) + b(c + d). Then you apply distribution again to each piece: ac + ad + bc + bd. These four terms correspond exactly to First (ac), Outer (ad), Inner (bc), and Last (bd). So FOIL is not a separate mathematical principle but rather a mnemonic device that helps students remember the systematic application of the distributive property to the special case of two binomials.
How do you verify FOIL results are correct?
There are several reliable methods to verify your FOIL multiplication results. The simplest approach is to substitute a specific value for x into both the original binomial product and your expanded result and check that they produce the same number. For instance, if you calculated (x + 2)(x + 3) = x^2 + 5x + 6, plug in x = 1: (3)(4) = 12 and 1 + 5 + 6 = 12, confirming correctness. Another verification method is to factor your result back into binomials and see if you recover the original expression. You can also use the reverse FOIL process, checking that the coefficients satisfy the relationships: the x^2 coefficient equals the product of the first terms, and the constant equals the product of the last terms.
What are special product patterns related to FOIL?
Several special product patterns emerge from FOIL that are worth memorizing for speed. The difference of squares pattern states that (a + b)(a - b) = a^2 - b^2, where the middle terms cancel. The perfect square trinomial patterns give (a + b)^2 = a^2 + 2ab + b^2 and (a - b)^2 = a^2 - 2ab + b^2. The sum and difference patterns also include (a + b)(a + b) where Inner and Outer combine to give the doubled middle term. Recognizing these patterns allows you to bypass the full FOIL process entirely and write the answer immediately. These patterns appear constantly in algebra, calculus, and higher mathematics, making them essential formulas to commit to memory.
How is FOIL used in factoring quadratics?
FOIL and factoring are inverse operations. When you factor a quadratic trinomial like x^2 + 5x + 6, you are essentially trying to undo the FOIL process by finding two binomials whose FOIL product gives the original trinomial. You need to find two numbers that multiply to give the constant term (6) and add to give the coefficient of x (5). Since 2 times 3 equals 6 and 2 plus 3 equals 5, the factorization is (x + 2)(x + 3). You can verify this by applying FOIL forward to confirm you get back x^2 + 5x + 6. This relationship between FOIL and factoring is bidirectional and forms the foundation for solving quadratic equations by factoring.
Can FOIL be used with complex numbers or variables other than x?
Absolutely, FOIL works with any algebraic expressions in the binomials, including complex numbers, multiple variables, and even trigonometric functions. With complex numbers, for example, (2 + 3i)(4 - i) uses FOIL: First = 8, Outer = -2i, Inner = 12i, Last = -3i^2 = 3 (since i^2 = -1), giving 11 + 10i. With two variables, (2x + 3y)(x - 4y) yields 2x^2 - 8xy + 3xy - 12y^2 = 2x^2 - 5xy - 12y^2. The FOIL method applies universally because it is simply an organizational tool for the distributive property, which holds for all algebraic structures including real numbers, complex numbers, and polynomials in multiple variables.
What are the most common errors students make with FOIL?
The most prevalent FOIL errors fall into several categories. Sign errors are the most common, particularly forgetting to distribute a negative sign through the Inner and Last steps. For example, in (x - 4)(x + 3), students often incorrectly compute the Last term as +12 instead of -12. Another frequent mistake is forgetting to combine like terms after performing all four multiplications, leaving the answer with four terms instead of simplifying to three. Students also sometimes confuse FOIL with simple addition, writing (x + 2)(x + 3) as x^2 + 6 instead of x^2 + 5x + 6. Finally, some students misapply FOIL to expressions that are not binomial products, such as trying to FOIL a single binomial squared without writing it as two separate factors first.
How does FOIL extend to multiplying polynomials with more than two terms?
While FOIL itself is limited to two binomials, the underlying distributive principle extends to any polynomial multiplication. For multiplying a binomial by a trinomial such as (x + 2)(x^2 + 3x + 4), you distribute each term of the binomial across all terms of the trinomial, producing six products: x^3 + 3x^2 + 4x + 2x^2 + 6x + 8, which simplifies to x^3 + 5x^2 + 10x + 8. For multiplying two trinomials, you get nine products. The general rule is that multiplying a polynomial with m terms by one with n terms produces m times n individual products before combining like terms. Some educators teach the box method or area model as a visual alternative that scales better than FOIL for larger polynomial multiplications.
References
Reviewed for accuracy by Manoj Kumar, Mathematics Educator · Editorial policy
Related Calculators
🧮Reverse FOIL Calculator
Calculate reverse foilcalculator with inputs, formulas, and instant results.
🧮Annulus Area Calculator
Calculate annulus area with inputs, formulas, and instant results.
🧮Area Calculator
Calculate area with inputs, formulas, and instant results.
🧮Area of a Rectangle Calculator
Calculate the area, perimeter, and diagonal of a rectangle. Find missing sides from known area. Convert between metric and imperial area units.
🧮Area of Crescent Calculator
Calculate area of crescent with inputs, formulas, and instant results.
🧮Center of Mass Calculator
Calculate center of mass with inputs, formulas, and instant results.
🧮Centroid Calculator
Calculate centroid with inputs, formulas, and instant results.
🧮Chord Length Calculator
Calculate chord length with inputs, formulas, and instant results.