Quadratic Formula Calculator
Solve ax² + bx + c = 0 with roots, discriminant & steps
🧮 Enter your equation
Coefficients of ax² + bx + c = 0
✅ Solutions
📐 Key values
📝 Step-by-step solution
- 1. Identify the coefficients.a = 1, b = -3, c = -4
- 2. Write the quadratic formula.x = (−b ± √(b² − 4ac)) / (2a)
- 3. Compute the discriminant.D = (-3)² − 4 · (1) · (-4) = 25
- 4. Substitute into the formula.x = (−(-3) ± √25) / (2 · 1)
- 5. Simplify to the root(s).x = 4 or x = -1
Results are computed with the standard quadratic formula and rounded for display. For exact answers with irrational or repeating values, keep the radical form shown in the steps.
Last updated June 2026
Method: Solutions use the standard quadratic formula x = (−b ± √(b² − 4ac)) / 2a, with the discriminant determining whether the roots are real or complex. The vertex uses x = −b/2a.
Included: Two real, one repeated, or two complex roots; the discriminant; the vertex; axis of symmetry; y-intercept; parabola direction; and a full step-by-step solution.
Not included: Symbolic radical simplification of irrational roots (shown as decimals) and graphing. A linear fallback handles the special case a = 0.
Disclaimer: This is a free educational tool for learning and checking your own work, not professional or academic advice. Irrational and complex roots are shown as rounded decimal estimates - always verify a root by substituting it back into the original equation.
Quadratic formula calculator: the complete guide
A quadratic equation is any equation that can be written as ax² + bx + c = 0, where a, b and c are numbers and a ≠ 0. The quadratic formula is the universal tool for solving it - it works no matter how messy the numbers are. Take x² − 3x − 4 = 0: plug a = 1, b = −3, c = −4 into the formula and you get x = 4 and x = −1 in a few seconds. This quadratic equation solver does that arithmetic for you and, just as importantly, shows every step so you can learn the method, not just copy the answer.
The formula and what each part means
The quadratic formula is one of the most-used results in all of algebra:
x = ( −b ± √(b² − 4ac) ) ÷ (2a) Reading it left to right: you negate b, then add and subtract the square root of the discriminant (the piece under the radical, b² − 4ac), and finally divide the whole thing by 2a. The ± sign is the reason a quadratic usually has two answers: one from the plus, one from the minus.
How to use this calculator
You only need the three coefficients. Work through it in order:
- Put the equation in standard form. Rearrange so one side equals zero: ax² + bx + c = 0. Move every term to the left.
- Read off a, b and c. a is the number in front of x², b in front of x, and c is the constant. Watch the signs - a minus stays with its term.
- Type each value into its box. Decimals and negatives are fine. If a term is missing, its coefficient is 0 (for example x² − 9 = 0 has b = 0).
- Read the results. The roots appear at the top, with the discriminant, vertex and axis of symmetry below, and a step-by-step breakdown you can follow line by line.
- Check your answer. Substitute a root back into the original equation; it should give zero.
Who this calculator is for
- Algebra 1 & Algebra 2 students learning to solve quadratics and check homework.
- SAT, ACT and GCSE test-takers who want fast, reliable practice and verification.
- College students in calculus, physics or engineering who hit quadratics inside larger problems.
- Teachers and tutors generating worked examples with visible steps.
- Anyone who needs the roots of a quadratic for projectile motion, area, optimization or finance problems.
The discriminant: a shortcut for the number of solutions
Before solving fully, the discriminant D = b² − 4ac tells you what kind of answer to expect:
- D > 0: two distinct real roots - the parabola crosses the x-axis twice.
- D = 0: one repeated real root (a "double root") - the parabola just touches the x-axis at its vertex.
- D < 0: two complex roots (conjugates a ± bi) - the parabola never touches the x-axis.
If D is a perfect square and a, b, c are whole numbers, the roots are rational, meaning the equation could also be solved by factoring.
Discriminant reference table
Use this to interpret the discriminant value at a glance:
| Discriminant b² − 4ac | Roots | Graph (parabola vs. x-axis) |
|---|---|---|
| Positive, perfect square | 2 real, rational | Crosses at two "nice" points; factorable |
| Positive, not perfect square | 2 real, irrational | Crosses at two points (involves a √) |
| Zero | 1 real (double root) | Touches the x-axis at the vertex |
| Negative | 2 complex (a ± bi) | Never touches the x-axis |
Worked example 1: two real roots
Solve x² − 3x − 4 = 0. Here a = 1, b = −3, c = −4.
- Discriminant: D = (−3)² − 4(1)(−4) = 9 + 16 = 25 (positive, so two real roots).
- √25 = 5, so x = (3 ± 5) / 2.
- x = (3 + 5)/2 = 4 and x = (3 − 5)/2 = −1.
Because 25 is a perfect square, the roots are whole numbers and the equation also factors as (x − 4)(x + 1) = 0.
Worked example 2: one repeated root
Solve x² − 6x + 9 = 0. Here a = 1, b = −6, c = 9.
- Discriminant: D = (−6)² − 4(1)(9) = 36 − 36 = 0.
- Since D = 0, x = −b/2a = 6/2 = 3 (a single, repeated root).
This is a perfect-square trinomial: (x − 3)² = 0. The parabola just touches the x-axis at x = 3.
Worked example 3: complex roots
Solve x² + 2x + 5 = 0. Here a = 1, b = 2, c = 5.
- Discriminant: D = (2)² − 4(1)(5) = 4 − 20 = −16 (negative, so complex roots).
- √(−16) = 4i, so x = (−2 ± 4i) / 2.
- x = −1 + 2i and x = −1 − 2i - complex conjugates.
The parabola sits entirely above the x-axis, so there are no real solutions, only complex ones.
The vertex, axis of symmetry and the graph
Every quadratic graphs as a parabola. The vertex is its turning point, located at x = −b/2a; substitute that x back in to get the y-coordinate. The vertical line through the vertex is the axis of symmetry. When a > 0 the parabola opens upward (∪) and the vertex is the minimum; when a < 0 it opens downward (∩) and the vertex is the maximum. The y-intercept is simply (0, c). This calculator reports all four so you can sketch the curve quickly.
Key terms explained
- Coefficient: the numbers a, b and c that multiply the terms.
- Root / solution / zero: a value of x that makes the equation equal zero; where the graph crosses the x-axis.
- Discriminant: b² − 4ac; decides real vs. complex roots.
- Double root: a single solution counted twice, occurring when D = 0.
- Complex conjugate: a pair a + bi and a − bi; quadratics with real coefficients always have complex roots in such pairs.
- Vertex: the maximum or minimum point of the parabola, at x = −b/2a.
- Standard form: the arrangement ax² + bx + c = 0 needed before you read off a, b and c.
Other ways to solve a quadratic
The quadratic formula always works, but it is not the only method:
- Factoring: fastest when the quadratic splits into nice integer factors, e.g. (x − 4)(x + 1) = 0.
- Completing the square: rewrites the equation as (x + p)² = q; it is actually how the quadratic formula is derived.
- Graphing: reading the x-intercepts off a plot - good for estimates, less so for exact answers.
If factoring or completing the square stalls, fall back to the formula - it never fails on a genuine quadratic. When the discriminant is positive but not a perfect square, you can evaluate the leftover square root quickly with the Scientific Calculator.
Where quadratics show up in real life
Quadratics are everywhere once you look. Projectile motion (the height of a thrown ball over time) is a quadratic, and solving it for zero tells you when the object lands. Area and geometry problems - "a rectangle's length is 3 more than its width and its area is 40" - reduce to quadratics. So do optimization questions (maximizing profit or minimizing cost, where the vertex is the answer) and parts of physics, engineering and finance. Knowing the formula means you can finish any of these once you reach the ax² + bx + c = 0 stage.
Tips for getting it right
- Always move everything to one side first so the equation equals zero before identifying a, b and c.
- Keep negative signs attached to their coefficients - a wrong sign on b or c throws off the whole result.
- Compute the discriminant before anything else; its sign tells you immediately what kind of answer to expect.
- Remember the entire numerator −b ± √D is divided by 2a, not just part of it.
- Verify a root by substituting it back into the original equation - the check takes seconds and catches arithmetic slips.
How this compares to related calculators
This page solves quadratic equations specifically. For neighbouring tasks, a sister tool fits better: the Scientific Calculator for general expressions and square roots, the Fraction Calculator when your coefficients are fractions, the Average Calculator for mean/median/mode, the Ratio Calculator for proportions, and the Percentage Calculator for percent problems.
- Coefficients given as fractions? Clear them with the Fraction Calculator before reading off a, b and c.
- Need to evaluate or check a stray square root by hand? The Scientific Calculator handles √, powers and logs.
- Turning a word problem into a percentage or proportion first? Use the Percentage Calculator or the Ratio Calculator, then bring the resulting equation back here.
⚠️ Common mistakes & edge cases
Forgetting to set the equation to zero
The formula needs standard form, ax² + bx + c = 0. If your equation is, say, x² + 2x = 8, move the 8 over first (x² + 2x − 8 = 0) so c = −8. Reading coefficients before rearranging is the most common error.
Dropping a negative sign
A minus belongs to its coefficient. In x² − 3x − 4 = 0, b is −3 and c is −4, not 3 and 4. The discriminant squares b, but the −b at the front and the sign of c still matter, so enter signs exactly.
Dividing only part of the numerator by 2a
The whole expression −b ± √(b² − 4ac) is divided by 2a. A frequent slip is dividing only the square-root part. Treat the entire numerator as one quantity over 2a.
Assuming a negative discriminant means "no answer"
A negative discriminant means no real roots, but there are still two complex roots of the form a ± bi. They are valid solutions - this calculator shows them rather than reporting an error.
❓ Frequently asked questions
What is the quadratic formula?
The quadratic formula solves any equation of the form ax² + bx + c = 0 (with a ≠ 0). It is x = (-b ± √(b² - 4ac)) / 2a. The ± symbol means you compute two values: one using plus and one using minus. The part under the square root, b² - 4ac, is called the discriminant and tells you how many real solutions the equation has.
How do I use this quadratic formula calculator?
Enter the three coefficients a, b and c from your equation written in the form ax² + bx + c = 0. The calculator shows the root(s), the discriminant, the vertex and the axis of symmetry, plus a step-by-step solution. If you rearranged your equation, make sure everything is on one side and equals zero before reading off a, b and c.
What is the discriminant and why does it matter?
The discriminant is D = b² - 4ac, the expression under the square root. Its sign tells you the nature of the roots without solving fully: if D > 0 there are two distinct real roots, if D = 0 there is one repeated real root, and if D < 0 there are two complex (conjugate) roots. The larger D is, the further apart the two real roots are.
Can the quadratic formula give complex or imaginary roots?
Yes. When the discriminant is negative, the square root of a negative number produces imaginary values, so the two roots are complex conjugates of the form a ± bi, where i = √-1. This calculator handles that case and shows the real and imaginary parts separately. Graphically it means the parabola never touches the x-axis.
What if a = 0?
If a = 0 the equation is no longer quadratic - the x² term disappears and it becomes the linear equation bx + c = 0. The quadratic formula divides by 2a, so it is undefined when a = 0. This calculator detects that case and solves the linear equation for you instead (x = -c/b), or reports when there is no solution or infinitely many.
How do I find the vertex of a parabola from the formula?
The vertex is the turning point of the parabola y = ax² + bx + c. Its x-coordinate is -b/2a (the same as the axis of symmetry), and you get the y-coordinate by substituting that x back into the equation. The vertex is the minimum point when a > 0 (parabola opens upward) and the maximum point when a < 0 (opens downward).
Is factoring or the quadratic formula better?
Factoring is faster when the quadratic factors neatly into whole numbers, but many equations do not factor cleanly. The quadratic formula always works for any quadratic, factorable or not, which is why it is the reliable fallback. If the discriminant is a perfect square, the roots are rational and the equation could also have been factored.
What does it mean when the discriminant is a perfect square?
If b² - 4ac is a perfect square (like 9, 16 or 25) and a, b and c are integers, the two roots are rational numbers - whole numbers or simple fractions. That is exactly the situation in which the quadratic can also be solved by factoring. When the discriminant is positive but not a perfect square, the roots are irrational and involve a square root.
Why are there usually two solutions to a quadratic equation?
A quadratic graphs as a parabola, a U-shaped (or ∩-shaped) curve. Setting it equal to zero asks where the curve crosses the x-axis, and a parabola can cross in two places, touch at one place, or miss entirely. That is why a quadratic has at most two real solutions - the ± in the formula generates both crossing points.
Can I use this calculator for homework and exams?
Yes - it is built to teach as well as answer. Use the step-by-step section to check each stage of your own work: identifying the coefficients, computing the discriminant, substituting, and simplifying. Always show your own working where required, and verify a root by plugging it back into the original equation to confirm it gives zero.
How do I check my two roots are correct?
Use the sum-and-product rule. For ax² + bx + c = 0 the two roots always add up to -b/a and multiply to c/a. After solving, add your roots and multiply them: if the sum equals -b/a and the product equals c/a, your answers are almost certainly right. For example, with x² - 3x - 4 = 0 the roots 4 and -1 sum to 3 (= -b/a) and multiply to -4 (= c/a), which confirms them.
What is standard form for a quadratic equation?
Standard form is ax² + bx + c = 0, with every term moved to one side so the other side is zero and the terms ordered by descending power of x. You must rearrange into standard form before reading off the coefficients a, b and c. For instance, 2x² + 5 = 7x becomes 2x² - 7x + 5 = 0, giving a = 2, b = -7 and c = 5.
Does the quadratic formula work when b or c is zero?
Yes. A missing term simply means that coefficient is 0. For x² - 9 = 0 you have b = 0, so the formula gives x = ±3. For x² + 4x = 0 you have c = 0, giving x = 0 and x = -4. Only a cannot be zero - if a = 0 the equation is no longer quadratic and the calculator switches to solving it as a linear equation.
💡 Good to know
Check the discriminant first
You can tell how many solutions a quadratic has - and whether they are real or complex - just from the sign of b² − 4ac, before doing the full calculation. It is the fastest sanity check on any quadratic.
The sum and product of the roots
For ax² + bx + c = 0, the two roots add up to −b/a and multiply to c/a. That is a quick way to verify your answers: if both relationships hold, your roots are almost certainly correct.
A perfect-square discriminant means it factors
If b² − 4ac is a perfect square and the coefficients are integers, the roots are rational and the quadratic factors into nice whole-number binomials - so you could skip the formula entirely if you spot it.
Related Calculators
Percentage Calculator
Solve any percentage problem - what is X% of Y and more
Fraction Calculator
Add, subtract, multiply and divide fractions
Scientific Calculator
A full scientific calculator with trig, logs and more
Average Calculator
Calculate the mean, median and mode of numbers
GPA Calculator
Calculate your grade point average (weighted or unweighted)
Ratio Calculator
Simplify, scale and solve ratios and proportions