Mathematics · Algebra

Quadratic Formula

The quadratic formula yields all solutions of any quadratic equation ax² + bx + c = 0.

BasicExam-relevant

Free · no credit card · in your study plan in 2 minutes

Formula

LaTeX: x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
Dimensionless (algebra)
Diagram: an upward-opening parabola crosses the x-axis at the two roots x₁ and x₂, the vertex lies below the axis.xyx₁x₂
Parabola with two roots x₁ and x₂, the two solutions of the quadratic equation (D > 0).

Variables & units – Quadratic Formula

SymbolMeaningUnit
aCoefficient of x² (a ≠ 0)dimensionless
bCoefficient of xdimensionless
cConstant termdimensionless
DDiscriminant D = b² − 4acdimensionless

Derivation & background – Quadratic Formula

Known since Babylonian mathematics (about 1800 BC). Derived algebraically by "completing the square". Discriminant D: D > 0 gives two real solutions; D = 0 gives one solution; D < 0 gives no real solutions.

Exam blueprint

Validity range

Applies to quadratic equations ax² + bx + c = 0 with a ≠ 0.

Derivation steps

The quadratic formula comes from completing the square.

  1. 1Divide by a and move c/a to the other side.
  2. 2Complete with (b/2a)², take the square root and solve for x.

Rearrangements

Determine discriminant

D determines number and type of real solutions.

Task variant

What does D = 0 mean?

There is exactly one real double root x = -b/(2a).

Common mistakes

Forgetting the ± before the square root.

For D > 0 there are two solutions.

Exam context

  • Typical for roots, projectile parabolas, intersections and optimization.

These mistakes cost points in real exams. The set drills them until they stick.

Formula cluster

Algebraic solving

Connects equations, parabolas and discriminant analysis.

Worked example

2x² − 4x − 6 = 0 → x = (4 ± √(16+48))/4 = (4 ± 8)/4 → x₁ = 3, x₂ = −1.

Applications

Physics (projectile parabola), engineering, financial models (break-even), optics (lens equation)

Quanta exam set

Curated exam set for "Quadratic Formula":

Question (front)

Which formula describes Quadratic Formula?

Answer in your set

Question (front)

How do you rearrange x = (−b ± √D) / 2a for Determine discriminant?

Answer in your set

Question (front)

Which common mistake happens with Quadratic Formula?

Answer in your set

+ 7 more cards: units, variables, derivation, example, exam task

These 10 cards are ready. One click and they sit in your deck, FSRS schedules the reviews until exam day.

Scientific sources

Common notations & search queries

x=(-b±sqrt(b^2-4ac))/2ax=(-b±wurzel(b2-4ac))/2a(-b+/-sqrt(D))/2aabc FormelMitternachtsformelLösungsformel quadratische Gleichungquadratic formulapq-FormelDiskriminante Formel

Related formulas

More Mathematics formulas

Frequently asked questions about Quadratic Formula

How do you solve a quadratic equation with the quadratic formula?+

First bring the equation into the form ax² + bx + c = 0 and read off a, b and c. Then insert them into x = (−b ± √(b² − 4ac))/(2a). First compute the discriminant b² − 4ac under the root, take the root and form the two solutions with the plus and the minus sign. Example: 2x² − 4x − 6 = 0 gives x = (4 ± √(16 + 48))/4 = (4 ± 8)/4, that is x₁ = 3 and x₂ = −1. Watch the signs of b and c and do not forget the ±, otherwise you lose one solution.

What does the discriminant tell you about the solutions?+

The discriminant D = b² − 4ac sits under the root and decides the number and type of real solutions. If D is greater than zero, two distinct real solutions exist, because the root gives a positive value that is once added and once subtracted. If D equals zero, both solutions merge into a single double root x = −b/(2a). If D is less than zero, there is no real solution, only two complex ones, because you cannot take a real root of a negative number. So from the sign of the discriminant alone you can judge the solvability before calculating further.

What is the difference between the quadratic formula and the pq formula?+

Both formulas solve quadratic equations but assume different starting forms. The quadratic or ABC formula works with the general form ax² + bx + c = 0 and gives x = (−b ± √(b² − 4ac))/(2a); the leading factor a may be arbitrary. The pq formula, by contrast, requires the normalized form x² + px + q = 0 with leading coefficient one and gives x = −p/2 ± √((p/2)² − q). If you want to use the pq formula, you first divide the equation by a. Both lead to the same result; the choice is a matter of taste and often depends on which form the problem provides.

What does it mean when the discriminant is exactly zero?+

If the discriminant b² − 4ac equals zero, the root vanishes and the two solutions of the formula merge into a single one: x = −b/(2a). This is called a double root. Geometrically it means that the associated parabola does not cross the x-axis but only touches it; the vertex lies exactly on the axis. This special situation occurs in problems about tangency of curves or in limiting cases, for example when a line just touches a parabola. If you recognize D = 0, you no longer need the ±, because both signs give the same result.

How are the solutions related to Vieta formulas?+

Vieta formulas link the two solutions x₁ and x₂ of a quadratic equation x² + px + q = 0 directly with the coefficients: the sum of the solutions is x₁ + x₂ = −p, their product is x₁·x₂ = q. With this you can often find solutions in your head or check a result without going through the whole formula. If you find two numbers whose sum is −p and whose product is q, those are exactly the roots. Example: x² − 5x + 6 = 0 has solutions with sum 5 and product 6, that is 2 and 3. Vieta is excellent for quickly checking the values you computed with the formula.

Retain Quadratic Formula for exams

Create a curated FSRS exam set for x = (−b ± √D) / 2a: formula recall, variables, derivation, rearrangement, worked example, common mistakes and exam context.

Free · curated formula set · LaTeX · FSRS spaced repetition

How do you calculate with Quadratic Formula?

Here is how to work through a typical Quadratic Formula (x = (−b ± √D) / 2a) task step by step:

  1. 1

    Task

    What does D = 0 mean?

    Solution path

    There is exactly one real double root x = -b/(2a).