Calculators.Life Calculator
Math

Roots Calculator

Input Parameters

Scenarios
The quadratic coefficient (a ≠ 0 for a quadratic equation)
The linear coefficient
The constant term

Computed Results

Root 1 (x₁)
-0.5 + 0.866025i
Root 2 (x₂)-0.5 - 0.866025i
Discriminant (Δ = b² - 4ac)-300
Nature of RootsTwo complex roots
Real Part-0.5
Imaginary Part (± i)0.866

The roots calculator determines the solutions for quadratic and linear equations based on the coefficients you provide. It calculates both real and complex roots, evaluates the discriminant, and identifies the exact nature of the roots to help you analyze polynomial functions.

How to Use the Roots Calculator

Follow these steps to find the roots of your equation:

  1. Enter Coefficient a: Input the value for the squared term (x²). If your equation is linear, enter 0.
  2. Enter Coefficient b: Input the value for the linear term (x).
  3. Enter Constant c: Input the constant numerical term.
  4. Review the Results: The calculator will display the roots, the discriminant, the nature of the roots, and a visual curve plot of the function.

Formula and Calculation Method

The calculator uses the standard quadratic formula to find the roots of an equation in the form ax² + bx + c = 0.

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

The term inside the square root, known as the discriminant (Δ = b² − 4ac), determines the nature of the roots:

If the coefficient a is zero, the equation is linear (bx + c = 0), and the calculator solves for the single real root using the formula x = −c ÷ b.

Inputs and Outputs

CategoryField NameDescription
InputCoefficient a (x²)The quadratic coefficient (a ≠ 0 for a quadratic equation).
InputCoefficient b (x)The linear coefficient.
InputConstant cThe constant term.
OutputRoot 1 (x₁) & Root 2 (x₂)The calculated solutions to the equation.
OutputDiscriminantThe value of b² - 4ac, which dictates the root type.
OutputNature of RootsClassifies the roots as real, repeated, complex, or linear.
OutputReal & Imaginary PartsThe separated real and imaginary components of the roots.

Verified Calculation Examples

Standard quadratic with two distinct real roots

For an equation where a = 1, b = -5, and c = 6, the discriminant is 1. The calculator determines there are two distinct real roots: 3 and 2.

Perfect square trinomial with one repeated root

If a = 4, b = 12, and c = 9, the discriminant evaluates to 0. This results in one repeated real root of -1.5.

Equation resulting in complex conjugate roots

Given a = 1, b = 2, and c = 5, the discriminant is -16. Because this is negative, the equation yields two complex roots: -1 + 2i and -1 - 2i.

Linear equation case where a is zero

If you input a = 0, b = 2, and c = -10, the equation becomes linear. The calculator bypasses the quadratic formula to find the single real root, which is 5.

Practical Use Cases

Finding the roots of an equation is a fundamental process in algebra, physics, and engineering. In physics, roots are used to determine when a projectile will hit the ground by solving for time when height equals zero. In engineering and economics, finding roots helps identify break-even points, optimize system designs, and analyze signal processing behaviors.

Frequently Asked Questions

What is the discriminant in a quadratic equation?

The discriminant is the part of the quadratic formula under the square root, calculated as b² - 4ac. It tells you whether the equation has two real roots, one repeated real root, or two complex roots.

Can this calculator solve linear equations?

Yes. If you enter 0 for coefficient a, the calculator treats the equation as linear (bx + c = 0) and solves for the single real root.

What does it mean if my roots have an 'i' in them?

An 'i' indicates an imaginary number, which appears when the discriminant is negative. This means the quadratic function does not cross the x-axis, resulting in two complex roots.

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.