Free Algebra Solver
Expand

Expand Calculator

Enter a product or power such as (2x − 3)(x + 4) or (x + 1)³. Every partial product is shown before like terms are combined.

Preview (x + 1)^3 (Expand) Ready
Examples
Solution

Worked example: (x + 1)^3

Worked example. Edit the problem above and press Expand to solve your own.

Problem(x + 1)^3
  1. Expand the binomial power

    Multiply each term in one factor by each term in the other, then collect matching powers.

    (x + 1)^3
    Binomial raised to the power 3
    Coefficients from Pascal’s triangle: 1, 3, 3, 1
    Row 3
    1(x)^3(1)^0 + 3(x)^2(1) + 3(x)(1)^2 + 1(x)^0(1)^3
    Binomial theorem terms
    x³ + 3x² + 3x + 1
    Simplify each term

    The distributive property a(b + c) = ab + ac keeps the value unchanged.

  2. Collect like terms

    Add coefficients of terms with the same power of x and write the powers in descending order.

    (x + 1)^3
    Original expression
    x³ + 3x² + 3x + 1
    Combine like terms and order by power

    Only like terms are combined, so the expression keeps the same value for every x.

Answerx³ + 3x² + 3x + 1

Expanding guide

Expand calculator: how to expand brackets and multiply polynomials

Paste a product of brackets or a power like (x + 1)³ into the expand calculator and it multiplies everything out, then combines like terms. Here is how expanding works, with methods you can use on paper.

What does it mean to expand an expression?

Expanding means removing brackets by multiplying them out, so the expression becomes a sum of terms. You multiply every term in one bracket by every term in the other, then combine like terms. For example, (x + 1)³ expands to x³ + 3x² + 3x + 1.

How do you expand brackets?

Multiply each term inside the bracket by whatever is outside it. With a single term outside, that is the distributive property: 3(x + 4) = 3x + 12.

With two brackets, each term of the first bracket multiplies each term of the second. Two terms times three terms gives six products before you combine. Counting the products first is a good way to check you didn't skip one.

  1. Take the first term of the first bracket and multiply it by every term of the second.
  2. Do the same with each remaining term of the first bracket.
  3. Write down every product with its sign.
  4. Combine like terms and write the result in standard form.

Worked example: expand (x + 1)³

The answer is x³ + 3x² + 3x + 1. Write the cube as a square times one more bracket, then expand in two stages.

Rewrite
(x + 1)² (x + 1)
Square first
(x² + 2x + 1)(x + 1)
Multiply every term
x³ + x² + 2x² + 2x + x + 1
Combine
x³ + 3x² + 3x + 1

The coefficients 1, 3, 3, 1 are not a coincidence. They are a row of Pascal's triangle, which gives you a shortcut for any power of a binomial.

How do you multiply polynomials with more than two terms?

Use the same rule: every term times every term. To multiply polynomials like (x + 2)(x² − 3x + 4), multiply x by all three terms, then 2 by all three terms.

x times each term
x³ − 3x² + 4x
2 times each term
2x² − 6x + 8
Add and combine
x³ − x² − 2x + 8

Lining up the two rows by power, as above, makes the combining step much easier, since each column holds one set of like terms. A box (or grid) works too: write one polynomial across the top, the other down the side, and fill in each cell. This is what a polynomial multiplication calculator does behind the scenes.

How does Pascal's triangle help with binomial expansion?

Row n of Pascal's triangle gives the coefficients of (a + b)ⁿ. Each number in the triangle is the sum of the two numbers above it.

Power nPascal rowExpansion of (x + 1)ⁿ
21, 2, 1x² + 2x + 1
31, 3, 3, 1x³ + 3x² + 3x + 1
41, 4, 6, 4, 1x⁴ + 4x³ + 6x² + 4x + 1

When the second term isn't 1, multiply each coefficient by the matching power of that term. For (x + 2)⁴, use 1, 4, 6, 4, 1 with powers of 2 (1, 2, 4, 8, 16): x⁴ + 8x³ + 24x² + 32x + 16. The expand calculator labels these Pascal coefficients in its steps, which makes it a handy binomial expansion calculator for powers up to 6.

