Math Equation Solver
Solve linear, quadratic and polynomial equations in one unknown with step-by-step working, a graph and a check of each answer. Free, in your browser.
Move everything to one side: 2x^2 - 5x - 3 = 0 (degree 2)
Quadratic formula: discriminant D = b^2 - 4ac = 49
D > 0: two real roots: x = -0.5 and x = 3
Check: f(root) = 0, 0 (should be about 0)
Method, example and limits
Method: both sides are parsed into an expression tree; f(x) = left - right is expanded into a polynomial when possible. Linear: x = -b/a. Quadratic: x = (-b +/- sqrt(b^2 - 4ac)) / 2a. Higher degree: Durand-Kerner iteration. Otherwise: sign-change search with bisection. Worked example: 2x^2 - 5x - 3 = 0 has D = 25 + 24 = 49, so x = (5 +/- 7) / 4, giving x = 3 and x = -0.5.
- One unknown only; powers use ^; implicit multiplication (2x, 3(x+1)) is allowed.
- Functions: sin cos tan asin acos atan sinh cosh tanh sqrt cbrt abs exp ln log log2 and constants pi, e.
About Math Equation Solver
The Math Equation Solver finds x in linear, quadratic and polynomial equations and shows the working step by step, with a graph and a check of every answer.
Step-by-step
Every answer comes with the working, so you can follow the method and learn it.
Polynomials
Degrees 3 to 12, such as x^3 - 6x^2 + 11x - 6 = 0, are solved numerically, and all real roots are listed.
Answers checked
Each solution is put back into the equation so you can see both sides match.
Graph
Real solutions are where the curve crosses zero.
Phone keypad
Tap x^2, brackets and roots instead of hunting for symbols.
Good to know
One equation, one unknown. Systems and inequalities are not supported.
Private
Everything is worked out in your browser. Nothing you type is uploaded.
How to use Math Equation Solver
- Type an equation with one unknown letter, tap an example, or use the maths keypad.
- Choose radians or degrees if the equation uses sin, cos or tan.
- Read the solutions, the check of each answer and the step-by-step working.
- Look at the graph to see where the curve crosses the axis, and zoom or move it if needed.
- Copy the solution or download the steps as a text file.
Help & FAQ
What can it solve?
One equation with one unknown letter (such as x). Linear and quadratic equations get exact step-by-step answers; other polynomials and numeric equations are solved approximately.
What does it not do?
Systems of equations, inequalities, symbolic simplification and calculus. Implicit multiplication such as 2x is supported in simple forms, but write 2*x if you are unsure.
Why do we get complex roots?
A quadratic whose discriminant is negative has no real solutions, so the answers are complex numbers.
Why do we get an approximate answer?
Some equations have no simple formula, so the tool finds a close numerical solution.
How do we type a power?
Use the caret symbol, for example x^2.
How do we solve a quadratic equation step by step?
Type it in any form, for example 2x^2 - 5x - 3 = 0. The tool writes it in standard form, lists a, b and c, works out the discriminant b^2 - 4ac, and then applies the quadratic formula with the plus and the minus sign as separate steps.
What is the discriminant?
For ax^2 + bx + c = 0 the discriminant is D = b^2 - 4ac. If D is positive there are two real solutions, if D is zero there is one repeated solution, and if D is negative there are no real solutions and the two roots are complex.
Does it show a graph?
Yes. The curve is the left side minus the right side, and each real solution is marked where the curve crosses the horizontal axis. You can zoom in and out, move left and right, and press Fit to go back to the solutions.
How do we check that the answer is right?
Under each real solution the tool shows the value of the left side and the right side of your equation at that solution. If the two numbers match, the solution is correct.
Can it solve cubic and higher-degree equations?
Yes, polynomials up to degree 12. From degree 3 upward the roots are found numerically, so they are very close approximations, and both real and complex roots are listed.
Should we use radians or degrees?
It only matters for sin, cos, tan and their inverses. Use degrees if your angles are in degrees, as in most school geometry, and radians otherwise. For example sin(x) = 0.5 gives 30 in degrees and about 0.5236 in radians.
Why does it find only some solutions of sin(x) = 0.5?
Equations with sin, cos or tan have infinitely many solutions. The tool lists the ones it finds between -200 and 200, so the list is not complete outside that range.
Are answers shown as fractions?
When a solution is a simple fraction, the fraction is shown beside the decimal, for example -0.5 (= -1/2). Square roots and other irrational answers are shown as decimals only.
Can we use it on a phone?
Yes. Open the maths keypad to tap powers, brackets, square roots and functions instead of hunting for them on the phone keyboard.
Can it solve two equations with x and y?
No. It solves one equation with one unknown letter. Systems of equations and inequalities are not supported.
Is our equation sent to a server?
No. The calculation runs in your browser and what you type is not uploaded.