Calculators PlanetCalculators Planet
HomeFinancialMathHealthOtherBlogAboutContact
Calculators PlanetCalculators Planet

Fast, accurate, and user-friendly online calculators for all your needs.

Financial

  • Mortgage Calculator
  • Amortization Calculator
  • Mortgage Payoff Calculator
  • House Affordability Calculator
  • Rent Calculator

Math

  • Decimal to Fraction Calculator
  • Significant Figures Calculator
  • Percentage Calculator
  • Fraction Calculator
  • Ratio Calculator

Health

  • BMI Calculator
  • Ideal Weight Calculator
  • Body Fat Calculator
  • Calorie Calculator
  • Macro Calculator

Other

  • Age Calculator
  • Date Calculator
  • Time Calculator
  • Hours Calculator
  • Time Card Calculator

2026 Calculators Planet. All rights reserved.

BlogAboutContactPrivacy PolicyCookie PolicyTerms of ServiceDisclaimer
Calculators PlanetCalculators Planet
HomeFinancialMathHealthOtherBlogAboutContact
HomeMathQuadratic Equation Calculator

Quadratic Equation Calculator

Solve any quadratic equation of the form ax² + bx + c = 0. Enter the three coefficients and get the roots, discriminant, vertex, axis of symmetry, and full step-by-step working using the quadratic formula.

Share:
Quadratic Equation Calculator
ax² + bx + c = 0
Equation: 1x² -5x +6 = 0

Quadratic Formula:

x = (-b ± √(b² - 4ac)) / 2a

Two Real Roots

x₁ = 3

x₂ = 2

Step-by-Step Solution

Step 1: Write the formula

x = (-b ± √(b² - 4ac)) / 2a

Step 2: Substitute values

x = (--5 ± √(-5² - 4×1×6)) / (2×1)

Step 3: Calculate discriminant

b² - 4ac = -5² - 4×1×6 = 25 - 24 = 1

Step 4: Find both roots

x₁ = (5 + √1) / 2 = 3 x₂ = (5 - √1) / 2 = 2

Discriminant (b² - 4ac)

1

Positive: 2 real roots

Axis of Symmetry

x = 2.5

Vertex
Vertex (h, k)(2.5, -0.25)
OpensUpward (minimum)

Introduction

Maya, a high school junior in Oakland, is working on her algebra homework. The problem asks her to find when a ball thrown upward at 20 meters per second from a height of 5 meters will hit the ground. The equation is -4.9t squared plus 20t plus 5 equals 0. She stares at it. She tries factoring, but the numbers do not work out cleanly. She tries completing the square, but makes an arithmetic error on the second step. Frustrated, she wonders if there is a tool that just gives her the answer and shows the work.

Quadratic equations are polynomial equations of degree two, written in the standard form ax squared plus bx plus c equals 0. The term "quadratic" comes from the Latin "quadratus," meaning square, referring to the x squared term. The Persian mathematician al-Khwarizmi, working in Baghdad around 820 CE, was the first to systematically solve quadratic equations in his book Al-Jabr, which gave us the word "algebra." His methods were geometric rather than symbolic, but the underlying mathematics is the same. According to Khan Academy, quadratic equations are among the most frequently used equations in applied mathematics.

Quadratic equations appear in physics (projectile motion), engineering (structural calculations), finance (profit optimization), and computer graphics (parabolic curves). Solving them accurately is a core skill in algebra and applied mathematics. This calculator solves any quadratic equation instantly and shows the discriminant, roots, vertex, and axis of symmetry with step-by-step working.

Inputs Required

  • Coefficient a: The coefficient of x squared (cannot be zero)
  • Coefficient b: The coefficient of x
  • Constant c: The constant term

Outputs Provided

  • Roots: Real or complex solutions for x
  • Discriminant: The value b squared minus 4ac, which determines the nature of the roots
  • Vertex: The highest or lowest point of the parabola
  • Axis of symmetry: The vertical line through the vertex

How the Calculation Works

The Quadratic Formula

x = (-b ± √(b² - 4ac)) / 2a

This formula always produces the roots of a quadratic equation. The plus-minus symbol means there are two solutions: one using addition and one using subtraction of the square root term. Wolfram MathWorld provides a detailed derivation showing how this formula is derived by completing the square on the standard form.

The Discriminant

Discriminant = b² - 4ac

The discriminant is the value under the square root sign in the quadratic formula. Its sign tells you the nature of the roots without solving the full equation:

  • Positive discriminant: Two distinct real roots. The parabola crosses the x-axis at two points
  • Zero discriminant: One repeated real root. The parabola touches the x-axis at exactly one point (its vertex)
  • Negative discriminant: Two complex (imaginary) roots. The parabola does not cross the x-axis

Vertex of the Parabola

h = -b / (2a)

k = c - b² / (4a)

