🧮 Quadratic Equation Solver

Solve ax² + bx + c = 0 for real or complex roots, and see the discriminant, vertex, and axis of symmetry with full step-by-step work.

🧮 Enter Coefficients
Result
Roots
Discriminant (D)
Nature of Roots
Vertex (h, k)
Axis of Symmetry
🧮

Enter a, b and c to solve the quadratic equation

Guide

About the Quadratic Equation Calculator

Last updated: July 2026 · Reviewed by the NeftCal editorial team

This quadratic equation calculator solves any equation of the form ax² + bx + c = 0 instantly, returning the roots (real or complex), the discriminant, the vertex, and the axis of symmetry with full step-by-step work. It functions as a quadratic formula calculator, a discriminant calculator, a vertex of a parabola calculator, and a complex roots calculator all in one — built for anyone who needs to solve a quadratic equation, find the roots of a quadratic equation, or check an ax²+bx+c calculator problem by hand. Quadratic equations describe parabolas, the curved shape behind projectile motion, satellite dishes, and optimization problems, which is why this single equation type appears across algebra, physics, engineering, and business coursework.

What the Quadratic Equation Calculator Solves

Given any three coefficients a, b, and c (with a ≠ 0), this tool finds every x that makes ax² + bx + c equal zero. It automatically detects whether the equation has two distinct real roots, one repeated real root, or two complex conjugate roots, and reports the parabola's vertex and axis of symmetry alongside the solution.

Who Should Use This Calculator

Algebra and pre-calculus students checking homework, teachers preparing worked answer keys, engineering and physics students solving projectile-motion or optimization problems, competitive-exam candidates who need fast, error-free roots, and anyone modeling a parabolic relationship in a spreadsheet or script can all use this quadratic equation solver.

Why Quadratic Equations Matter

The quadratic is the simplest equation type whose graph curves, making it the entry point for understanding nonlinear relationships. Its discriminant single-handedly predicts how many real solutions exist before any arithmetic is done, and its vertex form reveals the maximum or minimum of any quadratic function — a shortcut used constantly in optimization.

Real-World Applications

Physics uses quadratics to model projectile motion and find when a launched object returns to a given height. Engineers use them to describe parabolic arches, bridge cables, and satellite dish curvature. Businesses use quadratic revenue or cost functions to locate maximum profit or break-even points. Game and graphics developers use the same formula to compute realistic projectile arcs.

Tips for Accurate Results

  • Always write the equation in standard form ax² + bx + c = 0 before reading off a, b, and c — a common source of sign errors.
  • Double-check the sign of b and c separately; a single flipped sign changes the discriminant and can turn real roots into complex ones.
  • Use the discriminant's sign as a quick sanity check before trusting the roots: positive means two real roots, zero means one repeated root, negative means complex roots.
Formula

The Quadratic Formula, Explained

How this quadratic equation calculator finds roots, the discriminant, and the vertex

Quadratic formula
x = (−b ± √(b² − 4ac)) ÷ (2a)

Discriminant
D = b² − 4ac

Completing the square (how the formula is derived)
ax² + bx + c = 0 → a(x + b/2a)² + (c − b²/4a) = 0 → solving for x gives the quadratic formula above

Vertex form
y = a(x − h)² + k, where h = −b ÷ (2a) and k = c − b² ÷ (4a)

Axis of symmetry
x = h = −b ÷ (2a)

Where:
a = the coefficient of x² (must be nonzero, or the equation becomes linear).
b = the coefficient of x.
c = the constant term.
D = the discriminant, which determines the nature of the roots.
(h, k) = the vertex of the parabola — its minimum point if a > 0, or maximum point if a < 0.

D > 0 — Two Real Roots

The parabola crosses the x-axis at two distinct points; the quadratic formula returns two different real values.

🎯

D = 0 — One Repeated Root

The parabola touches the x-axis at exactly one point — its vertex sits directly on the axis.

🌀

D < 0 — Complex Roots

The parabola never touches the x-axis; the two roots are complex conjugates p ± qi.

⚙️ Why This Formula Works

The quadratic formula is completing the square generalized for any a, b, and c. Isolating x² and x on one side, adding (b/2a)² to both sides to form a perfect square, and then taking the square root of both sides produces x = (−b ± √(b²−4ac)) ÷ (2a) — the ± reflects that a perfect square always has two square roots.

