What Is a Quadratic Equation and How Do You Find Its Roots?

quadratic roots — Chunky Munster

A quadratic equation is any equation that can be written as ax² + bx + c = 0, where a is not zero. The quadratic roots are the values of x that make the equation true. If you want the arithmetic handled for you, try our free quadratic solver.

What Makes an Equation Quadratic

The giveaway is the highest power of the variable. If the largest exponent on x is 2, the equation is quadratic. If the highest power is 1, it is linear; if it is 3 or more, you are dealing with a different class of polynomial behavior.

The standard form is simple:

ax² + bx + c = 0

Here, a, b, and c are coefficients. They can be integers, fractions, decimals, or negative values. The only hard rule is a ≠ 0. If a disappears, the equation stops being quadratic and the usual root-finding methods no longer apply.

Some quick examples:

That distinction matters because quadratics have a predictable structure. They graph as parabolas, and parabolas have a symmetry that makes root-finding cleaner than it looks at first glance.

What Quadratic Roots Actually Mean

Roots are the values of x where the equation evaluates to zero. On a graph, they are the points where the parabola crosses the x-axis. In code, they are the solutions you would feed back into a model or formula to make the expression balance out.

You will also hear these called solutions, zeros, or x-intercepts. Same thing, different angle. For a developer, the useful part is this: roots mark the inputs that cause a quadratic model to hit a threshold, change direction, or break even.

That shows up in practical work more often than high-school algebra suggests. Think projectile motion, pricing curves, collision timing, or any system where a response rises and falls instead of moving in a straight line. A quadratic root might represent the moment a ball hits the ground, the point where profit becomes zero, or the input where an error term disappears.

When a quadratic has two roots, one root, or no real roots, the graph is telling you whether the parabola touches the x-axis, crosses it twice, or misses it entirely.

Three Ways to Find the Roots

There are three standard ways to solve a quadratic: factoring, using the quadratic formula, or completing the square. In practice, factoring is fastest when it works. The quadratic formula is the universal fallback. Completing the square is the method that explains why the formula exists at all.

Factoring works when the quadratic can be rewritten as two binomials:

x² - 5x + 6 = 0
(x - 2)(x - 3) = 0
x = 2 or x = 3

This is the cleanest path, but not every equation factors nicely over integers. If the numbers are ugly, move on without guilt.

The quadratic formula works for every quadratic:

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

The square root part, b² - 4ac, is called the discriminant. It tells you how many real roots you get. If it is positive, you get two real roots. If it is zero, you get one repeated real root. If it is negative, the roots are complex.

Completing the square is useful when you want to transform the expression into a perfect-square form. It is less common for quick calculation, but it is the method behind vertex form and a lot of algebraic rearranging. If you are manipulating formulas by hand or inside a derivation, it is worth knowing.

For most day-to-day work, the choice is blunt:

How the Discriminant Changes the Outcome

The discriminant is the small piece of the formula that tells the bigger story. It is defined as b² - 4ac, and it controls the nature of the quadratic roots before you even calculate them.

If b² - 4ac > 0, the equation has two distinct real roots. If it equals zero, both roots are the same number, so the parabola just kisses the x-axis at one point. If it is less than zero, there are no real roots, because the square root of a negative number leaves the real-number line.

That last case is not a failure. It just means the solutions live in the complex plane. In engineering or scripting contexts, that often means your model never hits zero under the real-valued conditions you tested.

Here is a tiny JavaScript helper that checks the root type before you calculate anything else:

function rootType(a, b, c) {
  const d = b * b - 4 * a * c;
  if (d > 0) return 'two real roots';
  if (d === 0) return 'one repeated real root';
  return 'no real roots';
}

That is the kind of pre-check worth keeping around if you are validating user input or generating math answers in a browser app.

Why Quadratics Show Up in Real Work

Quadratics are not just textbook decoration. They show up anywhere a value changes with curvature instead of a straight slope. That includes physics, graphics, optimization, and search spaces where the “best” answer sits at the bottom of a curve.

