Skip to main content
numora.
numora.

Quadratic Equation Calculator: Solve ax² + bx + c with the Quadratic Formula

Solve ax² + bx + c = 0 with real and complex roots

MathBy Numora math teamReviewed by Numora physics teamUpdated 

Try the calculator

Math runs in your browser. No sign-up.

Assumptions
Discriminant (b² − 4ac)
1

Real roots only

x² has discriminant 1; the parabola has vertex at (2.5, -0.25).

Two distinct real roots
x₁ (real part)3
x₂ (real part)2
± imaginary part0
Vertex x2.5
Vertex y-0.25
Embed this calculator on your own site — drop in a one-line iframe.
Try a scenario
Quick takeaway

This quadratic equation calculator provides a comprehensive solution for equations in the form ax² + bx + c = 0. By simply entering the coefficients a, b, and c, users can instantly find both real and complex roots, the discriminant (b² − 4ac), and the vertex of the corresponding parabola. The calculator clearly indicates whether there are two distinct real roots, one repeated real root, or two complex conjugate roots based on the discriminant's value. It's an essential tool for students, engineers, and scientists needing quick, accurate results and a clear understanding of quadratic behavior.

What is a quadratic equation?

Use this quadratic equation calculator to solve any equation of the form ax² + bx + c = 0 using the quadratic formula. Enter the three coefficients (a, b, and c) to instantly obtain the discriminant, both roots (whether real or complex conjugate pairs), and the parabola's vertex. This tool provides precise, four-decimal-place results, making it ideal for students tackling homework, engineers solving practical problems, and scientists performing calculations. Our methodology is rigorously aligned with standard college-algebra references and the authoritative definitions found on Wolfram MathWorld for the quadratic formula and discriminant interpretation, ensuring accuracy and reliability for all users.

The formula

x = (−b ± √(b² − 4ac)) / 2a
  • aleading coefficient (must be non-zero)
  • bcoefficient of x
  • cconstant term
  • Δdiscriminant b² − 4ac (sign determines root type)

Source: Quadratic formula (Bhāskara II, 12th century).

Worked examples

1Two distinct real roots

Inputs
a: 1b: -5c: 6
Walkthrough

x² − 5x + 6 = 0. Discriminant = 25 − 24 = 1, positive. Roots: (5 ± 1)/2 = 3 and 2. The parabola y = x² − 5x + 6 crosses the x-axis at x = 2 and x = 3, with its vertex at (2.5, −0.25).

2Repeated real root

Inputs
a: 1b: 2c: 1
Walkthrough

x² + 2x + 1 = 0 = (x + 1)². Discriminant = 4 − 4 = 0. Single root at x = −1. The parabola touches the x-axis exactly at its vertex (−1, 0).

3Complex conjugate roots

Inputs
a: 1b: 0c: 4
Walkthrough

x² + 4 = 0. Discriminant = 0 − 16 = −16, negative. Roots: x = ±2i. The parabola y = x² + 4 sits entirely above the x-axis, so there are no real solutions — only complex ones.

How to use this calculator

  1. a (coefficient of x²)Leading coefficient. Must be non-zero — if a = 0, the equation is linear, not quadratic.
  2. b (coefficient of x) (default: -5)
  3. c (constant) (default: 6)
  4. Read the result. Use the worked examples below to sanity-check against a known scenario.

Discriminant cases

DiscriminantRootsGeometric meaning
Δ > 0Two distinct real rootsParabola crosses x-axis twice
Δ = 0One repeated real rootParabola touches x-axis once (at vertex)
Δ < 0Two complex conjugate rootsParabola never meets x-axis

For exact values, factoring or completing the square may be cleaner than the formula.

Frequently asked questions

