Quick answer
Rearrange to ax² + bx + c = 0. Try factoring first: find two numbers that multiply to c and add to b (when a = 1). If none exist, use the quadratic formula x = (−b ± √(b² − 4ac)) / 2a. Example: x² − 5x + 6 = 0 factors to (x − 2)(x − 3) = 0, so x = 2 or x = 3. Xolve shows both methods side by side.
Method 1: factoring
Take x² − 5x + 6 = 0. You need two numbers that multiply to +6 and add to −5. Those are −2 and −3, since (−2) × (−3) = 6 and (−2) + (−3) = −5. So the equation becomes (x − 2)(x − 3) = 0. If two things multiply to give 0, one of them must be 0: x − 2 = 0 or x − 3 = 0, so x = 2 or x = 3.

Method 2: the quadratic formula
When factoring does not work, use x = (−b ± √(b² − 4ac)) / 2a. Take x² − 4x + 1 = 0, so a = 1, b = −4, c = 1.
- Discriminant: b² − 4ac = (−4)² − 4 × 1 × 1 = 16 − 4 = 12.
- √12 = √(4 × 3) = 2√3.
- x = (4 ± 2√3) / 2 = 2 ± √3.
- As decimals: 2 + 1.732 = 3.732 and 2 − 1.732 = 0.268 (rounded).
The same formula also solves the first example: x = (5 ± √(25 − 24)) / 2 = (5 ± 1) / 2, which gives 3 and 2. Same roots, different route.
What the discriminant tells you
| b² − 4ac | Roots | Example |
|---|---|---|
| Positive | Two different real roots | x² − 5x + 6 = 0 → 1, so x = 2, 3 |
| Zero | One repeated root | x² − 6x + 9 = 0 → 0, so x = 3 |
| Negative | No real roots (two complex roots) | x² + x + 1 = 0 → −3 |
Solve a quadratic on your phone
Enter it any way you like
Scan it from the book, write it on the handwriting pad, type it, or say "x squared minus five x plus six equals zero".
Switch between the two methods
For quadratics, Xolve shows tabs for Factoring and Quadratic formula, so you can compare both routes to the same answer.

Solve for x: x₁ = 2 and x₂ = 3, with Factoring and Quadratic formula tabs. Read the check
Each root is put back into the equation; for x = 2 the left side is 0 and the right side is 0.
Quadratics come up throughout Class 10 board maths and JEE preparation in India; the Quadratics & polynomials section of Xolve's formula sheet has the formulas and tips for revision.
Frequently asked questions
What is the simplest way to solve a quadratic equation?
Try factoring first. If you cannot quickly find two numbers that multiply to c and add to b, use the quadratic formula, which always works.
Can an app solve quadratic equations step by step for free?
Yes. Xolve solves quadratics with every step, shows factoring and the quadratic formula where both apply, and is free with ads.
Does it work without internet?
Yes. Solving runs on your phone, so it works offline.
What if the discriminant is negative?
There are no real roots. The roots are complex numbers, which Xolve can also work with.
Can Xolve solve cubic equations too?
Yes, linear, quadratic and cubic equations are all supported.











