Quadratic Formula

The Quadratic Formula solves any equation of the form ax^2 + bx + c = 0 in one step, giving both solutions at once without factoring.

x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

Solve a problem with Quadratic Formula

Type the problem. The solver will use Quadratic Formula where Quadratic Formula is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Quadratic Formula takes
aa
bb
cc
xx
Quadratic Formula
SymbolMeaning
aaThe coefficient of the x2x^2 term in the equation ax2+bx+c=0ax^2 + bx + c = 0; it must be nonzero (if a=0a = 0, the equation is not quadratic).
bbThe coefficient of the xx term in the equation ax2+bx+c=0ax^2 + bx + c = 0; it can be positive, negative, or zero.
ccThe constant term in the equation ax2+bx+c=0ax^2 + bx + c = 0; the number with no xx attached, which can be positive, negative, or zero.
xxThe variable you are solving for; the Quadratic Formula gives you the value(s) of xx that make the equation true.

When to use it

Use the Quadratic Formula when you need to solve a quadratic equation and factoring is difficult or impossible.

Level

Usually taught in: Algebra I · Appears on: SAT, ACT

Worked examples

1. Solve a quadratic with two integer roots

Problem

Solve x2+5x+6=0x^2 + 5x + 6 = 0 for xx.
  1. a=1,b=5,c=6a = 1, \quad b = 5, \quad c = 6

    Identify the coefficients in x2+5x+6=0x^2 + 5x + 6 = 0.

  2. x=5±524(1)(6)2(1)x = \frac{-5 \pm \sqrt{5^2 - 4(1)(6)}}{2(1)}

    Substitute a=1a=1, b=5b=5, c=6c=6 into the Quadratic Formula.

  3. x=5±25242=5±12=5±12x = \frac{-5 \pm \sqrt{25-24}}{2} = \frac{-5 \pm \sqrt{1}}{2} = \frac{-5 \pm 1}{2}

    Simplify under the square root: 2524=125 - 24 = 1, and 1=1\sqrt{1} = 1.

  4. x=2 or x=3x = -2 \text{ or } x = -3

    Evaluate both solutions: 5+12=42=2\frac{-5+1}{2} = \frac{-4}{2} = -2 and 512=62=3\frac{-5-1}{2} = \frac{-6}{2} = -3.

Answer: x=2 or x=3x = -2 \text{ or } x = -3

The two integer solutions tell us that the original equation factors nicely as (x+2)(x+3)=0(x+2)(x+3)=0, but the Quadratic Formula works whether or not factoring is obvious.

2. Solve a quadratic with negative and fractional roots

Problem

Solve 2x27x+3=02x^2 - 7x + 3 = 0 for xx.
  1. a=2,b=7,c=3a = 2, \quad b = -7, \quad c = 3

    Identify the coefficients in 2x27x+3=02x^2 - 7x + 3 = 0; note that bb is negative.

  2. x=(7)±(7)24(2)(3)2(2)=7±49244=7±254x = \frac{-(-7) \pm \sqrt{(-7)^2 - 4(2)(3)}}{2(2)} = \frac{7 \pm \sqrt{49 - 24}}{4} = \frac{7 \pm \sqrt{25}}{4}

    Substitute and simplify: b=(7)=7-b = -(-7) = 7, and the discriminant is 4924=2549 - 24 = 25.

  3. x=7±54x = \frac{7 \pm 5}{4}

    Evaluate 25=5\sqrt{25} = 5.

  4. x=3 or x=12x = 3 \text{ or } x = \frac{1}{2}

    The two solutions: 7+54=124=3\frac{7+5}{4} = \frac{12}{4} = 3 and 754=24=12\frac{7-5}{4} = \frac{2}{4} = \frac{1}{2}.

Answer: x=3 or x=12x = 3 \text{ or } x = \frac{1}{2}

This quadratic has one integer root and one fractional root, which would be tedious to find by factoring or completing the square but takes just four steps with the Quadratic Formula.

3. Find break-even points for a profit function

Problem

A school's profit from selling candy boxes is given by P(x)=2x2+80x600P(x) = -2x^2 + 80x - 600, where xx is the number of boxes and PP is profit in dollars. At what values of xx is the profit zero? Solve 2x2+80x600=0-2x^2 + 80x - 600 = 0.
  1. a=2,b=80,c=600a = -2, \quad b = 80, \quad c = -600

    Identify coefficients in 2x2+80x600=0-2x^2 + 80x - 600 = 0; both aa and cc are negative.

  2. x=80±8024(2)(600)2(2)=80±640048004=80±16004x = \frac{-80 \pm \sqrt{80^2 - 4(-2)(-600)}}{2(-2)} = \frac{-80 \pm \sqrt{6400 - 4800}}{-4} = \frac{-80 \pm \sqrt{1600}}{-4}

    Substitute into the Quadratic Formula; note that 4ac=4(2)(600)=48004ac = 4 \cdot (-2) \cdot (-600) = 4800 (two negatives make a positive) and 64004800=16006400 - 4800 = 1600.

  3. x=80±404x = \frac{-80 \pm 40}{-4}

    Simplify: 1600=40\sqrt{1600} = 40.

  4. x=10 or x=30x = 10 \text{ or } x = 30

    Evaluate both cases: 80+404=404=10\frac{-80 + 40}{-4} = \frac{-40}{-4} = 10 and 80404=1204=30\frac{-80 - 40}{-4} = \frac{-120}{-4} = 30.

