quadratic root calculator

Equation form: ax2 + bx + c = 0

Tip: Try a=1, b=-3, c=2 to get roots x=1 and x=2.

Enter values for a, b, and c, then click Calculate Roots.

What this quadratic root calculator does

This tool solves equations in the standard quadratic form: ax2 + bx + c = 0. You provide the three coefficients, and the calculator returns the root(s), including complex roots when needed. It also reports the discriminant, which tells you the nature of the solutions.

Whether you are a student reviewing algebra, a teacher preparing examples, or someone brushing up on math, this calculator gives fast and reliable results without requiring manual arithmetic.

Quick refresher: quadratic roots and the formula

For a quadratic equation where a ≠ 0, roots are found with the quadratic formula:

x = (-b ± √(b2 - 4ac)) / (2a)

The expression b2 - 4ac is called the discriminant (usually written as Δ). The discriminant controls how many real solutions exist.

Discriminant interpretation

  • Δ > 0: two distinct real roots
  • Δ = 0: one repeated real root
  • Δ < 0: two complex conjugate roots

How to use the calculator

  1. Enter a value for a, b, and c.
  2. Click Calculate Roots.
  3. Read the equation summary, discriminant, and roots shown in the result box.

The calculator also handles edge cases:

  • If a = 0, it automatically treats the expression as a linear equation bx + c = 0.
  • If a = 0 and b = 0, it reports whether there is no solution or infinitely many solutions.

Worked examples

Example 1: Two real roots

Equation: x2 - 3x + 2 = 0
Here, a=1, b=-3, c=2
Discriminant: Δ = 9 - 8 = 1
Roots: x = 1 and x = 2

Example 2: One repeated root

Equation: x2 - 6x + 9 = 0
Discriminant: Δ = 36 - 36 = 0
Root: x = 3 (double root)

Example 3: Complex roots

Equation: x2 + 4x + 8 = 0
Discriminant: Δ = 16 - 32 = -16
Roots: x = -2 + 2i and x = -2 - 2i

Common mistakes to avoid

  • Forgetting that a cannot be zero for a true quadratic equation.
  • Sign errors in b2 - 4ac, especially when b or c is negative.
  • Dropping parentheses around numerator terms in the formula.
  • Rounding too early; keep precision until the final step.

Why this matters beyond homework

Quadratic models appear in many real-world settings: projectile motion, area optimization, business revenue curves, and computer graphics. Understanding roots helps identify key points such as intercepts, turning behavior, and solution boundaries.

Frequently asked questions

Can this calculator solve non-quadratic equations?

It is designed for quadratic form. If a=0, it can still solve the reduced linear equation.

What are complex roots?

Complex roots occur when the discriminant is negative, so the square root operation involves a negative number. Results are written using i, where i2 = -1.

How accurate are the displayed values?

Results are shown with practical decimal precision for readability. Internally, JavaScript numeric precision is used.

🔗 Related Calculators