1. Home
  2. Apps
  3. Xolve Math Solver
  4. Solve quadratic equations
How-to · Quadratics

How to solve quadratic equations

A quadratic is any equation that can be written as ax² + bx + c = 0. There are two methods worth knowing well: factoring when the numbers are friendly, and the quadratic formula for everything else. Here is each one, worked out in full.

By the IntellectX teamUpdated 2026-11-282 min read
Get it on Google Play

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.

Xolve factoring steps for x squared minus 5x plus 6 equals 0 giving x equals 2 and x equals 3
Xolve's factoring steps for x² − 5x + 6 = 0: find two numbers, write the product, set each factor to 0, solve.

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.

  1. Discriminant: b² − 4ac = (−4)² − 4 × 1 × 1 = 16 − 4 = 12.
  2. √12 = √(4 × 3) = 2√3.
  3. x = (4 ± 2√3) / 2 = 2 ± √3.
  4. 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² − 4acRootsExample
PositiveTwo different real rootsx² − 5x + 6 = 0 → 1, so x = 2, 3
ZeroOne repeated rootx² − 6x + 9 = 0 → 0, so x = 3
NegativeNo real roots (two complex roots)x² + x + 1 = 0 → −3

Solve a quadratic on your phone

  1. 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".

  2. 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.

    Xolve solve for x screen showing roots 2 and 3 with factoring and quadratic formula tabs
    Solve for x: x₁ = 2 and x₂ = 3, with Factoring and Quadratic formula tabs.
  3. 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.

Tips students swap in class and on RedditAlways move everything to one side first. Divide through by a common factor before you start (2x² − 10x + 12 = 0 becomes x² − 5x + 6 = 0). And if b² − 4ac is a perfect square, the quadratic factors nicely.

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.

Scan, write or say it. See every step.

Xolve solves maths from a photo, your handwriting, the maths keyboard or your voice, checks each answer and explains the method in simple words.

Get it on Google Play