Answer: x=10 or x=30x = 10 \text{ or } x = 30

The school breaks even at both 10 and 30 boxes sold; between these points, profit is positive. The Quadratic Formula handles negative coefficients easily, whereas factoring would be much harder.

Common mistakes

Where Quadratic Formula usually goes wrong
Answer came out wrong
Writing x=b±b24acx = -b \pm \sqrt{b^2 - 4ac} instead of x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} (forgetting to divide by 2a2a).
Always write the formula as a single fraction: x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} with the fraction bar extending under both the b-b term and the square root term.
Computing the discriminant incorrectly, especially when bb or cc is negative, such as calculating b24ac=2512=13b^2 - 4ac = 25 - 12 = 13 when you meant 25(12)=3725 - (-12) = 37.
Carefully track signs: calculate b2b^2 first (always positive or zero), then separately compute 4ac4ac, paying attention to whether aa and cc are positive or negative. Remember that 4(2)(3)=244 \cdot (-2) \cdot (-3) = 24 (two negatives multiply to positive).
Forgetting the ±\pm symbol and writing only one solution, such as x=b+b24ac2ax = \frac{-b + \sqrt{b^2 - 4ac}}{2a} without the - case.
Always write out both cases: x=b+b24ac2ax = \frac{-b + \sqrt{b^2 - 4ac}}{2a} and x=bb24ac2ax = \frac{-b - \sqrt{b^2 - 4ac}}{2a}, or solve them together and list both answers in your final result.
The mistakeWhy it is wrongThe fix
Writing x=b±b24acx = -b \pm \sqrt{b^2 - 4ac} instead of x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} (forgetting to divide by 2a2a).The entire expression b±b24ac-b \pm \sqrt{b^2 - 4ac} must be divided by 2a2a; leaving out this division gives completely wrong solutions.Always write the formula as a single fraction: x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} with the fraction bar extending under both the b-b term and the square root term.
Computing the discriminant incorrectly, especially when bb or cc is negative, such as calculating b24ac=2512=13b^2 - 4ac = 25 - 12 = 13 when you meant 25(12)=3725 - (-12) = 37.A sign error in the discriminant changes the number under the square root, leading to entirely different—and wrong—solutions.Carefully track signs: calculate b2b^2 first (always positive or zero), then separately compute 4ac4ac, paying attention to whether aa and cc are positive or negative. Remember that 4(2)(3)=244 \cdot (-2) \cdot (-3) = 24 (two negatives multiply to positive).
Forgetting the ±\pm symbol and writing only one solution, such as x=b+b24ac2ax = \frac{-b + \sqrt{b^2 - 4ac}}{2a} without the - case.The ±\pm means you must evaluate two separate branches (one with ++ and one with -); omitting one branch loses half the solutions and is mathematically incomplete.Always write out both cases: x=b+b24ac2ax = \frac{-b + \sqrt{b^2 - 4ac}}{2a} and x=bb24ac2ax = \frac{-b - \sqrt{b^2 - 4ac}}{2a}, or solve them together and list both answers in your final result.

Tips and when to use something else

  • If the quadratic factors into simple integers (e.g., (x+2)(x+3)=0(x+2)(x+3)=0), factoring is faster; use Completing the Square or graphing if you need the vertex or want to visualize the parabola.
  • The discriminant b24acb^2 - 4ac tells you how many real solutions exist: positive gives two different solutions, zero gives one repeated solution, and negative means no real solutions.
  • When a=1a = 1, the formula simplifies to x=b±b24c2x = \frac{-b \pm \sqrt{b^2 - 4c}}{2}, which saves arithmetic in the denominator.
  • Always rearrange the equation to standard form ax2+bx+c=0ax^2 + bx + c = 0 before identifying aa, bb, and cc; this prevents sign errors.

Frequently asked questions

Why does the Quadratic Formula have a ±\pm in it?
The ±\pm symbol represents two branches of the solution: one using addition and one using subtraction. Most quadratic equations have two solutions (where the parabola crosses the xx-axis), and the formula finds both at once. If the discriminant is zero, both branches give the same answer.
What happens if the discriminant is negative?
A negative discriminant means b24ac\sqrt{b^2 - 4ac} is the square root of a negative number. In algebra, this means there are no real solutions—the parabola does not cross the xx-axis. Mathematically, the formula still works using complex numbers, but for now, you can say no real solutions exist.
Do I have to use the Quadratic Formula, or can I factor instead?
Factoring is faster if the quadratic factors nicely into small integers, but not all quadratics factor cleanly. The Quadratic Formula is the guaranteed, universal method that works for any quadratic equation in standard form, making it the safer choice when factoring seems hard.
What does the discriminant b24acb^2 - 4ac tell me?
The discriminant predicts the nature of the solutions before you finish the calculation: if it is positive, you get two distinct real solutions; if zero, one repeated solution; if negative, no real solutions. It also sits under the square root in the formula, so its value directly determines what you can simplify.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18