Free tool

Algebra calculator, simplify and solve with steps.

Type an expression to simplify, expand or factor it, or an equation to solve it. Linear, quadratic and higher equations get exact roots, complex roots and the steps, fractions with x in the bottom are cleared, and the two sides are graphed with the solutions marked. No sign-up, and it runs in your browser.

Examples

Auto solves when there is an = sign and simplifies when there is not. Write 1/(2x) with brackets. Roots, logs, trig and powers like 2^x with the unknown inside are not solved yet.

Worked out in your browser. Nothing is sent anywhere.

The method

Algebra, step by step.

01 / Simplify

Simplify, expand, factor

Brackets multiplied out, fractions combined and cancelled, and the factored form side by side.

02 / Solve

Solve with steps

Linear, quadratic and higher equations, with exact roots, complex roots and fractions with x in the bottom.

03 / Check

Checked and drawn

Each root is put back into the equation, and the two sides are graphed with the solutions marked.

Guide

How to simplify and solve algebra, with worked examples.

An algebra calculator simplifies expressions and solves equations, and shows how it got there. Type 2x + 3 = 11 and it solves for x. Type (x^2 − 4)/(x − 2) and it simplifies to x + 2. It also expands brackets, factors polynomials, solves quadratics with exact square roots or complex answers, finds the rational roots of cubics and higher, and clears fractions that have x in the bottom.

How to use the algebra calculator

  1. Type an expression or an equation in the box. Use ^ for powers, / for division, and brackets where needed. Multiplication can be left out.
  2. Leave Do on Auto. An equals sign means solve, and no equals sign means simplify. Or choose Simplify, Expand, Factor or Solve.
  3. If the equation has more than one letter, pick the one to solve for under Solve for. Auto uses x when it is there.
  4. Read the answer cards, then open the steps. For equations a graph shows the left and right side, with dots where they meet.

Solving a linear equation

Take 2x + 3 = 11. Subtract 3 from both sides to get 2x = 8, then divide by 2 to get x = 4. Check: 2 times 4 plus 3 is 11. For 3(x − 2) = 2(x + 1), multiply out to 3x − 6 = 2x + 2, which becomes x − 8 = 0 after moving everything to one side, so x = 8. Check: 3 times 6 is 18 and 2 times 9 is 18.

Solving a quadratic equation

A quadratic is a x^2 + b x + c = 0. The discriminant b^2 − 4ac tells you what to expect. Above 0 gives two real roots, 0 gives one repeated root, and below 0 gives two complex roots. The formula is x = (−b ± the square root of the discriminant) / 2a.

EquationDiscriminantSolutions
x^2 − 5x + 6 = 025 − 24 = 1x = 2 and x = 3
2x^2 + 3x − 1 = 09 + 8 = 17x = (−3 ± √17)/4, about 0.2808 and −1.7808
x^2 − 6x + 9 = 036 − 36 = 0x = 3, repeated
x^2 + 2x + 5 = 04 − 20 = −16x = −1 + 2i and x = −1 − 2i

Higher degree equations

For a cubic or higher, the calculator first looks for rational roots. Any rational root p/q has p dividing the constant term and q dividing the leading coefficient. For x^3 − 6x^2 + 11x − 6 = 0 the constant is −6, so it tries 1, 2, 3, 6 and their negatives, and finds 1, 2 and 3. Then the equation factors as (x − 1)(x − 2)(x − 3). If some roots are not rational, they are found as decimals and marked as decimals, because there is no neat exact form to show.

Fractions with x in the bottom

Take (x^2 − 1)/(x − 1) = 2. Clearing the fraction and moving terms gives x^2 − 2x + 1 = 0, whose only root is x = 1. But x = 1 makes the bottom 0, so the original equation is not defined there, and the answer is no solution. The calculator throws out such values and tells you why. For 1/x + 1/(x + 1) = 1 the roots are (1 ± √5)/2, and neither makes a bottom zero.

Simplifying, expanding and factoring

(x^2 − 4)/(x − 2) factors on top as (x − 2)(x + 2), the (x − 2) cancels, and the result is x + 2 for every x except 2. (x + 1)^2 − (x − 1)^2 expands to x^2 + 2x + 1 − x^2 + 2x − 1, which is 4x. Factoring needs one letter and whole-number factors: x^4 − 5x^2 + 4 becomes (x − 1)(x + 1)(x − 2)(x + 2).

Letters as constants

With several letters, degree 1 and 2 equations still work. a x + b = c solved for x gives x = (c − b)/a. Solving a x^2 + b x + c = 0 for x gives the quadratic formula with a, b and c in it.

What it cannot do

It does not solve inequalities, absolute value equations, equations with the unknown inside a root, log or trig function, or equations like 2^x = 8. It does not factor with letters other than one variable. When it meets one of these, it says so instead of guessing.

For a system with two or more equations, use the . For the factors of a plain number, try the factor calculator, and to see an equation as a curve use the graphing calculator.

Questions

Good to know.

What can the algebra calculator do?

It simplifies, expands and factors expressions, and solves linear, quadratic and higher polynomial equations, including ones with fractions. It shows the steps.

Why does it say no solution when I got x = 1?

If x = 1 makes a bottom of a fraction equal to 0, the equation is not defined there, so x = 1 is not allowed. The steps point out which value was thrown out.

Can it solve for a letter other than x?

Yes. Pick it under Solve for. Other letters are kept as constants, so the answer can contain them for degree 1 and 2.

What are complex solutions?

When the discriminant is negative, the roots involve the square root of a negative number, written with i, where i squared is −1. They come in pairs like −1 + 2i and −1 − 2i.

Why are some answers decimals?

Roots of cubics and higher that are not rational have no short exact form here, so they are shown as decimals and marked as such.

How do I type a fraction or a power?

Use / for a fraction and ^ for a power. Put brackets around a longer top or bottom, like (x+1)/(x−1).

Does it solve inequalities?

Not yet. It solves equations only.

Are the answers right?

Each root is put back in the equation and the sides are compared. The engine was also compared against the computer algebra system SymPy on 65 equations and expressions.

Is my input stored?

It stays in your browser. The last thing you typed is remembered on this device only and nothing is sent anywhere.