🎯 When to Use Each Method

  • Quadratic formula: works for every quadratic, including irrational and complex roots
  • Factoring: fastest when the roots are small integers or simple fractions
  • Completing the square: useful for deriving vertex form or proving the formula
  • Discriminant check: use first to predict how many real roots to expect

📋 Assumptions

  • a, b, and c are real numbers, and a is nonzero
  • The equation is already in, or can be rearranged into, standard form ax² + bx + c = 0
  • Complex roots are reported in p ± qi form using the imaginary unit i

⚠️ Limitations of the Formula

  • Undefined if a = 0 — the equation is then linear, not quadratic
  • Very large or very small coefficients can introduce floating-point rounding error in D
  • Does not factor the equation symbolically — see the Factoring Calculator for that
Walkthrough

Step-by-Step: How to Use the Quadratic Equation Solver

From entering coefficients to verifying your roots

Write the equation in standard form

Rearrange your equation into ax² + bx + c = 0 and identify a, b, and c, keeping track of each sign.

Enter a, b, and c

Type the three coefficients into the calculator's input fields. a cannot be 0, or the equation is no longer quadratic.

Click "Calculate"

The calculator computes the discriminant D = b²−4ac and applies the quadratic formula automatically.

Read the roots and their nature

Check whether the result shows two distinct real roots, one repeated root, or a complex conjugate pair, based on the discriminant's sign.

Review the vertex and axis of symmetry

Use the vertex (h, k) and axis of symmetry x = h to understand the parabola's shape and turning point.

Verify the answer

Substitute a root back into ax²+bx+c to confirm it equals zero, or multiply the factors (x−x₁)(x−x₂) to check they expand back to the original equation.

Example

Worked Example

Solving x² − 3x + 2 = 0 for its roots, vertex, and axis of symmetry

Scenario

Solve x² − 3x + 2 = 0 and find the parabola's vertex and axis of symmetry.

a1
b−3
c2
Step 1 — Compute the discriminant: D = b² − 4ac = (−3)² − 4(1)(2) = 9 − 8 = 1.
Step 2 — Since D > 0, take the square root: √D = √1 = 1.
Step 3 — Apply the quadratic formula: x = (3 ± 1) ÷ 2(1) → x₁ = 4 ÷ 2 = 2, x₂ = 2 ÷ 2 = 1.
Step 4 — Find the vertex: h = −b ÷ (2a) = 3 ÷ 2 = 1.5. k = c − b²/(4a) = 2 − 9/4 = −0.25 → vertex (1.5, −0.25).
Step 5 — Verify by factoring: (x−1)(x−2) = x² − 3x + 2 ✓, confirming x₁ = 2 and x₂ = 1 are correct.
Roots
x₁ = 2, x₂ = 1
Discriminant
D = 1 (> 0)
Vertex
(1.5, −0.25)

Explanation: Because D = 1 is positive, the parabola crosses the x-axis at two distinct points, x = 1 and x = 2. The vertex at (1.5, −0.25) sits exactly halfway between the two roots on the x-axis (the average of 1 and 2 is 1.5), and since a = 1 is positive, the parabola opens upward with this vertex as its minimum point.

Interpretation

Understanding Your Quadratic Equation Result

What the discriminant and roots actually tell you

Discriminant (D)Nature of RootsGraphical Meaning
D > 0Two distinct real rootsParabola crosses the x-axis at two points
D = 0One repeated real rootParabola touches the x-axis at exactly one point (its vertex)
D < 0Two complex conjugate rootsParabola never touches the x-axis

Reading the roots: real roots are the x-intercepts of the parabola. Complex roots p ± qi mean there is no real x-intercept at all — the whole curve stays above or below the x-axis.

Typical edge cases: a repeated root (D = 0) means the vertex itself lies exactly on the x-axis. A very large |D| relative to a can produce roots far apart; a discriminant extremely close to zero can make floating-point rounding blur the distinction between "two very close real roots" and "one repeated root."

Manual verification: substitute each root back into ax² + bx + c — it should evaluate to 0. Alternatively, multiply the two factors (x − x₁)(x − x₂) and confirm the expanded form matches your original a, b, and c.

