Quadratic Equation Solver

Solve ax² + bx + c = 0 — get both roots and the discriminant instantly.

ax² + bx + c = 0

Result

--
Root x₁
--
Root x₂
--
Discriminant (Δ)
--
Nature of Roots
--
Formula: x = (−b ± √Δ) ÷ 2a

On This Page

How the Quadratic Formula Works

The Quadratic Formula Calculator solves any equation of the form ax² + bx + c = 0 and returns both roots, the discriminant, and the nature of the roots (real and distinct, real and equal, or complex). Enter the coefficients a, b, and c and the result is calculated instantly.

The quadratic formula is one of the most reliably tested topics in Class 10, Class 11, and competitive exams like JEE. It handles every case in a single formula: equations with two different real solutions, equations with exactly one solution, and equations where no real solution exists. This calculator also shows the working, so you can verify each step against your own.

What the Coefficients Mean

Every quadratic equation must be rearranged into the standard form ax² + bx + c = 0 before using the formula. Once in that form, identify:

  • a — the coefficient in front of x² (cannot be zero; if a = 0, the equation is linear)
  • b — the coefficient in front of x (can be zero, negative, or positive)
  • c — the constant term with no x (can be zero, negative, or positive)

For the equation 2x² − 5x + 3 = 0, the values are a = 2, b = −5, c = 3. The negative sign belongs to b, not to x itself. This is a common point of error when reading off coefficients.

Understanding the Discriminant

The discriminant is the expression b² − 4ac, which is calculated first before applying the full quadratic formula. Its value determines the nature of the roots before you even finish the calculation.

Discriminant ValueNature of RootsWhat It Looks Like on a Graph
Greater than 0Two distinct real rootsThe parabola crosses the x-axis at two different points
Equal to 0One repeated real rootThe parabola just touches the x-axis at exactly one point
Less than 0Two complex (imaginary) rootsThe parabola does not cross the x-axis at all

Checking the discriminant first is good practice in exam conditions because it tells you immediately how many solutions to expect, which helps you catch arithmetic errors before completing the full calculation.

The Formula and a Worked Example

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

Where:

  • a, b, c — the coefficients from the standard form ax² + bx + c = 0
  • ± — two solutions are calculated: x&sub1; uses addition, x&sub2; uses subtraction
  • √(b² − 4ac) — the discriminant under the square root

Example: Solve 2x² − 5x + 3 = 0

a = 2, b = −5, c = 3

Discriminant = (−5)² − 4(2)(3) = 25 − 24 = 1 (positive, so two real roots)

x = (−(−5) ± √1) ÷ (2 × 2) = (5 ± 1) ÷ 4

x&sub1; = (5 + 1) ÷ 4 = 1.5  |  x&sub2; = (5 − 1) ÷ 4 = 1.0

Verification: 2(1.5)² − 5(1.5) + 3 = 4.5 − 7.5 + 3 = 0 ✓

The calculator handles this automatically and shows the discriminant alongside the roots. The formula is shown here for transparency.

Where Quadratic Equations Appear

Projectile motion — The height of a thrown object over time follows a quadratic equation. If a ball is thrown upward with initial velocity of 20 m/s from ground level, its height h (in metres) at time t (in seconds) is h = −5t² + 20t. Setting h = 0 and solving gives the time the ball returns to the ground: t = 0 s (the start) and t = 4 s. Here a = −5, b = 20, c = 0.

Break-even analysis — A business's profit can sometimes be modelled as a quadratic function of units sold. If profit = −2x² + 40x − 150, setting this to zero and solving identifies the two sales volumes at which the business exactly breaks even. For more detailed break-even analysis, see our Break-Even Point Calculator.

Area and geometry problems — Many problems involving rectangular areas reduce to quadratic equations. If a rectangle has a perimeter of 40 cm and an area of 96 cm², expressing both constraints produces a quadratic that gives the side lengths.

Exam and competitive entrance preparation — Quadratic equations appear in CBSE Class 10 (Chapter 4), ICSE, and in JEE Main. The ability to quickly verify whether your roots are correct by checking the discriminant and substituting back is a useful exam technique.

Frequently Asked Questions

The quadratic formula is x = (−b ± √(b² − 4ac)) ÷ 2a. It finds the values of x that satisfy any equation in the form ax² + bx + c = 0, where a is not zero. The ± symbol means two solutions are produced: one using addition and one using subtraction under the radical.
The discriminant is b² − 4ac, the expression under the square root. If it is positive, the equation has two distinct real roots. If it equals zero, there is one repeated real root. If it is negative, the roots are complex numbers involving the imaginary unit i. Checking the discriminant first tells you the nature of the solution before completing the full calculation.
When b² − 4ac is negative, the square root of a negative number is required, which has no real value. The roots are complex numbers in the form p ± qi, where p is the real part (−b ÷ 2a) and q is the imaginary part (√|discriminant| ÷ 2a). The calculator displays both complex roots in this format.
No. If a equals zero, the x² term disappears and the equation becomes linear (bx + c = 0), not quadratic. The quadratic formula requires a to be non-zero because dividing by 2a is part of the formula. The calculator returns an error if a is entered as zero.
Let the unknown quantity equal x. Write an equation based on the relationships described. Expand and rearrange everything to one side so the equation reads ax² + bx + c = 0. For example, if a rectangle has perimeter 28 cm and area 45 cm², using length + width = 14 and length x width = 45 gives x² − 14x + 45 = 0, where a = 1, b = −14, c = 45.
A repeated root (also called a double root) occurs when the discriminant equals exactly zero. Both solutions of the formula give the same value: x = −b ÷ 2a. On a graph, this means the parabola just touches the x-axis at one point without crossing it, and the equation can be written as a(x − r)² = 0 where r is the root.
The calculator uses standard floating-point arithmetic and displays roots to four decimal places. For most coursework, textbook problems, and exam verification, this precision is more than sufficient. For problems with very large coefficients (in the thousands), minor floating-point rounding may appear in the last displayed decimal.
Yes. Enter the coefficients from the problem and compare the roots and discriminant shown against your own calculation. The discriminant is displayed separately so you can verify the intermediate step, not just the final answer. If your roots do not match, substituting the calculator's roots back into the original equation confirms which answer is correct.