Home › Calculators › Quadratic Equation Solver

Quadratic Equation Solver

Enter a, b and c to solve ax² + bx + c = 0. You get exact roots in simplified radical form (or complex roots), the discriminant, vertex, axis of symmetry, factored and vertex forms, a step-by-step quadratic formula solution and a graph of the parabola.

Last updated:

x²
x
= 0

Enter whole numbers, decimals or fractions such as 3/4 or -0.5. Leave b or c empty for 0.

Roots (solutions)–
Discriminant b² − 4ac–
Vertex–
Axis of symmetry–
y-intercept–
Factored form–
Vertex form–

Graph of the parabola

RootsVertexy-intercept

Step-by-step solution

    Advertisement

    How to use the Quadratic Equation Solver

    1. Rewrite your equation so one side is zero, in the form ax² + bx + c = 0.
    2. Type a, b and c. Use a minus sign for negative values, and decimals or fractions are fine. A missing term is 0.
    3. Press Solve (results also update as you type).
    4. Read the roots in exact form and as decimals, plus the discriminant, vertex and factored form.
    5. Check the graph and steps: the parabola shows where it crosses the x-axis, and the steps show every stage of the quadratic formula.

    Quadratic formula and key facts

    QuantityFormulaMeaning
    Rootsx = (−b ± √(b² − 4ac)) / 2aWhere the parabola crosses the x-axis
    DiscriminantD = b² − 4acD > 0: two real roots · D = 0: one double root · D < 0: complex roots
    Sum of rootsx₁ + x₂ = −b/aVieta's formula, a quick check
    Product of rootsx₁ · x₂ = c/aVieta's formula
    Vertex(−b/2a, c − b²/4a)Minimum if a > 0, maximum if a < 0
    Axis of symmetryx = −b/2aThe parabola is a mirror image on each side
    Vertex formy = a(x − h)² + kCompleting the square

    Worked example with an irrational answer

    Solve 2x² + 4x − 3 = 0. Here a = 2, b = 4 and c = −3.

    1. Discriminant: D = 4² − 4·2·(−3) = 16 + 24 = 40. It is positive but not a perfect square, so there are two irrational real roots.
    2. Formula: x = (−4 ± √40) / 4.
    3. Simplify the root: √40 = √(4·10) = 2√10, so x = (−4 ± 2√10) / 4.
    4. Cancel the common factor 2: x = (−2 ± √10) / 2, which is x ≈ 0.581139 or x ≈ −2.581139.
    5. Check with Vieta: the sum is −2 = −b/a and the product is (4 − 10)/4 = −1.5 = c/a.

    Examples of each type of root

    EquationDRootsFactored form
    x² − 3x + 2 = 011 and 2(x − 1)(x − 2)
    6x² − 5x − 6 = 0169−2/3 and 3/2(3x + 2)(2x − 3)
    x² − 6x + 9 = 003 (double root)(x − 3)²
    2x² + 4x − 3 = 040(−2 ± √10)/22(x − 0.581139)(x + 2.581139)
    x² + 2x + 5 = 0−16−1 ± 2iNot factorable over the reals

    Frequently asked questions

    What is the quadratic formula?

    For ax² + bx + c = 0 with a ≠ 0, the solutions are x = (−b ± √(b² − 4ac)) / 2a. The ± gives the two roots, one using + and one using −.

    What does the discriminant tell you?

    The discriminant D = b² − 4ac decides the type of roots. If D > 0 there are two different real roots, if D = 0 there is one repeated real root, and if D < 0 there are two complex conjugate roots and the parabola does not cross the x-axis.

    How do I simplify the square root in the answer?

    Take out the largest perfect square factor. For example √40 = √(4 × 10) = 2√10, so (−4 ± √40)/4 simplifies to (−2 ± √10)/2 after dividing everything by the common factor 2.

    How do you find the vertex of a parabola?

    The vertex x-coordinate is h = −b/2a and the y-coordinate is k = c − b²/4a, which is the same as substituting h back into the equation. The vertex is a minimum when a > 0 and a maximum when a < 0.

    When can a quadratic be factored?

    A quadratic with whole-number coefficients factors into whole-number brackets exactly when its discriminant is a perfect square. For 6x² − 5x − 6, D = 169 = 13², so it factors as (3x + 2)(2x − 3).

    What happens if a = 0?

    Then there is no x² term and the equation is linear, bx + c = 0, with the single solution x = −c/b. The solver detects this and solves it as a linear equation.

    Can I enter fractions or decimals?

    Yes. Values like 1/2, −3/4 or 0.25 are converted to exact fractions, so the roots, vertex and factored form stay exact instead of being rounded.

    Are all the tools on FreeToolCabin tested for quality and accuracy?

    Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

    Related tools

    Graphing CalculatorPlot multiple functions with zoom, pan, intersections and a value table.Scientific CalculatorTrig, logs, powers and more in your browser.Fraction CalculatorAdd, subtract, multiply and divide fractions with steps.Ratio CalculatorSimplify, solve and scale ratios with step-by-step working.Differential Equation SolverSolve first- and second-order ODEs step by step, with initial conditions, an RK4 check and a graph.Free Fall CalculatorFall time and impact velocity from a height, or height from time or speed, with a chart and table.Kinematics Calculator (SUVAT)Enter any 3 of s, u, v, a and t to solve the other 2 with the SUVAT equations shown.Matrix CalculatorAdd, multiply, invert and row-reduce matrices up to 5×5 with exact fractions and steps.Exponent CalculatorRaise any number to a power, including negative and fractional exponents.Logarithm CalculatorCalculate log in any base, ln, log10, log2 and antilog with change-of-base steps.Prime Number CheckerCheck if a number is prime, factor it with a factor tree and list primes in a range.GCF and LCM CalculatorFind the GCF and LCM of two or more numbers with Euclid steps and prime factorization.Cubic Yard CalculatorConvert length, width and depth in any unit to cubic yards, cubic feet, m³ and material weight.Factorial CalculatorExact n! up to 5000! with digit count, trailing zeros and double factorial.Prime Factorization CalculatorFind prime factors in exponent form with a factor tree, divisor count and divisors list.Modulo CalculatorCalculate a mod n and the quotient, with floored, truncated and Euclidean rules.Exponential Growth CalculatorExponential growth and decay: final amount, rate or time, discrete or continuous.Linear Regression CalculatorLeast-squares line of best fit: slope, intercept, r, r², predictions and a scatter plot.System of Equations SolverSolve 2×2, 3×3 and 4×4 linear systems with exact fractions and step-by-step working.Cubic Equation SolverSolve ax³ + bx² + cx + d = 0 for real and complex roots with steps and a graph.Summation CalculatorEvaluate sigma notation: sum any expression in n from a to b with partial sums and a chart.Arithmetic Sequence CalculatorFind the n-th term, sum and full list of an arithmetic sequence, or d from two terms.Geometric Sequence CalculatorFind the n-th term, sum and infinite sum of a geometric sequence, or r from two terms.Fibonacci CalculatorExact n-th Fibonacci number (BigInt), sequence lists, Fibonacci check and golden ratio.Factors CalculatorAll factors and factor pairs of a number, prime factors, divisor count and perfect check.Depth of Field CalculatorNear and far focus limits, depth of field and hyperfocal distance for any camera or lens.Crop Factor CalculatorCrop factor, full-frame equivalent focal length and aperture, and field of view for any sensor.Completing the Square CalculatorRewrite ax² + bx + c in vertex form a(x − h)² + k step by step and solve it.Derivative CalculatorSymbolic derivative of any f(x) up to 5th order, with steps, slope at a point and a graph.Exposure Value CalculatorEV from aperture, shutter and ISO, or solve any missing setting with sunny 16 presets.Factoring Trinomials CalculatorFactor trinomials and polynomials: GCF, ac method, difference of squares, cubes, with steps.Integral CalculatorDefinite integral of f(x) from a to b with adaptive Simpson, area graph and antiderivative.Least Common Denominator CalculatorFind the LCD of two or more fractions and rewrite them as equivalent fractions, with steps.Limiting Reactant CalculatorFind the limiting reactant, theoretical yield and leftover excess from an equation.Parabola CalculatorVertex, focus, directrix, axis, intercepts and graph of a parabola from its equation.Polynomial Root FinderFind all real and complex roots of a polynomial up to degree 10, with the factored form.Prime Number List GeneratorList all primes in a range or the first N primes with a fast sieve; copy or download the list.Quadratic Regression CalculatorFit y = ax² + bx + c (or up to degree 6) to x, y data with R², predictions and a graph.Inverse Function CalculatorFind the inverse f⁻¹(x) of a function with steps, domain restrictions and a graph.Laplace Transform CalculatorLaplace transform of f(t) with the table rule used for each term and the region of convergence.Limit CalculatorEvaluate limits at a point or at infinity, one-sided or two-sided, with steps, table and graph.Linear Interpolation CalculatorInterpolate or extrapolate y for any x from two points or a data table, with steps and a plot.Matrix Inverse CalculatorFind the inverse of a 2×2 to 8×8 matrix in exact fractions with Gauss–Jordan or adjugate steps.Partial Derivative CalculatorPartial derivatives ∂/∂x, ∂/∂y, second and mixed orders with steps, gradient and Hessian.RREF CalculatorRow reduce any matrix to RREF with exact fractions, every row operation, pivots and rank.Stem and Leaf Plot MakerMake stem-and-leaf plots (standard, split stems or back-to-back) with a key; copy or save PNG.Taylor Series CalculatorTaylor and Maclaurin polynomials of any f(x) to order n, with exact coefficients and a graph.Antilog CalculatorInverse logarithm (antilog) in base 10, e, 2 or any base, with steps and scientific notation.Asymptote CalculatorFind vertical, horizontal and slant asymptotes and holes of a function, with graph and reasoning.Cramer's Rule CalculatorSolve 2x2 and 3x3 linear systems by Cramer's rule with every determinant shown step by step.Dot Plot MakerMake a dot plot or line plot from data or a frequency table; download PNG or SVG.Exponential Regression CalculatorFit y = a·bˣ or y = a·e^(kx) to data with r², predictions, residuals and a plot.Extended Euclidean Algorithm CalculatorFind gcd(a, b) and Bézout coefficients x, y with the full step-by-step division table.Factor Tree GeneratorDraw the prime factor tree of any number as a printable diagram, with exponent form and steps.Function Composition CalculatorFind f(g(x)), g(f(x)), f + g, f · g and f / g with values at a point and domains.X and Y Intercept CalculatorFind the x- and y-intercepts of lines, curves and functions with steps and a graph.Line Intersection CalculatorFind where two lines cross from equations, points or slopes, with parallel checks and a graph.Linear Programming SolverSolve max/min linear programs with the simplex method: tableau steps and a 2-variable graph.Modular Exponentiation CalculatorCompute a^b mod m for huge numbers with square-and-multiply steps (BigInt).Modular Inverse CalculatorFind a⁻¹ mod m with the extended Euclidean algorithm, step by step, for huge numbers too.Nth Term CalculatorFind the nth term formula of a sequence: arithmetic, geometric, quadratic or cubic.Partial Fraction Decomposition CalculatorSplit a rational function into partial fractions with the setup, equations and solution.Perpendicular Line CalculatorEquation of the perpendicular and parallel line through a point, with distance and a graph.Polar Graphing CalculatorGraph polar equations r = f(θ): roses, cardioids, spirals, with a θ range slider and PNG export.Polynomial Long Division CalculatorDivide polynomials with the full long division layout, quotient, remainder and steps.Scale Factor CalculatorScale factor between similar figures, plus scaled lengths, areas (k²) and volumes (k³).Set CalculatorUnion, intersection, difference and complement of up to 4 sets, with a Venn diagram and counts.Table of Values CalculatorMake an x/y table for any function with a start, end and step, then plot it or copy CSV.
    See all 74 Algebra & Calculus Calculators →