In physics, a falling object often follows a quadratic height equation because gravity pulls at a steady rate. In graphics or UI layout, quadratic-like easing curves can control motion. In business logic, a break-even equation can become quadratic once you add non-linear costs or discounts.

They are also common in data work. If you fit a curve to measured points, a quadratic can give you a rough model without dragging in heavier machinery. You may not call it algebra, but the roots still matter when the curve needs to cross a threshold.

If you want a related refresher on the number side of this, our guide on what GCD and LCM are and when you need them is a good companion piece. Different topic, same habit: know the structure before you start computing.

Common Mistakes When Solving Quadratics

The most common mistake is skipping standard form. The formula expects ax² + bx + c = 0, so if your equation is written as 2x² = 8x - 6, move everything to one side first. Otherwise you will feed the wrong coefficients into the formula and get nonsense back.

Another easy error is sign handling. If you move a term across the equals sign, its sign changes. That sounds trivial until you are tired and half the equation has become negative by accident.

People also forget that factoring can miss non-integer roots. If you only try to split the middle term and stop when it gets messy, you may think there is no answer. There is almost always an answer if you use the formula; it just may not be neat.

Watch the denominator too. In the quadratic formula, everything is divided by 2a. If a is negative or fractional, carry it carefully. This is where a solver earns its keep, especially if you are checking several equations in a row.

A Worked Example

Let’s solve one completely and keep the arithmetic visible. Take:

x² - 5x + 6 = 0

This is already in standard form, so the coefficients are easy to read: a = 1, b = -5, c = 6. Because the numbers are friendly, factoring is the fastest route.

x² - 5x + 6 = 0
(x - 2)(x - 3) = 0
x - 2 = 0  →  x = 2
x - 3 = 0  →  x = 3

So the quadratic roots are 2 and 3. You can verify them by substitution:

2² - 5(2) + 6 = 4 - 10 + 6 = 0
3² - 5(3) + 6 = 9 - 15 + 6 = 0

Now do a less convenient one:

2x² + 3x - 8 = 0

This does not factor cleanly in a way most people want to do by hand, so use the formula:

a = 2, b = 3, c = -8
x = (-b ± √(b² - 4ac)) / (2a)
x = (-3 ± √(3² - 4(2)(-8))) / 4
x = (-3 ± √(9 + 64)) / 4
x = (-3 ± √73) / 4

Those are the exact roots. If you want decimals, √73 ≈ 8.544, which gives roughly x ≈ 1.386 and x ≈ -2.886. That is the point where a calculator or solver saves time and reduces typo damage.

Frequently Asked Questions

What are the roots of a quadratic equation?

The roots are the values of x that make the quadratic equal to zero. They are also called solutions, zeros, or x-intercepts. If the parabola crosses the x-axis, the crossing points are the roots.

How do you find quadratic roots quickly?

Try factoring first if the coefficients are simple. If that does not work, use the quadratic formula and check the discriminant to see whether you expect two, one, or no real roots. For repeated work, a solver is faster than doing the same algebra by hand every time.

What does the discriminant tell you?

The discriminant is b² - 4ac. A positive value means two real roots, zero means one repeated real root, and a negative value means no real roots. It is the shortcut that tells you what kind of answer you are about to get.

Can a quadratic have complex roots?

Yes. When the discriminant is negative, the square root term becomes imaginary, so the roots are complex instead of real. That is normal in algebra and often useful in more advanced math and engineering.

Wrapping Up

Quadratic equations are just a structured way of asking where a curve hits zero. Once you know the standard form, the discriminant, and the quadratic formula, the whole thing becomes routine rather than mysterious.

Use factoring when the numbers are friendly, use the formula when they are not, and keep an eye on the discriminant if you want to know what kind of answer is coming. If you want to skip the hand math and check your work, use the quadratic solver and move on with your day.

That is usually the right trade: understand the shape of the problem, then let the tool handle the repetitive parts. Less algebra in the browser, fewer mistakes in the margins.

// try the tool
try our free quadratic solver →
// related reading
← all posts