Algebra Calculator

Type an equation and get the answer with every step shown. It solves linear and quadratic equations, higher-degree polynomials and systems of up to three equations, and it simplifies or expands expressions.

United States Reviewed November 2026By Manikant 3 min read
Try an example:
Answer
—

Step-by-step

Private. Calculated in your browser.

How to use it

Animated walkthrough of the Algebra Calculator
Quick walkthrough
  1. Type an equation, or an expression without an equals sign.
  2. Use ^ for powers and ; between equations in a system.
  3. Press Solve, or tap one of the examples.
  4. Read the answer, the step-by-step working and the graph.

In short

  • Write powers with ^ (x^2). Multiplication can be implied: 2x and 3(x − 2) both work.
  • Separate equations with a semicolon to solve a system: 2x + y = 7; x − y = 2.
  • Quadratics show the discriminant, both roots, the factored form when one exists, and complex roots when they don’t.
  • Type an expression with no equals sign to simplify or expand it: (x + 3)^2 becomes x^2 + 6x + 9.

What you can type

ProblemExample input
Linear equation3(x - 2) = 2x + 7
Quadratic equationx^2 - 5x + 6 = 0
Cubic or higherx^3 - 6x^2 + 11x - 6 = 0
System of equationsx + y + z = 6; x - y = 0; 2z = 6
Roots and fractionssqrt(x) + 2 = 6
Expand or simplify(x + 1)(x - 1)

Use ^ for powers, sqrt() for square roots, pi and e for the constants, and brackets wherever you would write them on paper.

Solving linear equations

Get the variable on its own, doing the same thing to both sides at every step.

3(x − 2) = 2x + 7
3x − 6 = 2x + 7 expand the bracket
3x − 2x = 7 + 6 move x terms left, numbers right
x = 13

Check by substituting back: 3(13 − 2) = 33, and 2(13) + 7 = 33. Both sides match, so the answer is right.

Solving quadratic equations

Rearrange into the form ax² + bx + c = 0, then apply the quadratic formula:

x = (−b ± √(b² − 4ac)) ÷ 2a

The part under the square root, b² − 4ac, is the discriminant. It tells you what kind of answers to expect before you finish:

  • Positive: two different real roots. If it is a perfect square, the quadratic factorises neatly.
  • Zero: one repeated root. The parabola just touches the x-axis.
  • Negative: no real roots, only two complex ones.
Worked example

2x² − 7x + 3 = 0, so a = 2, b = −7, c = 3.
Discriminant: 49 − 24 = 25. That is a perfect square, so expect a clean factorisation.
x = (7 ± 5) ÷ 4, giving x = 3 or x = 1/2.
Factored: 2(x − 3)(x − 1/2) = (x − 3)(2x − 1).

Systems of equations

With two equations and two unknowns, elimination is usually quickest. Add or subtract the equations so one variable cancels out.

2x + y = 7
x − y = 2
Add them: 3x = 9 → x = 3
Substitute: 3 − y = 2 → y = 1

The calculator uses Gaussian elimination, which is the same idea applied systematically. It also tells you when a system has no solution (parallel lines) or infinitely many (the same line written twice).

Cubic and other equations

There is a formula for cubics, but it is long and rarely used by hand. The calculator finds all roots of polynomials of degree 3 and higher numerically, to about ten decimal places, and lists real and complex roots separately. Equations with square roots or other functions are solved by searching for sign changes and narrowing in on each one.

Questions people ask

Is this algebra calculator free?
Yes, completely. There is no sign-up, and every solution shows the steps.
Can it solve equations with two variables?
Yes, if you give it two equations. Separate them with a semicolon or a new line, for example 2x + y = 7; x − y = 2.
Does it show complex roots?
Yes. When the discriminant is negative, it shows both roots in the form a ± bi. For example, x² + 2x + 5 = 0 gives x = −1 ± 2i.
Why is my answer shown as a decimal?
Some equations have no neat exact answer. When the result is a simple fraction, it is shown as one. Otherwise you get a decimal to high precision.
Can I use it for homework?
It works best for checking your own working. Solve the problem first, then compare each step with the calculator’s.

Sources and methodology

Last reviewed November 2026 by Manikant. Spotted something out of date? Tell us.