Skip to content

Quadratic Formula Calculator

Free online Quadratic Formula Calculator -- solve ax^2 + bx + c = 0 for both roots. Shows the discriminant, vertex, and whether solutions are real or complex. Step-by-step results.

Quadratic Formula Calculator: Example Calculation

Using a (x² coefficient): 1, b (x coefficient): -5, c (constant): 6:

The estimated Discriminant (b²−4ac) is 1.

Result Value
Discriminant (b²−4ac) 1
x₁ 3
x₂ 2
Vertex (2.5, -0.25)
Axis of Symmetry 3

Adjust the values in the calculator above for your own scenario.

Loading calculator

Preparing Quadratic Formula Calculator...

Reviewed & Methodology

Every calculator is built using industry-standard formulas, validated against authoritative sources, and reviewed for accuracy against our published methodology. All calculations run privately in your browser - no data is stored or shared.

Last reviewed:

Reviewed by:

Written by:

How to Use the Quadratic Formula Calculator

  1. 1. Enter coefficient a - type the coefficient of the x-squared term (must not be zero).
  2. 2. Enter coefficient b - type the coefficient of the x term.
  3. 3. Enter coefficient c - type the constant term.
  4. 4. View both solutions - the calculator shows x1 and x2 using the quadratic formula, plus the discriminant value.
  5. 5. Interpret the results - check whether the roots are real and distinct, real and equal, or complex based on the discriminant.

Quadratic Formula Calculator

Solve any quadratic equation of the form ax^2 + bx + c = 0 by entering the three coefficients a, b, and c. This calculator applies the quadratic formula to find both roots, displays the discriminant to classify the solution type, and identifies the vertex coordinates of the corresponding parabola. It is built for algebra students, physics problems involving projectile motion, and engineering optimization tasks.

How the Quadratic Formula Works

The two solutions of ax^2 + bx + c = 0 are given by:

x = (-b +/- sqrt(b^2 - 4ac)) / 2a

The discriminant D = b^2 - 4ac classifies the solutions before you even compute them:

  • D > 0: Two distinct real roots -- the parabola crosses the x-axis at two different points
  • D = 0: One repeated real root (double root) -- the parabola touches the x-axis exactly at its vertex
  • D < 0: Two complex conjugate roots -- the parabola does not cross the x-axis at all

The vertex of the parabola is at (h, k) where h = -b / 2a and k = c - b^2 / (4a). For a > 0, this is the minimum point; for a < 0, it is the maximum.

Worked Examples

Example 1 -- two distinct real roots: Solve x^2 - 7x + 10 = 0. D = 49 - 40 = 9 > 0. x = (7 +/- 3) / 2, giving x1 = 5 and x2 = 2. Verify: (x - 5)(x - 2) = x^2 - 7x + 10. Correct.

Example 2 -- double root: Solve x^2 - 6x + 9 = 0. D = 36 - 36 = 0. x = 6 / 2 = 3 (repeated). The parabola touches the x-axis at x = 3. This factors as (x - 3)^2 = 0.

Example 3 -- complex roots: Solve x^2 + 4x + 13 = 0. D = 16 - 52 = -36 < 0. x = (-4 +/- sqrt(-36)) / 2 = -2 +/- 3i. The two roots are -2 + 3i and -2 - 3i. The parabola has its vertex at (-2, 9) and never crosses the x-axis.

Reference Table -- Quadratic Equations and Their Solutions

Equation a b c Discriminant Root 1 Root 2
x^2 - 5x + 6 = 0 1 -5 6 1 3 2
x^2 - 7x + 10 = 0 1 -7 10 9 5 2
2x^2 + 4x - 6 = 0 2 4 -6 64 1 -3
x^2 - 4x + 4 = 0 1 -4 4 0 2 2 (double)
x^2 - 6x + 9 = 0 1 -6 9 0 3 3 (double)
x^2 + x + 1 = 0 1 1 1 -3 -0.5 + 0.866i -0.5 - 0.866i
x^2 + 4x + 13 = 0 1 4 13 -36 -2 + 3i -2 - 3i
3x^2 - 12x + 12 = 0 3 -12 12 0 2 2 (double)

