Quadratic Formula Solver
Solve a quadratic equation ax² + bx + c = 0 for its real roots.
About this calculator
This solver applies the quadratic formula, x = (-b ± √(b² - 4ac)) / 2a, to find the values of x that satisfy ax² + bx + c = 0. Everything hinges on the discriminant, the b² - 4ac term under the square root: a positive discriminant means the parabola crosses the x-axis at two distinct points, giving two real roots; a discriminant of exactly zero means the parabola just touches the x-axis at its vertex, giving one repeated real root; and a negative discriminant means the parabola never touches the x-axis at all, so there are no real solutions — only complex ones, which this calculator flags as 'complex' without computing their actual real and imaginary parts, since those require complex-number arithmetic outside a real-valued x-axis intersection.
If you enter a as zero, the equation stops being quadratic and becomes the linear equation bx + c = 0, which this solver detects and handles by returning the single linear solution -c/b instead of dividing by zero in the quadratic formula. The two roots produced when the discriminant is positive are symmetric around -b/2a, the x-coordinate of the parabola's vertex, which is why swapping which root is labeled 'Root 1' versus 'Root 2' doesn't change anything mathematically meaningful — they're simply the plus and minus branches of the same ± in the formula.
Inputs
Results
Root 1
3
How to Use This Calculator
- Fill in coefficients a, b, and c from your equation in the form ax² + bx + c = 0.
- Use 0 for a if your equation is actually linear (bx + c = 0) rather than quadratic.
- Read Root 1 and Root 2 — the values of x that satisfy the equation.
- Check the Roots field: it reads 'two-real' for two distinct solutions, 'one-real' for a repeated (or linear-equation) solution, or 'complex' when the equation has no real solutions.
Recommended for this calculation
We may earn a commission if you sign up through these links.
Graph, solve, and visualize every statistics problem
TI-84 Plus CE Graphing Calculator, Color Screen
See on AmazonWork through problems the way they're meant to be graphed
Mr. Pen Graph Grid Journal Notebook, A5, 160 Pages
See on Amazon417 functions for every equation you'll ever face
Casio fx-991ES Plus 2 Scientific Calculator
See on AmazonTexas Instruments: As an Amazon Associate I earn from qualifying purchases.
Mr. Pen: As an Amazon Associate I earn from qualifying purchases.
Casio: As an Amazon Associate I earn from qualifying purchases.
Engine last updated . Checked against 2 independently-derived tests — how we verify calculators.
Frequently Asked Questions
What does it mean when the Roots field says 'complex' instead of showing numbers?
It means the discriminant (b squared minus 4ac) came out negative, so the parabola described by your equation never crosses the x-axis — there is no real number x that makes the equation equal zero. The equation does have solutions, but they involve the imaginary unit i, which this calculator doesn't compute since Root 1 and Root 2 are meant to represent real x-axis intersections.
Why does entering 0 for coefficient a still give me an answer?
When a is zero, the x² term vanishes and the equation ax² + bx + c = 0 simplifies to the linear equation bx + c = 0, which this solver detects and solves directly as x = -c/b instead of attempting to divide by zero in the quadratic formula's denominator. Both Root 1 and Root 2 will show the same single value in this case, since a linear equation has only one solution.
Why are Root 1 and Root 2 usually different numbers, and does it matter which is which?
They come from the plus and minus branches of the ± in the quadratic formula, representing the two points where the parabola crosses the x-axis, and they're mathematically interchangeable — neither is more 'correct' than the other. The two roots are always symmetric around the parabola's vertex at x = -b/2a, equally spaced on either side of it.
What does it mean when Root 1 and Root 2 come back as the same number?
That happens when the discriminant equals exactly zero, meaning the parabola's vertex sits precisely on the x-axis, touching it at a single point rather than crossing through two distinct points. This is called a repeated or double root, and the Roots field will read 'one-real' to flag that special case.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Quadratic Equation Solver
Solve quadratic equations (ax² + bx + c = 0). Find roots, discriminant, vertex, and axis of symmetry with a visual graph.
Math & StatisticsEquation Solver
Solve equations of all types: linear, quadratic, cubic, polynomial, systems of equations, exponential, logarithmic, and absolute value. Detailed step-by-step solutions with explanations included.
Discrete MathematicsRecurrence Relation Calculator
Solve linear recurrence relations a_n = p*a_{n-1} + q*a_{n-2} with given initial conditions.
Geometry & MeasurementTriangle Calculator
Calculate area, angles, heights, perimeter, inradius, and circumradius of any triangle from three sides.
Math & StatisticsPercentage Calculator
Calculate percentages easily — find a percentage of a number, percentage increase/decrease, and percentage change between two values.
More in Math & Statistics.