◎ English · Global

Quadratic Equation Calculator

Solve a quadratic equation with real coefficients and real roots. The leading coefficient must be nonzero and the discriminant nonnegative.

Enter your values

Use a decimal point, without thousands separators.

Example result
First root
3
Second root2
Discriminant1

The initial result uses the example values. Enter your own values and calculate again.

First root3

How it works

In this guide

Solve a quadratic equation with real coefficients and real roots. The leading coefficient must be nonzero and the discriminant nonnegative.

Inputs and units
Quadratic Equation Calculator · Inputs and units
InputExample valueWhat to enter
Coefficient a1Enter a numeric value.
Coefficient b-5Enter a numeric value.
Coefficient c6Enter a numeric value.
Δ = b²−4ac; x = (−b ± √Δ)/(2a)

Worked example

Show example inputs and results

This example is generated by the same calculation engine using the starting values in the form. Your own inputs produce your own result.

Coefficient a
1
Coefficient b
-5
Coefficient c
6

Complete example results

First root
3
Second root
2
Discriminant
1

Reading the result

Use quantities on the same basis. The starting value in percentage change, the denominator in a ratio and the length unit in geometry determine the meaning of the answer. Check the formula conditions alongside the example.

Match all three coefficients to the equation

Write the equation as ax² + bx + c = 0. For x² − 7x + 12 = 0, enter 1, −7 and 12. The discriminant is 49 − 48 = 1, and the roots are 3 and 4. Checking either root in the original equation gives zero; the order of the two result rows does not change the solution set.

Use the discriminant to interpret the number of real roots

A positive discriminant gives two distinct real roots. For x² − 6x + 9 = 0, the discriminant is zero and both displayed roots equal 3. A negative discriminant requires complex roots and is outside this tool. If the coefficient of x² is zero, use the linear-equation calculator instead.

Questions and answers

Can I use the example values for my own calculation?

The example values illustrate the calculation. Replace every input with your own information, especially dates, rates and the selected operation.

Why are some results rounded?

Results display up to 8 decimal places. Calculations use the unrounded values; very small values use scientific notation. JavaScript floating-point arithmetic can introduce tiny rounding differences.

Are my inputs sent to a server?

The calculator processes inputs in your browser. Its code does not send your values to a server.

Methods & accuracy

What would you like to calculate?

Browse all calculators