terican

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.

FreeInstantNo signupOpen source

Inputs

Result

Explain my result

0/3 free

Get a plain-English breakdown of your result with practical next steps.

Result

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

Frequently asked questions

What does FOIL stand for in the FOIL method for multiplying binomials?
FOIL stands for First, Outer, Inner, and Last. These four words identify the four pairs of terms multiplied when expanding two binomials. For (ax + b)(cx + d): First gives acx squared, Outer gives adx, Inner gives bcx, and Last gives bd. Summing all four products yields the complete quadratic trinomial acx squared + (ad + bc)x + bd.
How do you use the multiplying binomials calculator?
Enter the four values a, b, c, and d corresponding to the binomials (ax + b) and (cx + d). Select the desired output — a specific coefficient such as the x squared term or the constant term — or choose evaluate-at-x and supply a numeric x value. The calculator applies the FOIL formula instantly, displaying the result without any manual computation or risk of arithmetic error.
What does each term in the result acx squared + (ad + bc)x + bd represent?
The leading term acx squared is the product of the two x-terms (First). The middle coefficient (ad + bc) is the sum of the Outer product (ad) and the Inner product (bc). The constant bd is the product of the two constant terms (Last). For example, in (3x + 2)(5x + 4), the expansion gives 15x squared + 22x + 8, where ac = 15, ad + bc = 12 + 10 = 22, and bd = 8.
Can the FOIL method handle negative or fractional coefficients?
Yes. The formula (ax + b)(cx + d) = acx squared + (ad + bc)x + bd works for any real-number coefficients, including negative values, fractions, and decimals. For example, (2x minus 5)(3x + 4) uses b = negative 5 and d = 4, giving 6x squared minus 7x minus 20. The negative sign is automatically absorbed when computing the products ad and bc during the Outer and Inner steps.
How is multiplying binomials related to factoring quadratics?
Multiplying binomials and factoring quadratics are inverse operations. Multiplying (x + 3)(x minus 4) via FOIL produces x squared minus x minus 12. Factoring x squared minus x minus 12 reverses the process, identifying the pair of binomials whose FOIL products reconstruct the trinomial. Mastering FOIL therefore builds direct intuition for factoring: recognizing that the constant term is bd and the linear coefficient is ad + bc guides the search for factor pairs.
How can the evaluate-at-x feature be used to verify a binomial expansion?
Substitute the same x value into both the original binomial product and the expanded polynomial and confirm they yield identical results. For example, with x = 5, evaluate (2x + 1)(3x minus 2): the original gives (11)(13) = 143, while the expanded form 6x squared minus x minus 2 gives 6(25) minus 5 minus 2 = 143. A match confirms correctness. A mismatch pinpoints an arithmetic error in the expansion that needs correction.