What would you like to understand?

Popular destinationsCalculatorsCoursesPracticeFormulas

Unlock Premium Help

Explore every tutor and study workspace for seven days, with no daily AI cap during the trial.

Choose a billing period
Ask a parent to pay

Nothing is charged during the first seven days. Unless you cancel, the plan you selected begins when the trial ends and renews on its stated schedule. Manage cancellation from your plan page. Stripe handles the payment details.

FOIL Calculator

Multiply two linear binomials and collect the resulting quadratic coefficients.

Set up the relationship

FOIL inputs

Enter only the values that define this relationship. The result is checked against the original setup.

Expanded quadraticEnter the known values

The method, result, and an independent check will appear here.

Method for this result

  1. Complete the inputs and calculate.

Substitution check

  1. The check will use a different relationship or reverse operation where possible.

The relationship behind FOIL Calculator

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

Symbols and inputs for FOIL Calculator

Symbols and inputs for FOIL Calculator
SymbolQuantityMeaning
FFirst termsThe leading term of each bracket, multiplied together. This gives the highest power.
OOuter termsThe very first term times the very last one.
IInner termsThe two terms sitting next to each other in the middle.
LLast termsThe trailing term of each bracket. Signs matter here more than anywhere.

Worked example for FOIL Calculator

  1. The product: (3x − 4)(2x + 7)
  2. First: 3x times 2x: 6x²
  3. Outer: 3x times 7: 21x
  4. Inner: −4 times 2x: −8x
  5. Last: −4 times 7: −28
  6. Add the four pieces: 6x² + 21x − 8x − 28
  7. Combine the two middle terms: 6x² + 13x − 28

A second case for FOIL Calculator

  1. A different case: one bracket has three terms: (x + 2)(x² − 3x + 5)
  2. FOIL has only four slots, so it cannot cover six products: use plain distribution instead
  3. Multiply x through the second bracket: x³ − 3x² + 5x
  4. Multiply 2 through the second bracket: 2x² − 6x + 10
  5. Stack the two rows: x³ − 3x² + 5x + 2x² − 6x + 10
  6. Combine the x² terms and the x terms: −3x² + 2x² = −x², and 5x − 6x = −x
  7. Finished product: x³ − x² − x + 10

Where the middle term comes from, product by product

Where the middle term comes from, product by product
ProductFOILSimplified
(x + 5)(x + 3)x²3x5x15x² + 8x + 15
(x + 7)(x − 2)x²−2x7x−14x² + 5x − 14
(x + 5)(x − 5)x²−5x5x−25x² − 25
(2x + 3)(2x − 3)4x²−6x6x−94x² − 9
(x + 5)²x²5x5x25x² + 10x + 25
(x − 5)²x²−5x−5x25x² − 10x + 25
(3x − 4)(2x + 7)6x²21x−8x−286x² + 13x − 28

Mistakes to catch with FOIL Calculator

(x + 5)² = x² + 25

Only First and Last were done. Squaring a bracket is still two brackets multiplied, so Outer and Inner are both 5x.

Repair: Write it out: x² + 5x + 5x + 25 = x² + 10x + 25.

(3x − 4)(2x + 7) = 6x² − 28

The Outer and Inner products were skipped entirely, so the whole middle term vanished.

Repair: Include them: 21x − 8x = 13x, giving 6x² + 13x − 28.

Taking the Inner product of (3x − 4)(2x + 7) as 4 × 2x = 8x

The minus belongs to the 4 and travels with it into every product it joins.

Repair: Keep the sign: −4 × 2x = −8x, so the middle is 21 − 8 = 13, not 21 + 8 = 29.

Questions about FOIL Calculator

Can FOIL multiply a two-term bracket by a three-term one?

No, and that is its only real limitation. (x + 2)(x² − 3x + 5) needs six products, and FOIL has four named slots. Distribute each term of the short bracket across the long one instead.

Why do the middle terms disappear in (x + 5)(x − 5)?

Because Outer gives −5x and Inner gives +5x, which cancel exactly. That only happens when the two brackets are identical except for the sign, which is why this pattern is called a difference of squares.

Is FOIL a different rule from the distributive property?

No, it is the distributive property applied twice, with the four products given names so they are easier to keep track of. Once you are comfortable, most people stop naming them and just multiply everything by everything.

Does it matter whether I do Outer before Inner?

Not at all. Addition can be reordered, so 6x² − 8x + 21x − 28 gives the same 6x² + 13x − 28. The order is only there so you can tick off four products and be sure none was forgotten.

Understand the result from FOIL Calculator

Compare another tool, review the underlying idea, then solve a fresh problem without copying the example.

Calculators related to FOIL Calculator

See all calculators →

Algebra calculator

Explore this resource with editable values, visible working, and a result you can check.

Open free tool

Quadratic formula calculator

Explore this resource with editable values, visible working, and a result you can check.

Open free tool

Graphing calculator

Explore this resource with editable values, visible working, and a result you can check.

Open free tool

Understand algebra behind this calculator

A calculator can check the arithmetic; use the algebra subject guide to rebuild the method, algebra practice questions to test selection, and the math formula library to confirm conditions and notation.