The vertex (h, k) is the highest or lowest point of the parabola. If a is positive, the parabola opens upward and the vertex is a minimum. If a is negative, it opens downward and the vertex is a maximum.

How to Use the Calculator

  1. Identify the coefficients a, b, and c from your equation in standard form ax squared plus bx plus c equals 0
  2. Enter the value of a (the coefficient of x squared). Note: a cannot be zero
  3. Enter the value of b (the coefficient of x)
  4. Enter the value of c (the constant term)
  5. Results display instantly, including roots, discriminant, vertex, and axis of symmetry

Example Calculations

Example 1: Two Real Roots

Solve x squared minus 5x plus 6 equals 0. Here a = 1, b = -5, c = 6. Discriminant: (-5) squared minus 4(1)(6) = 25 - 24 = 1. Roots: x = (5 plus or minus 1) / 2. So x1 = 3 and x2 = 2. The parabola crosses the x-axis at x = 2 and x = 3. The vertex is at h = 5/2 = 2.5, k = 6 - 25/4 = -0.25, which is the minimum point of the parabola.

Example 2: Maya's Projectile Problem

Maya's ball equation: -4.9t squared plus 20t plus 5 equals 0. Here a = -4.9, b = 20, c = 5. Discriminant: 400 - 4(-4.9)(5) = 400 + 98 = 498. Roots: t = (-20 plus or minus √498) / (2 x -4.9) = (-20 plus or minus 22.32) / -9.8. So t1 = (-20 + 22.32) / -9.8 = -0.237 (discard, negative time) and t2 = (-20 - 22.32) / -9.8 = 4.32 seconds. The ball hits the ground after approximately 4.32 seconds. The vertex gives the maximum height at t = 20 / (2 x 4.9) = 2.04 seconds, with a height of -4.9(2.04) squared plus 20(2.04) plus 5 = 25.4 meters.

Real-World Scenarios

Projectile Motion in Physics

A physics student in Boston launches a rocket straight up at 30 meters per second from ground level. The height equation is h = -4.9t squared plus 30t. Setting h = 0 gives t(-4.9t + 30) = 0, so t = 0 (launch) or t = 30/4.6 = 6.12 seconds (landing). The maximum height occurs at the vertex: t = 30 / (2 x 4.9) = 3.06 seconds, h = -4.9(3.06) squared plus 30(3.06) = 45.9 meters. Quadratic equations model every projectile affected by gravity, from basketballs to artillery shells.

Profit Optimization in Business

A bakery in Portland models its daily profit as P = -0.5n squared plus 40n minus 200, where n is the number of cakes sold. The vertex gives the profit-maximizing quantity: n = -40 / (2 x -0.5) = 40 cakes. Maximum profit: P = -0.5(40) squared plus 40(40) minus 200 = -800 + 1600 - 200 = $600. Setting P = 0 gives the break-even points: n = (-40 plus or minus √(1600 - 400)) / -1 = (-40 plus or minus 34.64) / -1, so n = 5.36 or n = 74.64. The bakery breaks even at about 6 cakes and loses money below that threshold. For more business calculations, see our ROI Calculator.

Engineering and Parabolic Design

A civil engineer in Denver designs a parabolic arch bridge. The arch follows y = -0.01x squared plus 0.8x, where x is the horizontal distance in meters from the left support. The maximum height occurs at the vertex: x = -0.8 / (2 x -0.01) = 40 meters, y = -0.01(1600) plus 0.8(40) = 16 meters. The arch spans from x = 0 to x = 80 (where y = 0), giving an 80-meter bridge with a 16-meter peak. Quadratic equations describe parabolic satellite dishes, reflector surfaces, and suspension bridge cables. For related math tools, try our Slope Calculator or our Scientific Calculator.

Why This Calculation Matters

Quadratic equations are among the most frequently used equations in applied mathematics. Whether you are studying algebra, solving physics problems, or optimizing a business model, being able to quickly and accurately find the roots and properties of a quadratic saves significant time and reduces the chance of errors from manual calculation. Al-Khwarizmi's methods from 1,200 years ago remain relevant today in every field that models parabolic relationships.

Common Mistakes to Avoid

  • Setting a to zero: When a = 0, the equation becomes linear (bx + c = 0), not quadratic. The quadratic formula does not apply
  • Sign errors with b: The formula uses -b, not b. Forgetting to negate b is the most common arithmetic error when applying the formula by hand
  • Misinterpreting complex roots: Complex roots do not mean there is no solution; they mean the parabola does not intersect the real number line (x-axis)
  • Assuming a positive leading coefficient: When a is negative, the parabola opens downward. The vertex becomes a maximum rather than a minimum
  • Not rewriting to standard form first: The equation must be in ax squared plus bx plus c equals 0 form. Move all terms to one side before identifying a, b, and c

Limitations of This Calculator

