Free Online Quadratic Formula Calculator

Solve any quadratic equation ax² + bx + c = 0 instantly. Get real and complex roots with discriminant analysis and step-by-step solution.

OmniCalculator Pro · Method: quadratic formula and discriminant · Last reviewed October 2026 · Sources listed at the end

Quadratic Equation Solver

Enter the coefficients a, b, and c for the equation ax² + bx + c = 0.

Solutions
What is the Quadratic Formula?

The quadratic formula solves any equation of the form ax² + bx + c = 0, where a is not zero. It is one of the few tools in school mathematics that works universally: every quadratic equation yields to it, including those that cannot be factored by inspection. The formula also reveals, through its discriminant, how many real solutions exist before you finish calculating them.

The Formula

x = [ -b ± √(b² - 4ac) ] / 2a

where the equation is in standard form: ax² + bx + c = 0
and a is not zero

The Discriminant

The expression under the square root, b² - 4ac, is called the discriminant. It determines the character of the solutions on its own.

DiscriminantSolutionsGraph Meaning
Greater than 0Two distinct real solutionsParabola crosses the x-axis twice
Equal to 0One repeated real solutionParabola touches the x-axis once
Less than 0No real solutionsParabola never reaches the x-axis

Solving 2x² − 7x + 3 = 0

Solving 2x² - 7x + 3 = 0

Step 1: Identify the coefficients

a = 2, b = -7, c = 3

Step 2: Calculate the discriminant

b^2 - 4ac = (-7)^2 - (4 x 2 x 3) = 49 - 24 = 25 (positive, so two real solutions)

Step 3: Apply the formula

x = [ 7 +/- sqrt(25) ] / (2 x 2) x = [ 7 +/- 5 ] / 4

Step 4: Split into two solutions

x = (7 + 5) / 4 = 12/4 = 3 x = (7 - 5) / 4 = 2/4 = 0.5

Step 5: Check by substitution

2(3)^2 - 7(3) + 3 = 18 - 21 + 3 = 0 correct 2(0.5)^2 - 7(0.5) + 3 = 0.5 - 3.5 + 3 = 0 correct

The solutions are x = 3 and x = 0.5

Mind the sign of b

The formula begins with negative b. If b is already negative, as in the example above, negative b becomes positive. Sign errors at this step are the single most common source of wrong answers. Write out the substitution explicitly rather than doing it mentally.

Getting to Standard Form First

The formula requires ax² + bx + c = 0. Equations often arrive in other arrangements and must be rearranged first, with every term moved to one side.

Rearranging 3x² = 5x + 2

3x^2 - 5x - 2 = 0 a = 3, b = -5, c = -2

Only now can the formula be applied

When Not to Use the Formula

Where Quadratics Appear

Quadratic equations describe any situation with a squared relationship, which turns out to be a great many. Projectile motion under gravity follows a parabola, which is why the formula appears throughout physics and engineering. Profit maximisation problems in economics, area optimisation in construction, and parabolic reflector design in optics all reduce to solving quadratics.

Where the formula comes from

The quadratic formula is derived by completing the square on the general form ax² + bx + c = 0. It is not an arbitrary rule but the algebraic consequence of that process, which is why it works for every quadratic without exception. Methods for solving quadratics appear in Babylonian tablets from around 2000 BC, long before the modern notation existed.

Other Methods for Solving Quadratic Equations

Factoring

When a quadratic can be factored, it's often the fastest method. For example, x² - 5x + 6 = (x-2)(x-3) = 0 gives x = 2 or x = 3. Finding factors often relies on the Greatest Common Factor.

Completing the Square

This method transforms the equation into a perfect square trinomial. It's actually how the quadratic formula itself is derived, as explained in Purplemath's completing the square guide.

Graphing

The solutions (roots) of a quadratic equation are the x-intercepts of the corresponding parabola y = ax² + bx + c.

Solving quadratics

If a = 0, the equation becomes linear (bx + c = 0), not quadratic. The solution is simply x = -c/b. A quadratic equation must have a ≠ 0.

When the discriminant is negative, the square root of a negative number involves the imaginary unit i (where i² = -1). The roots come in conjugate pairs: a + bi and a - bi. Complex numbers are widely used in electrical engineering and quantum physics.

The quadratic formula is derived by completing the square on the general equation ax² + bx + c = 0. You isolate x by systematically transforming the equation into a perfect square on one side.

No, the quadratic formula only works for degree-2 equations. Cubic (degree 3) and quartic (degree 4) have their own formulas. Equations of degree 5 or higher have no general algebraic formula (proven by Abel-Ruffini theorem).

The discriminant is b squared minus 4ac, the part under the square root. If it is positive there are two distinct real solutions; if zero there is exactly one; if negative there are no real solutions, only complex ones. It tells you the nature of the answer before you finish solving.

Factor when the numbers are small and the factors are obvious, because it is faster. Use the formula when factoring is not apparent, when the coefficients are awkward, or when the solutions are irrational. The formula always works; factoring only sometimes does.

Because squaring both a positive and a negative number gives a positive result, so the square root step produces two values. Graphically, a parabola can cross the horizontal axis at two points, and each crossing is a solution.

Then the equation is not quadratic, it is linear, and the formula does not apply because you would be dividing by zero. Solve bx plus c equals zero directly instead, giving x equals negative c over b.

📚 Sources & References

  1. National Council of Teachers of Mathematics — Standards for algebra instruction.
  2. Khan Academy — Lessons on quadratic equations and the formula.
  3. Wolfram MathWorld — Mathematical reference on quadratic equations.

This calculator is provided for educational purposes.