CalculatorForEver
MATH / CALCULATOR

Factoring Calculator

Calculate factoring with worked steps, clear input conventions and a result table.

For an integer-coefficient quadratic, calculate D = b² − 4ac. A nonnegative perfect-square discriminant gives rational roots and allows rational linear factors. For 2x² + 5x + 2, the factorization is (2x + 1)(x + 2).

Your numbers

BROWSER-LOCAL INPUTS

Your inputs stay in this browser. No account needed.

RESULT

Your result

Enter your values and select Calculate.

Check the units and assumptions before using this result.

METHOD

How the factoring calculator works

How to use this calculator

Enter the values in the stated format. Calculate and review the method, exact distinctions and any numerical limits before using the result.

What the result means

Factoring a quadratic rewrites ax² + bx + c as a product whose expansion returns the original coefficients. This calculator focuses on integer-coefficient quadratics, with a nonzero quadratic coefficient. A common coefficient factor can be taken out first. The remaining discriminant helps determine whether rational linear factors exist. This is a polynomial task, distinct from prime factorization of one whole number. Keep the variable powers and coefficient signs when entering an expression.

The formula

Factor a quadratic over rational numbers when its discriminant is a perfect square

A worked example

x² − 5x + 6 factors as (x − 2)(x − 3).

Assumptions & methodology

Use consistent units and inspect the displayed working. Numerical results are rounded for display; unsupported or unstable inputs are rejected. Results are rounded for display; intermediate calculations retain precision. This tool is informational and does not replace institutional or professional guidance.

References

OpenStax: quadratic equations and completing the square

WORK THROUGH THE DETAILS

Using your factoring result

Use the discriminant to distinguish factor types

For x²−5x+6, D = 25−24 = 1 and the roots are (5±1)/2, giving 2 and 3. The factors are (x−2)(x−3). For x²−2, D = 8, so no rational roots exist; over the real numbers its factors use √2. For x²+1, D = −4, so there are no real linear factors. A result that reports no rational factorization does not mean the polynomial cannot be represented over a wider number system.

Handle a zero constant or repeated factor

When c is zero, every term contains x. The quadratic 3x²−12x becomes 3x(x−4), with roots 0 and 4. A repeated-root example is x²−6x+9 = (x−3)², since D = 36−36 = 0. Counting the repeated root twice describes its algebraic multiplicity, not two distinct crossing locations. A graph can touch the axis at that repeated root rather than crossing it, depending on the leading coefficient.

Choose a different tool when the expression changes scope

This form accepts the three coefficients of a quadratic. It does not parse an arbitrary symbolic expression, factor a cubic, or prove a general polynomial identity in several variables. Enter zero for a missing linear or constant term while keeping a nonzero a. Use Prime Factorization for an integer, Quadratic for roots, and Completing the Square for vertex form. Exact integer coefficients help the discriminant test; decimal approximations to rational coefficients can obscure an intended perfect square.

Read a rational root-form factorization carefully

For 3x²−5x+2, the discriminant is 1 and the roots are 1 and 2/3. One root-form factorization is 3(x−1)(x−2/3), equivalent to the integer-factor form (x−1)(3x−2). The factor expression retains 2/3 as an exact fraction, while the separate decimal root metrics round for display. Re-expanding those rounded decimals can introduce a small coefficient difference, so retain the factor expression when an exact algebra exercise needs equality. The current result format can express factors through rational roots with a leading coefficient; it does not promise a fully symbolic simplification into the most compact integer binomials. The discriminant and original coefficients remain the reference for an exact check.

INTERPRETATION

Understanding factoring results

Expand the proposed factors to check coefficients

Multiply (2x+1)(x+2): the first terms give 2x², the outside and inside products give 4x and x, and the constants give 2. Combining the middle terms produces 2x²+5x+2. This expansion checks the full polynomial rather than checking one selected value of x. A factorization with the correct constant product can still have the wrong middle coefficient, so inspect both the products and the combined cross terms.

Extract a common factor without losing it

The expression 6x²+15x+6 has a common factor of 3. Removing it gives 3(2x²+5x+2), then 3(2x+1)(x+2). Dropping the leading 3 changes the polynomial even though the zero locations stay the same. If the task is to solve an equation equal to zero, a nonzero overall factor does not create a root. If the task asks for an equivalent expression, the factor must remain part of the reported answer.

RELATED GUIDES

Related questions and worked examples

Read a worked explanation before trying another calculation.

QUESTIONS

Factoring questions

Does a negative leading coefficient prevent factoring?+

No. A negative common factor can be removed, and valid linear factors can still exist. Expanding the final expression should recover every original sign.

Are roots and factors the same output?+

They are related: a root r corresponds to a linear factor x−r. The leading coefficient must also be preserved to reproduce the polynomial.