Quadratic Formula Calculator

Solve ax^2 + bx + c = 0 with integer, decimal, fraction, or scientific-notation coefficients. See exact and rounded roots, discriminant classification, factorization when available, Vieta and substitution checks, vertex form, axis, range, focus, directrix, and symmetric points in one auditable result.

Calculation and content reviewed by EZ Calculators Editorial Team on .

Enter values

Enter the signed coefficients from ax^2 + bx + c = 0. Exact fractions remain exact while the result classifies the discriminant, solves the roots, audits Vieta relationships, and derives the vertex and parabola features.

InputExact coefficients
ClassificationExact discriminant
AuditRoots and graph checks
Standard form

Enter ax^2 + bx + c = 0

ax^2 + bx + c = 0
Signed integer, decimal, fraction, or scientific notation; a cannot be zero.
Enter the signed x coefficient. Use 0 when the x term is absent.
Enter the signed constant. Use 0 when the constant term is absent.
Keep the signs with the coefficientsThe leading coefficient a must not be zero.
For x^2 - 3x + 2 = 0, enter a = 1, b = -3, and c = 2. Use zero for a missing x term or constant term, but never for a because a zero leading coefficient is not quadratic.
Display

Choose decimal precision

Exact algebra stays unchanged; only rounded displays move.

Controls rounded roots and graph measures; exact fractions and discriminant checks remain unchanged.
Exact first, decimal secondRoots and graph checks preserve the entered function.
Integers, terminating decimals, fractions such as -3/4, and bounded scientific notation are accepted. The solver clears denominators for root classification while preserving the entered function for vertex, focus, directrix, range, and symmetric-value results.

What Is a Quadratic Formula Calculator

A quadratic formula calculator solves an equation whose highest power of x is 2 after the expression is arranged as ax^2 + bx + c = 0, with a not equal to zero. The coefficients may be positive, negative, zero, whole numbers, terminating decimals, or fractions. Depending on the discriminant, the equation has two distinct real roots, one repeated real root, or a pair of non-real complex conjugate roots.

This solver keeps the algebraic answer and the graph information together. It reports the entered equation, a primitive integer equivalent, exact and rounded solutions, discriminant class, rational factorization when one exists, Vieta relationships, substitution checks, vertex, axis of symmetry, opening direction, intercepts, domain, range, focus, directrix, and symmetric function values.

How to Use the Quadratic Formula Calculator

  1. Rewrite the equation so every term is on the left and the right side is zero.
  2. Enter the signed coefficient of x^2 as a. It cannot be zero because that would make the equation linear or constant.
  3. Enter the signed coefficient of x as b. Use zero when the linear term is absent.
  4. Enter the signed constant as c. Use zero when there is no constant term.
  5. Choose how many decimal places should appear in rounded roots and graph coordinates.
  6. Select Solve quadratic, then read the exact solution before relying on the decimal display.
  7. Audit the answer with the discriminant, Vieta sum and product, substitution result, and symmetric-value table.

Put the Equation in Standard Form Before Solving

The coefficients must come from ax^2 + bx + c = 0, not from an equation with terms left on both sides. For 2x^2 + 7 = 3x, subtract 3x from both sides to obtain 2x^2 - 3x + 7 = 0. The correct entries are a = 2, b = -3, and c = 7. Losing the negative sign changes the discriminant and both roots.

Missing terms still need zero coefficients. The equation 5x^2 - 20 = 0 has b = 0, while 4x^2 + 12x = 0 has c = 0. If every term shares a nonzero factor, dividing it out does not change the zeros. The calculator clears rational denominators and removes the integer coefficient GCF to show a primitive equation with the same roots.

Formula guide
  • Standard form: ax^2 + bx + c = 0, where a is not zero
  • Equivalent nonzero scaling: k(ax^2 + bx + c) = 0 has the same roots

Quadratic Formula and Discriminant Guide

The quadratic formula is x = (-b +/- sqrt(D)) / (2a), where D = b^2 - 4ac. The plus-minus symbol represents two branches: one calculation adds the square root and the other subtracts it. When D is zero, those branches meet at the same repeated root.

The discriminant predicts the solution type before the square root is simplified. A positive perfect-square discriminant produces two distinct rational roots. A positive non-square produces two distinct irrational real roots. Zero produces one repeated rational root. A negative discriminant contributes i, the square root of -1, and gives two complex conjugates with the same real part and opposite imaginary parts.

Formula guide
  • D = b^2 - 4ac
  • x = (-b +/- sqrt(D)) / (2a)
  • i^2 = -1

Read the Discriminant Classification Correctly

