Skip to content
Math & Scientific

Finding Roots Calculator

Finding Roots Calculator

Enter the coefficients a, b and c to solve ax^2 + bx + c = 0.

a
b
c

Shows the discriminant D = b^2 – 4ac and every step of the quadratic formula.

Every quadratic equation has an answer, even when it does not look like it at first glance. This Finding Roots Calculator solves any equation of the form ax^2 + bx + c = 0 in a single step. Enter the three coefficients and it finds both roots, shows the discriminant, and walks through the working so you can follow along, check homework, or double-check an exam answer.

What This Calculator Does

A quadratic equation is any equation that can be written as ax^2 + bx + c = 0, where a is not zero. Its roots are the values of x that make the equation true. This calculator takes the three numbers a, b, and c, applies the quadratic formula, and returns both roots. It handles every possible case: two different real roots, one repeated root, and complex roots when the equation has no real solution.

What sets it apart from a bare answer is the working it shows. You get the discriminant first, then each root with the substitution steps written out. If you are learning the quadratic formula, those steps show exactly how each number moves through the formula. If you already know it, they give you a fast way to spot an arithmetic slip in your own hand calculation.

How to Use the Finding Roots Calculator

Start by writing your equation in the standard form ax^2 + bx + c = 0, with everything on one side and zero on the other. Read off the three coefficients carefully, keeping their signs: in x^2 – 5x + 6 = 0, a is 1, b is -5, and c is 6. The sign of each number matters as much as the number itself.

Type a, b, and c into the three boxes. Decimals and negative numbers are all fine; if a term is missing from your equation, its coefficient is zero, so for x^2 + 1 = 0 you would enter a = 1, b = 0, c = 1. Press Calculate and the result appears below: the discriminant first, then the roots with their steps.

If you enter a = 0, the calculator will stop you with a message, because without an x^2 term the equation is linear rather than quadratic and needs a different method. Press Reset any time to clear the boxes and start a fresh equation.

The Quadratic Formula and the Discriminant Explained

The engine behind the calculator is the quadratic formula: x = (-b + sqrt(D)) / (2a) and x = (-b – sqrt(D)) / (2a), where D is the discriminant, D = b^2 – 4ac. The discriminant is computed first because its sign decides what kind of roots you will get before any square roots are taken.

When D is positive, its square root is a real number and you get two different real roots, one using plus and one using minus. When D equals zero, the plus and minus versions collapse into the same value, giving one repeated root equal to -b / (2a). When D is negative, the square root of a negative number appears, which leads to complex roots written with i, the imaginary unit equal to the square root of -1.

Complex roots always come in conjugate pairs: if one root is p + qi, the other is p – qi. They are perfectly valid solutions, and plugging either one back into the equation gives zero, just like real roots do. Many students first meet them here, and this calculator displays them in the familiar a + bi style so there is nothing to decode.

Worked Examples With Full Arithmetic

Four examples cover every case the calculator can meet. Work through them with pencil and paper, then enter the same coefficients above to confirm the matching answers.

Example 1, two real roots: x^2 – 5x + 6 = 0. Here a = 1, b = -5, c = 6. Discriminant: D = b^2 – 4ac = (-5)^2 – 4(1)(6) = 25 – 24 = 1. Since D is positive, sqrt(D) = 1, and x = (-b +/- sqrt(D)) / (2a) = (5 +/- 1) / 2. So x1 = 6 / 2 = 3 and x2 = 4 / 2 = 2. Check by substitution: 3^2 – 5(3) + 6 = 9 – 15 + 6 = 0, and 2^2 – 5(2) + 6 = 4 – 10 + 6 = 0. Both roots satisfy the equation.

Example 2, complex roots: x^2 + 1 = 0. Here a = 1, b = 0, c = 1. Discriminant: D = 0^2 – 4(1)(1) = -4. Since D is negative there are no real roots. Real part = -b / (2a) = 0 / 2 = 0. Imaginary part = sqrt(4) / 2 = 2 / 2 = 1. The roots are x1 = i and x2 = -i. Check: i^2 + 1 = -1 + 1 = 0, and (-i)^2 + 1 = -1 + 1 = 0. This is the classic equation students meet when imaginary numbers are introduced.

