Math

Quadratic Formula Calculator Guide: Solve ax² + bx + c = 0 (2026)

By The hakaru Team·Last updated March 2026

Quick Answer

The quadratic formula x = (−b ± √(b² − 4ac)) ÷ 2a solves any equation in the form ax² + bx + c = 0. The discriminant (b² − 4ac) reveals the nature of the roots: positive means two real roots, zero means one repeated root, negative means two complex (imaginary) roots. For x² − 5x + 6 = 0, the roots are x = 3 and x = 2.

Try the Free Quadratic Formula Calculator →

What Is the Quadratic Formula?

The quadratic formula is one of the most important tools in algebra. It gives an exact solution to any quadratic equation written in standard form:

ax² + bx + c = 0

The formula itself is:

x = (−b ± √(b² − 4ac)) ÷ 2a

Where the variables represent:

  • a = the coefficient of x² (must not be zero)
  • b = the coefficient of x
  • c = the constant term
  • ± = means two solutions exist: one with addition, one with subtraction

According to the Common Core State Standards(CCSS.MATH.CONTENT.HSA.REI.B.4), students are expected to solve quadratic equations by inspection, factoring, completing the square, the quadratic formula, and graphing. The quadratic formula is the universal fallback — it works on every quadratic equation, factorable or not.

The formula was first described in a general algebraic form by the Persian mathematician Muhammad ibn Musa al-Khwarizmi around 820 AD, though Babylonian mathematicians solved specific quadratic problems as early as 2000 BC using geometric methods.

The Discriminant: What b² − 4ac Tells You

The expression under the square root sign — b² − 4ac — is called the discriminant. Before you even finish the calculation, the discriminant tells you exactly what kind of roots to expect.

Discriminant ValueNumber of RootsType of RootsExample
b² − 4ac > 02Two distinct real rootsx² − 5x + 6 = 0 → x = 3, x = 2
b² − 4ac = 01One repeated real rootx² − 4x + 4 = 0 → x = 2
b² − 4ac < 02Two complex (imaginary) rootsx² + x + 1 = 0 → no real solutions

Graphically, the discriminant tells you where the parabola y = ax² + bx + c intersects the x–axis. Positive discriminant: two crossing points. Zero: the parabola just touches the axis (tangent). Negative: the parabola never crosses the x–axis.

The Khan Academycurriculum describes the discriminant as a “shortcut” that lets you predict the nature of solutions without completing the full calculation — a useful check before investing time in arithmetic.

Step-by-Step: How to Solve a Quadratic Equation

Let's work through a complete example: 2x² + 7x − 15 = 0

Step 1: Identify a, b, and c.

a = 2, b = 7, c = −15

Step 2: Calculate the discriminant.

b² − 4ac = 7² − 4(2)(−15) = 49 + 120 = 169

Since 169 > 0, there are two distinct real roots.

Step 3: Take the square root of the discriminant.

√169 = 13

Step 4: Apply the formula.

x = (−7 ± 13) ÷ (2 × 2) = (−7 ± 13) ÷ 4

Step 5: Calculate both solutions.

  • x&sub1; = (−7 + 13) ÷ 4 = 6 ÷ 4 = 1.5
  • x&sub2; = (−7 − 13) ÷ 4 = −20 ÷ 4 = −5

Verification: Substitute x = 1.5 back in: 2(1.5)² + 7(1.5) − 15 = 4.5 + 10.5 − 15 = 0 ✓

Always verify by substituting your answers back into the original equation. This catches sign errors and arithmetic mistakes before they matter.

Quadratic Formula vs Factoring vs Completing the Square

There are three primary algebraic methods for solving quadratic equations. Choosing the right one saves time.

MethodBest WhenDifficultyAlways Works?
FactoringSmall integer coefficients, easy to spot factorsFast (when it works)No — only when integer factors exist
Completing the SquareDeriving the formula, vertex form neededMediumYes
Quadratic FormulaAny equation, especially with ugly coefficientsMechanical (plug and chug)Yes

The College Board SATtests all three methods. According to the SAT Math section guidelines, approximately 30% of SAT Math problems involve quadratic reasoning. Knowing when to factor versus when to reach for the formula is a tested skill — factoring is faster on clean problems, but the formula is safer on messy ones.

A practical rule: try factoring first for equations like x² + 5x + 6 = 0 where the factors of c that sum to b are obvious. Jump straight to the formula for anything with decimal coefficients, large numbers, or fractions.

Real-World Applications of Quadratic Equations

Quadratic equations aren't just textbook exercises. They model physical phenomena and business decisions constantly.

