Last verified · v1.0
Calculator · math
Multiplying Binomials Calculator (Foil)
Expand two binomials using the FOIL method. Enter coefficients a, b, c, and d to get the full quadratic polynomial or evaluate at a specific x value.
Inputs
Result
—
Explain my result
Get a plain-English breakdown of your result with practical next steps.
The formula
How the
result is
computed.
What Is the FOIL Method?
The FOIL method is a structured technique for multiplying two binomials of the general form (ax + b)(cx + d). FOIL is an acronym standing for First, Outer, Inner, Last — the four pairs of terms that must be multiplied and then combined to produce a quadratic polynomial. This multiplying binomials calculator automates each step, returning the fully expanded trinomial in seconds.
The Core Formula
The product of two binomials follows this algebraic identity:
(ax + b)(cx + d) = acx² + (ad + bc)x + bd
Each coefficient in the trinomial on the right corresponds directly to a specific product of the original constants, making the pattern predictable and easy to verify by hand.
Variable Definitions
- a — coefficient of x in the first binomial (ax + b)
- b — constant term in the first binomial (ax + b)
- c — coefficient of x in the second binomial (cx + d)
- d — constant term in the second binomial (cx + d)
Step-by-Step FOIL Breakdown
As explained in Khan Academy's multiplying binomials lesson, FOIL is a direct application of the distributive property applied twice — each term of the first binomial distributes over each term of the second:
- F — First: Multiply the first terms: ax × cx = acx²
- O — Outer: Multiply the outer terms: ax × d = adx
- I — Inner: Multiply the inner terms: b × cx = bcx
- L — Last: Multiply the last terms: b × d = bd
The two middle terms adx and bcx are like terms and combine into (ad + bc)x, yielding the final result: acx² + (ad + bc)x + bd.
Worked Examples
Example 1: Positive Coefficients
Expand (2x + 3)(4x + 5) where a = 2, b = 3, c = 4, d = 5:
- F: 2x × 4x = 8x²
- O: 2x × 5 = 10x
- I: 3 × 4x = 12x
- L: 3 × 5 = 15
Combining like terms: 8x² + 22x + 15. Verify: ac = 8, ad + bc = 10 + 12 = 22, bd = 15.
Example 2: Negative Constant Term
Expand (x − 2)(x + 7) where a = 1, b = −2, c = 1, d = 7:
- F: x × x = x²
- O: x × 7 = 7x
- I: −2 × x = −2x
- L: −2 × 7 = −14
Result: x² + 5x − 14. Negative values for b or d flow naturally through the arithmetic without any special handling.
Example 3: Evaluating at a Specific x Value
Using the expanded form from Example 1, evaluate 8x² + 22x + 15 at x = 3:
8(9) + 22(3) + 15 = 72 + 66 + 15 = 153. Cross-check: (2(3) + 3)(4(3) + 5) = (9)(17) = 153. The results match, confirming the expansion is correct.
The Distributive Property Foundation
The Ohio Department of Education High School Algebra Model Curriculum establishes that all polynomial multiplication is rooted in the distributive property. FOIL is a mnemonic shortcut for the two-term case; for trinomials or higher-degree polynomials, the same logic extends — every term in the first factor multiplies every term in the second, and all resulting products are summed.
Real-World Applications
- Quadratic equations: Many quadratics are formed by multiplying two linear factors; FOIL reveals those factors and is reversed during factoring.
- Area models: The four FOIL products correspond to four rectangular sub-areas when two side lengths, each expressed as a binomial, define a larger rectangle.
- Physics: Kinematic equations in projectile motion and harmonic oscillators regularly involve products of linear time expressions.
- Finance: Compound growth models and annuity formulas can produce binomial products when two growth-period expressions are multiplied.
Choosing the Output Mode
Coefficient mode returns the individual numeric values of ac, (ad + bc), and bd — useful when only a specific term of the polynomial is required. Evaluate at x mode substitutes a chosen real number into the fully expanded polynomial, delivering a single numeric answer that is ideal for verifying expansions, plotting individual points on a parabola, or solving applied problems where a specific input value is known.
Reference