Quadratic Formula Calculator
Free quadratic equation solver for ax² + bx + c = 0. Get both roots, the discriminant, the vertex, factored form, a parabola graph, and every step of the working.
Enter your coefficients
Type the numbers from ax² + bx + c = 0. Fractions such as 3/4 work too.
x² − 5x + 6 = 0Roots
(x − 3)(x − 2) = 0Step-by-step working
- 1Write the equation in standard form
x² − 5x + 6 = 0 - 2Work out the discriminant
D = (−5)² − 4(1)(6) - 3Work out the discriminant
D = 1 - 4Put the values into the quadratic formula
x = (5 ± √1) / 2 - 5Simplify the square root
x = (5 ± 1) / 2 - 6Find the vertex with x = −b / 2a
(2.5, −0.25)
Graph of the parabola
Green dots mark where the curve crosses the x-axis. The amber dot marks the vertex.
Free Quadratic Formula Calculator
A quadratic equation has the form ax² + bx + c = 0. This quadratic formula calculator solves it with x = (−b ± √(b² − 4ac)) / 2a and shows the working line by line. You get both roots, the discriminant, the vertex, the factored form when it exists, and a graph of the parabola. Real roots, repeated roots, and complex roots are all covered.
What Is the Quadratic Formula?
The quadratic formula is the standard way to solve any second-degree equation written as ax² + bx + c = 0, as long as a is not zero. The value under the square root, b² − 4ac, is the discriminant. It tells you how many real solutions exist before you finish the rest of the arithmetic.
- Discriminant > 0: two different real roots
- Discriminant = 0: one repeated real root (the parabola just touches the x-axis)
- Discriminant < 0: two complex roots of the form p ± qi
Factoring is faster when the numbers are friendly. Completing the square works too. When the numbers are messy, or you want a method that never fails, use the quadratic formula. This page does that work for you and keeps every intermediate line visible.
How to Solve a Quadratic Equation
- Move every term to one side so the equation reads ax² + bx + c = 0. Missing terms count as zero. For x² − 9 = 0, b is 0.
- Identify a, b, and c, including each minus sign. In 2x² − 3x − 5 = 0, a is 2, b is −3, and c is −5.
- Compute the discriminant D = b² − 4ac. Then substitute into the formula and simplify both the + and − cases.
- Check with Vieta: the roots should add to −b/a and multiply to c/a. If they do not, rework the arithmetic.
Example: x² − 5x + 6 = 0 has a = 1, b = −5, c = 6. D = 25 − 24 = 1, so the roots are (5 ± 1) / 2, which gives x = 3 and x = 2. The factored form is (x − 3)(x − 2) = 0, and the vertex sits at (2.5, −0.25).
Why Use This Quadratic Equation Solver?
Step-by-Step Working
Standard form, discriminant, substitution, simplification, and roots — each line is there so you can check your own method.
Graph Matches the Algebra
The parabola is drawn from your coefficients, with the roots and the vertex marked where they fall.
Complex Roots Included
A negative discriminant does not stop it. You get both complex roots in p ± qi form instead of an error.
Free, Fast, and Private
No sign-up and no server call. The solver runs in your browser and updates as soon as you change a coefficient.
How this Quadratic Formula Calculator works
This quadratic formula calculator applies x = (−b ± √(b² − 4ac)) / 2a to the coefficients you enter and shows the arithmetic, not only the answer. Type a, b, and c as decimals or as fractions such as 3/4. The equation preview rebuilds as you type, so you can confirm the signs before you trust the result.
It works out the discriminant first, because that single value decides the rest. A positive discriminant gives two distinct real roots, zero gives one repeated root, and a negative discriminant gives a conjugate pair of complex roots in p ± qi form rather than an error. Tiny floating-point remainders are cleared before the check, so a true double root is not misreported as complex.
Around the roots you also get the vertex at x = −b / 2a, the axis of symmetry, the y-intercept, and the sum and product of the roots through Vieta's formulas, which is the fastest way to check your own working. When both roots are rational, the factored form appears as well. If a is zero, the equation is no longer quadratic; the tool says so and solves the linear case instead of dividing by zero. The parabola is drawn from your coefficients with the roots and vertex marked, so a negative discriminant shows up as a curve that never meets the x-axis. Everything runs in your browser.
How to use this Quadratic Formula Calculator
Write the equation in standard form
Move every term to one side so it reads ax² + bx + c = 0. The three numbers left in front of x², x, and the constant are what you type in.
Enter a, b, and c
Type each coefficient, including the minus sign where there is one. Fractions such as 3/4 work, and the equation preview confirms what you entered.
Read the roots and the working
You get the discriminant, both roots, the vertex, the factored form, a graph of the parabola, and every line of the calculation.
Example Usage
Solving x² − 5x + 6 = 0 with the quadratic formula:
Frequently Asked Questions
What is the quadratic formula?
What does the discriminant tell me?
Why does my equation have no real solutions?
Can I use this if a is 0?
How do I find a, b, and c from a messy equation?
What is the vertex and why is it shown?
Should I factor instead of using the formula?
Does the calculator show the steps for homework?
Can I enter fractions or decimals as coefficients?
What do the sum and product of roots mean?
Why does the graph matter?
Is my input sent anywhere?
Related Tools
Scientific Calculator
Run trigonometry, logarithm, power, and root calculations in your browser.
Binary Calculator
Perform arithmetic on binary numbers.
Algebra Calculator
Solve linear and quadratic equations, simplify expressions, and work through systems of equations with the steps shown.
Integral Calculator
Find antiderivatives and evaluate definite integrals, with the integration rules and numeric area shown for each step.
Percentage Calculator
Work out what percent of a number, what percent one number is of another, percentage increase and decrease, and discounts or markups. Five calculators on one page.
System of Equations Calculator
Solve 2x2, 3x3, and 4x4 linear systems by elimination, with every row operation, exact fractions, a substitution check, and a graph.
The Quadratic Formula Calculator is maintained by CodeItBro. We aim to provide the best free developer tools on the web. If you have feedback or suggestions, please visit our contact page.

