Quadratic Formula Calculator
Solve ax² + bx + c = 0 with the quadratic formula. Inequality discovery /quadratic-inequality. Free online tool — no sign-up. Clear formulas and worked examples. Runs locally in your browser.
Enter values to calculate.
Live graph
Interactive plot
Trust summary CVP VERIFIED · production STALE · CVP protocol 1.0.0-proposed · Core assurance
- Input interpretation
- Enter values to calculate.
- Result
- —
- Assurance
- Core
- Declared partition coverage
- PASS · 14/14 declared partitions (inequality-two-roots, inequality-repeated, inequality-no-real-roots, inequality-rhs, inequality-fractions, two-real, repeated, complex, irrational, near-double-root, large-scale, fraction-input, cancellation, invalid-domain) · Matrix
- Numerical scope
- ≤4 ULP vs O3 applies only to the published tabulated vectors (two-real, repeated, complex, irrational, near-double-root, tiny-complex, tiny-real, tiny-scale, fraction-numeric, downward, large-scale, cancellation). It is not a guarantee over the entire coefficient space. Roots use a cancellation-safe q-form at the same ± order as x = (−b ± √Δ)/(2a).
- Known limitations
- Declared partitions are two-real, repeated, complex, irrational, near-double-root, large-scale, fraction-input, cancellation, invalid-domain — plus inequality-two-roots, inequality-repeated, inequality-no-real-roots, inequality-rhs, inequality-fractions; not a claim that every quadratic is covered. Near-double-root, large-scale, and cancellation are numerical-boundary partitions and are in the O3 tabulated ULP claim.
- Core CVP does not include live graph, viewport, or pointer interaction.
- Model
- Roots of ax²+bx+c=0 via the quadratic formula, with discriminant, vertex, axis of symmetry, optional factorization, and a live parabola of y = ax²+bx+c.
- Scope
- a ≠ 0; coefficients are real numbers (fractions allowed).
- Verification
- Engine tested · Source checked · v1.1.1 · CVP VERIFIED · production STALE · CVP protocol 1.0.0-proposed · Core assurance· View Manifest · CVP overview · Specification
- Versions
- Calculation 1.1.1 · CVP protocol 1.0.0-proposed · Evidence 2026-10-13.quadratic-interface-replay
- Verification revision
- 2026-10-13.quadratic-interface-replay · 5/5 property · digest 4dddb83bf6df
- Legacy regression
- 9/9 tests · Production surface contract 6/6
- Trust layers
- Verification VERIFIED · Production STALE · Overall CVP state: VERIFIED_STALE under CVP 1.0.0-proposed
- CVP status
- STALE · attestation snapshot core d90797326c81 ≠ live cvp_core_sha256 4dddb83bf6df (2026-10-13.quadratic-interface-replay)
- Reference
- O1 model · O3 expected_values · O3 numerical_behavior · O2 expected_values · O2 expected_values · O2 numerical_behavior
- Interfaces
- PASS · UI (SSR) / REST / MCP
- Supplemental domain review
- Not performed
- Named expert review
- Not performed
- CVP suite
- 40/40 golden · 3/3 CVP boundary · 10/10 invalid · 5/5 property · 1/1 metamorphic · 12/12 O3 · 11/11 cross-interface · 6/6 CVP contract · Manifest
- Sources
- Margaret Stevens — The Maths Workbook (University of Oxford)
- Gilbert Strang, Calculus — Chapter 9: Polar Coordinates and Complex Numbers (MIT OpenCourseWare)
- Evidence
- 6 legacy golden · 3 legacy boundary · legacy regression suite · 40/40 oracle-backed golden · 10/10 invalid · Artifact integrity PASS
- Semantic contract
- PASS
Full verification
Formulas
Core equations used by this calculator.
How to use
Enter coefficients a, b, c
From ax² + bx + c = 0. a must be nonzero. Decimals or fractions (3/4) work.
Read the roots
See x₁ / x₂, discriminant Δ, vertex, axis, and a live parabola of y = ax²+bx+c.
Follow the steps
The work panel expands the quadratic formula with normalized coefficients.
Example calculations
Common configurations with formula and result.
Two real roots
x² − 6x + 8 = 0
Repeated root
x² − 4x + 4 = 0
Complex roots
x² + 2x + 5 = 0
Irrational real roots
x² − 8x + 5 = 0
Discriminant cases
Common values at a glance.
| Δ | Roots |
|---|---|
| Δ > 0 | Two distinct real roots |
| Δ = 0 | One repeated real root |
| Δ < 0 | Two complex conjugate roots |
Quadratic Formula calculator specification
Version 1.1.1 · Engine tested
- Engine tested 9/9 tests · Production surface contract 6/6
- Named expert review Not performed
- Calculation version 1.1.1
- Definition
- A quadratic equation is a second-degree polynomial ax² + bx + c = 0 with a ≠ 0. Its solutions (roots) are given by the quadratic formula x = (−b ± √(b² − 4ac)) / (2a). The discriminant Δ = b² − 4ac tells whether the roots are two real, one repeated real, or a complex conjugate pair.
- What it calculates
- Roots of ax²+bx+c=0 via the quadratic formula, with discriminant, vertex, axis of symmetry, optional factorization, and a live parabola of y = ax²+bx+c.
- Inputs
- Quadratic coefficient a ≠ 0
- Linear coefficient b
- Constant c
- Outputs
- x₁ and x₂ (real or complex conjugate pair)
- Discriminant Δ and root type
- Vertex (xᵥ, yᵥ), axis x = xᵥ, y-intercept, opens up/down
- Live parabola with root, vertex, and intercept markers
- Factor form when roots are small rationals
- Formula
x = (−b ± √Δ)/(2a), Δ = b²−4ac- Assumptions
- a ≠ 0; coefficients are real numbers (fractions allowed).
- Units
- Dimensionless (or consistent units of x)
- Boundary conditions
- Non-finite results or discriminant product overflow/underflow → NUMERICAL_RANGE_ERROR; rescale coefficients and rhs
- a = 0 → rejected as not quadratic
- Example
- x² − 5x + 6 = 0 → x = 2, x = 3
- Validation cases
4 published on this page · 9/9 tests · Production surface contract 6/6 · View evidence
- a=1,b=-6,c=8 → 2, 4
- a=1,b=-4,c=4 → 2
- a=1,b=2,c=5 → −1 ± 2i
- a=1,b=-8,c=5 → 4 ± √11
- Sources
- Margaret Stevens — The Maths Workbook (University of Oxford) — Chapter 1, §3.4: Quadratic EquationsSupports: The quadratic formula, discriminant and real-root multiplicity. Negative discriminants have no real roots; the calculator’s complex-root representation uses the separately cited complex-number definitions. This does not validate the numerical cancellation-avoiding algorithm. Mathematical reference only; not implementation validation or an endorsement of CalculatorX.
- Gilbert Strang, Calculus — Chapter 9: Polar Coordinates and Complex Numbers (MIT OpenCourseWare) — §9.4 Complex NumbersSupports: Complex arithmetic, conjugates, modulus and argument, polar/exponential multiplication and division, de Moivre’s formula and complex roots. Noninteger powers require a specified branch; those branch and numerical policies remain CalculatorX’s own contract. Mathematical reference only; not implementation validation or an endorsement of CalculatorX.
- Margaret Stevens — The Maths Workbook (University of Oxford) — Chapter 1, §3.4: Quadratic Equations
- Calculation version
- 1.1.1
Background
Interpretation and common distinctions.
What does this quadratic formula calculator compute?
A quadratic equation is a second-degree polynomial ax² + bx + c = 0 with a ≠ 0. Its solutions (roots) are given by the quadratic formula x = (−b ± √(b² − 4ac)) / (2a). The discriminant Δ = b² − 4ac tells whether the roots are two real, one repeated real, or a complex conjugate pair.
The published formula or method is x = (−b ± √Δ)/(2a), Δ = b²−4ac. The following references support the stated mathematics or method:
- Margaret Stevens — The Maths Workbook (University of Oxford): The quadratic formula, discriminant and real-root multiplicity. Negative discriminants have no real roots; the calculator’s complex-root representation uses the separately cited complex-number definitions. This does not validate the numerical cancellation-avoiding algorithm. Mathematical reference only; not implementation validation or an endorsement of CalculatorX.
- Gilbert Strang, Calculus — Chapter 9: Polar Coordinates and Complex Numbers (MIT OpenCourseWare): Complex arithmetic, conjugates, modulus and argument, polar/exponential multiplication and division, de Moivre’s formula and complex roots. Noninteger powers require a specified branch; those branch and numerical policies remain CalculatorX’s own contract. Mathematical reference only; not implementation validation or an endorsement of CalculatorX.
Which inputs and limits should you check?
The discriminant determines real and complex root cases. An inequality additionally requires the correct sign intervals and endpoint inclusion.
The worked example uses x² − 6x + 8 = 0 with Δ = 4. Compare it with the Example calculations and the complete result for the same inputs.
How can you verify and cite this result?
CalculatorX is responsible for this page. The mathematical references above explain the model; implementation checks and their scope are documented separately in the math.quadratic v1.1.1 Evidence and capability contract. Read the displayed verification and production state together with the specification's numerical limits.
Use the clean calculator URL to cite the tool. A shared input link identifies a particular calculation. Content updates, numerical verification, and domain reviews have separate dates and scopes.
What is a quadratic equation?
A quadratic equation is a second-degree polynomial:
ax² + bx + c = 0 (a ≠ 0)
- a — quadratic coefficient
- b — linear coefficient
- c — constant term
The solutions are the roots (where the parabola y = ax²+bx+c meets the x-axis, when real).
Quadratic formula
x = (−b ± √(b² − 4ac)) / (2a)
Discriminant
Δ = b² − 4ac
| Δ | Meaning |
|---|---|
| > 0 | Two distinct real roots |
| = 0 | One repeated real root |
| < 0 | Two complex conjugate roots |
Vertex and axis
xᵥ = −b/(2a), yᵥ = a xᵥ² + b xᵥ + c
The axis of symmetry is the vertical line x = xᵥ.
Related tools
Other calculators in this family: Absolute Value Calculator, Absolute Value Inequality Calculator, Cubic Equation Calculator, Linear Equation Calculator, Linear Inequality Calculator, Polynomial Evaluate Calculator, Polynomial Roots Calculator, Quadratic Inequality Calculator . Explore all Algebra & Equations.
Frequently asked questions
Key distinctions behind the calculation.
What is a quadratic equation?
A polynomial equation of degree two: ax² + bx + c = 0 with a ≠ 0. Its graph is a parabola.
What is the quadratic formula?
x = (−b ± √(b² − 4ac)) / (2a). It gives the roots for any quadratic with a ≠ 0.
What does the discriminant tell me?
Δ = b² − 4ac. Positive → two real roots; zero → one repeated root; negative → two complex roots.
What if a = 0?
Then the equation is linear (bx + c = 0), not quadratic. This calculator requires a ≠ 0.
What is the vertex?
The turning point of the parabola. xᵥ = −b/(2a) is also the axis of symmetry; yᵥ = a xᵥ² + b xᵥ + c.
Are complex roots allowed?
Yes. When Δ < 0 the roots are written as real ± imaginary i.
Do you solve quadratic inequalities?
Yes. /calc/math/quadratic-inequality is mode=inequality on this same engine. Linear inequalities stay at /linear-inequality.