← All text tools

FOIL method calculator

Multiply two binomials with First, Outer, Inner and Last, see each of the four products in colour, and spot squares and differences of squares.

  • Free
  • No sign-up
  • Works on any device

About FOIL method calculator

FOIL is a memory aid for multiplying two binomials: multiply the First terms, the Outer terms, the Inner terms and the Last terms, then combine like terms. For (2x + 3)(4x - 5) the products are 8x^2, -10x, 12x and -15, which combine to 8x^2 + 2x - 15. This page shows each of the four products in its own colour so you can see where every term comes from, then adds the middle terms. It also recognises two special patterns: the square of a binomial and the difference of squares.

How to use FOIL method calculator

  1. Enter a and b for the first bracket (ax + b) and c and d for the second (cx + d).
  2. Read the four coloured F, O, I and L lines to see each product.
  3. Check the combined answer and the pattern note for squares or differences of squares.

Why use this tool?

Also known as

Frequently asked questions

Does FOIL work for brackets with more than two terms?

No. FOIL only describes two binomials. For longer brackets, multiply every term of one by every term of the other, which is the distributive law that FOIL is built on.

Why do the middle terms of a difference of squares cancel?

In (p + q)(p - q) the Outer product is -pq and the Inner product is +pq, so they add to zero and leave p^2 - q^2.

What is the shortcut for squaring a binomial?

(p + q)^2 equals p^2 + 2pq + q^2. The middle term is twice the product of the two terms, a very common mistake to leave out.

Is FOIL method calculator free?

Yes. FOIL method calculator on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put FOIL method calculator on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

Related tools