When to Use This Calculator

  • When solving algebra homework involving any quadratic equation, regardless of whether it factors neatly
  • When working on projectile motion problems in physics -- height as a function of time follows a quadratic pattern
  • When finding the break-even point or maximum profit in business optimization problems modeled by a quadratic
  • When you need to quickly determine whether an equation has real solutions before setting up a graph
  • When converting a quadratic to vertex form to identify the maximum or minimum value of a function

Common Mistakes

  1. Setting a = 0 -- if the x^2 coefficient is zero, the equation is linear (bx + c = 0), not quadratic. The formula requires a to be nonzero. Dividing by 2a with a = 0 produces an undefined result.
  2. Sign errors on b and c -- the formula applies to the standard form ax^2 + bx + c = 0. For example, in x^2 - 5x + 6 = 0, b = -5 (negative), not 5. Plugging in the wrong sign for b is one of the most common errors in manual calculations.
  3. Stopping at the discriminant being negative -- a negative discriminant does not mean the equation has no solutions. It means the solutions are complex numbers. Complex roots of the form a +/- bi are valid and appear in AC circuit analysis and signal processing.
  4. Forgetting to divide the entire numerator by 2a -- the formula is (-b +/- sqrt(D)) / 2a. A frequent error is computing -b +/- sqrt(D) and dividing only part of the expression by 2a instead of dividing the whole numerator.

Real-World Applications

Quadratic equations model any situation where a quantity depends on the square of a variable. In physics, the height of a projectile launched upward at 64 ft/s from a 48 ft platform follows h(t) = -16t^2 + 64t + 48; setting h = 0 and solving gives the time it hits the ground (t = 5 seconds). In civil engineering, the load-deflection relationship for a simply supported beam is quadratic, so engineers solve for the deflection at a given load using the formula. In economics, revenue functions often take the form R(p) = ap^2 + bp + c, where p is price; the vertex gives the price that maximizes revenue. In optics, the lens equation and the geometry of parabolic reflectors and satellite dishes are derived from quadratic relationships. In computer graphics, quadratic Bezier curves use the same mathematical structure to draw smooth paths between control points.

Tips

  • Always evaluate the discriminant D = b^2 - 4ac first -- it tells you immediately whether to expect two real roots, one repeated root, or complex roots
  • For projectile problems, set the height equation equal to the target altitude and solve: -16t^2 + v0*t + h0 = target_height
  • The sum of the two roots always equals -b/a and their product always equals c/a -- use these as a quick verification check after solving
  • Factoring is faster when the discriminant is a perfect square and the coefficients are small integers, but the formula works for every case
  • The vertex x-coordinate h = -b / (2a) can be used to find the maximum or minimum value without solving the full equation
  • If the parabola opens downward (a < 0), the vertex is a maximum -- important for profit and area optimization problems

Frequently Asked Questions

