Numberlife
Home / Math & engineering / Equation solver

Equation solver

Solve linear and quadratic equations with real roots.

Inputs

Input guide

Enter the coefficients of ax² + bx + c = 0. If a is zero, the equation is linear.

ax2+bx+c=0

Results update when you edit inputs.

Compare scenarios

Keep the current inputs, then change them to compare. Nothing is sent to a server.

What to check next

Substitute roots into the original equation. A negative discriminant means no real roots; use complex arithmetic if needed.

Formula and assumptions

Real roots of ax²+bx+c=0. If a=0, solve linearly; negative discriminant means no real roots.

When this is useful

Solve quadratic or linear equations and inspect the discriminant.

How to interpret the result

Zero discriminant means a repeated root; negative means no real roots. All-zero coefficients form an identity. Very large coefficients can introduce numeric error.

Practical example and input checks

Enter coefficients for ax²+bx+c=0. If a=0, the equation becomes linear. A negative discriminant means no real roots; this page does not return complex roots. For x²−5x+6=0, the real roots are 2 and 3.

Worked example (sample inputs)

a: 1 , b: -5 , c: 6

Root 1: 3 · Root 2: 2 · Discriminant: 1

Related tools

Calculator →

Scientific calculator →

Percentage calculator →

Unit converter →

Area and volume →

Results depend on your inputs and assumptions.

Frequently asked question

Why can an equation have two or no real roots?

For ax²+bx+c=0, a positive discriminant gives two real roots, zero gives a repeated root, and a negative discriminant gives no real roots. When a=0 it is no longer quadratic.