What Is a Factoring Calculator?
A factoring calculator takes a quadratic expression in the form ax^2 + bx + c and writes it as a product of factors. It uses the quadratic formula to find the roots, then expresses the polynomial as a product of linear factors. If the roots are integers, you get a clean factored form like (x - 2)(x - 3). If the discriminant is zero, the calculator identifies a perfect square. If the discriminant is negative, it factors over the complex numbers.
Factoring is the reverse of multiplying. When you multiply (x - 2)(x - 3), you get x^2 - 5x + 6. Factoring goes the other direction: given x^2 - 5x + 6, find that it equals (x - 2)(x - 3). This skill is essential for solving quadratic equations, simplifying rational expressions, and finding x-intercepts of parabolas. Factoring is taught in algebra courses worldwide and is a prerequisite for calculus.
How Factoring Works
The calculator uses the quadratic formula to find the roots of the expression. The roots are the values of x that make the expression equal to zero. Once the roots are known, the factored form is written as a(x - r1)(x - r2), where r1 and r2 are the roots and a is the leading coefficient.
The Quadratic Formula
x = (-b +/- sqrt(b^2 - 4ac)) / (2a)
The discriminant D = b^2 - 4ac determines the nature of the roots:
- D greater than 0: Two distinct real roots. The expression factors into two different linear factors.
- D = 0: One repeated real root. The expression is a perfect square: a(x - r)^2.
- D less than 0: Two complex roots. The expression factors over the complex numbers but not over the reals.
Greatest Common Factor (GCF)
Before applying the quadratic formula, the calculator checks if all coefficients share a common factor. For example, 2x^2 + 4x + 2 has a GCF of 2. Factoring out the 2 gives 2(x^2 + 2x + 1), which further factors as 2(x + 1)^2. The GCF step simplifies the expression before finding roots.
How to Use the Calculator
- Enter the coefficient a (the x squared coefficient). For x^2 - 5x + 6, a = 1.
- Enter the coefficient b (the x coefficient). For x^2 - 5x + 6, b = -5.
- Enter the constant c. For x^2 - 5x + 6, c = 6.
- The factored form and step-by-step solution appear instantly on the right.
- Click any quick example to load a pre-filled expression.
Example Calculations
Example 1: Simple Integer Roots
Factor x^2 - 5x + 6:
- Discriminant: D = 25 - 24 = 1 (greater than 0, two real roots)
- Roots: x = (5 + 1) / 2 = 3 and x = (5 - 1) / 2 = 2
- Factored form: (x - 2)(x - 3)
- Verification: (x - 2)(x - 3) = x^2 - 3x - 2x + 6 = x^2 - 5x + 6. Correct.
Example 2: Perfect Square
Factor x^2 - 4x + 4:
- Discriminant: D = 16 - 16 = 0 (perfect square)
- Root: x = 4 / 2 = 2 (repeated)
- Factored form: (x - 2)^2
- Verification: (x - 2)^2 = x^2 - 4x + 4. Correct.
Example 3: Complex Roots
Factor x^2 + 2x + 5:
- Discriminant: D = 4 - 20 = -16 (negative, complex roots)
- Roots: x = (-2 + 4i) / 2 = -1 + 2i and x = (-2 - 4i) / 2 = -1 - 2i
- Factored form: (-1 + 2i)(-1 - 2i) or (x + 1 - 2i)(x + 1 + 2i)
- Note: This expression cannot be factored using only real numbers.
Real-World Scenarios
Finding the Dimensions of a Rectangular Garden
A gardener has 20 meters of fencing and wants to build a rectangular garden with an area of 24 square meters. Let the width be w. Then the length is (20 - 2w) / 2 = 10 - w. The area equation is w(10 - w) = 24, which expands to -w^2 + 10w - 24 = 0, or w^2 - 10w + 24 = 0. Factoring gives (w - 4)(w - 6) = 0, so w = 4 or w = 6. The garden can be 4m by 6m or 6m by 4m (same rectangle, different orientation). This is a classic application of factoring to geometry problems.
Solving a Projectile Motion Problem
A ball is thrown upward with an initial velocity of 20 m/s from a height of 6 meters. Its height after t seconds is h(t) = -5t^2 + 20t + 6. When does the ball hit the ground? Setting h = 0: -5t^2 + 20t + 6 = 0, or 5t^2 - 20t - 6 = 0. The discriminant is 400 + 120 = 520. The roots are (20 + sqrt(520)) / 10 and (20 - sqrt(520)) / 10. Only the positive root matters: approximately 4.28 seconds. Factoring helps identify when the height is zero, which is when the ball lands. For solving the underlying equation directly, use our Quadratic Equation Calculator.
Simplifying a Rational Expression in Calculus
A calculus student needs to simplify (x^2 - 3x - 10) / (x - 5) before taking a limit. Factoring the numerator: x^2 - 3x - 10 = (x - 5)(x + 2). The expression simplifies to (x - 5)(x + 2) / (x - 5) = x + 2 (for x not equal to 5). Now the limit as x approaches 5 is simply 5 + 2 = 7. Without factoring, the student would get 0/0, an indeterminate form. This is why factoring is a prerequisite skill for calculus. For evaluating the limit directly, see our Limit Calculator.
Common Mistakes to Avoid
- Forgetting to check for a GCF first: Always look for a common factor before trying to factor the quadratic. 2x^2 + 4x + 2 should first be written as 2(x^2 + 2x + 1), then factored as 2(x + 1)^2. Skipping the GCF step can make factoring harder or impossible.
- Sign errors when writing factors from roots: If the root is x = 3, the factor is (x - 3), not (x + 3). If the root is x = -2, the factor is (x + 2), not (x - 2). The factor always has the opposite sign of the root.
- Assuming every quadratic factors over the integers: Many quadratics have irrational or complex roots. x^2 + x + 1 has a negative discriminant and cannot be factored using real numbers. The calculator will tell you when this happens.
- Not including the leading coefficient in the factored form: If the original expression is 2x^2 - 10x + 12, the factored form is 2(x - 2)(x - 3), not just (x - 2)(x - 3). The leading coefficient must be included or the factored form does not equal the original expression.
- Confusing factoring with expanding: Factoring goes from ax^2 + bx + c to a product of factors. Expanding goes the other direction. (x - 2)(x - 3) expands to x^2 - 5x + 6. x^2 - 5x + 6 factors to (x - 2)(x - 3). They are inverse operations.
Authoritative Research and Resources
- Khan Academy: Factoring Quadratics - A free course covering GCF factoring, factoring by grouping, difference of squares, and perfect square trinomials. Includes video lessons and practice problems with immediate feedback.
- OpenStax Algebra: Factoring Polynomials - A peer-reviewed, open-source algebra textbook covering all factoring techniques with worked examples and exercises. Used in college algebra courses nationwide.
- Paul's Online Math Notes: Factoring Polynomials - Paul Dawkins' widely used algebra reference from Lamar University. Provides clear explanations of all factoring methods with worked examples and practice problems.