Verification
Check the solution
- Root sum
- 3 = -b/a
- Root product
- 2 = c/a
Both checks pass.
Free algebra calculator
Solve ax^2 + bx + c = 0 with the quadratic formula, including real roots, repeated roots, complex roots, discriminant, vertex, and axis of symmetry.
Solution
Enter a, b, and c to solve the equation.
For homework or tests, show the exact form your teacher expects. This calculator displays practical decimal results and formula steps.
Copy the equation, roots, formula work, and verification checks as plain text.
Formula work
The calculator breaks the answer into the formula setup, discriminant, and final root calculation.
Verification
Both checks pass.
The quadratic formula solves equations in the form ax^2 + bx + c = 0. The coefficients a, b, and c are substituted into x = (-b +/- sqrt(b^2 - 4ac)) / 2a. This is useful when factoring is difficult, when the roots are irrational, or when you want a reliable way to check algebra work.
The value under the square root, b^2 - 4ac, is called the discriminant. It controls the kind of answer the equation has before you even finish solving.
If the discriminant is positive, the equation has two real roots. If it is zero, the equation has one repeated real root. If it is negative, the equation has two complex roots because the square root of a negative number requires i.
Students often use the discriminant as a quick answer check. For example, if a graph never crosses the x-axis, the discriminant should be negative and the roots should be complex.
The roots show where the parabola crosses the x-axis, but the vertex shows the high or low point of the graph. The axis of symmetry is the vertical line through that vertex. Together, these values make it easier to connect equation solving with graphing.
The axis of symmetry is x = -b / 2a. After finding that x value, the calculator substitutes it back into ax^2 + bx + c to estimate the vertex point.
The most common mistakes are forgetting parentheses around negative b values, dropping the plus-or-minus sign, and dividing only part of the numerator by 2a. Another common issue is using the formula when a is zero. If a is zero, the equation is linear and should be solved as bx + c = 0.
When you are checking homework, write the substitution step before simplifying. That makes sign mistakes easier to catch.
This quadratic equation solver computes the exact and decimal roots of any second-degree polynomial ax^2 + bx + c = 0 (where a != 0) by completing the square via the canonical quadratic formula x = [-b ± sqrt(b^2 - 4ac)] / (2a), alongside the parabola's vertex coordinates (h, k) = (-b / (2a), c - b^2 / (4a)) and axis of symmetry x = -b / (2a). In accordance with NIST Digital Library of Mathematical Functions (DLMF) numerical stability guidelines, the discriminant Delta = b^2 - 4ac classifies root behavior into two distinct real roots (Delta > 0), one repeated real root at the vertex (Delta = 0), or a complex conjugate pair x = -b/(2a) ± i·sqrt(|Delta|)/(2a) when Delta < 0.
Worked Example: Solve 2x^2 - 7x + 3 = 0 where a = 2, b = -7, and c = 3. First, compute the discriminant: Delta = (-7)^2 - 4(2)(3) = 49 - 24 = 25. Because Delta = 25 > 0 and is a perfect square (sqrt(25) = 5), the parabola crosses the x-axis at two rational roots: x_1 = (7 + 5) / (2 × 2) = 12 / 4 = 3, and x_2 = (7 - 5) / 4 = 2 / 4 = 0.5. The vertex minimum sits at h = 7 / 4 = 1.75 and k = 2(1.75)^2 - 7(1.75) + 3 = -3.125.
| Discriminant Condition | Root Type & Multiplicity | x-Axis Graph Intercepts | Factorability Over Rationals | Sample Equation & Roots |
|---|---|---|---|---|
| Delta > 0 (Perfect Square) | 2 Distinct Rational Real Roots | Crosses x-axis at 2 rational points | Factorable into (px + q)(rx + s) | 2x^2 - 7x + 3 = 0 -> x = 3, 0.5 |
| Delta > 0 (Non-Square) | 2 Distinct Irrational Real Roots | Crosses x-axis at 2 radical points | Requires Quadratic Formula | x^2 - 4x + 1 = 0 -> x = 2 ± sqrt(3) |
| Delta = 0 (Zero Discriminant) | 1 Repeated Real Root (Double Root) | Vertex is tangent to x-axis at 1 point | Perfect square trinomial (px + q)^2 | x^2 - 6x + 9 = 0 -> x = 3 |
| Delta < 0 (Negative) | 2 Complex Conjugate Roots (a ± bi) | Never touches x-axis (above/below) | Irreducible over real numbers R | x^2 + 2x + 5 = 0 -> x = -1 ± 2i |
| a > 0 vs. a < 0 Curvature | Controls concavity & extremum | a > 0 opens up (min); a < 0 opens down (max) | Vertex y_ext = c - b^2/(4a) | Physics projectile motion (a = -0.5g) |
The discriminant inside the square root immediately tells you the number and nature of solutions: positive means two real x-intercepts, zero means one tangent vertex root, and negative means two complex/imaginary roots with no real x-intercepts.
If a = 0, the x^2 term vanishes and the equation reduces to a linear equation bx + c = 0 (solved simply as x = -c/b), and substituting a = 0 into the quadratic formula would cause division by zero in the denominator 2a.
For a height function h(t) = at^2 + bt + c (where a is negative gravity acceleration), the time to reach peak height is t = -b / (2a), and substituting that time back into h(t) gives the maximum peak altitude.
Vieta's formulas state that for any quadratic ax^2 + bx + c = 0, the sum of the two roots (x_1 + x_2) always equals -b/a and the product of the two roots (x_1 × x_2) always equals c/a, providing an instant verification check.
Editorial Methodology & Disclaimer: All calculator outputs and reference tables on Utility Stack are educational planning estimates based on published mathematical standards. They are not professional financial, legal, tax, or medical advice.
Official Standards & Policies: About & Methodology | Privacy Policy | Terms & Disclaimer | Contact