Projectile Motion

When you throw a ball upward, its height h (in meters) at time t (in seconds) follows: h = −4.9t² + v&sub0;t + h&sub0;. Setting h = 0 and solving gives the exact moment the ball hits the ground. This is standard physics for anything launched into the air — balls, rockets, water from a fountain.

Profit Optimization

If a company's profit P depends on price x with a quadratic relationship like P = −2x² + 80x − 500, the maximum profit is found at the vertex. Setting the derivative to zero (or using x = −b/2a) identifies the optimal price point. This is basic microeconomic pricing analysis.

Engineering and Architecture

Parabolic arches and suspension bridge cables follow quadratic curves. Engineers solve quadratic equations to determine load distribution, cable lengths, and structural stress points. The Gateway Arch in St. Louis approximates a catenary curve (not a perfect parabola), but quadratic approximations are used throughout structural analysis.

Optics and Physics

Parabolic mirrors and lenses focus light to a single point because of their quadratic shape. The lens equation in optics (1/f = 1/do + 1/di) can be rearranged into a quadratic when solving for image distance in specific configurations. Quadratics also appear in kinetic energy calculations (KE = ½mv²) when solving for velocity.

Top 5 Mistakes When Using the Quadratic Formula

Even students who know the formula make these errors repeatedly. Recognizing them makes them avoidable.

1. Sign errors with b

The formula starts with −b. If b is already negative (like b = −7), then −b = +7. This trips up a majority of students. Always write out −b explicitly before plugging in numbers.

2. Wrong order of operations under the radical

The discriminant requires b² − 4ac, not (b − 4a)c or any other grouping. Calculate b² first, then calculate 4ac, then subtract. A common error is computing (b − 4a) × c instead.

3. Forgetting the ±

The formula produces twosolutions. Many students only calculate one. Always work out both x = (−b + √D) ÷ 2a and x = (−b − √D) ÷ 2a separately, where D is the discriminant.

4. Misidentifying a, b, and c

The equation must be in standard form (ax² + bx + c = 0) before identifying coefficients. For 3x − 5 + 2x² = 0, first rewrite as 2x² + 3x − 5 = 0. Then a = 2, b = 3, c = −5. Pulling coefficients from an unsorted equation is a guaranteed source of errors.

5. Arithmetic errors under the radical

Squaring b and computing 4ac both invite errors, especially with negative numbers. 4 × 2 × (−15) = −120, and then b² − (−120) = b² + 120. The double negative here is one of the most common single points of failure. Write each arithmetic step on its own line.

According to a 2019 study published in the Journal of Mathematical Behavior, sign errors account for approximately 40% of algebraic mistakes made by high school students on quadratic problems. Slowing down for the sign of b is the single highest-leverage habit to develop.

Frequently Asked Questions

What is the quadratic formula?

The quadratic formula is x = (−b ± √(b² − 4ac)) ÷ 2a. It solves any quadratic equation in standard form ax² + bx + c = 0, where a ≠ 0. The ± symbol means the formula always produces two solutions (which may be equal or complex).

What does the discriminant tell you?

The discriminant b² − 4ac reveals the nature of the roots before you complete the calculation. Positive: two distinct real roots. Zero: one repeated real root (the parabola touches the x–axis). Negative: two complex (imaginary) roots — no real solutions exist.

When should I factor instead of using the quadratic formula?

Factoring is faster for equations with small, obvious integer factors. If you can quickly identify that x² − 7x + 12 = (x − 3)(x − 4), factoring saves time. For any equation where factoring isn't immediately apparent — especially with fractions, decimals, or large coefficients — go straight to the formula.

Can the quadratic formula give complex roots?

Yes. When the discriminant is negative, the square root produces an imaginary number. The solutions take the form x = (−b ± i√|b² − 4ac|) ÷ 2a, where i = √(−1). These always appear as conjugate pairs, e.g., 3 + 2i and 3 − 2i.

How was the quadratic formula derived?

The formula comes from completing the square on ax² + bx + c = 0. Divide by a, move c/a to the right side, add (b/2a)² to both sides, factor the left as (x + b/2a)², then take the square root and solve for x. The result is x = (−b ± √(b² − 4ac)) ÷ 2a.

What are real-world uses of the quadratic formula?

Projectile motion in physics, profit maximization in economics, parabolic arch design in engineering, optics (parabolic reflectors), and signal processing. Any system where a quantity depends on the square of a variable — speed, distance, area, cost — can produce a quadratic equation that requires the formula.

Solve any quadratic equation instantly

Try the Free Quadratic Formula Calculator →