Factor Polynomials Calculator
Instantly factor any quadratic ax² + bx + c — get the factored form, roots, discriminant, and full step-by-step solution.
Factor Polynomials Calculator
FreeAbout This Calculator
What Is Polynomial Factoring?
Factoring a polynomial means rewriting it as a product of simpler expressions. For quadratics of the form ax² + bx + c, we express it as a(x − r₁)(x − r₂) where r₁ and r₂ are the roots of the equation.
How to Use This Calculator
- Enter values for a, b, and c (a must not be zero)
- Watch the equation preview update as you type
- Click Calculate to get results instantly
- Click Show Step-by-Step Solution to see full working
- Use the quick example buttons to auto-fill common polynomials
- Click Reset to clear all fields
Understanding the Discriminant (D = b² − 4ac)
- D > 0 — Two distinct real roots; factors into two different linear terms
- D = 0 — One repeated real root; polynomial is a perfect square
- D < 0 — Two complex (imaginary) roots; cannot be factored over real numbers
The Quadratic Formula
Roots are found using: x = (−b ± √(b² − 4ac)) / 2a. The ± gives two roots: one with addition and one with subtraction.
Example Walkthrough
For 2x² + 5x − 3: a = 2, b = 5, c = −3.
D = 5² − 4(2)(−3) = 25 + 24 = 49. Since D > 0, two real roots exist.
x₁ = (−5 + 7) / 4 = 0.5 | x₂ = (−5 − 7) / 4 = −3
Factored form: (2x − 1)(x + 3)
Frequently Asked Questions
Calculator Overview
We have built a Factor Polynomials Calculator that factors quadratic polynomials of the form ax² + bx + c. This calculator is completely free, works in any browser, and provides a step-by-step solution.
- Live equation preview – updates as you type
- Step-by-step solution – shows all working
- Nature badge – indicates real / repeated / complex roots
- Copy button – for the factored form
- 8 quick example chips – one‑click testing
- Accordion FAQ section – answers common questions
- Enter key support – press Enter to calculate
Detailed Features
1. Live Equation Preview
As soon as the user enters values for a, b, and c, the equation updates live inside a blue box.
Example: Enter a=2, b=5, c=-3 → displays 2x² + 5x − 3.
This greatly improves the user experience.
2. Coefficient Inputs (a, b, c)
Three input fields:
- Coefficient a (x² term)
- Coefficient b (x term)
- Coefficient c (constant term)
Users can enter any decimal or negative number.
3. Quick Example Chips
Below the calculator, 8 ready‑made examples are provided. One click auto‑fills the inputs and runs the calculation:
x² + 5x + 6x² − 9(difference of squares)2x² + 5x − 3x² + 4x + 4(perfect square)x² − 5x + 6x² + 2x + 5(complex roots)3x² − 7x + 2x² − x − 12
4. Calculate & Reset Buttons
- Calculate – shows a loading animation, then displays the result.
- Reset – clears all fields.
- Enter key – also triggers the calculation.
5. Result Section
The result shows four items:
- Factored Form – displayed in a large blue card, e.g.,
(2x − 1)(x + 3) - Roots – the x‑values where the polynomial equals zero
- Discriminant (D) – value of
b² − 4ac - Equation – confirms the original equation
6. Nature Badge
A coloured badge appears below the result card:
| Badge | Condition | Meaning |
|---|---|---|
| ✅ Two Distinct Real Roots | D > 0 | Two different real roots, factoring is possible |
| 🔁 One Repeated Real Root | D = 0 | Only one root (perfect square trinomial) |
| ❌ Complex Roots | D < 0 | No real roots, factoring over reals is not possible |
7. Step‑by‑Step Solution
Below the result there is a toggle button: “Show Step‑by‑Step Solution”. When clicked, all steps open in a numbered list:
- Calculate the discriminant:
D = b² − 4ac - Apply the quadratic formula:
x = (−b ± √D) / 2a - Find both roots:
x₁andx₂ - Write the factored form:
a(x − r₁)(x − r₂)
8. Copy Button
A Copy button is located at the top‑right of the factored form. One click copies the result to the clipboard. A “Copied!” message appears for 2 seconds.
How the Math Works
Discriminant (D = b² − 4ac)
The discriminant tells us what kind of roots to expect. It is calculated first:
| Discriminant | Root Type | Example |
|---|---|---|
| D > 0 | Two distinct real roots | x² + 5x + 6 → D=1, roots: -2, -3 |
| D = 0 | One repeated real root | x² + 4x + 4 → D=0, root: -2 |
| D < 0 | Complex roots | x² + 2x + 5 → D=-16 |
Quadratic Formula
The formula to find the roots is:x=2a−b±b2−4ac
The ± means one addition and one subtraction, giving both x₁ and x₂.
How the Factored Form is Built
Once the roots r₁ and r₂ are known, the factored form is:a(x−r1)(x−r2)
Example: 2x² + 5x − 3 has roots 0.5 and -3.
Factored form: (2x − 1)(x + 3)
Example Walkthroughs (for your article)
Example 1: x² + 5x + 6
Enter a=1, b=5, c=6
- D = 5² − 4(1)(6) = 25 − 24 = 1
- D > 0 → two real roots
- x₁ = (−5 + 1) / 2 = −2
- x₂ = (−5 − 1) / 2 = −3
- Factored form:
(x + 2)(x + 3)
Example 2: x² − 9 (Difference of Squares)
Enter a=1, b=0, c=−9
- D = 0 − 4(1)(−9) = 36
- x₁ = 3, x₂ = −3
- Factored form:
(x + 3)(x − 3)
Example 3: x² + 4x + 4 (Perfect Square)
Enter a=1, b=4, c=4
- D = 16 − 16 = 0
- D = 0 → only one root: x = −2
- Factored form:
(x + 2)²
Example 4: x² + 2x + 5 (Complex Roots)
Enter a=1, b=2, c=5
- D = 4 − 20 = −16
- D < 0 → complex roots: −1 ± 2i
- Real factoring is not possible
How to Use the Calculator (Step‑by‑Step)
- Open the calculator page in your browser.
- Enter the value for coefficient a (cannot be zero).
- Enter the value for coefficient b.
- Enter the value for coefficient c.
- Check the live preview above – if the equation looks correct, proceed.
- Click the Calculate button or press the Enter key.
- View the Factored Form, Roots, and Discriminant.
- Click the toggle button to see the step‑by‑step solution.
- Use the Copy button to copy the result.
- Click Reset to start a new calculation.
Frequently Asked Questions (FAQ)
1. What polynomials can this calculator factor?
It factors only quadratic polynomials (degree 2), i.e., of the form ax² + bx + c. The coefficient a cannot be zero.
2. Can I enter decimal or negative numbers?
Yes, absolutely. You can enter any decimal value (e.g., 0.5, −3.7) or negative number.
3. What happens if the discriminant is negative?
The calculator will show complex (imaginary) roots, for example −1 + 2i. A pink badge will appear indicating that real factoring is not possible.
4. Can it factor cubic or higher‑degree polynomials?
No, this calculator is designed only for quadratics (degree 2). For higher degrees, please use a computer algebra system.
5. How accurate are the results?
Roots are accurate to 4 decimal places. When roots are integers or simple fractions (e.g., 1/2, −3), they are shown in exact form.
6. Does it work on mobile?
Yes, the calculator is fully responsive and works correctly on mobile, tablet, and desktop.
7. What if I enter a = 0?
The calculator will show an error because a = 0 turns the equation into a linear one, not a quadratic.
8. Is it free?
Yes, completely free. No registration, download, or payment is required.