Which special products are worth memorizing?

Three patterns come up again and again: the square of a sum, the square of a difference, and a sum times a difference. Knowing them lets you expand in one line and spot them later when you factor.

PatternExampleExpanded
(a + b)² = a² + 2ab + b²(x + 3)²x² + 6x + 9
(a − b)² = a² − 2ab + b²(x − 4)²x² − 8x + 16
(a + b)(a − b) = a² − b²(x + 5)(x − 5)x² − 25
(a − b)(a² + ab + b²) = a³ − b³(x − 2)(x² + 2x + 4)x³ − 8

The pattern for a power of a difference also follows Pascal's triangle, with signs that alternate. (x − 1)⁴ expands to x⁴ − 4x³ + 6x² − 4x + 1.

How do you expand three binomials?

Multiply two of them first, then multiply that result by the third. Trying to do all three at once is where terms get lost.

For (x + 1)(x + 2)(x + 3), start with (x + 1)(x + 2) = x² + 3x + 2. Then multiply by (x + 3): x³ + 3x² + 2x + 3x² + 9x + 6, which combines to x³ + 6x² + 11x + 6.

A useful check: the constant at the end is the product of the constants, 1 × 2 × 3 = 6.

What are common mistakes when expanding?

The biggest one is squaring each term separately. (x + 3)² equals x² + 6x + 9, because the two middle products 3x and 3x add up to 6x. Writing x² + 9 drops that middle term.

Other slips: dropping a negative sign when multiplying (−2 × −3 is +6), and forgetting that a term outside the bracket multiplies all the terms inside, not just the first. Count your products before combining: a 2-term bracket times a 3-term bracket should give 6.

How do you enter an expression in the expand calculator?

Type brackets side by side for multiplication, like (2x - 1)(x + 5), and use ^ for powers, like (x - 2)^5. You don't need a times sign between brackets.

The calculator works with one variable and degrees up to 6. It won't expand expressions with two letters such as (x + y)², so substitute numbers or use the Pascal method by hand for those.

Frequently asked questions

Short answers to the questions people ask most about this topic.

What is an expanding brackets calculator?

It is a tool that multiplies out brackets for you and shows the steps. Type something like 3(2x − 5) or (x + 4)(x − 1) and it returns the expanded polynomial with like terms combined.

Is expanding the opposite of factoring?

Yes. Expanding turns a product into a sum, and factoring turns a sum back into a product. (x + 3)(x − 2) expands to x² + x − 6, and factoring x² + x − 6 takes you back.

How do I expand (2x − 1)²?

Write it as (2x − 1)(2x − 1) and multiply every term: 4x² − 2x − 2x + 1. Combining gives 4x² − 4x + 1.

What is the fastest way to expand (a + b)⁵?

Use row 5 of Pascal's triangle, 1, 5, 10, 10, 5, 1. The powers of a go down from 5 to 0 while the powers of b go up from 0 to 5.

Can the calculator multiply polynomials with negative coefficients?

Yes. It handles signs in every product and combines the results. For (x − 2)(x² + 2x + 4) it returns x³ − 8, since all the middle terms cancel.

When should I use FOIL instead?

FOIL is a shortcut for exactly two binomials. For anything bigger, multiply every term by every term, which is what this page does.

How can I check an expansion without the calculator?

Pick a small value such as x = 2 and evaluate both the original and your answer. For (x + 1)³ you get 27, and 8 + 12 + 6 + 1 is also 27. If the values differ, look for a missing product or a sign error.

Math keypad

Expand mode

Use the keypad below or tap the expression to use your phone keyboard.

Keyboard tips

Ctrl + Enter
Run the selected operation
a/b key
Select part of the problem first to wrap it in a fraction, root, power, or bars
sin(30)
Scientific functions work in Calculate mode; angles are in degrees unless you use π
^
Enter a power, such as x^2
sqrt(
Calculate an exact or simplified square root
a:b
Separate quantities in a ratio
12, 18
Separate integers in an LCM and GCD calculation
@ x =
Assign x when evaluating an expression
y =
Enter a polynomial function to graph
|
Wrap an absolute-value expression