FOIL Method Calculator
Expand the product (ax+b)(cx+d) using the FOIL method with step-by-step working. Shows First, Outer, Inner, and Last terms separately.
Did this tool work for you?
How to use this calculator
FOIL stands for First, Outer, Inner, Last — the four pairs of terms multiplied when expanding the product of two binomials.
- 1
Enter a and b for the first binomial (ax + b).
- 2
Enter c and d for the second binomial (cx + d).
- 3
The expanded polynomial is shown along with each FOIL step labelled.
- 4
To use negative terms, enter negative values for b or d (e.g., b = −3 gives x − 3).
Frequently asked questions
What does FOIL stand for?
FOIL stands for First, Outer, Inner, Last — the order in which you multiply pairs of terms from the two binomials: First (a×c), Outer (a×d), Inner (b×c), Last (b×d). Adding all four products and combining like terms gives the expanded polynomial.
Does FOIL work for more than two terms?
FOIL specifically applies to two binomials (two-term expressions). For trinomials or longer polynomials, use the distributive property systematically: multiply each term of the first polynomial by each term of the second, then collect like terms. The number of partial products is (terms in first) × (terms in second).
How do I verify the FOIL expansion?
Substitute a specific value for x into both the factored form (ax+b)(cx+d) and the expanded form, and check they give the same result. For example, with x = 1: (2·1+3)(4·1−1) = 5×3 = 15; expanded: 8−2+12−3 = 15. ✓
What is the reverse of FOIL (factoring)?
Factoring a quadratic ax²+bx+c finds two binomials whose product equals the quadratic. For monic quadratics (a=1), find two numbers that multiply to c and add to b: x²+5x+6 = (x+2)(x+3) because 2×3=6 and 2+3=5. For non-monic quadratics, use the AC method or the quadratic formula.
FOIL calculator — expand binomial products step by step
FOIL as the distributive property
FOIL is a mnemonic for applying the distributive property twice. (ax+b)(cx+d) = ax(cx+d) + b(cx+d) = acx² + adx + bcx + bd. Grouping the x terms gives acx² + (ad+bc)x + bd. The FOIL acronym simply helps students remember the four pairs: First (the x² term), Outer and Inner (the x terms), and Last (the constant).
Special binomial products worth memorising
Three patterns arise so often they deserve memorisation: (x+a)² = x²+2ax+a² (perfect square trinomial); (x−a)² = x²−2ax+a² (perfect square trinomial); (x+a)(x−a) = x²−a² (difference of squares). These templates let you skip FOIL for common cases. For example, (x+5)(x−5) = x²−25 immediately — no multiplication needed.
FOIL in algebra and polynomial arithmetic
Polynomial multiplication underlies many advanced topics: multiplying complex numbers (treated as binomials in the imaginary unit i), computing convolutions in signal processing, multiplying polynomials in abstract algebra and cryptography (polynomial rings over finite fields). The step-by-step FOIL process, scaled up, is the algorithm behind all polynomial multiplication and is the foundation of the schoolbook multiplication algorithm you learned for integers.
Learn more from an authoritative source:
WikipediaGolden Ratio Calculator
Calculate all three values of a golden ratio division — short side a, long side b, and total length a+b — given any one of them. φ ≈ 1.6180339887.
Pascal's Triangle Calculator
Generate up to 20 rows of Pascal's Triangle and display the nCr (combination) values for any selected row.
Permutation & Combination Calculator
Calculate nPr (permutations) and nCr (combinations) with step-by-step factorial expansion. Supports n and r up to 20.
Fraction / Decimal / Percent Converter
Convert between fractions, decimals, and percentages in any direction. Six conversion modes in one tool.
Decimal to Fraction Calculator
Convert any decimal number to a simplified fraction in lowest terms, with step-by-step working. Handles terminating and long decimals.
Simplify Fractions Calculator
Reduce any fraction to its simplest form (lowest terms) using the GCD. Shows the GCD used and the decimal equivalent.
Results are estimates for informational purposes only and do not constitute professional financial, medical, legal, or technical advice. Read full disclaimer →