Quadratic Formula Calculator: Solve ax² + bx + c = 0 Step by Step

Solve quadratic equations in standard form with ease using our Quadratic Formula Calculator. Instantly find roots (solutions), vertex, discriminant, and graph for any quadratic equation. Perfect for students, teachers, and engineers who need quick, accurate results.

Quadratic Calculator

Standard Form (ax² + bx + c)

Solutions:

Vertex Form:

How It Works

1

Enter Values

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

2

Calculate Instantly

Click Calculate to get:

  • The roots (x-intercepts)
  • Vertex form of the equation
  • Discriminant value to identify root types (real, repeated, or complex)
3

Visualize the Graph

See your quadratic equation plotted automatically. The graph displays the parabola, vertex, and points of intersection with the x-axis.

How to Use This Quadratic Formula Calculator

This calculator solves any quadratic equation in standard form ax² + bx + c = 0. Here is exactly how to use it:

Step 1: Put your equation in standard form

Your equation must be in the form ax² + bx + c = 0 before you enter coefficients. If you have something like x² = 5x + 6, subtract 5x and 6 from both sides first to get x² − 5x − 6 = 0, then read off a = 1, b = −5, c = −6.

Step 2: Enter coefficients a, b, and c

Type the value of a (the coefficient of x²), b (the coefficient of x), and c (the constant) into their respective fields. You can enter integers, decimals, or negative numbers. Do not enter a = 0, because that would make the equation linear rather than quadratic.

Step 3: Click Calculate and read the results

The calculator shows your roots (x₁ and x₂ or complex roots), the vertex form y = a(x − h)² + k, a step-by-step solution, and an interactive parabola graph. If the discriminant is positive, your parabola crosses the x-axis at two points. If it equals zero, it touches once. If it is negative, the parabola does not touch the x-axis and the roots are complex.

Understanding Your Results

Roots (Solutions)

The values of x where y = 0. These are the x-intercepts of the parabola. If the discriminant is positive, you get two distinct real roots x₁ and x₂. If it is zero, both roots are the same. If negative, the roots are complex numbers of the form a ± bi.

Vertex Form

The equation rewritten as y = a(x − h)² + k, where (h, k) is the vertex. This form makes it easy to read the minimum or maximum point directly, plot the parabola by hand, and understand its transformation from the parent function y = x².

Discriminant

The value b² − 4ac shown in the step-by-step solution tells you the nature of the roots before you finish the calculation. A positive discriminant: two real roots. Zero: one repeated root. Negative: two complex roots.

Reading the Parabola Graph

The interactive graph shows your parabola centered on its vertex. The x-axis crossings (if any) are your real roots. The vertex is the lowest point when a > 0 (U-shape) or the highest point when a < 0 (∩-shape). The axis of symmetry is the vertical line x = h, which passes through the vertex and divides the parabola into two mirror-image halves.

The Formula Explained

The quadratic formula solves any equation in standard form ax² + bx + c = 0 for x:

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

The formula comes from completing the square on the general quadratic. The ± symbol means the formula produces two values, x₁ and x₂, corresponding to the two roots.

Worked Example 1: Two Real Roots

Solve x² − 3x − 4 = 0. Here a = 1, b = −3, c = −4.

  • Discriminant: D = (−3)² − 4(1)(−4) = 9 + 16 = 25 (positive → two real roots)
  • x₁ = (3 + √25) / 2 = (3 + 5) / 2 = 4
  • x₂ = (3 − √25) / 2 = (3 − 5) / 2 = −1
  • Vertex form: h = −(−3)/(2×1) = 1.5 → k = (1.5)² − 3(1.5) − 4 = −6.25 → y = (x − 1.5)² − 6.25

The parabola opens upward (a = 1 > 0), crosses the x-axis at x = −1 and x = 4, and has its minimum at (1.5, −6.25).

Worked Example 2: One Repeated Root (Perfect Square)

Solve x² − 6x + 9 = 0. Here a = 1, b = −6, c = 9.

  • Discriminant: D = (−6)² − 4(1)(9) = 36 − 36 = 0 (zero → one repeated root)
  • x = 6 / 2 = 3 (double root)
  • Vertex form: y = (x − 3)² → vertex at (3, 0), touching the x-axis exactly once

This equation factors as (x − 3)² = 0. The parabola is tangent to the x-axis at x = 3.

Worked Example 3: Complex Roots (No Real Solutions)

Solve x² + 2x + 5 = 0. Here a = 1, b = 2, c = 5.

  • Discriminant: D = 4 − 4(1)(5) = 4 − 20 = −16 (negative → complex roots)
  • Real part: −2 / 2 = −1
  • Imaginary part: √16 / 2 = 2
  • Roots: x₁ = −1 + 2i, x₂ = −1 − 2i

The parabola sits entirely above the x-axis (vertex at (−1, 4)) and never crosses it, so there are no real solutions.

