Quadratic Formula Calculator

Quadratic formula calculator that solves ax² + bx + c = 0 step by step. Enter a, b and c to get the discriminant, nature of the roots, exact formula steps, decimal approximations and vertex.

Full original guide (expanded)

Quadratic Formula Calculator

Solve any quadratic equation of the form ax² + bx + c = 0 using the quadratic formula. See discriminant, root type, step-by-step substitution and decimal approximations.

For students, teachers and engineers

Built to mirror textbook methods while giving you clean numeric values for quick checks and graphing.

Author: CalcDomain Math Team

Reviewed by: Mathematics educator

Last updated: 2025

This tool is for learning and verification only. Always follow your exam or coursework rules on calculator usage and show full working when required.

Interactive quadratic formula solver

Must be non-zero for a quadratic.

Controls decimal rounding in the numeric results.

Example: a = 1, b = 0, c = -4 gives x² − 4 = 0 → roots x = ±2.

Your equation in standard form will be shown here.
Root classification and approximate values will appear here.
Detailed quadratic formula steps will appear here.
Vertex, axis of symmetry and opening direction will appear here.

The quadratic formula at a glance

A quadratic equation in one variable is an equation that can be written in the form

\[ ax^2 + bx + c = 0, \quad a \ne 0 \]

where \(a\), \(b\), and \(c\) are constants and \(x\) is the unknown. The quadratic formula gives the solutions:

\[ x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}. \]

The expression under the square root, \(\Delta = b^2 - 4ac\), is called the discriminant and determines the number and type of solutions.

How the discriminant tells you the type of roots

\[ \Delta = b^2 - 4ac \]
  • If \(\Delta > 0\): two distinct real roots.
  • If \(\Delta = 0\): one real repeated root (a double root).
  • If \(\Delta < 0\): two complex conjugate roots, no real intersection with the x-axis.

This is why the discriminant is so useful: before computing square roots, you already know what kind of solutions to expect.

Vertex and graph of a quadratic

The graph of \(y = ax^2 + bx + c\) is a parabola. The point where it turns is called the vertex, and its x-coordinate is always

\[ x_{\text{vertex}} = -\frac{b}{2a}, \qquad y_{\text{vertex}} = f(x_{\text{vertex}}) = a x_{\text{vertex}}^2 + b x_{\text{vertex}} + c. \]

The line \(x = -\dfrac{b}{2a}\) is the axis of symmetry. If \(a > 0\), the parabola opens upward (like a cup); if \(a < 0\), it opens downward.

Examples you can try

  • Two real roots: \(x^2 - 5x + 6 = 0\). Here \(a = 1\), \(b = -5\), \(c = 6\). The discriminant is \(\Delta = (-5)^2 - 4 \cdot 1 \cdot 6 = 25 - 24 = 1\). Roots: \(x = \dfrac{5 \pm 1}{2}\) → \(x = 2\) and \(x = 3\).
  • One repeated root: \(x^2 - 4x + 4 = 0\). \(\Delta = (-4)^2 - 4 \cdot 1 \cdot 4 = 16 - 16 = 0\). Only one real solution \(x = \dfrac{4}{2} = 2\), but it counts twice.
  • No real roots (complex): \(x^2 + 4x + 13 = 0\). \(\Delta = 4^2 - 4 \cdot 1 \cdot 13 = 16 - 52 = -36\). Roots are complex: \(x = -2 \pm 3i\).

FAQ: using the quadratic formula calculator safely

What is the quadratic formula used for?

It is a universal method to solve any quadratic equation \(ax^2 + bx + c = 0\) with \(a \ne 0\). Unlike factoring, it always works, even when the roots are irrational or complex.

How do I know how many solutions a quadratic has?

The discriminant \(\Delta = b^2 - 4ac\) tells you everything: two real solutions (\(\Delta > 0\)), one real repeated solution (\(\Delta = 0\)), or two complex solutions (\(\Delta < 0\)). This calculator shows the discriminant and explains the classification.

What if a is zero in ax² + bx + c = 0?

Then the equation is not quadratic. If \(a = 0\) but \(b \ne 0\), you have a linear equation \(bx + c = 0\) with solution \(x = -c/b\). If both \(a = 0\) and \(b = 0\), then:

  • if \(c \ne 0\): no solution;
  • if \(c = 0\): every real number is a solution.

This calculator detects the case \(a = 0\) and switches to the appropriate message.

Can I rely on this calculator for exams or graded work?

Use it as a learning companion and a quick check. For assessments, always comply with your institution’s calculator policy and show full working steps. You remain responsible for any answers you submit.


Audit: Complete
Formula (LaTeX) + variables + units
This section shows the formulas used by the calculator engine, plus variable definitions and units.
Formula (extracted LaTeX)
\[ax^2 + bx + c = 0, \quad a \ne 0\]
ax^2 + bx + c = 0, \quad a \ne 0
Formula (extracted LaTeX)
\[x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}.\]
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}.
Formula (extracted LaTeX)
\[\Delta = b^2 - 4ac\]
\Delta = b^2 - 4ac
Formula (extracted LaTeX)
\[x_{\text{vertex}} = -\frac{b}{2a}, \qquad y_{\text{vertex}} = f(x_{\text{vertex}}) = a x_{\text{vertex}}^2 + b x_{\text{vertex}} + c.\]
x_{\text{vertex}} = -\frac{b}{2a}, \qquad y_{\text{vertex}} = f(x_{\text{vertex}}) = a x_{\text{vertex}}^2 + b x_{\text{vertex}} + c.
Formula (extracted LaTeX)
\[x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a} \\]
x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a} \
Formula (extracted LaTeX)
\[\\Delta = (' + formatNumber(b, decimals) + ')^2 - 4 \\cdot ' + formatNumber(a, decimals) + ' \\cdot ' + formatNumber(c, decimals) + ' = ' + formatNumber(delta, decimals) + ' \\]
\\Delta = (' + formatNumber(b, decimals) + ')^2 - 4 \\cdot ' + formatNumber(a, decimals) + ' \\cdot ' + formatNumber(c, decimals) + ' = ' + formatNumber(delta, decimals) + ' \
Formula (extracted text)
\[ ax^2 + bx + c = 0, \quad a \ne 0 \]
Formula (extracted text)
\[ x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}. \]
Formula (extracted text)
\[ \Delta = b^2 - 4ac \]
Formula (extracted text)
\[ x_{\text{vertex}} = -\frac{b}{2a}, \qquad y_{\text{vertex}} = f(x_{\text{vertex}}) = a x_{\text{vertex}}^2 + b x_{\text{vertex}} + c. \]
Variables and units
  • No variables provided in audit spec.
Sources (authoritative):
Changelog
Version: 0.1.0-draft
Last code update: 2026-01-19
0.1.0-draft · 2026-01-19
  • Initial audit spec draft generated from HTML extraction (review required).
  • Verify formulas match the calculator engine and convert any text-only formulas to LaTeX.
  • Confirm sources are authoritative and relevant to the calculator methodology.
Verified by Ugo Candido on 2026-01-19
Profile · LinkedIn
Formulas

(Formulas preserved from original page content, if present.)

Version 0.1.0-draft
Citations

Add authoritative sources relevant to this calculator (standards bodies, manuals, official docs).

Changelog
  • 0.1.0-draft — 2026-01-19: Initial draft (review required).