Quadratic Equation Solver
Solve ax² + bx + c = 0 with the quadratic formula — real or complex roots, plus discriminant, vertex, axis of symmetry and sum/product of roots.
Equation: x² −5x + 6 = 0
Roots
x₁ = 3, x₂ = 2
Two distinct real roots
Discriminant
1
Axis of symmetry
x = 2.5
Vertex
(2.5, -0.25)
Sum / product
5 / 6
x = (−b ± √(b² − 4ac)) / 2a. The discriminant b² − 4ac decides real vs. complex roots. Set a = 0 for a linear equation.
How to use
- Enter coefficients a, b and c from ax² + bx + c = 0 (a may be negative or fractional).
- Read the roots — two real, one repeated, or a complex conjugate pair.
- Check the discriminant, vertex, axis of symmetry, and the sum and product of the roots.
About this tool
ShowHide
A quadratic equation ax² + bx + c = 0 is solved by the quadratic formula x = (−b ± √(b² − 4ac)) / 2a. The part under the root, the discriminant b² − 4ac, decides what the roots look like: positive gives two distinct real roots, zero gives one repeated real root, and negative gives a complex-conjugate pair. Enter the three coefficients and this tool returns the roots (real or complex), the discriminant and what it means, the parabola's vertex and axis of symmetry, and the sum (−b/a) and product (c/a) of the roots. If a = 0 it falls back to the linear case bx + c = 0, and it flags the degenerate no-solution and all-numbers cases too.
Frequently asked questions
What is the quadratic formula?
x = (−b ± √(b² − 4ac)) / 2a. It gives both roots of ax² + bx + c = 0; the ± produces the two solutions.
What does the discriminant tell me?
The discriminant is b² − 4ac. If it is positive there are two real roots, if zero there is one repeated real root, and if negative there are two complex-conjugate roots.
What happens if a = 0?
Then it is not quadratic but linear: bx + c = 0 with the single solution x = −c/b. The tool detects this and solves the linear case instead.
What are the vertex and axis of symmetry?
The parabola y = ax² + bx + c has its turning point (vertex) at x = −b/2a, and that vertical line is the axis of symmetry. The vertex y-value is the minimum or maximum of the parabola.
Does this use the textbook formula exactly as written?
Not quite, and deliberately. Computing both roots as (−b ± √D) / 2a is unstable: when b² dominates 4ac, one of the two roots subtracts nearly equal quantities and loses most of its significant digits. For x² + 10,000,000x + 12,345 = 0 the textbook form gives a small root of −0.001234 where the true value is −0.001235. This solver takes the root whose terms have the same sign and derives the other from the product of roots, which keeps both accurate; on ordinary coefficients the two approaches agree exactly.
What are the sum and product of roots for?
They are Vieta's formulas — the roots always sum to −b/a and multiply to c/a — and they are shown because they are a free check that costs no extra arithmetic: add and multiply the two roots yourself, and if either disagrees with the value on the card, the coefficients are badly conditioned and the roots are not trustworthy to the digits displayed. They also run backwards: to build a quadratic with roots you have chosen, write x² − (their sum)x + (their product) = 0.
Related tools
Polynomial Root Finder (Cubic, Quartic & Beyond)
Find all real and complex roots of a polynomial up to degree 30 — cubic, quartic or higher — with multiplicities, the factored form and a residual check.
Math & Statistics
Slope & Line Calculator
From two points, get the slope, the line equation y = mx + b, the distance, midpoint, angle of inclination, and rise/run.
Math & Statistics
Rule of Three Calculator
Solve a proportion a/b = c/d — enter any three values, leave one field empty, and the fourth is found by cross-multiplication.
Math & Statistics
Triangle Solver: SSS, SAS, ASA, AAS & SSA
Solve any triangle from three known sides and angles — SSS, SAS, ASA, AAS or the ambiguous SSA case — with area, perimeter, radii, heights and medians.
Math & Statistics
Prime Factorization · GCD · LCM
Factor an integer into primes, list all divisors, and compute GCD and LCM of two numbers. Handles values up to ~10¹².
Math & Statistics
Combinations & Permutations Calculator
Compute nCr and nPr, with and without repetition, plus factorials — exact arbitrary-precision integers for probability, lottery odds and combinatorics.
Math & Statistics