Enter the coefficients a, b, and c of your quadratic equation in the form ax² + bx + c = 0. The solver applies the quadratic formula to find both roots, shows the discriminant, and gives full step-by-step working. Both real and complex roots are supported.
Your equation displayed as entered:
Enter decimal values such as 1.5 or negative values such as −3. The solver handles any real coefficients.
A quadratic equation is any equation of the form ax² + bx + c = 0, where a is not zero. The quadratic formula gives the roots (solutions) of this equation directly from its coefficients:
x = (-b ± √(b² - 4ac)) / (2a)
The formula is derived by completing the square on the general form. It always produces the correct roots regardless of whether they are integers, fractions, irrational numbers, or complex numbers.
The expression D = b² - 4ac inside the square root is called the discriminant. It determines the nature of the roots without you having to compute them:
| Discriminant (D) | Nature of Roots | Example |
|---|---|---|
| D > 0 | Two distinct real roots | x² - 5x + 6 = 0 gives x = 3 and x = 2 |
| D = 0 | One repeated real root | x² - 4x + 4 = 0 gives x = 2 (repeated) |
| D < 0 | Two complex conjugate roots | x² + x + 1 = 0 gives x = -0.5 ± 0.866i |
Solve x² − 5x + 6 = 0 (where a = 1, b = −5, c = 6).
By Vieta's formulas, the sum and product of the roots of ax² + bx + c = 0 can be found directly from the coefficients without solving the equation:
For x² − 5x + 6 = 0: sum = −(−5)/1 = 5; product = 6/1 = 6. Verify: 3 + 2 = 5 and 3 × 2 = 6.
The graph of y = ax² + bx + c is a parabola. Its vertex (turning point) sits at x = −b / (2a) and y = c − b²/(4a). For a positive value of a the parabola opens upward and the vertex is a minimum. For a negative value of a it opens downward and the vertex is a maximum. The axis of symmetry is the vertical line x = −b / (2a), which sits exactly halfway between the two roots when they exist.
Method: The quadratic formula x = (-b ± √(b² - 4ac)) / (2a) is derived by completing the square on ax² + bx + c = 0. Complex roots are expressed in the form p ± qi where i = √(-1). Vertex coordinates use x = -b/(2a) and y = c - b²/(4a).
This solver handles any real coefficients and returns exact decimal results. For equations with very large or very small coefficients, rounding may occur in the displayed values. Results should be verified by substituting back into the original equation.
If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.
Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.
Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.
All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.
Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.
Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.
Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.
All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.
About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use
Reviewed and maintained. Last reviewed 2026-07-02 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.
© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.