Use Cases

Practical Use Cases for the Quadratic Equation Calculator

Where solving ax²+bx+c=0 comes up in real work and study

🎓

Algebra & pre-calculus homework

Check roots, discriminants, and vertex calculations step by step before a test.

📝

Competitive exam prep

Verify quadratic equation problems quickly during timed practice for entrance and board exams.

🚀

Projectile motion in physics

Find when a launched object reaches a target height by solving a height-vs-time quadratic.

🌉

Structural & civil engineering

Model parabolic arches, suspension cables, and support curves in bridges and roofs.

💹

Business optimization

Find the maximum profit or break-even output where a revenue or cost function is quadratic.

🎮

Game & graphics programming

Compute realistic projectile arcs and collision timing using the same parabolic equations.

📡

Satellite dish & optics design

Use the parabola's vertex and focus properties, derived from the same quadratic form.

🤖

Computer science & algorithms

Analyze quadratic-time complexity O(n²) growth curves and root-finding subroutines.

📊

Data science & curve fitting

Interpret quadratic regression coefficients and find a fitted curve's turning point.

🏗️

Area & dimension problems

Solve for unknown side lengths when area is expressed as a quadratic expression.

📐

Geometry & optimization

Find the maximum enclosed area for a fixed perimeter, a classic quadratic optimization problem.

🧑‍🏫

Teaching & answer keys

Instructors generate verified step-by-step solutions for worksheets and exams.

🔧

Everyday quick checks

Anyone who hits an ax²+bx+c=0 equation while studying or working can get an instant, reliable answer.

Pros & Cons

Advantages and Limitations

What this quadratic equation calculator does well, and where care is still needed

✅ Advantages

  • Free, instant, and requires no signup or account
  • Runs entirely in your browser — no data ever leaves your device
  • Handles real and complex roots correctly, without silently failing on negative discriminants
  • Shows the discriminant, vertex, and axis of symmetry alongside the roots
  • Displays full step-by-step working for every calculation
  • Accepts decimal and negative coefficients, not just whole numbers
  • Automatically classifies roots as two real, one repeated, or complex
  • Removes manual arithmetic and sign errors from applying the formula by hand
  • Useful across algebra, physics, engineering, and business contexts
  • Fast-loading and fully mobile-friendly
  • Consistent, repeatable results every time
  • Free to use as many times as needed, with no calculation limit

⚠️ Limitations

  • Requires a nonzero — it cannot solve an equation that is actually linear
  • Does not symbolically factor the equation into integer or fractional factors
  • Very large or very small coefficients can introduce floating-point rounding error in the discriminant
  • Displays complex roots in p ± qi form only, not polar or exponential form
  • Does not graph the parabola visually on this page
  • Assumes the equation is already correctly rearranged into standard form
  • Cannot solve systems of equations or higher-degree polynomials — see the dedicated tools for those
Reference

Quadratic vs Linear vs Cubic Equations

How equation degree changes the number of solutions and the shape of the graph

Equation TypeGeneral FormMax Real SolutionsGraph Shape
Linearax + b = 01Straight line
Quadraticax² + bx + c = 02Parabola
Cubicax³ + bx² + cx + d = 03S-shaped curve

Common Mistakes and Expert Tips

❌ Common Mistakes

  • Forgetting to square the negative sign of b, e.g. computing (−3)² as −9 instead of 9
  • Dropping the ± sign and reporting only one root instead of two
  • Misreading a negative discriminant as "no solution" instead of "two complex solutions"
  • Confusing the vertex's x-coordinate (h) with a root of the equation
  • Entering a = 0 and expecting a quadratic result instead of an error
  • Forgetting to divide the entire numerator by 2a, not just the square root term

💡 Expert Tips & Best Practices

  • Compute the discriminant first — it tells you what kind of answer to expect before you finish the formula
  • Check your answer by factoring or by substituting the root back into the original equation
  • Use the Factoring Calculator first if you suspect the roots are small whole numbers — it can be faster than the full formula
  • Pair this tool with the Linear Equation Solver when a = 0 turns your equation linear
  • For systems involving two equations at once, use the Simultaneous Equations Solver instead
📝

