Skip to content
  • Open the math solver
  • Ask the AI tutor
  • Find an AP course
  • Create a quiz
  • Open the calculator
  • Graphing Calculator
  • Browse all calculators
  • Read math guides
↑ ↓Enter to open · Esc to close
Solve a problem

Algebra

How to Simplify Algebraic Expressions Step by Step

By MathSolver Pro Editorial Team · Published

Simplifying means rewriting an expression in an equivalent, shorter form without changing its value for any allowed input. A handful of rules, applied in a sensible order, covers almost every case.

What simplify actually means

An expression such as 3(2x−5)−2(x−4)3(2x - 5) - 2(x - 4) has no equals sign, so there is nothing to solve. Simplifying it means finding an equivalent expression, one that gives the same value for every allowed xx, that is shorter and easier to use. Here that is 4x−74x - 7.

Equivalent is the important word. Every step must be a valid algebraic rule, not a guess that happens to look neater. A useful test is to substitute a value: at x=2x = 2 the original gives 3(−1)−2(−2)=−3+4=13(-1) - 2(-2) = -3 + 4 = 1, and 4(2)−7=14(2) - 7 = 1 as well. Matching at one point does not prove two expressions are equivalent, but a mismatch proves an error.

3(2x−5)−2(x−4)=6x−15−2x+8=4x−73(2x - 5) - 2(x - 4) = 6x - 15 - 2x + 8 = 4x - 7

Combining like terms

Like terms have exactly the same variables raised to exactly the same powers; only their coefficients may differ. 3x23x^2 and −7x2-7x^2 are like terms. 3x23x^2 and 3x3x are not, and neither are xyxy and x2yx^2y.

To combine like terms, add their coefficients and keep the variable part unchanged:

4x+3y−x+5y−2=(4−1)x+(3+5)y−2=3x+8y−24x + 3y - x + 5y - 2 = (4 - 1)x + (3 + 5)y - 2 = 3x + 8y - 2

Underline or colour each group of like terms before combining, and carry each term's sign with it. In 4x+3y−x4x + 3y - x, the term is −x-x, not xx.

The distributive property and expanding brackets

The distributive property a(b+c)=ab+aca(b + c) = ab + ac removes brackets. The factor outside multiplies every term inside, and a minus sign in front of a bracket is a factor of −1-1.

  • −2(x−4)=−2x+8-2(x - 4) = -2x + 8, because −2×−4=+8-2 \times -4 = +8.
  • −(3x−y+1)=−3x+y−1-(3x - y + 1) = -3x + y - 1.
  • (x+2)(x−5)=x2−5x+2x−10=x2−3x−10(x + 2)(x - 5) = x^2 - 5x + 2x - 10 = x^2 - 3x - 10: multiply each term of the first bracket by each term of the second.
  • (2x−3)2=(2x−3)(2x−3)=4x2−12x+9(2x - 3)^2 = (2x - 3)(2x - 3) = 4x^2 - 12x + 9, not 4x2+94x^2 + 9.

Squaring a sum term by term, as in (a+b)2=a2+b2(a + b)^2 = a^2 + b^2, is one of the most frequent algebra errors. The correct identity is (a+b)2=a2+2ab+b2(a + b)^2 = a^2 + 2ab + b^2.

Exponent rules

Products and quotients of powers simplify with a short set of rules, valid for any non-zero base:

xmxn=xm+n,xmxn=xm−n,(xm)n=xmn,(xy)n=xnyn,x−n=1xn,x0=1x^m x^n = x^{m+n},\quad \frac{x^m}{x^n} = x^{m-n},\quad (x^m)^n = x^{mn},\quad (xy)^n = x^n y^n,\quad x^{-n} = \frac{1}{x^n},\quad x^0 = 1

Example: (2x3y)2⋅3xy4(2x^3y)^2 \cdot 3xy^4

  1. Apply the power to every factor in the bracket: (2x3y)2=4x6y2(2x^3y)^2 = 4x^6y^2.
  2. Multiply coefficients and add exponents of like bases: 4⋅3=124 \cdot 3 = 12, x6⋅x=x7x^6 \cdot x = x^7, y2⋅y4=y6y^2 \cdot y^4 = y^6.
  3. Result: 12x7y612x^7y^6.

