01 / Simplify
Simplify, expand, factor
Brackets multiplied out, fractions combined and cancelled, and the factored form side by side.
Free tool
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 →Steps
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
01 / Simplify
Brackets multiplied out, fractions combined and cancelled, and the factored form side by side.
02 / Solve
Linear, quadratic and higher equations, with exact roots, complex roots and fractions with x in the bottom.
03 / Check
Each root is put back into the equation, and the two sides are graphed with the solutions marked.
Guide
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.
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.
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.
| Equation | Discriminant | Solutions |
|---|---|---|
| x^2 − 5x + 6 = 0 | 25 − 24 = 1 | x = 2 and x = 3 |
| 2x^2 + 3x − 1 = 0 | 9 + 8 = 17 | x = (−3 ± √17)/4, about 0.2808 and −1.7808 |
| x^2 − 6x + 9 = 0 | 36 − 36 = 0 | x = 3, repeated |
| x^2 + 2x + 5 = 0 | 4 − 20 = −16 | x = −1 + 2i and x = −1 − 2i |
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.
|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.
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.
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 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.
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 this | Answer | Interval notation |
|---|---|---|
| 2x + 3 > 7 | x > 2 | (2, ∞) |
| |2x + 1| ≥ 7 | x ≤ −4 or x ≥ 3 | (−∞, −4] ∪ [3, ∞) |
| x^2 + 1 < 0 | No solution | empty |
| x^2 ≤ 0 | x = 0 | {0} |
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.
(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.
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.
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
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.
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.
Yes. Pick it under Solve for. Other letters are kept as constants, so the answer can contain them for degree 1 and 2.
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.
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.
Use / for a fraction and ^ for a power. Put brackets around a longer top or bottom, like (x+1)/(x−1).
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.
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.
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.
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.
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).
It stays in your browser. The last thing you typed is remembered on this device only and nothing is sent anywhere.