Summary: This quadratic equation calculator gives you an instant, free way to solve ax²+bx+c=0 for real or complex roots, see the discriminant, vertex, and axis of symmetry, and follow the full step-by-step work. Pair it with related tools like the Linear Equation Solver and Factoring Calculator for a fuller picture of algebraic equation solving.

FAQ

Frequently Asked Questions

Common questions about solving quadratic equations

What is the quadratic formula?
For ax² + bx + c = 0, the quadratic formula is x = (−b ± √(b²−4ac)) / (2a). It works for any quadratic equation as long as a is not zero, giving real roots when the discriminant is non-negative and complex roots otherwise.
What does the discriminant tell you?
The discriminant D = b²−4ac tells you the nature of the roots. If D > 0 there are two distinct real roots, if D = 0 there is one repeated real root, and if D < 0 there are two complex conjugate roots and no real solutions.
What happens if a equals 0?
If a = 0 the equation ax²+bx+c=0 is no longer quadratic — it becomes the linear equation bx+c=0. This calculator requires a nonzero a and will alert you if you enter 0.
How do you find the vertex of a parabola?
For y = ax²+bx+c, the vertex is at (h, k) where h = −b/(2a) and k = c − b²/(4a). The vertical line x = h is the parabola's axis of symmetry.
How does completing the square relate to the quadratic formula?
Completing the square rewrites ax²+bx+c=0 as a(x + b/2a)² + (c − b²/4a) = 0. Solving this for x produces exactly the quadratic formula, x = (−b ± √(b²−4ac))/(2a) — the formula is simply completing the square done once, generalized for any a, b, and c.
Can a quadratic equation be solved by factoring?
Yes, when the roots are rational. If x² − 3x + 2 = 0 factors to (x−1)(x−2) = 0, the roots are x = 1 and x = 2 — matching the quadratic formula's output. Factoring is faster when it works cleanly, but the quadratic formula always works, even for irrational or complex roots.
What is the vertex form of a quadratic equation?
Vertex form is y = a(x − h)² + k, where (h, k) is the parabola's vertex. It is derived directly from completing the square and makes the maximum or minimum point of the parabola immediately visible, unlike standard form ax²+bx+c.
Why do complex roots always come in conjugate pairs?
When the discriminant is negative, √(b²−4ac) becomes an imaginary number. Since the ± in the quadratic formula applies to that imaginary part, the two roots are always p+qi and p−qi — complex conjugates — for any real coefficients a, b, and c.
How do you know if a parabola opens upward or downward?
If a > 0, the parabola opens upward and its vertex is a minimum point. If a < 0, the parabola opens downward and its vertex is a maximum point. The sign of a alone determines this, regardless of b or c.
What does it mean when a quadratic equation has no real solutions?
It means the discriminant D = b²−4ac is negative, so the parabola never crosses the x-axis — it stays entirely above or entirely below it. The two solutions still exist, but only as complex numbers, not as real x-intercepts.
How accurate are the roots for very large or very small coefficients?
For typical coefficients the results are accurate to about 6 decimal places. Extremely large or extremely small values of a, b, or c can introduce floating-point rounding error in the discriminant, which is a known limitation of computing b²−4ac directly in double-precision arithmetic.
Can I enter decimal or negative coefficients?
Yes. a, b, and c all accept any decimal or negative number — the only restriction is that a cannot equal 0, since that would make the equation linear rather than quadratic.
What real-world problems use quadratic equations?
Projectile motion (finding when a thrown object hits the ground), optimizing area or profit given a fixed constraint, and modeling parabolic shapes in bridges, satellite dishes, and arches are all classic applications where a quadratic equation naturally appears.
How is a quadratic equation different from a linear equation?
A linear equation has x to the first power and graphs as a straight line with at most one solution. A quadratic equation includes an x² term, graphs as a parabola, and can have zero, one, or two real solutions depending on the discriminant. Use the Linear Equation Solver for ax+b=cx+d.
Is this quadratic equation calculator free to use?
Yes. This quadratic equation calculator is completely free, requires no signup, and runs entirely in your browser. You can use it as many times as you like to check homework, exam problems, or engineering calculations.
Learn More

Authoritative Resources on Quadratic Equations

Trusted educational references to go deeper on solving quadratics

Related Calculators

Explore other math tools