Quadratic Factoring Calculator

Use this page to factor a quadratic polynomial in standard form ax² + bx + c. The calculator finds the roots using the discriminant and the quadratic formula, then rewrites the polynomial as a product of linear factors. It supports real and complex roots.

Introduction

A quadratic polynomial is an expression of degree 2, typically written as ax² + bx + c, where a, b, and c are real numbers and a ≠ 0. Factoring a quadratic means rewriting it as a product of simpler expressions (usually two binomials). This is useful because it makes solving equations easier, helps simplify rational expressions, and connects directly to the x-intercepts of the parabola when you graph the function.

Many quadratics can be factored by inspection (for example, finding two numbers that multiply to ac and add to b), but that approach can be slow or unclear when coefficients are large, negative, or not integers. This calculator uses a reliable method: it computes the discriminant and applies the quadratic formula to find the roots. From the roots, it constructs the factorization.

How to use

  1. Enter the coefficient a (the number multiplying x²). It must be nonzero.
  2. Enter the coefficient b (the number multiplying x).
  3. Enter the constant term c.
  4. Press Factor Polynomial to display the discriminant, roots, and factored form.

Inputs can be integers, decimals, or negative values. The displayed roots and factors are rounded to four decimal places for readability. If you need exact radicals (like √5), use the formula section below to interpret the result.

Formula and assumptions

The calculator assumes you are factoring a true quadratic polynomial, meaning a ≠ 0. It computes the discriminant D = b² − 4ac to determine the type of roots:

  • D > 0: two distinct real roots
  • D = 0: one repeated real root (a double root)
  • D < 0: two complex conjugate roots

The quadratic formula is: x = (−b ± √(b² − 4ac)) / (2a) . Once the roots are found, the factorization is: a(x − r₁)(x − r₂). If the roots are equal (D = 0), the factorization becomes a(x − r)².

Worked examples

Example 1 (two real roots): Factor x² − 5x + 6. Here a = 1, b = −5, c = 6. Compute the discriminant: D = (−5)² − 4·1·6 = 25 − 24 = 1. Since D > 0, there are two real roots: r₁ = (5 + 1)/2 = 3 and r₂ = (5 − 1)/2 = 2. Therefore the factored form is (x − 3)(x − 2).

Example 2 (a leading coefficient other than 1): Factor 2x² + 3x − 2. Here a = 2, b = 3, c = −2. D = 3² − 4·2·(−2) = 9 + 16 = 25. Roots are x = (−3 ± 5)/(4), so r₁ = 0.5 and r₂ = −2. The factorization is 2(x − 0.5)(x + 2). If you prefer integer factors, you can rewrite it as (2x − 1)(x + 2), which is algebraically equivalent.

Example 3 (complex roots): Factor x² + 4 (a = 1, b = 0, c = 4). D = 0² − 16 = −16, so the roots are 0 ± 2i. Over the complex numbers, the factorization is (x − (0 + 2i))(x − (0 − 2i)), often simplified to (x − 2i)(x + 2i).

Limitations and notes

  • Rounding: Roots are rounded to four decimal places in the displayed factors. If the exact roots are irrational (involving √D), the displayed factors are approximations.
  • Not a quadratic when a = 0: If a is zero, the expression becomes linear (or constant) and this tool will ask for a nonzero a.
  • Real vs. complex factoring: When D < 0, the polynomial cannot be factored into real linear factors. The calculator shows complex factors instead.
  • Equivalent forms: The output is presented as a product of binomials based on the computed roots. For some inputs, you may be able to rewrite the result into a cleaner integer-factor form by distributing the leading coefficient across one factor.

From standard form to factors

Quadratic polynomials sit at the crossroads of algebra and applied math. They appear in projectile motion, revenue and profit models, geometry problems involving area, and optimization tasks where a maximum or minimum value matters. In standard form, a quadratic is written as ax2+bx+c, where a, b, and c are constants and a0. Factoring such expressions into linear components reveals their roots, simplifies equations, and provides insight into the shape of their graphs.

