Quadratic Formula Calculator
Enter the coefficients a, b and c of ax² + bx + c = 0. The calculator returns the roots from the quadratic formula, the discriminant Δ = b² − 4ac, and, when a is not zero, the vertex (−b/2a, f(−b/2a)) and the sum and product of the roots. The default equation is x² − 5x + 6 = 0, whose roots are 2 and 3. Complex roots are written as a conjugate pair a ± bi. If a is zero the page falls back to the linear equation bx + c = 0.
Quadratic formula calculator
On this calculator: Ctrl+Enter copies the result, Shift+Alt+L copies a link to the current inputs, Shift+Alt+R resets, Shift+Alt+P opens Print / Save PDF. These shortcuts do not run while you type in a field, except Ctrl+Enter.
Saved results on this device
Stored only in this browser, not on our servers.
How to use the quadratic formula calculator – roots of ax² + bx + c = 0
- Write the equation as ax² + bx + c = 0. Move every term to one side first. Zero is allowed for b or c; a may be zero (the linear case).
- Enter a, b and c. The defaults are 1, −5 and 6, which factor as (x − 2)(x − 3) = 0.
- Read the roots and the discriminant. Two real roots when Δ > 0, a repeated root when Δ = 0, a complex-conjugate pair when Δ < 0.
- Use the sketch. The diagram is a sketch of y = ax² + bx + c with real roots marked on the x-axis. It is not a scaled plotter.
The formula
For a ≠ 0 the solutions of ax² + bx + c = 0 are
x = (−b ± √(b² − 4ac)) / (2a).
The quantity under the square root is the discriminant Δ. The page computes Δ first, then branches: two real roots, a repeated root (x = −b/2a), or a complex pair with real part −b/2a and imaginary part √(−Δ) / (2a). IEEE-754 square roots are used; a discriminant whose absolute value is smaller than 10⁻¹² is treated as zero so that a barely-negative rounding artefact does not flip a repeated root into a complex pair.
Vieta’s relations are shown as checks: the sum of the roots is −b/a and the product is c/a. The vertex of the parabola y = ax² + bx + c is at x = −b/(2a), with y evaluated there. Completing the square is the same algebra in a different order; the page does not rewrite the equation in vertex form as a string, but the vertex coordinates are those of that form.
When a = 0 and b ≠ 0 the equation is linear and there is a single root −c/b. When a = b = 0 the statement is either 0 = 0 (true for every x) or a non-zero constant equal to zero (no root). Both are reported in words rather than a fake numeric root.
Worked checks
- x² − 5x + 6 = 0 → 2 and 3, Δ = 1, vertex at 2.5.
- x² − 2x + 1 = 0 → a repeated root 1, Δ = 0.
- x² + 1 = 0 → 0 + 1i and 0 − 1i, Δ = −4.
- 2x + 6 = 0 (a = 0, b = 2, c = 6) → x = −3.
The same functions are unit-tested. The sketch is an illustration of the parabola through a window around the vertex; it is not a replacement for a plotting package. Print / Save PDF includes the coefficients, the roots and the figure. This is algebra, not a solver for systems or for higher-degree polynomials.
Copy result, Copy link, Reset and Save tool work as on the other calculators. The scientific calculator remains the place for general arithmetic; this page is only the quadratic formula and the linear fallback.
Frequently asked questions
What are the roots of x² − 5x + 6 = 0?
Δ = 25 − 24 = 1, so x = (5 ± 1)/2, which is 3 and 2. The vertex is at x = 2.5.
What does the discriminant tell me?
Δ = b² − 4ac. Positive: two distinct real roots. Zero: one repeated real root. Negative: a complex-conjugate pair, written a ± bi on this page.
How are complex roots written?
As a real part and an imaginary part, for example 1 + 2i and 1 − 2i. The page does not use a separate polar form.
What if a is zero?
The equation is linear: x = −c/b, provided b is not also zero. If both a and b are zero the page reports either an identity or a contradiction.
Are the sum and product of the roots shown?
Yes, as −b/a and c/a, which is Vieta’s description, when a is not zero.
Is this a graphing calculator?
No. The sketch marks the vertex and any real roots. For a general plot, use a graphing tool; for arithmetic, use the scientific calculator on this site.
Does the calculator factor the polynomial?
It reports the roots. Integer-coefficient factorisation is visible when the roots are integers, as in the default (x − 2)(x − 3), but the page does not print a factored string for every case.
Related calculators
Scientific Calculator – Trig, Logs, Powers and Roots
Trigonometry, logarithms, powers, roots and factorials in degrees or radians, with a printable tape of the working.
Triangle Calculator – SSS, SAS, ASA, AAS, SSA and Pythagorean
Solve a triangle from SSS, SAS, ASA, AAS, SSA or the Pythagorean theorem.
GCF and LCM Calculator – with Prime Factorization
Greatest common factor and least common multiple, with prime factorization.
Percentage Calculator – What Is X% of Y?
X% of Y, X is what % of Y, and X is Y% of what number.
Basic Calculator – Add, Subtract, Multiply and Divide
Everyday arithmetic with parentheses, percent, square and square root, and a printable tape of the working.
Sources and references
About this calculator
Written and maintained by Rashid Mehmood, founder of CalcTen. The formulas are unit-tested against hand-worked examples, and the content is reviewed whenever product sizes or guidance change. Last updated and reviewed 15 November 2026. See our editorial policy. If you spot a mistake, report it.
Results are calculated from the numbers you enter and shown with the working. Rounding is applied only when displaying results. Grade and GPA scales, and weighting rules, vary by school, so confirm with your institution. Read the disclaimer.