Free algebra calculator

Quadratic Formula Calculator

Solve ax^2 + bx + c = 0 with the quadratic formula, including real roots, repeated roots, complex roots, discriminant, vertex, and axis of symmetry.

  • Real and complex roots
  • Discriminant result
  • Step-by-step work
  • Vertex and axis

Equation inputs

Enter coefficients

Use the standard form ax^2 + bx + c = 0. For example, x^2 - 3x + 2 = 0 uses a = 1, b = -3, and c = 2.

The calculator updates instantly as you type. It uses decimal approximations for irrational roots.

Solution

Roots and discriminant

x^2 - 3x + 2 = 0x = 2

Enter a, b, and c to solve the equation.

Root 1
x = 2
Root 2
x = 1
Discriminant
1
Root type
Two real roots
Axis of symmetry
x = 1.5
Vertex
(1.5, -0.25)

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

Step-by-step solution

The calculator breaks the answer into the formula setup, discriminant, and final root calculation.

    Verification

    Check the solution

    Root sum
    3 = -b/a
    Root product
    2 = c/a

    Both checks pass.

    How the quadratic formula works

    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.

    What the discriminant tells you

    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.

    Why the vertex and axis are included

    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.

    Common quadratic formula mistakes

    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.

    Methodology, Formula & Official Standards

    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.

    Step-by-Step Worked Example

    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.

    Reference Benchmark & Comparison Table: Quadratic Discriminant (Delta = b^2 - 4ac) Classification & Parabola Geometry Reference

    Discriminant ConditionRoot Type & Multiplicityx-Axis Graph InterceptsFactorability Over RationalsSample Equation & Roots
    Delta > 0 (Perfect Square)2 Distinct Rational Real RootsCrosses x-axis at 2 rational pointsFactorable into (px + q)(rx + s)2x^2 - 7x + 3 = 0 -> x = 3, 0.5
    Delta > 0 (Non-Square)2 Distinct Irrational Real RootsCrosses x-axis at 2 radical pointsRequires Quadratic Formulax^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 pointPerfect square trinomial (px + q)^2x^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 Rx^2 + 2x + 5 = 0 -> x = -1 ± 2i
    a > 0 vs. a < 0 CurvatureControls concavity & extremuma > 0 opens up (min); a < 0 opens down (max)Vertex y_ext = c - b^2/(4a)Physics projectile motion (a = -0.5g)

    Frequently Asked Questions

    What does the discriminant (b^2 - 4ac) tell you without solving the full equation?

    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.

    Why can't coefficient 'a' equal zero in the quadratic formula?

    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.

    How do you find the vertex and maximum height of a projectile using a quadratic equation?

    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.

    What are Vieta's formulas for checking quadratic roots?

    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

    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.