How to use the Quadratic Equation Solver
- Write your equation in the standard form ax² + bx + c = 0, with everything moved to one side.
- Enter the coefficients a, b and c. Keep the signs: for x² − 5x + 6 = 0, b = −5. Decimals and fractions like 1/2 work.
- Read the roots in exact surd form and as decimals, with the discriminant and the nature of the roots. Everything updates as you type.
- Follow the steps, the factorisation (for rational roots), the vertex and the graph to check your own working.
The quadratic formula
A quadratic equation has the standard form ax² + bx + c = 0 with a ≠ 0. Its roots are given by the quadratic formula, which Indian textbooks often call Sridharacharya's formula after the mathematician who described the method of completing the square. It is the method used in the Quadratic Equations chapter of NCERT Class 10.
The calculator works with exact fractions. Decimal or fractional coefficients are first turned into whole numbers by multiplying through, which does not change the roots. The surd is then simplified, so √68 becomes 2√17, and any common factor is cancelled. You get the answer in the form your teacher expects, such as (−3 ± √17)/4, along with decimals.
Nature of the roots
| Discriminant | Nature of roots | Graph |
|---|---|---|
| D > 0 and a perfect square | Two distinct real roots, both rational | Crosses the x-axis twice |
| D > 0, not a perfect square | Two distinct real irrational roots (conjugate surds) | Crosses the x-axis twice |
| D = 0 | Two equal real roots, x = −b/2a | Touches the x-axis at the vertex |
| D < 0 | No real roots; two complex conjugate roots | Does not meet the x-axis |
The rational/irrational split assumes a, b and c are rational, which is always true for the numbers you type here. Class 10 answers for D < 0 say "no real roots". Class 11 introduces i = √−1 and writes the complex roots, as shown above.
Worked example 1: irrational roots
Solve 2x² + 3x − 1 = 0. Here a = 2, b = 3, c = −1.
- D = 3² − 4(2)(−1) = 9 + 8 = 17. Since 17 > 0 and is not a perfect square, the roots are real, distinct and irrational.
- x = (−3 ± √17) / 4, so x ≈ 0.2808 or x ≈ −1.7808.
- Check: the sum of the roots is −b/a = −3/2 and the product is c/a = −1/2.
Worked example 2: factorisation
Solve 6x² − 5x − 6 = 0. D = 25 + 144 = 169 = 13², a perfect square, so the quadratic factorises. Split the middle term by finding two numbers with product 6 × (−6) = −36 and sum −5. They are −9 and 4.
So x = 3/2 or x = −2/3. The calculator shows these splitting numbers automatically whenever the roots are rational.
Vertex, axis and the graph
The graph of y = ax² + bx + c is a parabola. It opens upwards if a > 0 and downwards if a < 0. Its turning point, the vertex, is at
The vertical line x = h is the axis of symmetry, and the two real roots always sit the same distance either side of it. For 2x² + 3x − 1 the vertex is (−3/4, −17/8), which is the minimum value of the expression. To plot the graph alongside other curves, use the graphing calculator.
Common mistakes
- Dropping the sign of b or c. In x² − 5x + 6 = 0, b is −5, so −b is +5.
- Dividing only √D by 2a. The whole numerator −b ± √D is divided by 2a.
- Not writing the equation in standard form first. For x² = 4x − 3, move every term to one side: x² − 4x + 3 = 0.
- Forgetting a ≠ 0. If a = 0 the equation is linear, bx + c = 0, with a single root −c/b. The calculator switches to this case automatically.
Exam tips
- "Find k for equal roots" means set D = 0 and solve for k. "Real roots" means D ≥ 0.
- Use α + β = −b/a and αβ = c/a to form a new equation from given roots: x² − (α + β)x + αβ = 0.
- For JEE, remember the roots of a quadratic with rational coefficients come in conjugate pairs: if 2 + √3 is a root, so is 2 − √3.
- Pairs of linear equations need a different method. Try the system of equations solver.
Frequently asked questions
How do you solve a quadratic equation using the formula?
What does the discriminant tell you?
What if the discriminant is negative?
Why is the quadratic formula called Sridharacharya's formula?
When can a quadratic be factorised?
What happens if a = 0?
How do you find the vertex of a parabola?
Last reviewed November 2026. Results are estimates for information only — see our disclaimer.