Skip to main content

Quadratic Equation Calculator

Use this quadratic equation calculator to find exact roots, decimal approximations and working from standard, vertex or factored form. Choose the form that matches your equation, then enter its signed values.

Read the equation before entering values

In Standard, arrange the equation as ax² + bx + c = 0. Enter a as the coefficient of x², b as the coefficient of x and c as the constant, keeping each sign. Move every term to the left before reading the coefficients. Enter 0 for an absent term; an empty field means the calculation is incomplete. A quadratic has a nonzero a. OpenStax: Quadratic Equations gives the standard equation and solving rules.

Keep the signs

Choose the matching equation form before entering values. For Vertex and Factored, read the signed parameter from the subtraction in the displayed form, rather than copying the sign immediately before the constant.

Enter values, not expressions

Each field accepts an integer, finite decimal, E notation or integer fraction. Decimals are treated as exact entered values, as described by OpenStax: Rational Numbers. Use the Fraction Calculator to evaluate fraction arithmetic before entering a coefficient. The Scientific Notation Calculator helps rewrite a number in exponent notation.

Use vertex or factored form

In Vertex, match a(x - h)² + k = 0. Enter the signed value of h from x - h, and the signed constant k. The calculator expands this exactly to b = -2ah and c = ah² + k before solving. OpenStax: Quadratic Functions derives that expansion.

In Factored, match a(x - r)(x - s) = 0. Enter r and s as signed values, not the text of each factor. Expansion gives b = -a(r + s) and c = ars. For nonzero a, the zero-product rule gives roots r and s. Equal entries give a repeated root. OpenStax: Quadratic Equations explains this rule. These factor fields accept real rational values; use Standard or Vertex for equations with complex roots.

Solve with the quadratic formula

For nonzero a, compute D = b² - 4ac, then x = (-b ± √D) / (2a). Keep negative values in brackets during substitution. OpenStax: Quadratic Equations derives the formula by completing the square. Factoring is another route when the factors are available; the formula also handles equations that do not factor over rational numbers. In vertex form, isolating the square gives (x - h)² = -k/a. Taking both square roots leads to x = h ± √(-k/a), with complex roots when -k/a is negative. Completing the square creates this form from the standard equation.

Open Calculation details to follow the entered form, its expanded coefficients and the applicable solving steps. Exact rational arithmetic determines the discriminant sign. For irrational real roots, the approximate calculation uses a rearranged formula to avoid subtracting nearly equal values, the cancellation problem discussed by Goldberg on floating-point cancellation.

Follow a worked quadratic solution

In Standard, enter a = 9, b = 3 and c = -2 for 9x² + 3x - 2 = 0, the exercise in OpenStax: Quadratic Equations.

The discriminant is D = 3² - 4 × 9 × (-2) = 81.

Substitute into the quadratic formula: x = (-3 ± √81) / (2 × 9). The exact roots are -2/3 and 1/3.

The approximate roots are -0.666666666667 and 0.333333333333. Keep the exact fractions when checking the equation; rounded decimals need not substitute to an exact zero.

Interpret the discriminant and roots

For a quadratic with real coefficients, D > 0 gives two distinct real roots, D = 0 gives one repeated real root with multiplicity two, and D < 0 gives a complex conjugate pair. A negative discriminant means no real roots, not no solutions over the complex numbers. The imaginary unit satisfies i² = -1. See OpenStax: Quadratic Equations.

Exact fractions or radical expressions determine the answer. A radical can remain exact without being fully simplified. All input modes show approximations to 12 significant digits, without padding trailing zeros. Very close distinct roots may have identical approximate text; use the exact roots and classification to distinguish them. Small supported nonzero values retain scientific notation rather than becoming zero.

The discriminant belongs to the expanded coefficients as entered, without rescaling the polynomial. Calculation details also give the vertex and equivalent forms. For y = ax² + bx + c, real roots are the x-intercepts; the vertex is the turning point. OpenStax: Quadratic Functions explains that relationship. This calculator supplies those values without drawing a graph.

When the equation or inputs need a different treatment

In Standard, when a = 0, the equation becomes bx + c = 0. If b is nonzero, its root is -c/b. If a and b are zero, c = 0 makes every real or complex value a solution; a nonzero c gives no solution. In Vertex with a = 0, only k = 0 remains. In Factored with a = 0, the expression is zero for every value. Quadratic-only details do not apply to these cases. OpenStax: Linear Equations distinguishes conditional equations, identities and contradictions.

These are Calculator Campus resource limits, not limits on quadratic mathematics: each field allows 64 characters, at most 24 mantissa digits including leading and trailing zeros, or 24 digits per integer fraction component. A scientific exponent must be from -24 to 24 with at most 2 digits excluding its sign. The denominator must be nonzero. After exact expansion and reduction, each coefficient numerator magnitude and denominator must be at most 10^48. Valid individual entries can still exceed that combined limit; the calculator rejects the combination.

Full equation strings, mixed numbers, recurring-decimal notation, symbolic radicals, complex input values and comma grouping are unsupported. This tool solves the supplied equation. It does not fit a quadratic to measurements, certify extrapolation outside observed data, or provide handheld-calculator programming instructions.

For a one-variable linear equation with parentheses or terms on both sides, enter the original expression in the Linear Equation Calculator. It shows exact working and checks both original sides without requiring you to extract coefficients.

Finding roots of a single quadratic differs from finding values that satisfy several linear equations together. The System of Equations Calculator handles that simultaneous linear task; it does not solve nonlinear systems.

References

(5)