CalcCards

Quadratic Formula Calculator: Solve ax² + bx + c = 0 and Find Both Roots

Updated Apr 10, 2026

Quadratic Formula Calculator

Results

x₁3.0000
x₂2.0000
Discriminant1.00
Vertex(2.50, -0.25)
View saved →

Embed

Add this to your site

<iframe
  src="https://calc.cards/embed/math/quadratic-formula-calculator"
  width="600"
  height="700"
  frameborder="0"
  loading="lazy"
  title="Calc.Cards calculator"
  style="border:1px solid #e0e0e0;border-radius:8px;max-width:100%;"
></iframe>

Free with attribution. The Quadratic Formula Calculator runs entirely inside the iframe.

Branded

Customize & brand for your site

Get the Quadratic Formula Calculator as a self-contained widget styled with your colors and logo. No iframe, no Calc.Cards branding.

  • Brand color palette (auto-extract from your URL)
  • Your logo, your typography
  • Clean HTML/CSS/JS you can drop on any page
  • Lifetime updates if the formula changes
Brand this calculator — $199

Need something different? Build a fully custom calc

You Have the Equation 2x² - 5x + 3 = 0—And You're Not About to Complete the Square by Hand

The quadratic formula is the algebraic shortcut for solving any quadratic equation without guessing, factoring, or completing the square. Plug in the coefficients, and the formula gives you the solutions (roots). But the arithmetic-calculating the discriminant, the square root, and then both solution paths-is tedious and error-prone. A quadratic formula calculator handles it all at once, showing you the steps and both solutions.

What This Calculator Does

The quadratic formula calculator takes the coefficients a, b, and c from a quadratic equation in the form ax² + bx + c = 0. It calculates the discriminant (b² - 4ac) to determine how many real solutions exist, applies the quadratic formula, and returns both roots. If the discriminant is positive, you get two distinct real roots. If it's zero, you get one repeated root. If it's negative, you get complex roots. The calculator shows all intermediate steps and clearly labels which solution is which.

How to Use This Calculator

Enter your three coefficients: a (the x² coefficient), b (the x coefficient), and c (the constant). For the equation 2x² - 5x + 3 = 0, enter a = 2, b = -5, c = 3. Hit calculate. The calculator shows the discriminant, applies the formula, and returns both roots: x = 1.5 and x = 1. The work is displayed step-by-step so you see exactly what's happening.

The Formula Behind the Math

The Quadratic Formula: For any equation ax² + bx + c = 0, the solutions are:

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

The expression under the square root (b² - 4ac) is called the discriminant.

Using the discriminant to predict solutions:

If discriminant > 0: Two distinct real solutions
If discriminant = 0: One repeated real solution
If discriminant < 0: Two complex conjugate solutions

Example: Solve 2x² - 5x + 3 = 0

a = 2, b = -5, c = 3

Discriminant = (-5)² - 4(2)(3) = 25 - 24 = 1

Since discriminant > 0, there are two real solutions.

x = (5 ± √1) / 4 = (5 ± 1) / 4

x₁ = (5 + 1) / 4 = 6/4 = 1.5

x₂ = (5 - 1) / 4 = 4/4 = 1

Verification: Plug x = 1.5 back into the original:

2(1.5)² - 5(1.5) + 3 = 2(2.25) - 7.5 + 3 = 4.5 - 7.5 + 3 = 0 ✓

Our calculator does all of this instantly-but now you understand exactly what it's computing. The quadratic formula is one of algebra's most powerful tools because it works for any quadratic, regardless of whether it factors neatly.

Real Example: Projectile Motion

You throw a ball upward with an initial velocity of 20 m/s from a height of 2 meters. The height at time t is: h = -5t² + 20t + 2. When does the ball hit the ground (h = 0)?

Rearrange: -5t² + 20t + 2 = 0

a = -5, b = 20, c = 2

Use the quadratic formula calculator. Enter these coefficients. The calculator returns t ≈ 4.10 seconds and t ≈ -0.10 seconds. The negative time is non-physical (it represents when the ball would have been on the ground in the past), so the answer is t ≈ 4.10 seconds.

Business and Profit Optimization

A company's profit is modeled as P = -2x² + 100x - 500, where x is the number of units sold. When is profit zero (break-even)?

Set P = 0: -2x² + 100x - 500 = 0

a = -2, b = 100, c = -500

The quadratic formula calculator returns x = 6.18 and x = 43.82 units. The company breaks even at 6-7 units (starting production) and again around 43-44 units (as costs catch up to revenue). Between these points, the business is profitable.

Geometry and Area

You're building a rectangular garden. The length is 3 meters longer than the width. If the area is 18 square meters, what are the dimensions?

Let x = width. Then length = x + 3. Area = x(x + 3) = 18

Rearrange: x² + 3x - 18 = 0

a = 1, b = 3, c = -18

The quadratic formula calculator returns x = 3 and x = -6. Only the positive solution is physical, so the width is 3 meters and the length is 6 meters.

Tips and Things to Watch Out For

Negative discriminants give complex roots, not "no solution." If the discriminant is negative (e.g., -4), the roots are complex numbers (involving i, the imaginary unit). Real-world contexts typically ignore complex roots unless the situation involves waves or alternating currents.

The coefficient a cannot be zero. If a = 0, the equation is linear (bx + c = 0), not quadratic. The quadratic formula doesn't apply.

Watch the signs of a, b, and c. A mistake in sign leads to wrong answers. For -5x + 3, b = -5, not 5. The calculator is sensitive to these details.

Two roots, one root, or no real roots are all valid outcomes. If you're solving a real-world problem and get two roots, both might be valid (e.g., two times when height equals zero). If you get one root, there's one critical solution. If you get no real roots but complex ones, the real-world context might not apply.

Check your answer by substituting back. If x = 2 is a solution to 2x² - 5x + 3 = 0, then 2(4) - 5(2) + 3 = 8 - 10 + 3 = 1 ≠ 0. So x = 2 is not a solution. The calculator prevents these verification errors.

Frequently Asked Questions

What's a quadratic equation?

A quadratic equation is any equation of the form ax² + bx + c = 0, where a ≠ 0. The highest power of x is 2 (x²). The solutions are the values of x that make the equation true.

Why is the ± symbol there?

The ± symbol indicates two solutions. One comes from adding the square root; the other from subtracting it. That's why quadratics typically have two roots.

What if the coefficient a is negative?

No problem. The formula still works. If a = -1, b = 2, c = 3, for -x² + 2x + 3 = 0, the calculator handles the negative a just fine. The parabola opens downward instead of upward, but the solutions are valid.

Can I use the quadratic formula for x² + 2x + 1 = 0?

Yes. Here a = 1, b = 2, c = 1. Discriminant = 4 - 4 = 0, so there's one repeated root: x = -2/2 = -1. In fact, this factors as (x+1)² = 0, confirming x = -1.

Why would I ever get complex roots?

Complex roots appear when the parabola doesn't cross the x-axis in real numbers. In real-world contexts (distance, time, profit), complex roots are typically ignored. But in pure mathematics and in some engineering contexts (AC circuits, signal processing), complex roots are meaningful.

What if I have a quadratic in a different form, like x² - 9 = 0?

Rearrange it to standard form: x² + 0x - 9 = 0. Then a = 1, b = 0, c = -9. The calculator works on this directly.

Related Calculators

The exponent calculator handles the squaring and power operations if you're working with the formula by hand. The square root calculator is essential for finding the square root of the discriminant. The logarithm calculator is useful if you're transforming exponential equations into quadratic form.

Related Calculators