Equation Solver
Solve linear and quadratic equations.
Auto-detect treats it as quadratic when a ≠ 0, otherwise linear (b·x + c = 0).
x₁ = 2, x₂ = 1
- Equation: 1x² + -3x + 2 = 0
- Discriminant D = b² − 4ac = -3² − 4·1·2 = 1
- D > 0 → two distinct real roots.
- x = (−b ± √D) / 2a = (3 ± 1) / 2
- x₁ = 2
- x₂ = 1
How to use Equation Solver
What this tool does
The equation solver works out the solutions to linear equations of the form
ax + b = c and quadratic equations of the form ax² + bx + c = 0. You enter
the coefficients, choose the equation type or let the tool detect it, and it
returns the answer along with a clear, line-by-line account of how it got
there. It loads with a worked quadratic — x² − 3x + 2 = 0 — so the layout and
the style of the steps are visible immediately.
For quadratics the tool always shows the discriminant and names the case — two real roots, one repeated root, or a complex conjugate pair — so you learn why the answer looks the way it does, not just what it is. For linear equations it shows the subtract-then-divide steps, and it correctly handles the edge cases where there is no solution or every value works.
When you would use it
Students reach for it to check homework: solve the equation by hand, then confirm the roots and compare your working against the steps shown. It is equally useful the other way round — if your answer disagrees, the step list points to where the two paths diverge. Teachers can use it to generate clean worked examples, since the discriminant line and the method labels mirror how quadratics are taught.
Outside the classroom, linear and quadratic equations turn up whenever you solve for an unknown in a formula: rearranging a pricing or break-even equation, finding when a thrown object reaches a height, or back-solving a physics relationship. The solver gives you the value quickly and shows the reasoning so you can trust it.
How to use it
- Choose Linear, Quadratic, or leave it on Auto-detect.
- Type the coefficients. For a linear equation
ax + b = c, fill a, b and c. For a quadraticax² + bx + c = 0, fill a, b and c. - Press Solve.
- Read the headline answer, then the numbered steps below it — for a quadratic that includes the discriminant and the substitution into the quadratic formula.
- Use Copy solution to copy the answer and the full working as text.
How to read the result
A linear result is a single value of x. A quadratic result is one of three
shapes: two distinct values when the discriminant is positive, a single
repeated value when it is exactly zero, or a complex pair written as
p + qi and p − qi when it is negative. The steps spell out the method: for
a quadratic, the discriminant b² − 4ac is computed first, then the quadratic
formula x = (−b ± √D) / 2a is applied.
If you only need a parabola’s roots without the linear case, the dedicated quadratic equation solver is a focused alternative. To see the equation as a curve, plot it with the graph plotter, and to work a simple linear equation out one explained step at a time, use the algebra step-by-step tool.
Privacy
Every part of this tool runs in your browser. The coefficients you type are processed by JavaScript on your own device — there is no upload, no logging and no storage between visits. Refreshing the page restores the sample equation. Because nothing depends on a server, the solver keeps working offline once the page has loaded.
Frequently asked questions
What is the difference between a linear and a quadratic equation?
What is the discriminant and why does it matter?
What does it mean when the answer has an i in it?
Can an equation have no solution or infinitely many?
Is my equation sent anywhere when I solve it?
Related tools
Algebra Step-by-Step
Solve basic algebra with step-by-step working.
Graph Plotter
Plot equations on an interactive graph.
Quadratic Equation Solver
Solve quadratic equations, including complex roots.
Matrix Calculator
Add, multiply, and invert matrices.
Geometric Shape Calculator
Calculate area and perimeter for common shapes.
Long Division Shower
See long division worked out step by step.