Common Use Cases & Tips

Projectile Motion in Physics

A ball is thrown upward with an initial velocity of 20 m/s from a height of 1 m. Its height is h(t) = −5t² + 20t + 1. To find when it hits the ground, set h(t) = 0: use a = −5, b = 20, c = 1. The positive root gives the landing time (approximately t ≈ 4.05 seconds).

Area Optimization (Geometry)

A farmer has 120 m of fence for a rectangular enclosure. If the width is x, then length = (120 − 2x)/2 = 60 − x and area = x(60 − x) = −x² + 60x. To find when the area equals 800 m², set −x² + 60x − 800 = 0. Use a = −1, b = 60, c = −800 → x = 20 or x = 40.

Economics: Break-Even Analysis

A company's profit function is P(x) = −2x² + 100x − 900, where x is units sold. To find the break-even points (P = 0), enter a = −2, b = 100, c = −900. Roots x = 15 and x = 35 are the two production levels where the business neither profits nor loses.

Optics: Parabolic Reflectors

Satellite dishes, car headlights, and solar concentrators use parabolic shapes because a parabola focuses parallel rays to a single point — the focus. The focus of y = ax² is located at (0, 1/4a). For a dish with a = 0.1, the focus is at height 1/0.4 = 2.5 units from the vertex.

Converting from Non-Standard Form

If your equation is 3x² = 7x − 2, rearrange to 3x² − 7x + 2 = 0 before entering coefficients: a = 3, b = −7, c = 2. This gives x = (7 ± √(49 − 24)) / 6 = (7 ± 5) / 6, so x = 2 or x = 1/3.

Checking by Substitution (Vieta's Formulas)

After you get roots x₁ and x₂, you can verify them using Vieta's formulas: the sum of roots x₁ + x₂ = −b/a, and the product x₁ × x₂ = c/a. For x² − 3x − 4 = 0 with roots 4 and −1: sum = 3 = −(−3)/1 ✓; product = −4 = −4/1 ✓.

Three Ways to Solve a Quadratic Equation

The quadratic formula always works, but two other methods — factoring and completing the square — are faster in specific cases and are commonly tested in algebra courses.

Method 1: The Quadratic Formula (Universal)

Works for any quadratic equation. Enter a, b, and c into this calculator for instant step-by-step results. Use this method when the equation does not factor easily or when decimal roots are acceptable.

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

Method 2: Factoring (Fastest When It Works)

Look for two numbers that multiply to ac and add to b. If the equation x² − 5x + 6 = 0 has ac = 6 and b = −5, the numbers −2 and −3 work: x² − 2x − 3x + 6 = (x − 2)(x − 3) = 0, giving x = 2 and x = 3. Factoring only works when roots are rational — if the discriminant is not a perfect square, you cannot factor over the integers.

Method 3: Completing the Square (Derives the Formula)

To solve x² + 6x + 5 = 0 by completing the square:

  1. Move constant: x² + 6x = −5
  2. Add (6/2)² = 9 to both sides: x² + 6x + 9 = 4
  3. Factor left side: (x + 3)² = 4
  4. Take square root: x + 3 = ±2
  5. Solve: x = −1 or x = −5

This process, applied to the general form ax² + bx + c = 0, is exactly how the quadratic formula is derived. Understanding it deepens your insight into why the formula works.

Common Sign Errors to Avoid

The most frequent mistakes students make with the quadratic formula:

  • Forgetting the negative in −b: If b = −3, then −b = +3, not −3.
  • Computing b² incorrectly with negatives: (−3)² = +9, never −9.
  • Dividing only part of the numerator by 2a: The entire expression −b ± √(b² − 4ac) must be divided by 2a, not just the ±√ part.
  • Not rearranging to standard form first: Always move all terms to one side so the right side equals zero before reading off a, b, and c.

Related Calculator Tools

Frequently Asked Questions

The quadratic formula is ( x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} ), used to find the roots of any quadratic equation.

The discriminant (b² - 4ac) indicates root types:


  • Positive → 2 real roots
  • Zero → 1 real root
  • Negative → 2 complex roots

Use ( h = -b / 2a ) and ( k = f(h) ) to find the vertex (h, k).

The coefficient “a” controls the parabola’s direction and width.

  • a > 0 → opens upward
  • a < 0 → opens downward

The equation becomes linear, not quadratic.

Check the discriminant (b² - 4ac). If it’s ≥ 0, your equation has real roots.

  • Standard form: ax² + bx + c = 0
  • Vertex form: a(x - h)² + k

Yes, if the discriminant is negative, roots will include imaginary numbers (i).

It shows both the numeric roots and the vertex form, with an interactive parabola graph.

Absolutely. Enter decimal or fractional coefficients (e.g., 0.5, ¾), and the tool will compute precise results.