Sarkari Tools / Student toolsAll new tools →
Science

Quadratic Equation Solver

Type a, b and c and get both roots, even when the discriminant is negative.

How to use this tool

Enter the coefficients a, b and c in ax² + bx + c = 0, including a minus sign for negative terms.

How it works

Discriminant D = b² − 4ac; roots = (−b ± √D) ÷ (2a). A negative D produces complex conjugate roots.

Example

For a = 1, b = −5 and c = 6, D = 1 and the roots are 3 and 2.

Limits and assumptions

If a is zero, the tool solves the resulting linear equation. Displayed answers are rounded; very differently sized coefficients can reduce floating-point precision.

Common questions

What does a negative discriminant mean?

The parabola does not cross the x-axis, so there are no real roots. The tool shows the two complex roots in the form p ± qi.

How do I enter an equation like 2x² = 3x + 5?

Move every term to one side first: 2x² − 3x − 5 = 0, so a = 2, b = −3 and c = −5.

Why is there only one root?

When the discriminant is zero, both roots are equal, so the parabola touches the x-axis at a single point.

Common mistakes

More questions

How do I check the roots?

Substitute each root back into ax² + bx + c. The result should be zero, or very close to it because of rounding.

What is the sum and product of the roots?

The sum is −b ÷ a and the product is c ÷ a. For x² − 5x + 6 = 0 they are 5 and 6.

Can it factorise the equation?

It gives the roots, from which factors follow: roots 3 and 2 mean x² − 5x + 6 = (x − 3)(x − 2).

Related tools

About Sarkari Tools and its calculations