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.
The quadratic formula at a glance
A quadratic equation in one variable is an equation that can be written in the form
where \(a\), \(b\), and \(c\) are constants and \(x\) is the unknown. The quadratic formula gives the solutions:
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
- 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
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.