What does the discriminant tell you about a quadratic equation?
The discriminant is the expression under the square root in the quadratic formula: D = b^2 - 4ac. If D > 0, the equation has two distinct real solutions (the parabola crosses the x-axis twice). If D = 0, there is exactly one real solution, also called a repeated or double root (the parabola touches the x-axis at its vertex). If D < 0, there are no real solutions -- only two complex conjugate solutions (the parabola does not cross the x-axis at all).
Why does a quadratic equation always have exactly two solutions?
The Fundamental Theorem of Algebra states that every polynomial of degree n has exactly n roots (counting complex roots and multiplicities). Since a quadratic is degree 2, it always has exactly 2 roots. These may be two distinct real numbers, one repeated real number (counted twice), or two complex conjugate numbers (a + bi and a - bi). The quadratic formula x = (-b +/- sqrt(b^2 - 4ac)) / 2a produces both solutions through the +/- sign.
How does a quadratic equation relate to its graph?
The equation ax^2 + bx + c = 0 corresponds to a parabola on a graph. The solutions (roots) are the x-coordinates where the parabola crosses the x-axis. The vertex (the highest or lowest point) is at x = -b / 2a and y = c - b^2 / 4a. If a > 0 the parabola opens upward (minimum point), and if a < 0 it opens downward (maximum point). The axis of symmetry is the vertical line x = -b / 2a, which passes through the vertex.
What is completing the square and how does it relate to the quadratic formula?
Completing the square is the algebraic technique used to derive the quadratic formula itself. Starting from ax^2 + bx + c = 0, divide by a, move c/a to the right side, add (b/2a)^2 to both sides to form a perfect square trinomial, take the square root of both sides, and solve for x. The result is the quadratic formula: x = (-b +/- sqrt(b^2 - 4ac)) / 2a. Completing the square is also useful for converting quadratic equations to vertex form: a(x - h)^2 + k.
What are some real-world applications of quadratic equations?
Quadratic equations model projectile motion (the height of a ball thrown in the air follows h = -16t^2 + v0*t + h0), optimization problems (finding the maximum profit or minimum cost), area calculations (if a rectangle's area is fixed and one dimension depends on x), breaking distance of vehicles (which increases with the square of speed), and the trajectory of satellite dishes and parabolic reflectors. In physics, kinematics equations are fundamentally quadratic when acceleration is constant.
Embed this calculator

Add this free calculator to your website. Copy the code below and keep the attribution link - it's what keeps these tools free:

Cite this calculator

Copy this citation for papers, articles, or coursework:

Alex Crabinsky. "Quadratic Formula Calculator." Numeraty, February 24, 2026, https://numeraty.com/quadratic-formula-calculator/

Related Math & Science Calculators

Math & Science

Age Calculator

Free online Age Calculator -- find your exact age in years, months, days, weeks, and total days from your date of birth. Includes next birthday countdown and milestone tracking.

Math & Science

Basic Calculator

Free online Basic Calculator -- perform addition, subtraction, multiplication, division, exponents, and modulo operations. Instant results with up to 10 decimal places of precision.

Math & Science

Binary Hex Decimal Converter

Free online Binary, Hexadecimal, and Decimal Converter -- convert between base-2, base-10, and base-16 number systems instantly. Essential for programming, computer science, and digital electronics.

Math & Science

Date Calculator

Free online Date Calculator -- find the exact number of days, weeks, months, and years between any two dates. Calculate date differences for project planning, contracts, age verification, and event countdowns.

Math & Science

Fraction Calculator

Free online Fraction Calculator -- add, subtract, multiply, and divide fractions with automatic simplification. Shows results as fractions and decimals. Supports mixed numbers and improper fractions.

Math & Science

Fuel Consumption Converter

Free Fuel Consumption Converter -- convert between MPG (US), MPG (UK), L/100km, and km/L. Compare fuel economy ratings across US, UK, and metric systems for any vehicle.

Math & Science

GPA Calculator

Free online GPA Calculator -- compute your grade point average from letter grades and credit hours. Supports weighted and unweighted GPA on a 4.0 scale with instant results.

Math & Science

Grade Calculator

Free online Grade Calculator -- compute your weighted course grade from assignments, exams, and projects. Find out what score you need on your final exam to reach your target grade.

Math & Science

Logarithm Calculator

Free online Logarithm Calculator -- compute common log (base 10), natural log (ln), and logarithms of any base. Includes log rules, formulas, and real-world applications.

Math & Science

Matrix Calculator

Free online Matrix Calculator -- perform matrix addition, subtraction, multiplication, transposition, and find determinants and inverses. Supports 2x2 and 3x3 matrices with step-by-step results.

Math & Science

Mean Median Mode Calculator

Free online Mean, Median, and Mode Calculator -- enter a data set to instantly compute all three measures of central tendency plus range and count. Includes explanations of when to use each measure.

Math & Science

Percentage Calculator

Free online Percentage Calculator -- find a percentage of a number, calculate percentage increase or decrease, compute percentage change, and determine percentage difference. Instant results with formulas and examples.

Calculators