Quadratic Equation Solver
Solve ax^2 + bx + c = 0 and get both roots, real or complex, the discriminant, the vertex and the factored form.
These tools are for study and quick checking. A result is only as good as the numbers you enter and the simplifying assumptions in the formula. For published, regulated or safety-critical work, check it against a trusted source or an instrument.
How it works
- Enter your values in the boxes. Where a box has a unit beside it, check the unit before you read the answer.
- The answer updates as you type, so there is no button to press.
- Use Copy results to keep the answer. Check the formula and its limits below if the result will go into a report or an experiment.
The formula
x = (-b plus or minus sqrt(b^2 - 4ac)) / 2a
Frequently asked questions
What does the discriminant tell me?
Above zero gives two real roots, zero gives one repeated root, and below zero gives two complex roots.
What if a is zero?
Then it is not quadratic, but a linear equation. The tool gives that root.
Is what I enter sent anywhere?
No. The calculation is done in your browser, so your numbers are not sent to a server or saved.
Related tools
Polynomial Calculator
Add, subtract, multiply, differentiate, integrate or evaluate polynomials from their coefficients, and find the roots of the first one.
Equation Solver
Find the real roots of f(x) = 0, or of left = right, for any expression in x within a range you choose. Works for cubics, trig and more.
Algebra Calculator
Solve a linear equation in x, such as 3x + 7 = 2x - 5, and check the solution by substituting it back.