Algebra & Arithmetic · Formula v1.0

Quadratic Formula Calculator

Use the Quadratic Formula Calculator to solve ax² + bx + c = 0 for both roots.

No real roots means the parabola never crosses the x-axis. At the worked-example inputs, the root 1 is 2 x₁. The formula gives the values of x where the parabola crosses the x-axis. On the example, x² − 3x + 2 = 0 has roots 2 and 1, so the parabola crosses the axis at those points. The number under the square root, b² − 4ac, is the discriminant: positive means two real roots, zero means one repeated root, and negative means no real roots because the parabola never touches the axis. Check answers by substituting them back into the original equation. It returns root 1 (x₁), root 2 (x₂).

FreeNo sign-upInputs stay in-browserCSV exportReviewed August 28, 2026
LAST REVIEWEDAugust 28, 2026Inputs stay in your browser
Live calculation

Enter your numbers

Calculated result
Root 1 (x₁)2
Root 2 (x₂)1
Sensitivity check

What if a (x² coefficient) changes?

-10% input2.4
0% input2
+10% input1.6

Transparent method

The formula

x = (−b ± √(b²−4ac)) ÷ 2a

Worked example

Root 1 (x₁)2
Root 2 (x₂)1

Example inputs

a (x² coefficient)1
b (x coefficient)-3
c (constant)2

How to interpret the result

The discriminant, the piece under the square root, decides the whole shape of the answer before the rest of the formula even runs. A positive value gives two distinct real roots, zero gives exactly one repeated root, and a negative value means the parabola never touches the x-axis at all: the two roots come out as a complex conjugate pair instead of two real numbers.

Before you rely on it

What to check

Read the discriminant's sign before trusting the numeric roots. A negative discriminant means the real-number roots this calculator shows aren't what's being asked for: the equation has none.

The common error

Where people go wrong with quadratic formula calculator

Expecting a negative discriminant to mean an input error. It's a legitimate mathematical outcome, not a bug, and it's telling you something specific about the parabola's position relative to the x-axis.

Sensitivity evidence

How a (x² coefficient) changes the root 1 (x₁)

Quadratic Formula Calculator: root 1 (x₁) and root 2 (x₂) across a range of a (x² coefficient), every other input held at the worked-example value.
a (x² coefficient)Root 1 (x₁)Root 2 (x₂)
0.82.90.867
0.92.40.921
1worked example21
1.11.61.2
1.2: :

Every input, tested

Which input moves the root 1 (x₁) most

Quadratic Formula Calculator: root 1 (x₁) with each input moved on its own, every other input held at the worked-example value.
InputTested fromToRoot 1 (x₁) at each endSwing
a (x² coefficient)0.91.12.4 to 1.60.845 (42%)
c (constant)1.82.22.2 to 1.70.447 (22%)

Step by step

The worked example, input by input

Worked-example inputs and the results they produce for the quadratic formula calculator.
InputValue used
a (x² coefficient)1
b (x coefficient)-3
c (constant)2
Root 1 (x₁)2
Root 2 (x₂)1

Where the inputs come from

Write the equation in the form ax² + bx + c = 0 before entering anything, moving every term to one side, so that a is the number multiplying x², b multiplies x and c is the constant. If the equation is 2x² = 8x − 6, subtract to get 2x² − 8x + 6 = 0, giving a = 2, b = −8 and c = 6. The coefficient a cannot be zero, since that makes the equation linear. Keep the signs: a missing minus sign is the most common error.

When the result stops applying

When the discriminant is negative the roots are complex numbers, and a calculator restricted to real answers will report none. Very large or very small coefficients can cause rounding errors, and subtracting nearly equal numbers loses precision. For word problems, a root may be mathematically valid but meaningless in context, such as a negative length or time. Factoring is faster when the roots are whole numbers.

What to compare it with

Rewrite the equation to find the vertex on the completing the square calculator, and check simple cases with the exponent and root calculators. The distance and slope page handles lines, and the exponential growth calculator covers another common model. For graph shapes, the vertex and the roots together describe the parabola.

People also ask

Frequently asked questions

What does the discriminant tell me about a quadratic equation?

It shows how many real solutions exist: two if it is positive, one repeated root if zero, and none, only complex roots, if it is negative.

Can a quadratic equation have only one solution?

Yes. When the discriminant is zero, both roots are the same number and the parabola just touches the x-axis at its vertex.

Why must the coefficient a not be zero?

If a is zero the x-squared term disappears and the equation is linear, which has one solution and is not solved by the quadratic formula.

Common algebra & arithmetic questions

Sources and evidence