FOIL Calculator

Multiply Linear and General Binomials using the FOIL method.

📘 About the FOIL Calculator

This calculator multiplies two binomials using the FOIL method, providing a step-by-step explanation for each multiplication. It works for both linear binomials and general binomials with exponents.

🔄 Linear & General Binomials

Easily switch between:

  • Linear binomials: (ax + b)(cx + d)
  • General binomials: (axⁿ + b)(cxᵐ + d)

Input fields update automatically depending on your selection.

✍️ Step-by-Step Calculation

The calculator shows each step of the FOIL process:

  • First terms multiplication
  • Outer terms multiplication
  • Inner terms multiplication
  • Last terms multiplication

This helps students understand how each term contributes to the final expanded expression.

⚡ Instant Results

Simply enter the coefficients, constants, and exponents (if applicable).

The calculator instantly generates the expanded result along with detailed calculation steps.

🎯 Beginner-Friendly & Interactive

No manual calculation is required. Clear, reload, and real-time updates make this perfect for homework, quizzes, and learning FOIL multiplication.

⚙️ How the Calculator Works

1. Select the type of binomials: linear or general (with exponents).

2. Enter the coefficients (a, c), constants (b, d), and exponents (n, m if using general binomials).

3. The calculator multiplies the terms using the FOIL method: First, Outer, Inner, Last.

4. The expanded expression and step-by-step explanation are displayed instantly.

📐 FOIL Formula Explained

The FOIL method is a standard technique for multiplying two binomials in algebra. FOIL stands for First, Outer, Inner, Last, representing the order in which each term of the binomials is multiplied. It helps students systematically expand expressions like (ax + b)(cx + d) or more general forms (axⁿ + b)(cxᵐ + d) without missing any terms.

(axⁿ + b)(cxᵐ + d) = (First) + (Outer) + (Inner) + (Last)

In this formula:

  • First – Multiply the first terms from each binomial: axⁿ × cxᵐ = ac xⁿ⁺ᵐ.
  • Outer – Multiply the outer terms: axⁿ × d = ad xⁿ.
  • Inner – Multiply the inner terms: b × cxᵐ = bc xᵐ.
  • Last – Multiply the last terms: b × d = bd.

After multiplying all terms, combine like terms (terms with the same power of x) to get the final expanded expression. This method ensures accuracy and reduces errors when expanding binomials, whether linear or with higher exponents.


Using the FOIL method allows you to multiply any two binomials efficiently, making it easier to solve algebraic problems, factor expressions, and prepare for higher-level math concepts such as quadratic equations and polynomial operations.

Key points to remember:

  • Always follow the FOIL order: First, Outer, Inner, Last.
  • Combine like terms after multiplication for the correct final expression.
  • Use parentheses carefully to avoid mistakes, especially with negative numbers or decimals.
  • The method works for both simple linear binomials and more complex expressions with powers.
  • FOIL is a reliable foundation for understanding polynomial multiplication, which can be expanded to trinomial multiplication and beyond.

By practicing the FOIL method with different coefficients, constants, and exponents, you can quickly develop confidence in algebraic multiplication and ensure accurate results in homework, exams, and real-world applications.

📌 Example

Example 1 (Linear Binomials): Multiply (2x + 3)(x + 5).

First: 2×1 = 2x², Outer: 2×5 = 10x, Inner: 3×1 = 3x, Last: 3×5 = 15

Combine like terms: 10x + 3x = 13x. Final result:

2x² + 13x + 15

Example 2 (General Binomials): Multiply (3x² + 4)(2x³ + 5).

First: 3×2 = 6x⁵, Outer: 3×5 = 15x², Inner: 4×2 = 8x³, Last: 4×5 = 20

Arrange terms in descending powers of x: 6x⁵ + 8x³ + 15x² + 20

Frequently Asked Questions About the
FOIL Calculator

Answers to common questions about expanding binomials using the FOIL method quickly and accurately.

What does this calculator do?

It multiplies two binomials using the FOIL method and provides the expanded result along with step-by-step calculations for each term.

Is this calculator free?

Yes! The FOIL Calculator is completely free to use with no registration required.

Can it handle both linear and general binomials?

Yes, it supports linear binomials like (ax + b)(cx + d) and general binomials with exponents like (axⁿ + b)(cxᵐ + d).

How does the calculator show the steps?

It displays the multiplication of First, Outer, Inner, and Last terms individually and then combines like terms to give the final expanded expression.

Can I clear or reload the calculator easily?

Yes, click the “Clear All” button to reset inputs or the “Reload Calculator” button to reload the page completely.

Is it suitable for students and learning purposes?

Absolutely! This calculator is perfect for students learning FOIL multiplication, practicing homework, or preparing for exams.

Can I use it on mobile devices?

Yes, the calculator is fully responsive and works smoothly on smartphones, tablets, laptops, and desktops.

Does it support negative coefficients and constants?

Yes, you can enter negative numbers for coefficients or constants, and the calculator will handle them correctly in the expansion.

Can I enter decimals?

Yes, decimal numbers are supported for coefficients, constants, and the calculator will compute the precise expanded result.

Does it show the result in a readable format?

Yes, the final expression is displayed neatly with each term properly formatted using superscripts for exponents, making it easy to read and understand.

Related Resources

Explore more algebra calculators, tools, and guides to simplify polynomial, equation, and expression problems quickly and accurately.