Black Friday: 50% off every paid plan with code BF50. Ends 5 December.

See prices

Free tool

Algebra calculator, simplify and solve with steps.

Type an expression to simplify, expand or factor it, an equation to solve, or an inequality like x^2 − 5x + 6 < 0. Equations can be linear, quadratic or higher, have fractions, absolute values, square or cube roots, logs, powers like 2^x, or sin, cos and tan of a straight line. You get exact answers, interval notation, a graph, a number line and the steps. No sign-up, and it runs in your browser.

Need a custom tool, app or website? Contact us 

Examples

Auto solves when there is an = sign or an inequality sign, and simplifies when there is not. Write 1/(2x) with brackets. Bars work for absolute value, like |x − 3|. A log with another base is written log3(x) or log(x, 3). Angles for sin, cos and tan are in radians.

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, clears fractions that have x in the bottom, and solves equations with absolute values, roots, logs, powers like 2^x and simple trig, as well as inequalities with the answer in interval notation and on a number line.

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 or an inequality sign means solve, and neither 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. A graph shows the left and right side, with dots where they meet. For an inequality there is also a number line with the solution drawn. Copy answer copies the result, and Copy link copies a link that opens the same input.

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.

Absolute value equations

|2x + 1| = x + 4 splits into two cases. If 2x + 1 is 0 or more, |2x + 1| is 2x + 1, so 2x + 1 = x + 4 and x = 3. If 2x + 1 is negative, |2x + 1| is −(2x + 1), so −2x − 1 = x + 4 and x = −5/3. Both answers are put back in the original: |7| = 7 for x = 3, and |−7/3| = 7/3 for x = −5/3, so both stay. A case answer that fails this check is thrown out and the steps say so.

Equations with square roots

For √(x + 3) = x − 3, get the root alone, then square both sides: x + 3 = (x − 3)^2, which gives x^2 − 7x + 6 = 0 and x = 1 or x = 6. Squaring can add answers that do not belong, so each one is tried in the original. At x = 6, √9 = 3 and 6 − 3 = 3, which works. At x = 1, √4 = 2 but 1 − 3 = −2, so x = 1 is thrown out. Cube roots work the same way with cubing.

Logs and powers like 2^x

log(x) + log(x − 3) = 1 combines into one log, log(x(x − 3)) = 1, which means x(x − 3) = 10, so x^2 − 3x − 10 = 0 and x = 5 or x = −2. A log needs a positive input, and −2 makes x and x − 3 negative, so only x = 5 stays. For powers, 2^(x + 1) + 2^x = 12 becomes 3 × 2^x = 12, so 2^x = 4 and x = 2. When a power is not a whole power of the base, the answer is a log: 3^(x + 1) = 5 gives x = ln(5)/ln(3) − 1, about 0.4650. A quadratic hiding in powers such as 4^x − 3·2^x − 4 = 0 is solved by letting u = 2^x, and since 2^x is never negative only u = 4 counts, so x = 2. Log answers that are really a neat fraction are shown as that fraction.

Trig equations

Trig is supported when one sin, cos or tan of a straight line sits alone with numbers around it, like sin(x) = 1/2 or tan(2x) = √3. The cards list the solutions from 0 up to (not including) 2π, in radians, and one card gives the general solution with k a whole number: for sin(x) = 1/2 that is π/6 + 2πk and 5π/6 + 2πk. Several trig terms together, such as sin(x) + cos(x) = 1, are not solved.

Inequalities

Type the inequality with <, >, <= or >=. The calculator finds every point where the two sides are equal or where something is undefined (a bottom of 0, the inside of a log or root at its limit), then tests a value between those points and at the points. For x^2 − 5x + 6 < 0 the points are 2 and 3, only the stretch between them works, and the answer is 2 < x < 3, or (2, 3). For (x − 1)/(x + 2) > 0 the points are −2 and 1, and the answer is x < −2 or x > 1, which is (−∞, −2) ∪ (1, ∞). A chain such as 1 < 2x + 3 ≤ 9 gives −1 < x ≤ 3. Circles on the number line are filled when the end is included and open when it is not.

Type thisAnswerInterval notation
2x + 3 > 7x > 2(2, ∞)
|2x + 1| ≥ 7x ≤ −4 or x ≥ 3(−∞, −4] ∪ [3, ∞)
x^2 + 1 < 0No solutionempty
x^2 ≤ 0x = 0{0}

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 finds whole-number factors: x^4 − 5x^2 + 4 becomes (x − 1)(x + 1)(x − 2)(x + 2), and x^4 + 4 becomes (x^2 − 2x + 2)(x^2 + 2x + 2). With two or more letters it takes out a common factor, factors polynomials where every term has the same total degree (x^2 − y^2 = (x − y)(x + y), and x^3 + y^3 = (x + y)(x^2 − xy + y^2)), and groups terms, so ab + ac + bd + cd becomes (a + d)(b + c). Other factorings with several letters are left as they are.

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 equations that mix kinds in one go, such as x + ln(x) = 0 or sin(x) + cos(x) = 1, and it says so instead of guessing. Powers like x^(2/3), logs inside logs, and trig functions that are not a straight line inside are not solved. Inequalities use one letter and do not include trig. Factoring with several letters covers common factors, same-degree polynomials and grouping only. Equations with a letter other than the one being solved for are limited to degree 1 and 2. An even power inside a log is read as 2 ln|x|, so ln(x^2) = 4 gives both x = e^2 and x = −e^2.

For a system with two or more equations, use the system of equations calculator. For a quadratic on its own, the quadratic formula calculator adds completing the square and factoring. 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, absolute values, roots, logs, powers like 2^x and simple trig, as well as inequalities. 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?

Yes. Type it with <, >, <= or >=. The answer is given as an inequality and in interval notation, with a number line. It works for polynomials, fractions, absolute values, roots, logs and powers of a number.

Why did it throw out one of my answers?

Squaring both sides, splitting an absolute value into cases, and combining logs can add answers that do not fit the original. Every answer is put back into the original equation as a number, and the ones that fail are listed with the reason.

Which equations are not solved?

Equations that mix kinds, like x + ln(x) = 0, powers with a fraction such as x^(2/3), and equations with several trig terms. You get a plain message instead of a guess.

Are sin and cos in radians?

Yes. Answers are given as multiples of π when they are exact, and the list covers 0 up to 2π with the general solution on its own card.

Are the answers right?

Each root is put back in the equation and the sides are compared. On 24 Oct 2026 the solver was compared against the computer algebra system SymPy on 66 equations and 38 expressions, and the few differences were checked by hand (they came from logs of negative numbers, which SymPy allows and this page does not).

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.

Listed on

Listed on JustMacAppsMotionShine on Mac App IndexMotionShine on ScrollLaunchMotionShine featured on StartupBaseFeatured on FazierFeatured on Twelve ToolsMotionShine - Featured on Smol Launch