quadratic equation calculator

If you need to solve an equation in the form ax² + bx + c = 0, this quadratic equation calculator gives you immediate results, including real roots, repeated roots, or complex roots. It also explains key values like the discriminant and axis of symmetry so you can understand the math—not just the final number.

Quadratic Equation Solver

Enter coefficients for ax² + bx + c = 0:

What is a quadratic equation?

A quadratic equation is a second-degree polynomial equation, which means the highest power of x is 2. The standard form is:

ax² + bx + c = 0

  • a is the quadratic coefficient (must be non-zero for a true quadratic).
  • b is the linear coefficient.
  • c is the constant term.

These equations appear everywhere: projectile motion, optimization, engineering design, economics, and computer graphics.

How this calculator solves the equation

The calculator uses the quadratic formula:

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

The value inside the square root, b² - 4ac, is called the discriminant. It tells you how many roots exist and what type they are.

Discriminant outcomes

  • D > 0: two distinct real roots.
  • D = 0: one repeated real root (also called a double root).
  • D < 0: two complex conjugate roots.

Step-by-step usage

1) Enter coefficients

Type values for a, b, and c in the input fields. Decimals and negative numbers are supported.

2) Click “Calculate Roots”

The tool instantly computes roots and displays helpful supporting values, including the discriminant and parabola features.

3) Interpret the result

You’ll see whether the roots are real or complex, and if the equation is actually linear when a = 0.

Example problems

Example 1: x² - 5x + 6 = 0

Here, a = 1, b = -5, c = 6. The discriminant is 25 - 24 = 1, which is positive, so there are two real roots: x = 2 and x = 3.

Example 2: x² + 2x + 1 = 0

The discriminant is 4 - 4 = 0, so the equation has one repeated root: x = -1.

Example 3: x² + x + 1 = 0

The discriminant is 1 - 4 = -3, so the roots are complex: x = (-1 ± i√3)/2.

Why this is useful in practice

  • Students: verify homework and study the structure of solutions.
  • Teachers: generate quick demonstrations in class.
  • Engineers and analysts: solve optimization and modeling equations faster.
  • Developers: test equations for simulations, physics, and animations.

Common mistakes to avoid

  • Forgetting that a = 0 means the equation is not quadratic.
  • Sign errors when entering negative b or c.
  • Misreading the discriminant and expecting real roots from a negative value.
  • Rounding too early in multi-step calculations.

Final thoughts

A reliable quadratic equation calculator should do more than return a number—it should help you understand why the answer looks the way it does. Use this tool to solve equations quickly, then review the discriminant and root type to build stronger intuition about quadratic functions and parabolas.

🔗 Related Calculators

🔗 Related Calculators