Calculators.Life Calculator
Math

Quadratic Formula Calculator

Input Parameters

Scenarios
The coefficient of x² (cannot be 0)
The coefficient of x
The constant term

Computed Results

Roots (x)
7.316625, 0.683375
Root 1 (x₁)7.316625
Root 2 (x₂)0.683375
Discriminant (Δ)44
Nature of RootsTwo distinct real roots

The quadratic calculator determines the roots of a quadratic equation in the standard form ax² + bx + c = 0. By evaluating the coefficients and the discriminant, it identifies whether the equation has two distinct real roots, one real root, or two complex roots, and plots the resulting parabola.

Example Quadratic Calculations

Understanding how different coefficients affect the roots is easier with concrete examples. Here are a few verified scenarios based on the standard quadratic equation.

Standard Equation with Two Real Roots

If you have an equation where Coefficient a is 1, Coefficient b is -8, and Constant c is 5, the discriminant is 44. Because the discriminant is positive, the calculator determines there are two distinct real roots: 7.316625 and 0.683375.

Equation with Complex Roots

When the discriminant is negative, the roots include imaginary numbers. For example, setting a to 2, b to 4, and c to 10 yields a discriminant of -64. This results in two complex roots: -1 + 2i and -1 - 2i.

Invalid Input (Linear Equation)

The coefficient 'a' defines the x² term. If you enter 0 for a, 5 for b, and 10 for c, the calculator returns an error because the equation is linear, not quadratic. The quadratic formula requires division by 2a, which is mathematically undefined when a is 0.

The Quadratic Formula

The calculator uses the standard quadratic formula to solve for x:

x = (−b ± √(b² − 4ac)) ÷ 2a

A critical part of this formula is the expression under the square root, known as the discriminant (Δ):

Δ = b² − 4ac

The value of the discriminant determines the nature of the roots:

How to Use the Calculator

Follow these steps to find the roots of your equation:

  1. Identify your equation in the standard form: ax² + bx + c = 0.
  2. Enter the value for Coefficient a. This cannot be zero.
  3. Enter the value for Coefficient b.
  4. Enter the value for Constant c.
  5. Review the calculated roots, the discriminant, and the nature of the roots in the results panel. The visual chart will also plot the parabola and its intersections with the x-axis.

Inputs and Outputs Reference

FieldTypeDescription
Coefficient aInputThe coefficient of the x² term. Must be a non-zero number.
Coefficient bInputThe coefficient of the x term.
Constant cInputThe constant numerical term.
Roots (x)OutputA summary of the calculated roots.
Discriminant (Δ)OutputThe value of b² − 4ac, which dictates the root type.
Nature of RootsOutputClassifies the roots as two real, one real, or two complex.

Practical Applications

The quadratic formula is widely used in physics and engineering to model parabolic trajectories, such as calculating the time it takes for a projectile to hit the ground. It is also used in geometry to solve for unknown dimensions when the area of a shape is known, and in economics to find profit-maximizing prices in quadratic revenue models.

Frequently Asked Questions

What does a negative discriminant mean?

A negative discriminant means the quadratic equation has no real solutions. Instead, it has two complex roots. On a graph, this indicates that the parabola does not intersect the x-axis.

Why does the calculator show an error if 'a' is zero?

If the coefficient 'a' is zero, the x² term disappears, turning the equation into a linear equation (bx + c = 0). The quadratic formula involves dividing by 2a, which is impossible (division by zero) when a is 0.

What is a perfect square trinomial?

A perfect square trinomial occurs when the discriminant is exactly zero. This means the parabola's vertex rests exactly on the x-axis, resulting in a single, repeated real root.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.