Solve quadratic equations quickly and see exactly how the answer is obtained. This quadratic formula calculator solves equations in the form ax² + bx + c = 0 and shows the discriminant, roots, vertex, axis of symmetry, y-intercept and vertex form of the corresponding parabola.
Unlike a result-only calculator, this tool also provides a step-by-step quadratic formula solution and alternative methods where applicable, including completing the square and factoring. An interactive parabola graph connects the algebraic result to the geometry of the quadratic function.
The calculator supports positive, zero and negative discriminants, so it can handle equations with two real roots, one repeated real root, and two complex conjugate roots. It also identifies the special case where a = 0 and the equation is no longer quadratic.
What Is the Quadratic Formula?
For a quadratic equation in standard form,
with a ≠ 0, the quadratic formula is:
The expression b² - 4ac is called the discriminant.
The quadratic formula provides the solutions of any quadratic equation whose leading coefficient is nonzero. The discriminant also tells you what type of solutions to expect before the equation is fully solved.
How to Use This Quadratic Formula Calculator
Enter the three coefficients:
- a: Quadratic coefficient (must be nonzero for quadratic behavior)
- b: Linear coefficient
- c: Constant term
The calculator automatically forms the equation: ax² + bx + c = 0.
It then evaluates the discriminant and determines whether the equation has:
- two distinct real roots
- one repeated real root
- two complex conjugate roots
The result area also provides geometric information about the corresponding parabola. Depending on the equation, you can inspect:
The step-by-step section shows how the quadratic formula is applied rather than only displaying the final answer.
What Is the Standard Form of a Quadratic Equation?
A quadratic equation is commonly written as:
where a, b and c are constants and: a ≠ 0.
The coefficient a controls the quadratic term, b controls the linear term, and c is the constant term.
The condition a ≠ 0 matters because setting a = 0 removes the x² term. The equation then becomes linear:
The calculator explicitly handles this degenerate case instead of incorrectly applying the quadratic formula to a linear equation.
What Does the Discriminant Tell You?
The discriminant is:
Its sign determines the nature of the roots:
Δ > 0
There are two distinct real roots. The parabola intersects the x-axis at two different points.
Δ = 0
There is one repeated real root. The parabola touches the x-axis at exactly one point.
Δ < 0
There are no real roots. For a quadratic with real coefficients, the two roots are a complex-conjugate pair.
The calculator uses the discriminant both to classify the roots and to select the appropriate result and graph behavior.
Table 1: Discriminant Root Classification & Parabola Geometry
| Discriminant | Root Type | Graph Behavior |
|---|---|---|
| Δ > 0 | Two distinct real roots | Crosses x-axis twice |
| Δ = 0 | One repeated real root | Touches x-axis once (tangent vertex) |
| Δ < 0 | Two complex conjugate roots | No real x-axis intersections |
If you need to simplify radicals that appear inside quadratic solutions, the Root Calculator & Radical Simplifier can help with exact radical expressions separately.
How to Solve a Quadratic Equation Step-by-Step
The quadratic formula can be applied systematically. Consider:
a = 1, b = -5, c = 6
Δ = b² - 4ac = (-5)² - 4(1)(6) = 25 - 24 = 1
x = [-(-5) ± √1] / [2(1)]
√1 = 1 → x = (5 ± 1) / 2
x₁ = (5 + 1) / 2 = 3
x₂ = (5 - 1) / 2 = 2
The calculator displays these transformations as individual steps so that the calculation can be checked line by line.
Quadratic Formula Example: x² − 5x + 6 = 0
Take the equation:
The coefficients are: a = 1, b = -5, c = 6.
Discriminant: Δ = (-5)² - 4(1)(6) = 1. Since Δ > 0, the equation has two distinct real roots.
Using the quadratic formula: x = [5 ± 1] / 2 → x₁ = 3, x₂ = 2.
The corresponding parabola is: y = x² - 5x + 6.
Vertex form: y = (x - 2.5)² - 0.25
Because a = 1 > 0, the parabola opens upward and the vertex is the global minimum.
Example With Complex Roots: 16x² − 5x + 6 = 0
Consider:
Here: a = 16, b = -5, c = 6.
The discriminant is: Δ = (-5)² - 4(16)(6) = 25 - 384 = -359.
Because the discriminant is negative, there are no real roots. The complex roots are:
The calculator displays the conjugate pair rather than incorrectly showing only one complex root.
The corresponding parabola opens upward because a is positive, but it does not cross the real x-axis because the quadratic has no real x-intercepts.
What Happens When the Discriminant Is Zero?
Take:
The discriminant is: Δ = (-6)² - 4(1)(9) = 36 - 36 = 0.
The two algebraic roots coincide: x₁ = x₂ = 3. This is a repeated root.
The parabola: y = x² - 6x + 9 has vertex: (3, 0) and touches the x-axis at that point.
The calculator treats this as one geometric point of contact rather than drawing two duplicate root markers on top of each other.
Ways to Solve a Quadratic Equation
The quadratic formula is universal for quadratic equations with a ≠ 0, but it is not the only method. This calculator also explains two important alternatives:
Factoring
When a quadratic can be factored conveniently, the equation can be written as a product of linear factors.
x² - 5x + 6 = 0 → (x - 2)(x - 3) = 0 → x = 2 or x = 3
Factoring is often the quickest method when the factors are easy to identify.
Completing the Square
Completing the square rewrites a quadratic into a perfect-square expression.
x² - 5x = -6 → x² - 5x + 25/4 = 1/4 → (x - 5/2)² = 1/4
Taking square roots produces the same two solutions: x = 3 or x = 2.
These are mathematically equivalent methods; the best choice depends on the equation and the goal of the calculation.
For broader numerical and scientific calculations beyond quadratic equations, see the Scientific Calculator.
How Do You Find the Vertex of a Quadratic?
For y = ax² + bx + c, the x-coordinate of the vertex is:
The y-coordinate is obtained by evaluating the function at h:
Therefore the vertex is (h, k).
For x² - 5x + 6: h = 5/2 = 2.5, k = -0.25, so Vertex = (2.5, -0.25).
The vertex is especially useful because it identifies the minimum when a > 0 and the maximum when a < 0.
If you need to analyze exponents more generally, including exponential rather than quadratic expressions, use the Exponent Calculator.
What Is the Axis of Symmetry?
Every parabola is symmetric about a vertical line through its vertex. The equation of that line is:
which is the same as the x-coordinate of the vertex. For x² - 5x + 6, the axis is x = 2.5.
The interactive graph displays this symmetry visually. Changing any coefficient updates the axis automatically because it is calculated from the active equation.
How Do You Find the Y-Intercept?
The y-intercept occurs where x = 0. For y = ax² + bx + c, substituting x = 0 gives:
For x² - 5x + 6, the y-intercept is (0, 6). The calculator displays this coordinate and uses the same value when plotting the parabola.
What Is Vertex Form?
A quadratic can also be written as:
where (h, k) is the vertex. Vertex form makes the geometry of the parabola easier to read:
- a > 0: opens upward, vertex gives global minimum
- a < 0: opens downward, vertex gives global maximum
This is one reason vertex form is especially useful for optimization problems. The calculator converts the standard quadratic into vertex form automatically.
What Are the Focus and Directrix of a Parabola?
A parabola can be defined geometrically as the set of points that are equidistant from a fixed point called the focus and a fixed line called the directrix.
For y = a(x - h)² + k, rewrite as: (x - h)² = 4p(y - k), which gives:
For y = (x - 2.5)² - 0.25, we have p = 0.25, so the focus is (2.5, 0) and the directrix is y = -0.5.
How Does the Coefficient a Affect the Parabola?
The coefficient a controls whether the parabola opens upward or downward:
- If a > 0: the parabola opens upward and the vertex is a minimum.
- If a < 0: the parabola opens downward and the vertex is a maximum.
The magnitude of a also affects how narrow or wide the parabola appears relative to y = x². A larger |a| produces a tighter curve, while a smaller |a| produces a wider curve.
How Does the Interactive Parabola Graph Work?
The graph plots the quadratic function: y = ax² + bx + c using the currently entered coefficients.
It visually connects the algebraic solution with the geometry of the function by showing features such as the parabola curve, vertex marker, dashed axis of symmetry, x-intercepts when real roots exist, and y-intercept.
When the discriminant is negative, the graph does not show imaginary roots as real x-axis intersections. When the discriminant is zero, the graph touches the x-axis at one point. When positive, it crosses at two real root locations.
What Is the Difference Between a Root and an X-Intercept?
A root is a value of x that makes f(x) = 0. For a real root, the corresponding graph point is (x, 0), which is an x-intercept.
For example, x² - 5x + 6 = 0 has roots 2 and 3, and the graph has x-intercepts at (2, 0) and (3, 0).
Complex roots are different. They solve the algebraic equation but are not points on the real xy-plane.
How Do Complex Roots Appear in a Quadratic Equation?
If Δ < 0, the square root of the discriminant involves a negative number. Using i = √(-1), the roots can be written in the form:
where p and q are real numbers. The two roots form a complex-conjugate pair. For 16x² - 5x + 6 = 0, the roots are approximately:
0.1563 + 0.5921i and 0.1563 - 0.5921i
The real parabola does not cross the x-axis because neither root is real.
What Happens If a Is Zero?
A quadratic requires a ≠ 0. If a = 0, the x² term disappears and the equation becomes bx + c = 0.
If b ≠ 0, this is a linear equation with: x = -c / b.
The calculator detects this situation instead of forcing the quadratic formula onto a linear equation.
0 = 0 (Identity, infinitely many solutions)
c = 0 (Contradiction, no solution)
How Many Solutions Can a Quadratic Have?
A degree-two polynomial has exactly two complex roots when multiplicity is counted. That can appear in three common ways for a quadratic with real coefficients:
- two distinct real roots
- one repeated real root
- two non-real complex conjugate roots
So saying that a quadratic always has "two real answers" is incorrect. The discriminant distinguishes these cases directly.
How Can You Check Quadratic Roots?
Vieta's relationships provide a powerful consistency check for ax² + bx + c = 0 with roots x₁ and x₂:
For x² - 5x + 6 = 0, the roots are 2 and 3. Their sum is 2 + 3 = 5 (-b/a = 5), and their product is 2 × 3 = 6 (c/a = 6).
The calculator's automated audit engine uses these relationships as regression checks.
Why Might My Quadratic Answer Have Decimals?
Some quadratic equations produce irrational roots that cannot be represented exactly as terminating decimals.
For example: 2x² + 4x - 3 = 0 has Δ = 40, and √40 = 2√10.
The exact roots can be written as: (-2 ± √10) / 2. A decimal approximation is about 0.5811 and about -2.5811.
The exact radical form preserves more mathematical information than a rounded decimal.
Quadratic Formula vs Factoring vs Completing the Square
Use factoring: when the quadratic breaks naturally into simple linear factors.
Use completing the square: when you want to derive vertex form or understand the structure of the quadratic.
Use the quadratic formula: when you need a universal algebraic method that works for any quadratic with a ≠ 0.
For teaching and verification, seeing all available methods can be especially useful because equivalent methods provide independent confirmation of the same roots.
How Can a Quadratic Find a Maximum or Minimum?
The vertex gives the extremum of a quadratic function:
- If a > 0: the parabola opens upward and the vertex is the global minimum.
- If a < 0: the parabola opens downward and the vertex is the global maximum.
For y = ax² + bx + c, the vertex x-coordinate is x = -b / (2a). Then evaluate the function at that x-value to obtain the extremum.
This makes quadratic functions useful in optimization problems involving area, revenue, projectile height and similar modeled relationships.
Where Are Quadratic Equations Used?
Under simplified constant-gravity assumptions, vertical position can be modeled as a quadratic function of time. The vertex corresponds to maximum height.
Simplified models of revenue, cost or profit can sometimes produce quadratic functions where the vertex identifies maximum profit.
Area and dimension problems often produce quadratic equations when one dimension depends linearly on another.
Quadratic relationships arise in acceleration, structural suspension cables, optics (parabolic reflectors) and energy equations.
Common Quadratic Formula Mistakes
Forgetting that b can be negative: If b = -5, then b² = (-5)² = 25. Do not treat b² as -25.
Losing the ± sign: The quadratic formula contains ±√Δ, which represents the two branches that generate the two roots.
Using the wrong denominator: The denominator is 2a, not 2b.
Forgetting the discriminant: Calculate b² - 4ac before classifying the roots.
Applying the quadratic formula when a = 0: If a = 0, the equation is linear or degenerate, not quadratic.
Rounding too early: Premature rounding can change the final roots. Keep full precision until the final displayed result.
Assuming negative discriminant means "no solutions": A negative discriminant means no REAL roots, but there are two complex roots for a real-coefficient quadratic.
How the Calculator Keeps the Equation and Parabola in Sync
The calculator's quadratic solver and Parabola Geometry Analyzer use the same active coefficients. Changing a, b or c updates the equation, roots, discriminant, graph, vertex and geometric properties together.
The geometry analyzer also provides a visible live-sync status badge so users know it is analyzing the same equation rather than a separate hidden example.
This matters because changing only one section while leaving another section unchanged can produce misleading results.
How Can I Save a Quadratic Calculation?
The calculator includes several ways to preserve or reuse your result:
All exportable values correspond strictly to the current active equation.
Quadratic Formula Reference
Table 2: Core Quantities, Formulas, and Geometric Meanings
| Quantity | Formula | Meaning |
|---|---|---|
| Standard Form | ax² + bx + c = 0 | Fundamental quadratic polynomial |
| Quadratic Formula | x = (-b ± √Δ) / 2a | Universal algebraic root solutions |
| Discriminant | Δ = b² - 4ac | Root classification and real x-intercept count |
| Axis of Symmetry | x = -b / (2a) | Vertical axis dividing parabola symmetrically |
| Vertex Point | (h, k) = (-b/2a, c - b²/4a) | Global minimum (a > 0) or maximum (a < 0) |
| Vertex Form | y = a(x - h)² + k | Transformation and geometry form |
| Focus Coordinate | (h, k + 1/(4a)) | Geometric reflection focus point |
| Directrix Line | y = k - 1/(4a) | Geometric reference directrix line |
| Y-Intercept | (0, c) | Coordinate point where curve crosses y-axis |
These formulas describe the same quadratic from complementary algebraic and geometric perspectives.
From Coefficients to Parabola
"The coefficients define both the algebraic solutions and the geometry of the corresponding quadratic function."
Mathematical References
The explanations and formulas on this page are based on standard algebra and quadratic-function concepts. For further study, use authoritative educational references such as OpenStax College Algebra, OpenStax Algebra 1 and OpenStax Precalculus:
- OpenStax College Algebra (2e) — Section 2.5: Quadratic EquationsCovers the quadratic formula, discriminant root classification, completing the square, and complex solutions.
- OpenStax College Algebra (2e) — Section 5.1: Quadratic Functions & ParabolasExplains standard form, vertex form, axis of symmetry, finding extrema (minima and maxima), and graphing.
- OpenStax Precalculus (2e) — Conic Sections: The ParabolaGeometric definitions of the parabola, focal distance p = 1/(4a), focus coordinates, and directrix lines.
Quadratic Formula Calculator FAQ
32 AnswersRelated Calculators
Mathematical Disclaimer:
This calculator is an educational mathematical tool. It applies standard algebraic formulas to the coefficients you enter and presents the resulting solutions, graph and related quadratic properties.
For coursework, research or professional applications, verify important results independently when the consequences of an error are significant. The calculator does not determine which mathematical model is appropriate for a real-world problem. A correct algebraic solution can still be inappropriate if the underlying equation, assumptions or domain are incorrect.