Free Quadratic Equation Solver Online
Calculate quadratic equation values instantly. Step-by-step formula display and history tracking.
Ad space
Ad space
How to use the Quadratic Equation Solver
- 1
Open the Quadratic Equation Solver tool
- 2
Enter your data or upload your file
- 3
Adjust settings if needed
- 4
Get instant results
- 5
Download or copy your output
Frequently asked questions
Is the Quadratic Equation Solver free?
Yes, our quadratic equation solver is 100% free with no limits, no signup, and no watermarks.
Do I need to create an account?
No. You can use the quadratic equation solver without any registration. Just open it and start using it.
Is my data safe?
Yes. Any files you upload are automatically deleted after 5 minutes. We never store, share, or access your data.
Does this work on mobile?
Yes. The quadratic equation solver is fully responsive and works on phones, tablets, and desktops.
Is there an API for this?
Yes. All our tools are available as API endpoints for developers. Check our API documentation for details.
A quadratic equation solver takes the three coefficients of ax² + bx + c = 0 and returns exactly what you need to fully understand the equation: the discriminant, both roots — real or complex — and the vertex of the parabola they describe. This page walks through how the tool computes each of those values, what the discriminant's sign is actually telling you, and where a solver like this is faster and more reliable than factoring by hand.
How the Quadratic Equation Solver Works
Three input fields correspond directly to the three coefficients: a, b, and c. As you type, a live equation preview above the fields updates in color-coded form so you can visually confirm you've entered ax² + bx + c = 0 correctly before reading the result. The moment a is a nonzero number and b and c are filled in, the solver recalculates automatically — there's no submit button to click and no page reload to wait through.
- Discriminant. Computed as b² − 4ac, this single value determines everything about the nature of the roots before you even look at them.
- Root type label. The tool states plainly whether you're looking at "Two Real Roots," "One Real Root (Repeated)," or "Two Complex Roots," so you don't have to interpret the discriminant's sign yourself.
- x₁ and x₂. Both roots are displayed side by side. When the discriminant is negative, these switch to complex number notation showing the real part plus or minus the imaginary part, rather than returning an error or leaving the fields blank.
- Vertex coordinates. The parabola's turning point, at x = −b/(2a) and the corresponding y value, is calculated and shown alongside the roots — useful for graphing or for optimization problems where the vertex itself is the answer you're after, not the roots.
The one input constraint worth knowing: a cannot be zero, since an equation with no x² term isn't quadratic anymore — it's linear, and the quadratic formula's denominator (2a) would be undefined. For workflows that need this same root-and-discriminant calculation triggered programmatically — grading a batch of student-submitted equations, or generating problem sets automatically — the same solving logic is available as a metered API call at /docs, returning the discriminant, the roots array, and a nature field in JSON for one credit per request.
Why Use a Quadratic Equation Solver
Quadratics show up well beyond algebra class, and confirming a result quickly matters in each of these situations:
- Checking algebra homework. Factoring by hand is error-prone, especially with non-integer or negative coefficients — a solver gives you an immediate, reliable answer to compare against your own work.
- Physics problems involving projectile motion. Height-over-time equations for a thrown or launched object are quadratic, and finding when an object hits the ground (height = 0) is a direct root-finding problem.
- Break-even and optimization in business math. Revenue and cost models that produce a parabola — common in simple pricing and profit-maximization exercises — use the vertex to find the maximum profit point and the roots to find break-even values.
- Engineering coursework involving simple characteristic equations. Second-order systems in introductory engineering courses frequently reduce to a quadratic whose roots determine the system's behavior.
- Automating equation solving in a script or app. A tool that needs to solve many quadratics — validating student answers, generating worked examples, or running batch calculations — can call the API instead of reimplementing the quadratic formula and its complex-root edge case from scratch.
Technical Deep Dive: The Discriminant and What It Tells You
The quadratic formula, x = (−b ± √(b² − 4ac)) / (2a), comes directly from completing the square on ax² + bx + c = 0. The expression under the square root, b² − 4ac, is the discriminant, and its sign alone determines what kind of roots the equation has — you don't need to actually solve for x to know the answer's shape.
Geometrically, a quadratic's graph is always a parabola, and the discriminant tells you how that parabola relates to the x-axis. A positive discriminant means the parabola crosses the x-axis at two distinct points, giving two real roots. A discriminant of exactly zero means the parabola's vertex sits precisely on the x-axis, touching it at a single repeated root rather than crossing it. A negative discriminant means the parabola never touches the x-axis at all — it stays entirely above or entirely below it — and the roots that "solve" the equation are complex numbers rather than points on the real number line.
Complex roots always arrive in conjugate pairs when a, b, and c are real numbers — if one root is p + qi, the other is guaranteed to be p − qi. This isn't a coincidence of the formula; it falls directly out of the ± in front of the square root term, since ±√(negative number) produces two values that are mirror images of each other across the real axis.
| Discriminant | Root type | Parabola behavior |
|---|---|---|
| Positive (b² − 4ac > 0) | Two distinct real roots | Crosses the x-axis twice |
| Zero (b² − 4ac = 0) | One repeated real root | Touches the x-axis once, at the vertex |
| Negative (b² − 4ac < 0) | Two complex conjugate roots | Never touches the x-axis |
The vertex formula, x = −b/(2a), is worth understanding on its own, separate from the roots. It marks the axis of symmetry of the parabola — the roots (when real) are always equally spaced on either side of it. That's why the vertex is useful even when the discriminant is negative and there are no real roots to plot: the parabola still has a highest or lowest point, and that point is often exactly what an optimization problem is asking for.
Two Worked Examples: Real and Complex Roots
Take x² − 5x + 6 = 0, so a=1, b=−5, c=6. The discriminant is (−5)² − 4(1)(6) = 25 − 24 = 1, which is positive, so the equation has two distinct real roots. Plugging into the quadratic formula gives x = (5 ± 1) / 2, so x₁ = 3 and x₂ = 2 — a pair that also happens to factor cleanly as (x−3)(x−2), which is a useful way to double-check the solver's output by hand when the numbers are small and tidy like this one. The vertex sits at x = −(−5)/(2×1) = 2.5, exactly halfway between the two roots, with y = (2.5)² − 5(2.5) + 6 = −0.25, the parabola's lowest point.
Now take x² + 2x + 5 = 0, where a=1, b=2, c=5. The discriminant is 2² − 4(1)(5) = 4 − 20 = −16, which is negative, so there's no factoring path at all — the roots are complex. The real part is −2/(2×1) = −1, and the imaginary part is √16 / (2×1) = 4/2 = 2, giving roots of −1 + 2i and −1 − 2i. Notice the two roots are mirror images across −1, the same conjugate-pair pattern that shows up every time the discriminant is negative. The vertex is still computable here too, at (−1, 4), even though the parabola never actually reaches the x-axis to produce a real root.
Quadratic Equation Solver vs Manual Methods
You have a few realistic options for solving ax² + bx + c = 0, and they trade off speed against depth:
- Factoring by hand. Fast and instructive when the roots are small integers, but most real-world quadratics don't factor cleanly, and factoring gives you no path at all to complex roots.
- Completing the square manually. Always works and builds real understanding of where the formula comes from, but it's slow and easy to make an arithmetic slip partway through, especially with fractional coefficients.
- Graphing calculators. Reliable for real roots and visually intuitive, but many models require manually switching into a complex-number mode to handle a negative discriminant, and the default settings often just report "no real solution" instead.
- Computational engines like Wolfram Alpha. Strong for a full symbolic, step-by-step derivation when you want to see every intermediate line of algebra, though that thoroughness makes it slower than this tool for a quick numeric check.
- This solver. Built for the direct case — three coefficients in, discriminant, both roots (real or complex), and the vertex out, instantly, with no mode switching required for complex results.
How Your Coefficients Are Processed
The a, b, and c values you enter are read and calculated entirely inside your browser's JavaScript engine. Nothing about the equation — the coefficients, the discriminant, or the resulting roots — is transmitted to a server or stored anywhere as part of using the on-page tool. Refresh the page and the fields reset with no record kept of what you solved.
Common Questions About Solving Quadratic Equations
What does a negative discriminant actually mean in practical terms?
It means the parabola described by your equation never crosses the x-axis, so there's no real number that makes the equation true. The two solutions that do exist are complex numbers, which is a perfectly valid and often expected outcome in fields like electrical engineering, not a sign that something went wrong.
Can a quadratic equation have one real root and one complex root?
No. With real coefficients, the roots are either both real (discriminant ≥ 0) or both complex and conjugate to each other (discriminant < 0). A mix of one real and one complex root is mathematically impossible for this form.
Why isn't a allowed to be zero?
Setting a to zero removes the x² term entirely, turning the equation into bx + c = 0 — a linear equation with at most one solution, not a quadratic with two. The quadratic formula also divides by 2a, which is undefined when a is zero.
How does the vertex relate to the roots of the equation?
The vertex's x-coordinate, −b/(2a), is the exact midpoint between the two roots whenever real roots exist — the parabola is symmetric around that vertical line. When the discriminant is negative and there are no real roots, the vertex is still meaningful as the parabola's absolute maximum or minimum point.
Do complex roots really always come in pairs?
Yes, whenever the coefficients a, b, and c are real numbers. The pair always takes the form p + qi and p − qi, mirror images across the real axis, which is a direct consequence of the ± sign in the quadratic formula.
Is this solver reliable enough to check homework answers against?
Yes — it uses the standard quadratic formula with no shortcuts or approximations, so the discriminant and roots it returns match what you'd get from working the formula by hand correctly, making it a fast way to catch an arithmetic mistake before turning in an assignment.
Related Tools
For coefficient arithmetic or general number crunching alongside solving an equation, the Scientific Calculator handles square roots, powers, and everything else you'd otherwise reach for a physical calculator to do. If your work involves exponential terms rather than a plain quadratic, the Exponent Calculator and Logarithm Calculator cover the related algebra. Systems of equations that reduce to small 2×2 characteristic equations connect naturally to the Matrix Calculator, which handles the underlying matrix arithmetic. And when a root or coefficient needs to be expressed as an exact fraction instead of a decimal, the Fraction Calculator takes care of the simplification.
Ad space
Related tools
Percentage Calculator
Calculate percentage values instantly. Step-by-step formula display and history tracking....
Age Calculator
Calculate age values instantly. Step-by-step formula display and history tracking....
Tip Calculator
Calculate tip values instantly. Step-by-step formula display and history tracking....
Ad space