This calculator solves quadratic equations (degree 2 polynomials) only. It cannot solve cubic equations (degree 3), quartic equations (degree 4), or higher-order polynomials. It does not solve systems of equations or equations with multiple variables. The calculator uses floating-point arithmetic, which can produce small rounding errors for equations with very large or very small coefficients. For equations where the discriminant is extremely close to zero, the calculator may display one root or two nearly identical roots depending on floating-point precision.

Frequently Asked Questions

What does the discriminant tell me?
The discriminant (b squared minus 4ac) reveals how many real solutions exist without fully solving the equation. If it is positive, there are two distinct real roots. If it is zero, there is exactly one repeated real root. If it is negative, the two roots are complex numbers involving imaginary values, meaning the parabola never touches the x-axis. The discriminant also tells you how the parabola intersects the x-axis: two crossings for a positive discriminant, one touch for zero, and no intersection for negative.
What are complex roots and when do they occur?
Complex roots occur when the discriminant is negative. They take the form a plus or minus bi, where i is the imaginary unit (the square root of -1). Complex roots always come in conjugate pairs. In physical applications, complex roots often indicate that a situation described by the equation cannot occur in the real world, such as a projectile that never lands or a profit function that never reaches zero. Complex numbers are valid mathematical results and are used extensively in electrical engineering, quantum physics, and signal processing.
Can I solve a quadratic equation by factoring instead?
Yes, factoring is faster when the equation has simple integer roots. For example, x squared minus 5x plus 6 equals 0 factors to (x minus 2)(x minus 3) equals 0, giving roots x = 2 and x = 3. However, not all quadratics factor neatly over integers. The quadratic formula always works, regardless of whether the roots are whole numbers, decimals, or complex numbers. Factoring is a useful skill to learn first, but the quadratic formula is the universal method that never fails.
What is the vertex and why does it matter?
The vertex is the turning point of the parabola described by the quadratic function. Its x-coordinate is h = -b / (2a) and its y-coordinate is the minimum (when a is positive) or maximum (when a is negative) value of the function. In applied problems, the vertex often represents an optimal solution, such as the maximum height of a projectile, the profit-maximizing price, or the minimum cost of production. Finding the vertex is just as important as finding the roots in many real-world applications.
What happens if I enter a = 0?
When a = 0, the x squared term disappears and the equation becomes linear: bx plus c equals 0. The quadratic formula requires a to be non-zero because dividing by 2a would involve division by zero. The calculator detects this and notifies you that the equation is not quadratic. A linear equation has exactly one solution: x = -c / b (when b is not zero).
Who invented the quadratic formula?
The Persian mathematician al-Khwarizmi, working in Baghdad around 820 CE, was the first to systematically solve quadratic equations in his book Al-Jabr, which gave us the word "algebra." His methods were geometric rather than symbolic. The modern symbolic form of the quadratic formula emerged in the 16th century with the work of Francois Viete and Rene Descartes. The method of completing the square, which derives the formula, was known to al-Khwarizmi and even earlier to Babylonian mathematicians.
What is completing the square?
Completing the square is a method for solving quadratic equations by rewriting the equation so that one side is a perfect square trinomial. Starting with ax squared plus bx plus c equals 0, you divide by a, move c to the other side, add (b/2a) squared to both sides, factor the left side as (x plus b/2a) squared, and take the square root. This method is how the quadratic formula is derived. It is also useful for converting a quadratic equation into vertex form, which directly reveals the vertex coordinates.
How is this different from the quadratic formula calculator?
This calculator focuses on solving the quadratic equation and showing the results: roots, discriminant, vertex, and axis of symmetry. The quadratic formula calculator shows a step-by-step breakdown of the solution process, displaying each intermediate calculation so you can follow or verify the working. If you just need the answer, use this calculator. If you want to see how the answer was derived step by step, use the quadratic formula calculator.

Related Calculators

Exponent Calculator

Calculate powers and exponents

Percentage Calculator

Calculate percentages and percentage changes

Pythagorean Theorem Calculator

Calculate triangle sides using the Pythagorean theorem

Embed This Calculator

Quadratic Equation Calculator

Calculate
Reset
Calculators PlanetCalculators Planet

Fast, accurate, and user-friendly online calculators for all your needs.

Financial

  • Mortgage Calculator
  • Amortization Calculator
  • Mortgage Payoff Calculator
  • House Affordability Calculator
  • Rent Calculator

Math

  • Decimal to Fraction Calculator
  • Significant Figures Calculator
  • Percentage Calculator
  • Fraction Calculator
  • Ratio Calculator

Health

  • BMI Calculator
  • Ideal Weight Calculator
  • Body Fat Calculator
  • Calorie Calculator
  • Macro Calculator

Other

  • Age Calculator
  • Date Calculator
  • Time Calculator
  • Hours Calculator
  • Time Card Calculator

2026 Calculators Planet. All rights reserved.

BlogAboutContactPrivacy PolicyCookie PolicyTerms of ServiceDisclaimer