Quadratic Equation Solver

Solve any quadratic equation ax² + bx + c = 0

Enter the three coefficients of your quadratic equation to find all roots, the discriminant, and the vertex of the parabola.

Understanding quadratic equations and how the solver works

A quadratic equation is any equation that can be written in the standard form ax² + bx + c = 0, where a is not equal to zero. The term "quadratic" comes from the Latin word for square, referring to the x² term that defines this type of equation. Quadratic equations produce parabolic curves when graphed and can have zero, one, or two real number solutions depending on the values of the coefficients.

This solver uses the quadratic formula to find the roots: x = (-b plus or minus the square root of (b² - 4ac)) divided by 2a. The expression b² - 4ac is called the discriminant, and its value determines the nature of the roots before you even calculate them. If the discriminant is positive, the equation has two distinct real roots. If the discriminant is exactly zero, the equation has one repeated real root. If the discriminant is negative, the equation has two complex roots with imaginary components and no real solutions.

The solver also returns the vertex of the parabola. The vertex is the point where the parabola reaches its minimum (if a is positive) or maximum (if a is negative). Its x-coordinate is given by -b / (2a) and its y-coordinate is c - b² / (4a). The vertex is a key feature of any quadratic, representing the turning point of the curve and the value at which the function is optimized. This is particularly useful in applied problems where you are finding the maximum profit, minimum cost, or peak height of a projectile.

The axis of symmetry is the vertical line x = -b / (2a). It passes through the vertex and divides the parabola into two mirror-image halves. If you know one root of a quadratic, the other root is located symmetrically on the opposite side of this axis. This property is useful for checking whether your roots are correct: the average of the two roots should always equal -b / (2a).

How to identify coefficients a, b, and c

Before using this solver, you need to arrange your equation in standard form: ax² + bx + c = 0. All terms should be on the left side with zero on the right. If your equation is written differently, rearrange it first. For example, if you have 3x² = 7x - 2, move everything to one side to get 3x² - 7x + 2 = 0. The coefficient a is 3, b is -7, and c is 2.

Be careful with signs. If the coefficient is negative, enter a negative number. If a term is missing — for instance, if there is no x term — enter zero for that coefficient. The solver requires all three values, and a cannot be zero because a zero leading coefficient means the equation is no longer quadratic.

Fractional and decimal coefficients are accepted. If your equation has fractions, you can either enter them as decimals or multiply through by the common denominator to clear the fractions before entering the coefficients. Both approaches give the same roots. The solver outputs roots rounded to two decimal places. For exact fractional roots, you would need to work through the formula by hand or use an exact-form solver.

Real-world uses of quadratic equations

Quadratic equations appear frequently in physics, engineering, economics, and geometry. In physics, the motion of a projectile under gravity follows a quadratic path: the height at any time t is given by a quadratic expression in t, and solving for when the height equals zero tells you when the object hits the ground. In engineering, quadratic equations help calculate beam deflection, fluid dynamics, and signal processing parameters.

In business and economics, quadratic functions model profit and cost curves. Maximizing revenue often involves finding the vertex of a quadratic function that describes how price and sales volume interact. In geometry, the Pythagorean theorem applied to unknown side lengths often produces a quadratic equation that needs to be solved to find the missing measurement.

Students encounter quadratic equations throughout secondary school and university mathematics. The quadratic formula is one of the most memorized formulas in all of mathematics, and understanding what the discriminant tells you about a solution is a foundational concept in algebra. This solver handles all three discriminant cases and shows the vertex so you can understand the full picture of the parabola, not just its roots.

Last updated: 2026-05-06