GlobalFree to use

Equation solver

Solve real linear and quadratic equations ax² + bx + c = 0.

Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.

Input

Tip: press Ctrl + Enter to run

Your result

Your result will appear here.

About this tool

Quadratic equations appear in physics (projectiles), finance (break-even points) and geometry. Enter the coefficients a, b and c of ax² + bx + c = 0 and this solver returns the discriminant and the real roots. Setting a to 0 turns it into a linear equation bx + c = 0, which it also solves.

When the discriminant is negative there are no real roots; the factoring calculator shows complex roots and factors polynomials of any degree.

How to use it

  1. Rearrange your equation into the form ax² + bx + c = 0.
  2. Enter a, b and c, including negative signs.
  3. Run the solver.
  4. Check a root by substituting it back into the equation.

How the calculation works

Discriminant D = b² − 4ac. If D > 0 there are two real roots (−b ± √D) ÷ 2a; if D = 0 one repeated root; if D < 0 none in the real numbers. With a = 0, x = −c ÷ b.

Worked example

For 2x² − 7x + 3 = 0, enter a = 2, b = −7 and c = 3. The discriminant is 25 and the roots are x₁ = 3 and x₂ = 0.5. For x² + 2x + 5 = 0 the discriminant is −16, so there are no real roots.

Limitations

  • Degree 2 or lower.
  • Real roots only; complex roots are not listed.
  • Coefficients between −1,000,000 and 1,000,000.

Last updated:

Frequently asked questions

What does the discriminant tell me?

Positive means two real roots, zero means one repeated root, negative means two complex roots.

How do I solve 3x = 12?

Rewrite it as 3x − 12 = 0, then enter a = 0, b = 3, c = −12.

Can it solve cubic equations?

Not here. Use the factoring calculator for higher degrees with rational roots.

Troubleshooting

It says there are no real roots.

The discriminant is negative; the parabola does not cross the x-axis.

My textbook gives fractions.

Roots are shown as decimals; 0.5 is 1/2.

a, b and c are all 0.

Every x satisfies 0 = 0, so there is no single solution.

Privacy & Free to use

Are my inputs stored?

Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.

Is this tool free?

Yes. No signup or payment is required.

Processed in your browser

Useful next steps