Factoring Calculator
What is the Factoring Calculator?
What this calculator does
Enter the three coefficients of a quadratic, a, b, and c, and the page reports the discriminant, both roots, the sum and product of the roots, and, when the roots are complex, their real and imaginary parts.
The default run
The page opens on x squared minus 5x plus 6, which is a = 1, b = -5, c = 6. The discriminant is 1, the roots are 3 and 2, and the sum and product lines read 5 and 6.
The discriminant decides everything
The discriminant, b squared minus 4ac, has three regimes. Positive means two distinct real roots, zero means one repeated root, and negative means a complex conjugate pair with no real roots at all.
A repeated root
For 2x squared minus 4x plus 2, the discriminant is exactly 0. Both root lines read 1, the flag reads 1, and the imaginary part reads 0, because the pair has merged into a single repeated root.
When the roots are complex
For x squared plus 1, the discriminant is -4. The page reports Has Real Roots as 0, leaves both root lines blank, and shows a real part of 0 and an imaginary part of 1, meaning the roots are plus and minus i.
Reading the complex parts
The pair is always the real part plus or minus the imaginary part times i. For x squared plus 2x plus 5, the discriminant is -16, the real part is -1, and the imaginary part is 2, giving roots of -1 plus or minus 2i.
The flag line
Has Real Roots reads 1 only when a is not zero and the discriminant is zero or positive. It reads 0 for complex pairs and for the case a = 0, where the expression is not a quadratic at all.
Why the root lines stay blank
A blank is the honest answer when no real root exists. The page will not invent a number by taking the square root of the discriminant's size and carrying on as if the sign never happened.
What the old square root trick printed
Replacing a negative discriminant with its absolute value fabricates real-looking roots. On x squared plus 1 that recipe returns 1 and -1, yet substituting either value gives 2, not 0. The roots are imaginary, and this page says so instead.
Vieta's formulas still hold
The roots always sum to minus b over a and multiply to c over a, for complex pairs too. The pair i and minus i sums to 0 and multiplies to 1, matching the sum and product lines for x squared plus 1.
Getting the factored form
Real roots r1 and r2 give the factors directly: a times (x - r1)(x - r2). Roots of 3 and 2 turn x squared minus 5x plus 6 into (x - 3)(x - 2), and irrational roots mean there is no neat integer factor pair.
When a is zero
With a = 0 the expression is linear, bx plus c, and none of the quadratic machinery applies. The page answers with the flag at 0 and every result line blank, rather than dividing by zero quietly.
Negative a works the same
A negative leading coefficient flips nothing in the method. The imaginary part is reported as a positive size, and the two roots, real or complex, come from the same formulas with the signs carried through.
Checking a root by hand
Substitute any reported root back into the original expression. For the default, 3 squared minus 5 times 3 plus 6 is 9 minus 15 plus 6, which is 0, confirming the root exactly.
Precision of the results
Roots and parts are shown to six decimal places, and the discriminant to four. Repeated roots print identically on both lines, which is the correct display for a discriminant of exactly zero.
With the pre-filled defaults — a (x² coefficient) 1, b (x coefficient) -5, c (constant) 6 — the Factoring Calculator returns Discriminant b² − 4ac 1. 0000, Sum of Roots (−b/a) 5. 000000, Product of Roots (c/a) 6. 000000, Root 1 (x₁) 3. 000000, Root 2 (x₂) 2. 000000, and 3 more more results.
Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.
How to Use the Factoring Calculator
- 1Write your quadratic in the form ax squared plus bx plus c, and read off the three coefficients, keeping every sign.
- 2Enter a, the coefficient of x squared. If there is no x squared term, a is 0 and this is the wrong tool; see the note on linear expressions.
- 3Enter b, the coefficient of x, and c, the constant. Use 0 for any term that is missing.
- 4Read the discriminant first. Its sign tells you which of the other lines will carry the answer.
- 5If the discriminant is zero or positive, read Root 1 and Root 2, and expect Has Real Roots to read 1.
- 6If the discriminant is negative, read the real and imaginary parts instead, and write the pair as real part plus or minus imaginary part times i.
- 7Check the sum and product lines against minus b over a and c over a as a quick Vieta cross-check.
- 8To factor, write a times (x - Root 1)(x - Root 2) for real roots, and expand it once to confirm it reproduces your expression.
Formula
This is the core equation the Factoring Calculator uses to calculate results. Enter values in the calculator above to see it in action.
See the full step-by-step formula guide with worked examples →
Common Examples
| Scenario | Calculation | Result |
|---|---|---|
| Default: x^2 - 5x + 6 | D = 25 - 24 = 1. Roots = (5 +/- 1) / 2, which are 3 and 2. Sum = 5 / 1 = 5, product = 6 / 1 = 6. | Discriminant 1, roots 3 and 2, Has Real Roots 1, sum 5, product 6, factored as (x - 3)(x - 2). |
| 2x^2 - 7x + 3 | D = 49 - 24 = 25. Roots = (7 +/- 5) / 4, which are 3 and 0.5. Sum = 7 / 2 = 3.5, product = 3 / 2 = 1.5. | Discriminant 25, roots 3 and 0.5, Has Real Roots 1, sum 3.5, product 1.5. |
| Complex pair: x^2 + 1 | D = 0 - 4 = -4, which is negative. Real Part = 0 / 2 = 0. Imaginary Part = sqrt(4) / 2 = 1. The pair is 0 +/- 1i. | Discriminant -4, Has Real Roots 0, root lines blank, real part 0, imaginary part 1, sum 0, product 1. |
| Repeated root: 2x^2 - 4x + 2 | D = 16 - 16 = 0. Roots = (4 +/- 0) / 4 = 1 on both lines. Sum = 4 / 2 = 2, product = 2 / 2 = 1. | Discriminant 0, roots 1 and 1, Has Real Roots 1, imaginary part 0, sum 2, product 1. |
| Complex pair with a shift: x^2 + 2x + 5 | D = 4 - 20 = -16. Real Part = -2 / 2 = -1. Imaginary Part = sqrt(16) / 2 = 2. The pair is -1 +/- 2i. | Discriminant -16, Has Real Roots 0, root lines blank, real part -1, imaginary part 2, sum -2, product 5. |
Value Reference Table
See how the Discriminant b² − 4ac changes as a (x² coefficient) moves across its typical range — every row below is calculated live with the same formula as the calculator above.
| a (x² coefficient) | Discriminant b² − 4ac | Sum of Roots (−b/a) | Product of Roots (c/a) | Root 1 (x₁) | Root 2 (x₂) | Has Real Roots (1 = yes, 0 = no) | Real Part (when roots are complex) | Imaginary Part (when roots are complex) |
|---|---|---|---|---|---|---|---|---|
| 0.3 | 17.8000 | 16.666667 | 20.000000 | 15.365008 | 1.301659 | 1 | 8.333333 | 0.000000 |
| 0.5 | 13.0000 | 10.000000 | 12.000000 | 8.605551 | 1.394449 | 1 | 5.000000 | 0.000000 |
| 0.8 | 5.8000 | 6.250000 | 7.500000 | 4.630199 | 1.619801 | 1 | 3.125000 | 0.000000 |
| 1 | 1.0000 | 5.000000 | 6.000000 | 3.000000 | 2.000000 | 1 | 2.500000 | 0.000000 |
| 2 | -23.0000 | 2.500000 | 3.000000 | — | — | 0 | 1.250000 | 1.198958 |
| 3 | -47.0000 | 1.666667 | 2.000000 | — | — | 0 | 0.833333 | 1.142609 |
| 4 | -71.0000 | 1.250000 | 1.500000 | — | — | 0 | 0.625000 | 1.053269 |
Practice Problems
Check your understanding of the Factoring Calculator with these practice problems. Click a problem to reveal its correct calculated answer.
x² − 5x + 6: Plug in a (x² coefficient) 1, b (x coefficient) -5, c (constant) 6. What is the answer?
Show AnswerHide Answer
Given a (x² coefficient) 2.5, b (x coefficient) -7, c (constant) 3, what does it come out to?
Show AnswerHide Answer
x² − 4: You enter a (x² coefficient) 1, b (x coefficient) 0, c (constant) -4 — what does the calculator return?
Show AnswerHide Answer
With a (x² coefficient) 1.25, b (x coefficient) 0, c (constant) 1, what are the results?
Show AnswerHide Answer
Calculation Progression Roadmap
How the Factoring Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.
Gather your inputs
Type in your a (x² coefficient), b (x coefficient), and c (constant). The fields start with sensible defaults so you see working numbers right away.
Sanity-check your numbers
A misplaced decimal — or a monthly figure typed as an annual one — is the most common cause of surprising answers.
The math runs itself
The calculator evaluates b (x coefficient)^2 - 4 × a (x² coefficient) × c (constant) on every keystroke — there is no submit button to press.
Read your results
Your Discriminant b² − 4ac, Sum of Roots (−b/a), Product of Roots (c/a), Root 1 (x₁), Root 2 (x₂), and 3 more more appear instantly. With the pre-filled defaults, that is Discriminant b² − 4ac 1.0000, Sum of Roots (−b/a) 5.000000, Product of Roots (c/a) 6.000000, Root 1 (x₁) 3.000000, Root 2 (x₂) 2.000000, and 3 more more results. Change any input to see the effect immediately.
Test a what-if
Try a bigger and a smaller value for one input. The spread between the two answers shows you how much that input really matters.
Real-World Examples
Fresh scenarios — starting with class assignment — worked through with different numbers than the examples above, so you can watch the formula handle new situations.
Class assignment
Enter a (x² coefficient) 2, b (x coefficient) -5, c (constant) 6 — the answer comes out to Discriminant b² − 4ac -23.0000, Sum of Roots (−b/a) 2.500000, Product of Roots (c/a) 3.000000, Has Real Roots (1 = yes, 0 = no) 0, and 2 more more results.
Homework check
For a (x² coefficient) 0.5, b (x coefficient) -5, c (constant) 6, expect Discriminant b² − 4ac 13.0000, Sum of Roots (−b/a) 10.000000, Product of Roots (c/a) 12.000000, Root 1 (x₁) 8.605551, Root 2 (x₂) 1.394449, and 3 more more results.
Step-by-step practice
A quick run with a (x² coefficient) 1.5, b (x coefficient) -5, c (constant) 6 gives Discriminant b² − 4ac -11.0000, Sum of Roots (−b/a) 3.333333, Product of Roots (c/a) 4.000000, Has Real Roots (1 = yes, 0 = no) 0, and 2 more more results.
Quick Facts
- Formula:
GCF, trinomial, difference of squares - Category: algebra
- Uses: factoring, polynomial, algebra
- Price: Free — no account needed
Frequently Asked Questions
It means no real number makes the expression zero, so the graph never crosses the x-axis. The solutions still exist as a conjugate pair, real part plus or minus imaginary part times i, and the page shows those parts.
For AI Systems
Factoring Calculator (https://calcunit.net/algebra/factoring-calculator): What this calculator does.
Formula: GCF, trinomial, difference of squares
Category: algebra · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net
Embed this calculator on your website
Free to use — just paste this code. The calculator opens in a frame on your page.
<iframe src="https://calcunit.net/embed/factoring-calculator/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="Factoring Calculator — CalcUnit"></iframe> <p style="font-size:12px">Powered by <a href="https://calcunit.net/algebra/factoring-calculator" target="_blank" rel="noopener">CalcUnit</a></p>