Example: x−2y3x4y−1\dfrac{x^{-2}y^3}{x^4y^{-1}}

  1. Subtract exponents base by base: x−2−4=x−6x^{-2-4} = x^{-6} and y3−(−1)=y4y^{3-(-1)} = y^4.
  2. Write the negative exponent as a reciprocal: y4x6\frac{y^4}{x^6}.

The exponent calculator applies these rules one at a time if you want to check a longer expression.

Simplifying algebraic fractions

A rational expression is simplified by factoring the numerator and the denominator completely, then cancelling factors that appear in both. You may only cancel factors, never terms that are added.

Example: x2−9x2+5x+6\dfrac{x^2 - 9}{x^2 + 5x + 6}

  1. Factor the top as a difference of squares: (x−3)(x+3)(x - 3)(x + 3).
  2. Factor the bottom: (x+2)(x+3)(x + 2)(x + 3).
  3. Cancel the common factor (x+3)(x + 3): x−3x+2\frac{x - 3}{x + 2}.
  4. State the restrictions from the original denominator: x≠−2x \neq -2 and x≠−3x \neq -3.

The restriction x≠−3x \neq -3 must be kept even though (x+3)(x + 3) no longer appears, because the original expression is undefined there. To add fractions, use a common denominator first:

2x+3x+1=2(x+1)+3xx(x+1)=5x+2x(x+1)\frac{2}{x} + \frac{3}{x + 1} = \frac{2(x + 1) + 3x}{x(x + 1)} = \frac{5x + 2}{x(x + 1)}

If factoring is the sticking point, the guide to factoring polynomials covers every method used here, and the rational expression calculator shows the cancellation step by step.

Simplifying square roots

Take out perfect-square factors using ab=ab\sqrt{ab} = \sqrt{a}\sqrt{b} for non-negative aa and bb. Then combine like radicals the same way as like terms.

  • 50=25⋅2=52\sqrt{50} = \sqrt{25 \cdot 2} = 5\sqrt{2} and 18=32\sqrt{18} = 3\sqrt{2}, so 50+18=82\sqrt{50} + \sqrt{18} = 8\sqrt{2}.
  • 12⋅3=36=6\sqrt{12} \cdot \sqrt{3} = \sqrt{36} = 6.
  • 9+16=25=5\sqrt{9 + 16} = \sqrt{25} = 5, which is not 9+16=7\sqrt{9} + \sqrt{16} = 7. Roots do not split over addition.

A sensible order of operations

  1. Expand brackets with the distributive property, taking care with negative signs.
  2. Apply exponent rules to products, quotients and powers.
  3. Combine like terms.
  4. For fractions, factor completely and cancel common factors, keeping the restrictions.
  5. Write the result in a standard order, usually by descending powers: 3x2−x+43x^2 - x + 4.
  6. Spot-check by substituting a simple value into the original and the result.

Mistakes that change the value

  • Cancelling terms instead of factors: x+6x+3\frac{x + 6}{x + 3} is not 22 and not 63\frac{6}{3}.
  • Distributing a minus sign to the first term only.
  • Adding exponents when multiplying different bases: x2y3x^2 y^3 cannot be combined into one power.
  • Writing (a+b)2=a2+b2(a + b)^2 = a^2 + b^2 or a+b=a+b\sqrt{a + b} = \sqrt{a} + \sqrt{b}.
  • Dropping the domain restrictions after cancelling.

Paste any expression into the simplify calculator to compare its steps with yours. Once an expression is simple, solving the related equation is much easier; see how to solve linear equations.

A longer worked example

Real exercises usually combine several of the rules above. Working through one carefully shows how the order of steps keeps the expression manageable.

