Quadratic Formula Solver

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.

Calculate.co.nz is proud to be partnered with Premium Homes, a recognised leader in eco-friendly, sustainable, and energy-efficient homebuilding. With a dedicated team and award-winning experience, they create homes that prioritise health, comfort, and long-term performance. Their founders, Andrew and Kelly, set out to raise the standard of residential construction in New Zealand by combining practical building expertise with a clear commitment to doing things better for homeowners.
Calculate.co.nz partner: Premium Homes
Standard formula  Quadratic formula: x = (-b ± √(b² - 4ac)) / (2a)
x = (-b ± √(b² - 4ac)) / (2a)

1. Coefficients

Please enter valid numbers. The value of a cannot be zero.

2. Equation Preview

Your equation displayed as entered:

x² − 5x + 6 = 0

Enter decimal values such as 1.5 or negative values such as −3. The solver handles any real coefficients.

Roots of the Equation

Root 1 (x₁)
3
Real root
Root 2 (x₂)
2
Real root
Discriminant (b² − 4ac)
1
Two distinct real roots

Step-by-Step Working

Equation Properties

Standard form-
Discriminant D-
Nature of roots-
Sum of roots (x₁ + x₂)-
Product of roots (x₁ × x₂)-

Parabola Vertex

Vertex x-coordinate-
Vertex y-coordinate-
Axis of symmetry-
Parabola opens-
Factored form-
Result: Enter your coefficients above.

The Quadratic Formula

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 Discriminant

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 RootsExample
D > 0Two distinct real rootsx² - 5x + 6 = 0 gives x = 3 and x = 2
D = 0One repeated real rootx² - 4x + 4 = 0 gives x = 2 (repeated)
D < 0Two complex conjugate rootsx² + x + 1 = 0 gives x = -0.5 ± 0.866i

Worked Example

Solve x² − 5x + 6 = 0 (where a = 1, b = −5, c = 6).

  1. Identify: a = 1, b = −5, c = 6
  2. Discriminant: D = (−5)² − 4(1)(6) = 25 − 24 = 1
  3. Square root: √1 = 1
  4. Root 1: x₁ = (−(−5) + 1) / (2 × 1) = (5 + 1) / 2 = 6 / 2 = 3
  5. Root 2: x₂ = (−(−5) − 1) / (2 × 1) = (5 − 1) / 2 = 4 / 2 = 2
  6. Check: (3)² − 5(3) + 6 = 9 − 15 + 6 = 0 ✓

Sum and Product of Roots

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.

Vertex of the Parabola

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.

Related Calculators

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.