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.
Loading calculator
Preparing Quadratic Formula Calculator...
Reviewed & Methodology
Every calculator is built using industry-standard formulas, validated against authoritative sources, and reviewed by a credentialed financial professional. All calculations run privately in your browser - no data is stored or shared.
How to Use the Quadratic Formula Calculator
- 1. Enter coefficient a - type the coefficient of the x-squared term (must not be zero).
- 2. Enter coefficient b - type the coefficient of the x term.
- 3. Enter coefficient c - type the constant term.
- 4. View both solutions - the calculator shows x1 and x2 using the quadratic formula, plus the discriminant value.
- 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
- 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.
- 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.
- 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.
- 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?
Why does a quadratic equation always have exactly two solutions?
How does a quadratic equation relate to its graph?
What is completing the square and how does it relate to the quadratic formula?
What are some real-world applications of quadratic equations?
Explore More Math & Science Tools
Related Math & Science Calculators
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 & ScienceBasic 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 & ScienceBinary 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 & ScienceDate 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.