Quadratic by Factoring Calculator
Enter coefficients for ax² + bx + c = 0 and solve using factoring logic when possible.
Tip: Integer coefficients give the clearest “factoring by grouping” style steps.
Results
Enter values and click Factor & Solve.
What this quadratic by factoring calculator does
This tool solves quadratic equations of the form ax² + bx + c = 0. It first tries to identify a clean factorization, especially with integer coefficients, and then returns the roots. If a neat integer factorization is not available, it still computes accurate roots and explains what happened.
In short: you get both the answer and the reasoning path.
How factoring works (quick refresher)
Factoring means rewriting a quadratic expression as a product of two linear factors:
(px + q)(rx + s) = 0
If that factorization is correct, the zero-product property tells us:
- Either px + q = 0, or
- rx + s = 0.
Solving those two simple equations gives the roots.
Step-by-step method used by the calculator
1) Build the equation
The calculator forms your equation as ax² + bx + c = 0.
2) Check structure and discriminant
It computes the discriminant D = b² - 4ac. This reveals how many real roots exist:
- D > 0: two distinct real roots
- D = 0: one repeated real root
- D < 0: complex (non-real) roots
3) Try integer factorization first
For integer coefficients, the tool searches for factors of a and c that produce the middle term b. When found, it shows a clean factorized form such as:
(x - 2)(x - 3) = 0
4) Return roots and interpretation
Finally, roots are displayed exactly (when possible) and as decimals when needed.
Example problems you can try
- x² - 5x + 6 = 0 → roots 2 and 3
- 2x² + 7x + 3 = 0 → factors (2x + 1)(x + 3)
- x² + 4x + 4 = 0 → repeated root -2
- x² + x + 1 = 0 → no real factorization; complex roots
Common mistakes when factoring quadratics
- Forgetting to set the equation equal to zero before factoring.
- Sign errors when combining factor pairs.
- Dropping the leading coefficient when a ≠ 1.
- Assuming every quadratic factors nicely over integers.
When factoring does not work cleanly
Not every quadratic can be factored using integers. Some are factorable only with irrational numbers; others require complex numbers. This calculator still gives correct roots and clearly indicates when integer factoring is unavailable.
FAQ
Does this calculator only work for integers?
No. It accepts decimals too. Integer inputs simply make classical factoring steps more likely.
What if a = 0?
Then the equation is linear, not quadratic. The calculator handles that case automatically.
Can it show repeated roots?
Yes. If the discriminant is zero, it reports one repeated root and displays squared-factor form.