The sign of D determines how many real x-intercepts the parabola has. With D greater than zero, the graph crosses the x-axis twice. With D equal to zero, it touches the x-axis at the vertex. With D less than zero, it has no real x-intercept even though the equation still has two complex roots when multiplicity is counted.

Rational versus irrational is a separate question from real versus complex. For integer coefficients, a nonnegative perfect-square discriminant makes the roots rational. A positive value such as 8 is real but not a square, so sqrt(8) must be simplified or retained as a radical rather than rounded away.

Discriminant classes for a quadratic equation
DiscriminantExact root typeReal x-interceptsGraph behavior
D > 0, perfect squareTwo rational real roots2Crosses twice
D > 0, not a squareTwo irrational real roots2Crosses twice
D = 0One repeated rational root1Touches at the vertex
D < 0Two complex conjugate roots0Does not meet the x-axis

Exact Roots, Radical Form, and Rounded Decimals

An exact fraction or radical preserves the mathematical value. For x^2 - 2 = 0, the solutions are exactly +/-sqrt(2); 1.414214 and -1.414214 are six-place approximations. Increasing display precision changes only the approximation, not the exact roots, discriminant, factorization status, vertex fractions, or verification equations.

The solver parses supported coefficients as rational numbers and performs denominator clearing, discriminant work, rational roots, Vieta relationships, and rational substitution with integer or fraction arithmetic. For separated real roots it uses a cancellation-resistant numerical form and recovers the companion root from the product, reducing the chance that one small root is lost when b is very large.

Vertex, Axis, Opening, Domain, and Range

For y = ax^2 + bx + c, the axis of symmetry is x = -b/(2a). Substituting that x-value gives the vertex y-coordinate, equivalently k = -D/(4a). When a is positive, the parabola opens upward and the vertex is its minimum. When a is negative, it opens downward and the vertex is its maximum.

Every nondegenerate vertical parabola has all real x-values in its domain. Its range starts at the vertex value and extends in the opening direction. Completing the square gives vertex form y = a(x - h)^2 + k. The focus lies 1/(4a) vertical units from the vertex, the directrix lies the same distance on the opposite side, and the latus rectum has length |1/a|.

Formula guide
  • h = -b/(2a)
  • k = f(h) = -D/(4a)
  • Vertex form: y = a(x - h)^2 + k
  • Focus: (h, k + 1/(4a)); directrix: y = k - 1/(4a)

Verify Roots With Substitution and Vieta Relationships

A proposed root r is correct when ar^2 + br + c equals zero. Exact rational substitution is especially useful because it can reveal an incorrect sign even when a rounded decimal appears close. Irrational and complex roots can be checked algebraically from their exact forms or numerically with a residual that should be near zero at the chosen precision.

Vieta's relationships provide a second independent check. For roots r1 and r2, their sum must be -b/a and their product must be c/a. These equations do not replace substitution, but together they catch many one-branch, denominator, and sign mistakes. The symmetric table supplies a graph check: equal horizontal offsets from the axis must produce equal function values.

Formula guide
  • Root check: ar^2 + br + c = 0
  • r1 + r2 = -b/a
  • r1 x r2 = c/a
  • f(h - t) = f(h + t)

Quadratic Formula Worked Examples

The examples below cover the four discriminant outcomes and a rational-coefficient case. Exact form should remain the primary answer whenever a radical or fraction is present; the decimal is a practical secondary display.

Worked quadratic-equation cases
EquationDExact solutionsImportant check
x^2 - 3x + 2 = 011 and 2Sum 3; product 2
x^2 - 2 = 08+/-sqrt(2)Two irrational roots
x^2 - 2x + 1 = 001 repeatedVertex lies on x-axis
x^2 + 2x + 5 = 0-16-1 +/- 2iNo real x-intercept
(1/2)x^2 - (3/2)x + 1 = 01/41 and 2Primitive equation is x^2 - 3x + 2

When to Factor, Complete the Square, or Use the Formula

Factoring is often fastest when integer or rational factors are easy to recognize. The square-root property is efficient after an equation is written as (x - h)^2 = q. Completing the square is useful for deriving vertex form and explains where the quadratic formula comes from. The quadratic formula works for every valid quadratic, including irrational and complex solutions.

A calculator should support method choice rather than hide it. If a class requires factoring or completing the square, use this result to verify the roots and discriminant after showing the requested work. If the coefficients come from measured data, keep the model's source precision and avoid implying that extra display digits make the observations more accurate.