Example 3, larger coefficients: 2x^2 + 4x – 6 = 0. Here a = 2, b = 4, c = -6. Discriminant: D = 4^2 – 4(2)(-6) = 16 + 48 = 64. Since D is positive, sqrt(D) = 8, and x = (-4 +/- 8) / (2 x 2) = (-4 +/- 8) / 4. So x1 = 4 / 4 = 1 and x2 = -12 / 4 = -3. Check: 2(1)^2 + 4(1) – 6 = 2 + 4 – 6 = 0, and 2(-3)^2 + 4(-3) – 6 = 18 – 12 – 6 = 0. Notice how the negative c flipped the sign inside the discriminant calculation.

Example 4, a repeated root: x^2 + 2x + 1 = 0. Here a = 1, b = 2, c = 1. Discriminant: D = 2^2 – 4(1)(1) = 4 – 4 = 0. With D equal to zero there is one repeated root: x = -b / (2a) = -2 / 2 = -1. Check: (-1)^2 + 2(-1) + 1 = 1 – 2 + 1 = 0. The equation factors neatly as (x + 1)^2 = 0, which is exactly what a repeated root means: the same factor twice.

How to Interpret Your Results

The first line of the result is the discriminant, and it tells the whole story at a glance. A positive discriminant means two distinct real roots and the parabola crosses the x-axis twice. Zero means one repeated root and the parabola just touches the x-axis at a single point. A negative discriminant means no real roots and the parabola never touches the x-axis at all.

Below that, each root is shown with the substitution that produced it, so you can trace -b, the square root of D, and the division by 2a individually. Decimal roots are rounded to four decimal places, which is plenty for homework and exams while keeping the display readable. If you need more digits, the unrounded value sits halfway between the displayed neighbors, but four places is the standard most teachers expect.

When the roots are complex, read them as a conjugate pair: the two answers share the same real part and have imaginary parts that are opposites. That symmetry is not a coincidence; it is guaranteed by the plus-or-minus in the formula, and it is worth remembering because exam questions often ask you to state the second root once you know the first.

From Roots to Graphs and Factors

Roots are more than answers to an equation; they describe the shape of the parabola y = ax^2 + bx + c. Each real root is an x-intercept, the point where the curve crosses or touches the horizontal axis. Two distinct roots give two crossing points, a repeated root gives one touching point, and no real roots means the whole parabola floats above or below the axis.

The roots also reveal the factored form of the expression. If the roots are r1 and r2, then ax^2 + bx + c = a(x – r1)(x – r2). For the first worked example, x^2 – 5x + 6 = (x – 3)(x – 2), and multiplying the brackets back out returns the original expression. Factoring this way is often the fastest route to solving inequalities or simplifying algebraic fractions.

There is one more hidden landmark the roots give you for free: the vertex of the parabola sits exactly halfway between the two roots, at x = -b / (2a). For x^2 – 5x + 6 the roots are 2 and 3, so the vertex is at x = 2.5. Since a is positive the parabola opens upward, making that vertex the minimum point. Sketching with the roots and the vertex marked is the quickest reliable way to draw any quadratic.

Common Mistakes to Avoid

The single most common error is mishandling the sign of b. The formula needs -b, so if b is -5 then -b is +5, not -5. Students who skip this flip get roots with the wrong sign on every answer. Writing -b out explicitly before substituting is the simplest fix.

Next is dividing only part of the numerator by 2a. The entire expression -b +/- sqrt(D) sits over 2a, not just the square root part. A missing bracket here silently halves or doubles half your answer. Related to this is forgetting that the denominator is 2 times a: with a = 2 you divide by 4, not 2.

Sign errors inside the discriminant are another classic. The term is minus 4ac, so when c is negative, subtracting a negative becomes addition, as in example 3 where -4(2)(-6) became +48. Rushing this step is how correct-looking work produces a wrong discriminant and therefore wrong roots.