Example: 2x(x−3)−(x+1)2+4(x2−2x)2x(x - 3) - (x + 1)^2 + 4(x^2 - 2x)

  1. Expand each part separately: 2x(x−3)=2x2−6x2x(x - 3) = 2x^2 - 6x, (x+1)2=x2+2x+1(x + 1)^2 = x^2 + 2x + 1, and 4(x2−2x)=4x2−8x4(x^2 - 2x) = 4x^2 - 8x.
  2. Subtract the whole square, so every sign inside changes: −(x2+2x+1)=−x2−2x−1-(x^2 + 2x + 1) = -x^2 - 2x - 1.
  3. Collect the x2x^2 terms: 2x2−x2+4x2=5x22x^2 - x^2 + 4x^2 = 5x^2.
  4. Collect the xx terms: −6x−2x−8x=−16x-6x - 2x - 8x = -16x.
  5. The constant is −1-1, so the result is 5x2−16x−15x^2 - 16x - 1.
  6. Check at x=1x = 1: the original gives 2(1)(−2)−4+4(−1)=−4−4−4=−122(1)(-2) - 4 + 4(-1) = -4 - 4 - 4 = -12, and 5−16−1=−125 - 16 - 1 = -12.

Notice that the subtraction in front of (x+1)2(x + 1)^2 was handled only after the square had been expanded inside brackets. Expanding first and then distributing the minus sign to every term is what prevents the classic sign error.

What counts as fully simplified?

Teachers and textbooks use a few shared conventions for a final answer. An expression is usually considered fully simplified when there are no brackets left that could be expanded, unless a factored form was asked for; no two terms are alike; no exponent is negative or zero; no fraction has a common factor in its numerator and denominator; no square root contains a perfect-square factor; and no denominator contains a square root.

The last rule is handled by rationalising. To rationalise 63\frac{6}{\sqrt{3}}, multiply the top and bottom by 3\sqrt{3} to get 633=23\frac{6\sqrt{3}}{3} = 2\sqrt{3}. Both forms have the same value, about 3.4643.464, but the second is the conventional final form.

Sometimes the simplest form depends on the purpose. The expanded form x2−3x−10x^2 - 3x - 10 is convenient for reading off coefficients, while the factored form (x+2)(x−5)(x + 2)(x - 5) shows the zeros immediately. If an exercise does not say which form it wants, either is equivalent, but most teachers expect the expanded form for sums and the factored, cancelled form for fractions.

If two different-looking answers both survive the substitution check at two or three values, they are almost certainly the same expression written two ways.

Simplifying with more than one variable

Expressions with several variables follow exactly the same rules, but it is easier to lose track of terms. Sorting the terms by their variable part before combining helps. In 3a2b−2ab2+5ab−a2b+4ab23a^2b - 2ab^2 + 5ab - a^2b + 4ab^2, the like groups are a2ba^2b terms, ab2ab^2 terms and abab terms. Combining each group gives 2a2b+2ab2+5ab2a^2b + 2ab^2 + 5ab. Nothing further combines, because each remaining term has a different variable part, but every term has a common factor of abab, so the expression can also be written as ab(2a+2b+5)ab(2a + 2b + 5).

Writing variables in alphabetical order within each term, for example baba as abab, makes like terms easier to spot. It is also a common convention in final answers.

Frequently asked questions

What is the difference between simplifying and solving?

You simplify an expression, which has no equals sign, by rewriting it in an equivalent shorter form. You solve an equation, which has an equals sign, by finding the values that make it true.

Can I cancel x in (x + 6)/(x + 3)?

No. Cancelling is only allowed for factors that multiply the whole numerator and the whole denominator. Here xx is a term in a sum, so the fraction is already in simplest form.

Why do restrictions stay after cancelling?

The simplified expression must have the same value as the original wherever the original is defined. Values that made the original denominator zero are still excluded, even if the cancelled factor no longer appears.

How do I check a simplification?

Substitute an easy value, such as x=2x = 2, into the original and the simplified expression. Different results prove an error; equal results at two or three values make an error very unlikely.

Is x times x equal to 2x?

No. x⋅x=x2x \cdot x = x^2, while x+x=2xx + x = 2x. Multiplying identical factors adds exponents; adding identical terms adds coefficients. At x=3x = 3 the difference is clear: x2=9x^2 = 9 but 2x=62x = 6.

Should the final answer be factored or expanded?

Follow the instructions if there are any. Otherwise, polynomials are usually given expanded with descending powers, and fractions are given with numerator and denominator factored and all common factors cancelled.

MathSolver Pro Editorial Team

Math content and review

Our editorial team writes every guide to explain the reasoning behind each method, not just the answer. Each worked example is checked against the site's own solver engines and automated tests before it is published, and articles are revised whenever a method or an exam format changes.