Skip to content
ihateDesmos

Expand calculator

Type an expression with brackets and get it multiplied out, with like terms combined. It handles products of any size and whole-number powers, and the answer is exact.

Expand
Result
x3+6x2+12x+8
Graph the expression

How to use it

  1. 1
    Type an expression like (x + 2)(x - 5) or (2x - 1)^3.
  2. 2
    Press Expand.
  3. 3
    Use the graph link to confirm the result draws the same curve as the original.

Expanding two brackets: FOIL

To multiply two binomials, multiply the First, Outer, Inner and Last terms. For (x + 2)(x + 3):

  • First: x · x = x²
  • Outer: x · 3 = 3x
  • Inner: 2 · x = 2x
  • Last: 2 · 3 = 6

Adding them gives x² + 5x + 6. For longer brackets, the same idea applies: multiply every term in one bracket by every term in the other.

Patterns worth knowing

FormExpanded
(a + b)²a² + 2ab + b²
(a − b)²a² − 2ab + b²
(a + b)(a − b)a² − b²
(a + b)³a³ + 3a²b + 3ab² + b³

The most common mistake

(x + 3)² isn’t x² + 9. Squaring means multiplying the bracket by itself, which gives x² + 6x + 9, including the middle term that is so easy to forget. Try x = 1: (1 + 3)² = 16, but 1² + 9 = 10.

Frequently asked questions

What does it mean to expand an expression?
To multiply out its brackets and write it as a sum of terms. It is the opposite of factoring.
How do you expand (a + b)³?
Multiply (a + b)(a + b)(a + b), which gives a³ + 3a²b + 3ab² + b³.
Should I expand or factor?
Expand to add or compare polynomials. Factor to find roots or cancel fractions.
Does it work with several variables?
Yes. Type something like (x + y)^2 or (a - b)(a + b).

Related tools and guides

Try the expand calculator

It opens instantly, with no account and nothing to install.

Open the calculator