Quadratic Formula Calculator

A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call

Free quadratic formula calculator. Solve ax² + bx + c = 0 for real or complex roots, with the discriminant, exact fractions, vertex and steps.

Discriminant (b² − 4ac)
0
Roots
0
Exact roots
0
Vertex
0

Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.

How to use the quadratic formula calculator

  1. Write your equation in the form ax² + bx + c = 0. Move everything to one side first: x² = 3x − 2 becomes x² − 3x + 2 = 0.
  2. Enter a, b and c. Use negative numbers where needed, and 0 if a term is missing (x² − 9 = 0 has b = 0).
  3. Read the roots. The quadratic formula calculator shows the solutions, the discriminant, what kind of roots they are, exact fraction answers when the roots are rational, the vertex of the parabola, and an explanation.

Complex roots are shown as a ± bi. If a = 0, the equation is linear and the calculator solves bx + c = 0 instead.

The quadratic formula

For any equation ax² + bx + c = 0 with a ≠ 0:

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

The ± gives two solutions: one with plus, one with minus.

For x² − 3x + 2 = 0 (a = 1, b = −3, c = 2):

  • b² − 4ac = 9 − 8 = 1
  • x = (3 ± √1) ÷ 2 = (3 ± 1) ÷ 2
  • x = 1 or x = 2

Check: 1² − 3 × 1 + 2 = 0 and 2² − 3 × 2 + 2 = 0. Both work.

The discriminant

The expression under the square root, D = b² − 4ac, is called the discriminant. It tells you what kind of roots to expect before you finish the calculation:

  • D > 0: two different real roots. The parabola crosses the x-axis twice.
  • D = 0: one repeated real root. The parabola just touches the x-axis at its vertex.
  • D < 0: no real roots, two complex roots. The parabola never touches the x-axis.

If a, b and c are whole numbers and D is a perfect square, the roots are rational, and the equation can be factorised neatly. The quadratic formula calculator shows those exact fractions, such as 1/3 and 1/2 for 6x² − 5x + 1 = 0.

Complex roots

When D is negative, the square root of a negative number appears, so the roots involve the imaginary unit i (where i² = −1). For 2x² + 4x + 5 = 0:

  • D = 16 − 40 = −24
  • x = (−4 ± √−24) ÷ 4 = −1 ± (√24 ÷ 4) i
  • x = −1 ± 1.2247i

Complex roots always come in pairs like this, called complex conjugates.

The vertex and the shape of the graph

The graph of y = ax² + bx + c is a parabola.

  • It opens upwards (a U shape) when a > 0, and downwards when a < 0.
  • Its vertex, the lowest or highest point, is at x = −b ÷ 2a, and y = c − b² ÷ 4a.
  • It crosses the y-axis at y = c.
  • It's symmetrical about the vertical line through the vertex, and the two roots sit equally either side of it.

For x² − 3x + 2, the vertex is at (1.5, −0.25), exactly halfway between the roots 1 and 2.

Other ways to solve quadratics

Factorising. If you can spot two numbers that multiply to ac and add to b, you can factorise. x² − 3x + 2 = (x − 1)(x − 2), so x = 1 or 2. It's quick when it works, but many quadratics don't factorise nicely.

Completing the square. Rewrite ax² + bx + c in the form a(x − h)² + k. This is how the quadratic formula itself is derived, and it gives the vertex directly.

Graphing. Plot the parabola and read where it crosses the x-axis. Good for intuition, less precise.

The quadratic formula always works, which is why it's worth knowing by heart, and why the quadratic formula calculator uses it.

A note on precision

When b is very large compared with a and c, the textbook formula can lose accuracy for one of the roots, because it subtracts two nearly equal numbers. The quadratic formula calculator uses the numerically stable version that computers use: it finds the larger root first, then gets the other from the fact that the product of the roots is c ÷ a. So x² + 100,000,000x + 1 = 0 correctly gives a small root of about −0.00000001, not 0.

Where quadratics come up

  • Projectile motion: the height of a thrown ball is a quadratic in time. A ball thrown up at 20 m/s from 2 m follows h = −4.9t² + 20t + 2.
  • Area problems: a rectangle with a perimeter of 20 and an area of 21 has sides that solve x² − 10x + 21 = 0 (3 and 7).
  • Business: revenue and profit often follow a quadratic when price affects quantity sold, so the vertex shows the price that maximises revenue.
  • Physics and engineering: stopping distances, lenses and circuits.

For right-angled triangles, the Pythagorean theorem calculator and the square root calculator help with the related square-root steps.

