Mathematics

Quadratic Equation Solver

Solve ax² + bx + c = 0, including complex roots. The coefficient a must be nonzero.

01Input and settings

The calculation runs in your browser. You can use the tool without installing software.

02Result

Waiting for input
Waiting for input

Enter your values or load the example to see the result here.

About this tool: Quadratic Equation Solver

Solve ax² + bx + c = 0, including complex roots. The coefficient a must be nonzero.

Enter the coefficients of ax²+bx+c=0 with a different from zero. A positive discriminant gives two real roots, zero gives one repeated root and a negative value gives a complex conjugate pair. A numerically stable formula preserves the smaller root when b is large.

How the calculation works

D = b²−4ac; x = (−b ± √D)/(2a)

Worked example

a
1
b
-3
c
2
x₁ = 1; x₂ = 2

Questions and answers

What does this tool do?

Solve ax² + bx + c = 0, including complex roots. The coefficient a must be nonzero. Enter the coefficients of ax²+bx+c=0 with a different from zero. A positive discriminant gives two real roots, zero gives one repeated root and a negative value gives a complex conjugate pair. A numerically stable formula preserves the smaller root when b is large.

What affects precision and input format?

Floating-point results are rounded for display. Keep the units shown in the input labels; decimal points and decimal commas are accepted.

Where are the calculations performed?

The calculation runs in your browser. You can use the tool without installing software.

Comments (0)

Share your thoughts — please be polite and stay on topic.

No comments yet. Leave a comment — share your opinion!

To leave a comment, please log in.

Log in to comment