Quadratic Formula Calculator Features

  • Signed integer, terminating-decimal, fraction, and bounded scientific-notation coefficients.
  • Exact denominator clearing and primitive integer equation without changing the roots.
  • Rational, irrational, repeated, and complex discriminant classification.
  • Exact fraction or radical solutions alongside adjustable decimal precision.
  • Cancellation-resistant decimal calculation for distinct real roots.
  • Rational factorization and exact substitution checks when available.
  • Vieta sum and product, root separation, and decimal residual checks.
  • Vertex form, axis, opening, domain, range, intercepts, focus, and directrix.
  • Five exact symmetric points around the vertex in a downloadable table.

Benefits of an Auditable Quadratic Solver

A bare pair of decimal roots is difficult to trust because it does not show whether the signs, denominator, or second branch were handled correctly. Exact forms and independent checks make the answer easier to review, explain, and compare with handwritten algebra.

Keeping root and graph information together also reveals structure. The discriminant explains intercept count, the axis places the midpoint of two real roots, the vertex identifies the extremum, and Vieta connects the final roots back to the original coefficients.

Common Quadratic Equation Use Cases

Quadratic equations appear whenever a model contains a squared variable. The algebra can be exact even when a real-world model is only an approximation, so interpretation must retain units, domain restrictions, and the assumptions that produced the coefficients.

  • Check algebra homework and compare solving methods.
  • Find x-intercepts and the vertex before graphing a parabola.
  • Solve area or dimension problems after rejecting impossible negative lengths.
  • Analyze constant-acceleration or projectile models inside their stated domain.
  • Find break-even quantities in a genuinely quadratic revenue or cost model.
  • Test whether an integer-coefficient trinomial has rational factors.
  • Convert a rational-coefficient equation to a simpler primitive integer form.

Accuracy, Scope, and Trust Notes

Exact rational operations are used for supported coefficient parsing, normalization, discriminants, rational roots, vertex fractions, Vieta values, and rational substitution. Irrational and complex decimal components use floating-point square roots and are rounded to the selected display precision. An exact radical remains more informative than its rounded decimal.

The page solves one-variable quadratic equations and describes the associated vertical parabola y = ax^2 + bx + c. It does not infer physical units, select a meaningful real-world domain, validate measured coefficients, solve inequalities or multivariable systems, or decide which algebraic roots are admissible in an application.

  • Move every term to one side before identifying a, b, and c.
  • Keep negative signs with their coefficients.
  • Enter zero for a missing linear or constant term.
  • Reject roots that violate an original application's domain, units, or constraints.
  • Use exact results for algebra and rounded values only at the precision the task supports.

Open Quadratic Equation References

FAQ

How do I use the quadratic formula calculator?

Put the equation in ax^2+bx+c=0 form, enter the signed coefficients, choose decimal precision, and select Solve quadratic. Read the exact solution first, then verify it with the discriminant, Vieta relationships, and substitution rows.

What does the discriminant tell me?

D=b^2-4ac classifies the roots. Positive D gives two distinct real roots, zero gives one repeated real root, and negative D gives two non-real complex conjugates. For integer coefficients, a positive perfect square gives rational roots.

Can the calculator solve a quadratic with fractions?

Yes. Enter forms such as 1/2 or -3/4. The coefficients are reduced exactly, denominators are cleared for a primitive integer equation, and exact roots and graph values remain fractions when possible.

Why must the coefficient a be nonzero?

If a is zero, the x^2 term disappears and the equation is linear, constant, or inconsistent rather than quadratic. The quadratic formula divides by 2a, so a=0 is outside its domain.

How many solutions does a quadratic equation have?

Over the complex numbers, a nondegenerate quadratic has two roots counting multiplicity. They may be two distinct real roots, one repeated real root counted twice, or two complex conjugates.

What is a repeated root?

A repeated root occurs when D=0. Both plus-minus branches produce x=-b/(2a), the parabola touches the x-axis at its vertex, and the factorization contains the same linear factor twice.

How do I find complex roots with the quadratic formula?

When D is negative, write sqrt(D)=i sqrt(|D|). The roots are -b/(2a) plus or minus the imaginary component sqrt(|D|)/(2a), simplified with a positive imaginary magnitude.

Why does the calculator show exact and decimal roots?

Exact fractions and radicals preserve the mathematical answer. Decimals are rounded approximations for plotting or comparison. Changing precision alters only the rounded display, not the exact solution.

How do I check quadratic roots?

Substitute each root into ax^2+bx+c and confirm zero. Also verify that the root sum equals -b/a and the product equals c/a. The page displays these independent checks.

Can I factor every quadratic equation?

Every quadratic factors over the complex numbers, but it may not factor into rational or integer binomials. For integer coefficients, rational binomial factors exist when the discriminant is a nonnegative perfect square after normalization.