Tips

  • Get the equation into standard form first, with zero on one side.
  • Watch the signs of b and c; most mistakes are sign errors.
  • Check your answers by substituting them back into the original equation.
  • Fractions and decimals work for a, b and c: enter 0.5 or −4.9.

Privacy and accuracy

Your numbers stay in your browser. The quadratic formula calculator uses the numerically stable quadratic formula, exact integer arithmetic to detect rational roots, and no AI, so results are accurate and always the same. Students, teachers, engineers and physics enthusiasts use it free on any device.

Sum and product of the roots

For ax² + bx + c = 0, the roots always satisfy two neat relationships, known as Vieta's formulas:

  • Sum of the roots = −b ÷ a
  • Product of the roots = c ÷ a

For x² − 3x + 2 = 0, the roots 1 and 2 add up to 3 (= −(−3) ÷ 1) and multiply to 2 (= 2 ÷ 1). It's a fast way to check answers, and to build a quadratic from its roots: if the roots are 4 and −1, the equation is x² − 3x − 4 = 0.

Completing the square in practice

To find the vertex form a(x − h)² + k by hand:

  1. Divide through by a if it isn't 1.
  2. Take half the coefficient of x, square it, and add and subtract it.
  3. Rewrite the first three terms as a perfect square.

For x² − 3x + 2: half of −3 is −1.5, squared 2.25, so x² − 3x + 2.25 − 2.25 + 2 = (x − 1.5)² − 0.25. The vertex is (1.5, −0.25), exactly what the quadratic formula calculator shows.

Word problems

Many word problems lead to quadratics: a garden with a path of equal width around it, a product whose price and sales trade off, or a ball's flight. Write the relationship as an equation, rearrange to ax² + bx + c = 0, and use the quadratic formula calculator. Then check which root makes sense: lengths and times can't be negative.

Quick reference

  • Standard form: ax² + bx + c = 0.
  • Discriminant: D = b² − 4ac.
  • Roots (solutions, zeros): the x-values where the equation equals zero.
  • Vertex: the turning point, at x = −b ÷ 2a.
  • Axis of symmetry: the vertical line through the vertex.
  • Complex roots: roots of the form p ± qi, when D < 0.

These are the terms the quadratic formula calculator uses in its results.

Maximum and minimum problems

The vertex of a parabola gives the highest or lowest value of a quadratic, which answers many optimisation questions. If a café's daily profit from a new drink is P = −2x² + 40x − 50, where x is the price, the vertex is at x = 10, so a price of 10 gives the highest profit, 150. Enter a = −2, b = 40, c = −50 in the quadratic formula calculator: the vertex shows the best price, and the roots show the prices where the drink would just break even. Problems about the largest area for a fixed length of fence, the highest point of a ball, or the lowest cost of production all work the same way.

A worked example

A ball is thrown upwards at 20 m/s from a height of 2 m. Its height after t seconds is h = −4.9t² + 20t + 2. When does it hit the ground? Set h = 0 and enter a = −4.9, b = 20, c = 2 into the quadratic formula calculator.

The discriminant is 439.2 (positive), so there are two real roots: t ≈ −0.0977 and t ≈ 4.1793. Time can't be negative, so the ball lands after about 4.18 seconds. The parabola opens downwards, and the vertex at about (2.04, 22.41) tells us the ball reaches its highest point, about 22.4 m, after roughly 2.04 seconds.

Need more customers from Google?

This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. DeepRit manages Google Ads for small and mid-size businesses, and only Google Ads. We check your account before we ever get on a call, then fix the structure, the keywords, the tracking and the ads, with month-to-month terms and no long contract. Book a free audit call.

Frequently asked questions

What is the quadratic formula?

x = (−b ± √(b² − 4ac)) ÷ 2a, for any equation ax² + bx + c = 0 where a isn't zero.

What does the discriminant tell you?

Whether there are two real roots (positive), one repeated root (zero) or two complex roots (negative).

How do I solve a quadratic with no b term?

Enter b = 0. For x² − 9 = 0, the roots are 3 and −3.

Can the quadratic formula calculator give exact answers?

Yes. When a, b and c are whole numbers and the roots are rational, it shows them as fractions.

What if a is zero?

It's not a quadratic. The calculator solves it as a linear equation, bx + c = 0.

Is the quadratic formula calculator free?

Yes, completely free, with no sign-up.

Free PPC audit

See where your ad budget leaks.

We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.

Book a free audit call 30-minute call · Free · The audit is yours to keep