Finally, remember that a missing term means a zero coefficient, not a missing input. In x^2 + 1 = 0 there is no x term, so b = 0. And never enter a = 0 expecting a quadratic answer: with no x^2 term the equation is linear, and the quadratic formula does not apply.

Frequently Asked Questions

1. What do a, b, and c stand for?

They are the coefficients in the standard quadratic form ax^2 + bx + c = 0. The number a multiplies x^2, b multiplies x, and c is the constant term with no x attached. In 2x^2 – 3x + 5 = 0, a = 2, b = -3, and c = 5.

2. What happens if I enter a = 0?

The calculator shows an error message. With a = 0 the x^2 term disappears and the equation becomes linear, like 3x + 2 = 0, which is solved by simple rearrangement instead of the quadratic formula.

3. What does the discriminant tell me?

It tells you how many roots there are and what kind. A positive discriminant means two different real roots, zero means one repeated real root, and a negative discriminant means two complex roots and no real ones.

4. Can roots be fractions or decimals?

Yes, very often. Most quadratics do not have neat whole-number roots. The calculator shows decimal roots rounded to four places, which is enough precision for school, college, and practical work.

5. What does a negative discriminant mean?

It means the equation has no real-number solutions. The parabola never crosses the x-axis. The solutions still exist as a pair of complex numbers involving i, and the calculator displays both of them.

6. What are complex roots, exactly?

Complex roots involve i, the imaginary unit defined by i^2 = -1. They always appear as a conjugate pair like 2 + 3i and 2 – 3i. They are genuine solutions: substituting either one into the equation gives zero.

7. What is a repeated root?

A repeated root happens when the discriminant is zero, so the plus-or-minus in the formula gives the same value twice. Graphically the parabola touches the x-axis at exactly one point instead of crossing it.

8. How can I check whether my roots are correct?

Substitute each root back into the original equation. If the left side simplifies to zero, the root is correct. For x^2 – 5x + 6 = 0 with root 3: 9 – 15 + 6 = 0, which confirms it.

9. Does the order of the two roots matter?

Not mathematically; the pair is the same set either way. By convention the calculator lists x1 as the root using plus the square root and x2 as the one using minus, so the display is consistent every time.

10. My equation is not set equal to zero. Can I still use this?

Yes, after one rearrangement step. Move every term to the left side so the right side is zero, then read off a, b, and c. For example, x^2 + 3x = 10 becomes x^2 + 3x – 10 = 0, giving a = 1, b = 3, c = -10.

11. How do I solve something like x^2 = 9?

Rewrite it as x^2 – 9 = 0 and enter a = 1, b = 0, c = -9. The discriminant is 36, the square root is 6, and the roots are (0 + 6) / 2 = 3 and (0 – 6) / 2 = -3.

12. Why is the denominator 2a and not just 2?

Because the coefficient a scales the whole equation. Dividing by 2 alone only works when a = 1. For 2x^2 + 4x – 6 = 0 you must divide by 2 x 2 = 4 to get the correct roots 1 and -3.

13. What if my equation is missing the x term, like 3x^2 – 2 = 0?

A missing term simply has a coefficient of zero. Enter a = 3, b = 0, c = -2. The calculator handles zero coefficients normally and returns both roots.

14. How precise are the decimal answers?

Results are rounded to four decimal places. That is the standard level of precision for most coursework and is more than enough to verify hand calculations or plot points on a graph.

15. Where are quadratic roots actually used?

Everywhere motion and area are involved. Physicists use them for projectile paths, engineers for stress and circuit calculations, economists for profit maxima, and computer graphics for curves and collisions. The same formula solves them all.

Final Thoughts

Finding the roots of a quadratic stops being a chore the moment the discriminant tells you what to expect. This Finding Roots Calculator gives you the roots, the discriminant, and every step of the working in one place, whether the answers are whole numbers, decimals, or complex pairs. Use it to check your hand calculations, explore how changing a coefficient moves the roots, and build the intuition that turns the quadratic formula from a memorized chant into a tool you truly own.