Quadratic Formula Calculator
MathSolve any quadratic equation instantly. Enter coefficients a, b, and c to find real and complex roots using the quadratic formula with step-by-step working. Free online tool.
x² − 5x + 6 = 0
Enter ax² + bx + c = 0 coefficients
Discriminant (Δ)
Roots
Complex roots come in conjugate pairs. The equation has no real solutions.
Formula
x = (−b ± √(b²−4ac)) / 2a
Δ = (-5)² − 4(1)(6) = 25 − 24 = 0
What is a Quadratic?
The Quadratic Formula Calculator solves any second-degree polynomial equation of the form ax² + bx + c = 0 instantly, showing the discriminant, both roots, and step-by-step working. A quadratic equation is the mathematical backbone of countless real-world situations — from calculating the dimensions of a rectangular plot of land to modelling the trajectory of a cricket ball or analysing profit-maximisation problems in business.
The equation ax² + bx + c = 0 has three parameters: a (the coefficient of x²), b (the coefficient of x), and c (the constant term). The value of a must be non-zero; if it equals zero, the equation degenerates to a linear equation. The standard quadratic formula x = (−b ± √(b²−4ac)) / 2a derives every possible root algebraically, regardless of whether those roots are whole numbers, irrational surds, or complex numbers.
Quadratic equations feature heavily in the CBSE and ICSE syllabi for Classes 9 through 12, making them one of the most frequently searched mathematics topics in India. Beyond academics, they arise in engineering design, financial modelling, and physics. For example, if you launch a rocket vertically and want to know when it returns to the ground, the height-versus-time relationship is quadratic. The Slope Calculator handles linear relationships (degree 1), while the quadratic formula handles degree-2 problems — together they cover the vast majority of algebraic equations students and professionals encounter.
The discriminant (Δ = b² − 4ac) is the key indicator: positive means two distinct real roots, zero means one repeated real root (the parabola is tangent to the x-axis), and negative means two complex conjugate roots with no real-number solutions. Understanding the discriminant is essential before attempting to factorise — if Δ is not a perfect square, factoring over integers will fail and the formula is the only clean path to the answer.
How to use this Quadratic calculator
Write your equation in standard form — rearrange any quadratic expression so all terms are on one side: ax² + bx + c = 0. For example, 2x² = 7x − 3 becomes 2x² − 7x + 3 = 0, giving a = 2, b = −7, c = 3.
Enter Coefficient a (x²) — type the coefficient of the squared term. Include the sign; if the x² term is negative (e.g., −3x²), enter −3. If the coefficient is 1 (just "x²"), enter 1.
Enter Coefficient b (x) — type the coefficient of the linear term. If there is no x term, enter 0. Remember to include the sign from the original equation.
Enter Coefficient c (constant) — type the constant term. If there is no constant, enter 0.
Read the discriminant — the calculator displays Δ and labels the root type (two real roots / one real root / complex roots) with a colour indicator so you immediately know what kind of solution to expect.
Read the roots — if Δ ≥ 0, both roots are shown as decimals. If Δ < 0, roots are displayed in complex form. Use the step-by-step breakdown below the result to follow the calculation for exam revision.
Verify with Vieta's formulae — mentally check that x₁ + x₂ = −b/a and x₁ × x₂ = c/a as a sanity check on both values.
Formula & Methodology
The Quadratic Formula x = (−b ± √(b² − 4ac)) / 2a Variable definitions: - a — coefficient of x² (must not be zero) - b — coefficient of x (can be any real number, including zero) - c — constant term (can be any real number, including zero) - Δ — discriminant = b² − 4ac - √Δ — square root of discriminant (real if Δ ≥ 0, imaginary if Δ < 0) Root expressions: - x₁ = (−b + √Δ) / 2a - x₂ = (−b − √Δ) / 2a Vieta's formulae (verification): - Sum of roots: x₁ + x₂ = −b / a - Product of roots: x₁ × x₂ = c / a Worked example — fencing a rectangular field: A farmer wants to fence a rectangular plot where the length exceeds the width by 8 metres and the total area is 240 sq m. Let width = x metres. Then length = x + 8, and: x(x + 8) = 240x² + 8x − 240 = 0 So a = 1, b = 8, c = −240. Δ = b² − 4ac = 8² − 4(1)(−240) = 64 + 960 = 1024 √Δ = √1024 = 32 x₁ = (−8 + 32) / 2 = 24/2 = 12 metresx₂ = (−8 − 32) / 2 = −40/2 = −20 metres (inadmissible — negative width) The width is 12 m and the length is 20 m. Verification: 12 × 20 = 240 sq m ✓. The Area Calculator can confirm the rectangle's area independently. Assumption: The formula assumes the equation has been reduced to exact rational or irrational coefficients. For equations derived from physical measurements, round-off in coefficients will propagate to round-off in roots; the step-by-step display helps quantify this sensitivity.