Quadratic Formula Calculator

Enter coefficients for ax² plus bx plus c equals zero to calculate roots and inspect the discriminant.

Your result

Root 12
Root 21

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

Calculation steps

  1. Start with the coefficients a, b, and c from the quadratic equation.

  2. Calculate the discriminant first, then place its square root into the plus and minus branches of the formula.

    Discriminant = 1

    Roots = 2, 1

  3. The two branches give the real roots, or show that no real roots exist. Root 1: 2; Root 2: 1.

Quick start

How do I use the quadratic formula calculator?

Purpose: The quadratic formula calculator is designed for this task: solve a quadratic equation from coefficients a, b, and c and identify real or complex roots.

  1. 01

    Prepare the quadratic formula calculator inputs

    Match every value and unit to its form label. Do not mix units or invent a value you do not know.

  2. 02

    Run the quadratic formula calculator

    Select Calculate after checking the fields. Invalid or unsupported input is flagged before a result is shown.

  3. 03

    Verify the quadratic formula calculator result

    Read the result with the formula, worked example, assumptions, and limitations explained below.

What does the quadratic formula calculator calculate?

For an equation written as ax² + bx + c = 0, enter the coefficients a, b, and c. The calculator evaluates the discriminant and substitutes the values into the quadratic formula to find zero, one, or two real roots, or a pair of complex roots. Coefficient a cannot be zero because then the equation is linear, not quadratic.

Rewrite the entire equation with zero on one side before identifying the three inputs. The quadratic formula calculator expects coefficients, including their signs, rather than the visible terms as text. A missing linear or constant term has coefficient zero; a leading has coefficient one. For example, x² = 9 becomes x² + 0x - 9 = 0, so the entries are 1, 0, and -9.

How does the quadratic formula calculator formula work?

The roots are x = (−b ± √(b² − 4ac)) ÷ 2a. The expression b² − 4ac is the discriminant. A positive discriminant gives two distinct real roots, zero gives one repeated real root, and a negative discriminant gives two complex conjugate roots. Use parentheses carefully when entering negative coefficients, especially for b and c.

The quadratic formula calculator computes the discriminant first, then follows its sign. For a negative discriminant, the real component is -b/(2a) and the imaginary magnitude comes from the square root of its absolute value over the denominator. The plus and minus branches form a conjugate pair. Multiplying every coefficient by the same nonzero factor should not change the roots, which provides a useful check after an equation has been cleared of fractions.

Quadratic formula calculator worked example

Solve x² − 5x + 6 = 0, so a = 1, b = −5, and c = 6. The discriminant is (−5)² − 4(1)(6) = 1. The roots are (5 ± 1) ÷ 2, giving 3 and 2. Substitution checks both: 3² − 5(3) + 6 = 0 and 2² − 5(2) + 6 = 0.

Substitution is the strongest arithmetic check on the quadratic formula calculator. Evaluate ax² + bx + c separately for each root and verify that rounding aside it returns zero. The sum of the two roots should also equal -b/a, here 5, and their product should equal c/a, here 6. These relationships can reveal a copied sign error even when one displayed root looks plausible.

What are the limits of the quadratic formula calculator?

The formula exactly solves the mathematical equation entered, not the accuracy of a real-world model. Rounded coefficients can lead to rounded roots; units and domain constraints may make one algebraic root physically meaningless. A quadratic fit does not prove a causal relationship or reliably extrapolate beyond observed data. Verify inputs and apply subject-matter constraints before using roots in design, forecasting, or safety decisions.

The quadratic formula calculator accepts finite numeric coefficients and rejects a = 0; it does not simplify a symbolic equation or determine coefficients from observations. Display rounding can make substitution return a small residual instead of exact zero, especially for roots with many decimals. Keep the coefficients and discriminant with the result, and apply any domain restriction only after solving. Discarding a negative time or length, for example, is a modeling decision rather than a change to the algebraic root.

Factoring can be quicker when integer factors are obvious, as in x² − 5x + 6. Completing the square reveals the equation’s vertex form. The quadratic formula works consistently for every quadratic equation and shows when roots are complex, which makes it the reliable general method. Pythagorean calculations also use square roots but solve a geometric relation rather than a polynomial.

Use the quadratic formula calculator when the equation has been reduced to three coefficients and all roots are required. Factoring is a useful independent check when simple factors exist, and the discriminant gives a root-type check before any square root is evaluated. A general linear solver is more appropriate when the quadratic coefficient is zero.

Quadratic formula calculator questions

What does a negative discriminant mean?

It means the quadratic has no real-number roots. The calculator expresses the two roots using the imaginary unit i.

The quadratic formula calculator still returns both conjugate solutions; whether complex values are meaningful depends on the problem’s domain.

Why are there two signs in the formula?

The plus and minus branches represent the two possible square roots. They can yield two distinct roots or the same repeated root.

Methodology

Quadratic formula calculator sources and review

Last reviewed: