Find roots, discriminant, and root type in one place
Quadratic equations sit at the center of algebra. The same pattern ax² + bx + c = 0 shows up in physics, geometry, finance, and many modeling tasks.
This calculator turns that pattern into a simple workflow, so you can focus on interpretation instead of manual algebra.
Roots for ax² + bx + c = 0 Discriminant and root type Compare multiple equations Copy and export PDF
Outputs
Roots x₁, x₂ and discriminant D
Compare
Save and contrast equations
Guide
Formula, cases, examples
How to use the Quadratic Equation Calculator
1
Enter coefficients a, b, and c
Type the coefficients for your quadratic equation ax² + bx + c = 0. Make sure a is not zero.
2
Calculate and check D
Press Calculate to compute the discriminant D = b² − 4ac and classify the root type.
3
Review roots and steps
See the roots, formula used, and a short step by step explanation of the calculation.
4
Compare or export
Save scenarios, compare equations side by side, or export an A4 PDF for notes.
Detailed guide and references▶
Why quadratic equations matter
A quadratic equation is any equation that can be written in the form ax² + bx + c = 0 with a not equal to zero.
It is the simplest nonlinear polynomial equation, and because of that it appears in many places whenever a relationship has a curved response instead of a straight line.
In school settings, quadratic equations are often the first serious example of solving a general formula rather than a single numeric problem.
In applications, they describe things like the trajectory of a ball under gravity, the cross section of some lenses and mirrors, and many basic optimization problems.
The calculator on this page keeps the pattern explicit.
Instead of hiding a, b, and c inside buttons, it shows you how they feed the discriminant and the final roots each time you run a calculation.
Standard form and the quadratic formula
The standard form of a quadratic equation is
ax² + bx + c = 0
where a, b, and c are real numbers, a is not zero, and x is the variable we want to solve for.
By completing the square or using other algebraic manipulations, you can show that every such equation satisfies the quadratic formula.
x = [-b ± √(b² - 4ac)] / (2a)
The expression under the square root, b² − 4ac, is called the discriminant.
It controls how many real solutions the equation has and whether complex roots appear.
Discriminant and root types
The discriminant D = b² − 4ac summarizes the shape of the parabola and the number of real roots.
D > 0: two distinct real roots that correspond to two x axis crossings.
D = 0: one repeated real root where the parabola just touches the x axis.
D < 0: no real roots, but two complex conjugate roots in the complex plane.
The calculator displays the value of D and labels the root type accordingly.
This helps connect the algebra of the formula with the geometry of the graph.
What this calculator shows
To keep the interface focused, the calculator works with a single standard mode: solving ax² + bx + c = 0.
For each run it records a compact set of information.
The coefficients a, b, and c that define your equation.
The discriminant D and the root type implied by its sign.
Numeric approximations of the roots to a few decimal places.
An exact formula view that keeps the square root expression explicit.
After the calculation, you can add the scenario to the comparison table and keep a short history of recent equations on your device.
Graph intuition for ax² + bx + c
The graph of a quadratic function y = ax² + bx + c is a parabola.
The coefficient a controls whether the curve opens upward or downward and how wide it is, while b shifts the axis of symmetry and c sets the vertical intercept.
Parabola with two real roots where the curve crosses the x axis
The roots of the quadratic equation correspond to the x coordinates where this parabola crosses the horizontal axis.
When D is positive, there are two such crossings. When D is zero, there is exactly one tangency point. When D is negative, the entire graph lies above or below the x axis and there is no crossing.
Worked examples
Here are a few example equations that you can try directly in the calculator.
Example A, two real roots:
Take x² − 5x + 6 = 0. Here a = 1, b = −5, c = 6.
The discriminant is D = (−5)² − 4·1·6 = 25 − 24 = 1, which is positive.
The roots are x = [5 ± √1] / 2, giving x₁ = 2 and x₂ = 3.
Example B, one repeated root:
Take x² + 4x + 4 = 0. Here a = 1, b = 4, c = 4.
The discriminant is D = 16 − 16 = 0.
The formula gives x = −4 / 2 = −2, a repeated root, sometimes written as (x + 2)² = 0.
Example C, complex roots:
Take x² + 1 = 0, so a = 1, b = 0, c = 1.
The discriminant is D = 0 − 4 = −4.
The roots are x = [0 ± √(−4)] / 2 = ± i, where i is the square root of −1.
Example D, scaled equation:
If you multiply an equation by a nonzero constant, the set of roots does not change.
For example 2x² − 10x + 12 = 0 has the same roots as x² − 5x + 6 = 0 after dividing by 2, and the calculator will show this through the same discriminant and root values.
Common mistakes to avoid
Letting a be zero:
If a is zero, the equation is no longer quadratic. It becomes linear, and the quadratic formula no longer applies.
Dropping signs:
Sign errors in b or c can flip the value of the discriminant or shift the roots, so it is worth double checking the original equation before entering it.
Misreading the discriminant:
Only the sign of D tells you the root type. A large positive value does not mean large roots by itself; it only indicates that the square root term is relatively big.
Rounding too early:
If you round intermediate values aggressively, you may lose precision. The calculator keeps more digits internally and then rounds the displayed result.
Real world uses beyond homework
Quadratic equations are not just textbook examples. They quietly support many everyday calculations.
Modeling simple projectile motion in basic physics problems.
Finding optimal points in simple cost, revenue, or area models.
Designing lens shapes and mirror surfaces in basic optics settings.
Analyzing the intersection of a circle and a line in coordinate geometry.
In each case, the same quadratic formula rule gives you the possible values of x that satisfy a curved relationship.
The calculator lets you explore these equations quickly, leaving more attention for the interpretation of the solutions.
Limits and numeric issues
The quadratic formula is exact in algebra, but numeric implementations must still work within finite precision.
Very large or small coefficients may produce rounding error in floating point arithmetic.
When b² is close to 4ac, subtractive cancellation can reduce accuracy for one of the roots.
For higher degree polynomials, other techniques are needed instead of the quadratic formula.
For most educational and practical inputs with moderate sizes, the calculator provides stable results that match hand computations.
If you need high precision for sensitive work, consider additional numeric checks or symbolic tools.
Polynomial degree 2 graph from Wikimedia Commons, original and updated hand drawn versions by several contributors, used under the Creative Commons Attribution ShareAlike license.
FAQs
What does this calculator output▶
It reports the roots of ax² + bx + c = 0, the discriminant D, and the root type, along with a short explanation of the steps.
Can it show complex roots▶
Yes. When the discriminant is negative, the solutions appear as complex conjugate roots with an explicit imaginary term.
Do I need to factor the polynomial first▶
No. The quadratic formula works for any coefficients a, b, and c with a not equal to zero, without factoring the polynomial.
Key takeaways
Every quadratic equation ax² + bx + c = 0 has up to two roots that follow the same formula.
The discriminant D = b² − 4ac controls the number and type of roots.
The graph is a parabola whose x axis crossings match the real roots.
The calculator highlights both numeric roots and the pattern of the quadratic formula.
Scenario compare and PDF export help with homework, notes, and design checks that involve quadratic behavior.
Related calculators
Recommended posts
Calculator
Resultx₁ = 0,x₂ = 0
Root typeTwo real roots
Equationax² + bx + c = 0
Coefficient a0
Coefficient b0
Coefficient c0
Discriminant D0
Root x₁0
Root x₂0
Formula used-
Notes-
Formula Used
x = [-b ± √(b² − 4ac)] / (2a)
Calculation Type
Quadratic equation
Equation: x² + 0x + 0 = 0
Step by Step Solution
Step 1:Given: a = 0, b = 0, c = 0
Step 2:Discriminant: D = b² − 4ac
Step 3:Roots: x₁ and x₂
How to interpret this result
Recent calculations on this device
Share or save
The results shown are for general reference and do not replace professional checks when those are required.