What is the quadratic formula?
x = (−b ± √(b² − 4ac)) / 2a. It solves any equation in the standard form ax² + bx + c = 0 (with a ≠ 0). Derived from completing the square on the general form.
What does the discriminant tell me?
The discriminant b² − 4ac determines the nature of the roots. Positive means two distinct real roots; zero means one repeated real root; negative means two complex conjugate roots.
Can a quadratic have only one root?
Geometrically, yes — when the discriminant is exactly zero, the parabola touches the x-axis at exactly one point. Algebraically, that root is a double root (counted with multiplicity 2).
What are complex roots?
When the discriminant is negative, the formula's square root produces an imaginary number. The roots take the form a ± bi where a = −b/2a and b = √|Δ|/2a. The two roots are complex conjugates.
When should I use the quadratic formula vs factoring?
Factoring is faster when the quadratic factors over the integers (e.g. x² − 5x + 6 = (x−2)(x−3)). Use the formula whenever the roots aren't obvious by inspection — it always works, factoring sometimes doesn't.
What if a = 0?
Then the equation isn't quadratic — it's linear (bx + c = 0), and the single solution is x = −c/b. The calculator requires a ≠ 0 because the formula divides by 2a.
What's the vertex of the parabola?
(−b/2a, c − b²/4a). The vertex is the minimum (if a > 0) or maximum (if a < 0) of the parabola y = ax² + bx + c, and the axis of symmetry passes through it.
How accurate is this calculator?
Roots and discriminant are computed to 4 decimal places. For exact answers, especially with surd or complex forms, hand calculation or a CAS like Wolfram Alpha is more useful.

Quadratic Equation glossary

Quadratic equation
An equation of degree 2 in one variable: ax² + bx + c = 0 with a ≠ 0.
Discriminant
The expression b² − 4ac under the square root in the quadratic formula. Determines the nature of the roots.
Roots
Values of x that satisfy the equation. A quadratic has exactly 2 roots (counted with multiplicity), real or complex.
Vertex
The turning point of the parabola y = ax² + bx + c, located at (−b/2a, c − b²/4a).
Complex conjugate
A pair of complex numbers with equal real parts and opposite-sign imaginary parts. Quadratic equations with real coefficients always produce conjugate pairs when the discriminant is negative.

How we built this calculator

Methodology

The quadratic formula x = (−b ± √(b² − 4ac)) / 2a is derived from completing the square on the general form. The discriminant b² − 4ac under the square root is the heart of the analysis: positive means the parabola crosses the x-axis at two points, zero means it touches at exactly one point (the vertex), negative means the parabola never touches the x-axis and the roots are complex conjugates.

This calculator was written by Numora math team and reviewed by Numora physics team before publication. Both names link to full bios with verifiable credentials.

Formula source
Quadratic formula (Bhāskara II, 12th century)
Last reviewed
2026-04-29
Reviewer
Numora physics team
Calculation runs
Client-side only
NM
WRITTEN BY
Numora math team
NP
REVIEWED AND APPROVED BY
Numora physics team
In this review:
  • Verified the formula matches Quadratic formula (Bhāskara II, 12th century) (Standard high-school / college algebra reference).
  • Confirmed the rounding rule applied by the engine: roots and discriminant rounded to 4 decimal places.
  • Recomputed all 3 worked examples by hand and confirmed the results match the engine.
  • Confirmed all 5 cited sources resolve to current pages on the issuing institution.
  • Cross-checked the 3-row comparison table for arithmetic consistency at the baseline scenario.

Reviewed on 2026-04-29 · Next review: 2027-04-29

See editorial policy

Sources & references

Every numeric assumption traces to a primary source.

  1. Khan Academy: Quadratic equations and the quadratic formulaINT
  2. Stewart, Calculus: Early Transcendentals (8th ed.) — Algebra ReviewUSA
  3. MIT OpenCourseWare 18.01 — Algebraic prerequisitesUSA
  4. Wolfram MathWorld: Quadratic FormulaINT
  5. Bhāskara II Bījaganita (1150) — historical record of the formulaIND
  6. Numora Editorial Policy. numora.net/editorial-policy