Factoring is closely tied to the zero product property: if a product equals zero, then at least one factor must be zero. So if you can rewrite a quadratic as a(x − r₁)(x − r₂), then solving ax² + bx + c = 0 becomes solving x − r₁ = 0 or x − r₂ = 0. Those solutions are the roots. When the roots are real, they are also the x-intercepts of the parabola y = ax² + bx + c.

The calculator uses the quadratic formula to find roots: x= -b± b2 -4ac 2a . Once the roots r1 and r2 are known, the polynomial factors as a x-r1 x-r2 .

What the discriminant tells you

The discriminant is D=b2-4ac. It determines whether the parabola crosses the x-axis, just touches it, or misses it entirely. This is why the discriminant is a quick diagnostic tool in algebra and graphing.

Discriminant summary table

How the discriminant determines the type of roots
Discriminant condition Root type Graph behavior
D>0 Two distinct real roots Parabola crosses the x-axis twice
D=0 One repeated real root Parabola touches the x-axis at the vertex
D<0 Complex conjugate roots Parabola does not cross the x-axis

Interpretation tips

If you are solving an equation, the roots are the x-values that make the expression equal zero. If you are graphing, the real roots (when they exist) are the x-intercepts. If the discriminant is negative, the graph stays entirely above or below the x-axis (depending on the sign of a), and the intercepts are not real.

If your goal is to factor into integers, remember that the calculator’s root-based factorization may show decimals even when an integer factorization exists. For instance, 2(x − 0.5)(x + 2) can be rewritten as (2x − 1)(x + 2) by moving the 2 into the first factor. This is not a different answer; it is the same polynomial written in a different but equivalent factored form.

Common checks you can do

After you get a factored form, you can quickly verify it:

  • Multiply back: Expand the factors to see whether you recover ax² + bx + c.
  • Sum and product of roots: For real or complex roots, the relationships r₁ + r₂ = −b/a and r₁r₂ = c/a should hold.
  • Graph intuition: If a > 0 the parabola opens upward; if a < 0 it opens downward. Real roots correspond to x-intercepts.

Practical context

In applications, factoring (or root-finding) often answers “when does something hit zero?” For example, a simplified height model for a thrown object might look like h(t) = −16t² + 32t + 48. Solving h(t) = 0 gives the times when the object is on the ground. Even if you do not explicitly factor by inspection, the quadratic formula provides the roots, and the factorization expresses the same information in product form.

Privacy and performance

This page performs all computation in your browser. No external libraries are required, and your inputs are not sent to a server. If you refresh the page, the values you entered may be cleared depending on your browser settings.

FAQ

Why does the result sometimes include decimals?

The calculator factors by computing roots. When roots are fractions or irrational numbers, the most direct root-based factorization naturally contains decimals (rounded for display). If you want a cleaner form, rewrite the factors by distributing the leading coefficient or by expressing decimals as fractions.

What does it mean if the discriminant is negative?

A negative discriminant means there are no real roots, so the parabola does not cross the x-axis. The quadratic still factors over the complex numbers into two conjugate linear factors. This is normal and expected for expressions like x² + 4.

Does factoring always help solve equations?

Yes—factoring is one of the standard methods for solving quadratic equations. However, if the quadratic does not factor nicely over the integers, the quadratic formula is often the fastest path. This calculator essentially uses that approach and then converts the roots into factors.

How should I interpret a repeated factor?

When D = 0, the quadratic has one real root with multiplicity two. Geometrically, the parabola touches the x-axis at exactly one point (the vertex). Algebraically, the factorization looks like a(x − r)².

Enter coefficients Leading coefficient for x². Use nonzero values so the expression remains quadratic. Linear coefficient that multiplies x. Constant term that does not include x.
Enter coefficients to factor the quadratic.

Embed this calculator

Copy and paste the HTML below to add the Quadratic Factoring Calculator (ax² + bx + c) — Factor a Quadratic Polynomial to your website.