Equation Solver
Solve algebraic equations for a variable.
About this tool
Type an equation with an = sign and get its real solutions. x² − 4 = 0 has solutions x = −2 and x = 2.
How to use
How it works
The tool moves everything to one side. Polynomial equations are solved with the Durand-Kerner method, which finds every root whatever its size. Other equations, such as sin(x) = 0.5, are scanned for sign changes between −10,000 and 10,000 and each root is refined by bisection, so no tidy formula is needed. Fractions work too: 2*x/3 = 4 gives x = 6.
Solve f(x) = g(x) ⇔ find x with f(x) − g(x) = 0
Worked example
A cubic with three roots
- Input
- x^3 - 6*x^2 + 11*x - 6 = 0
- Output
- x = 1, x = 2, x = 3
- Walkthrough
- The cubic factors as (x − 1)(x − 2)(x − 3). The roots sum to 6, matching −b/a = 6.
Limitations
- Only real solutions are found. x² + 1 = 0 has none and is reported as having no real roots.
- Polynomials return roots of any size (x − 100 = 0 gives x = 100). A repeated root, such as (x − 1.05)² = 0, is listed once.
- Equations that are not polynomials are searched between −10,000 and 10,000, so a root outside that range is not reported.
- Periodic equations list the solutions found across that whole range, so sin(x) = 0.5 returns a long list rather than one value.
Questions
What is x if 3x + 7 = 22?
What are the solutions of x² = 2?
What are the solutions of x² − 4 = 0?
Why does x² + 1 = 0 have no answer?
Can it solve x³ − 60x² − x + 60 = 0?
Features
- Polynomial and transcendental equations
- Real roots of any size for polynomials
- Runs in your browser
Guides
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Variables on both sides — example
Khan Academy
Worked example to check against solver output.
Watch on YouTubeVectors | Essence of linear algebra
3Blue1Brown
Visual vectors when algebra tools move toward matrices.
Watch on YouTube
- Quadratic Equations
Math is Fun
Factoring and formula methods next to quadratic solvers.
- Data Index
Math is Fun
Stats and probability explainers for data tools.