Quadratic Formula Calculator

Solve quadratic equations instantly. Find real and complex roots, discriminant, vertex, and graph properties. Step-by-step solutions with visual explanation.

Quadratic Formula Calculator

Solve ax² + bx + c = 0 with step-by-step solutions

ax² + bx + c = 0
Quick examples:

Quadratic Formula Calculator

Enter coefficients a, b, and c to solve ax² + bx + c = 0 with full step-by-step solutions

Free Quadratic Formula Calculator

Solve any quadratic equation instantly with our free quadratic formula calculator. Enter coefficients a, b, and c to find real or complex roots, see the discriminant analysis, vertex form, and a complete step-by-step breakdown of the solution.

What is a Quadratic Equation?

A quadratic equation is a second-degree polynomial equation in one variable. The standard form of a quadratic equation is written as ax² + bx + c = 0, where a, b, and c are real numbers and a ≠ 0. The term "quadratic" comes from the Latin word "quadratus," meaning square, because the variable is squared (raised to the second power).

Quadratic equations appear everywhere in mathematics and science. They model parabolic motion, describe the shape of satellite dishes, help engineers design arches and bridges, and play a central role in algebra and calculus. Any equation that can be rearranged into the standard form ax² + bx + c = 0 is a quadratic equation.

The highest exponent of the variable in a quadratic equation is always 2. This distinguishes it from linear equations (highest exponent 1) and cubic equations (highest exponent 3). Every quadratic equation has exactly two solutions, though they may be real or complex numbers, and they may be identical (repeated root).

The Quadratic Formula

The quadratic formula is a universal method for solving any quadratic equation. Given ax² + bx + c = 0, the solutions are:

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

This formula gives you both roots of the equation simultaneously. The "±" symbol means you calculate two values: one using addition and one using subtraction.

  • First root: x₁ = (-b + √(b² - 4ac)) / 2a
  • Second root: x₂ = (-b - √(b² - 4ac)) / 2a

The quadratic formula works for every quadratic equation, regardless of whether the roots are real numbers, complex numbers, rational, or irrational. It is derived by completing the square on the general form ax² + bx + c = 0.

Understanding the Discriminant

The discriminant is the expression under the square root in the quadratic formula: D = b² - 4ac. The discriminant determines the nature and number of roots without actually solving the equation.

Positive Discriminant (D > 0)

When b² - 4ac > 0, the equation has two distinct real roots. The parabola crosses the x-axis at two different points. This is the most common case. For example, x² - 5x + 6 = 0 has discriminant 25 - 24 = 1 > 0, giving roots x = 2 and x = 3.

Zero Discriminant (D = 0)

When b² - 4ac = 0, the equation has exactly one real root (a repeated root). The parabola touches the x-axis at exactly one point — its vertex lies on the x-axis. For example, x² - 6x + 9 = 0 has discriminant 36 - 36 = 0, giving the repeated root x = 3.

Negative Discriminant (D < 0)

When b² - 4ac < 0, the equation has no real roots. Instead, it has two complex conjugate roots. The parabola does not cross the x-axis at all. For example, x² + 1 = 0 has discriminant 0 - 4 = -4 < 0, giving complex roots x = i and x = -i.

How to Find Roots Step by Step

Solving a quadratic equation using the quadratic formula involves these steps:

  1. Write the equation in standard form: Rearrange to get ax² + bx + c = 0
  2. Identify the coefficients: Read off the values of a, b, and c
  3. Calculate the discriminant: Compute D = b² - 4ac
  4. Apply the quadratic formula: Substitute into x = (-b ± √D) / 2a
  5. Simplify: Calculate the two values of x

Example 1: Two Real Roots

Solve x² - 5x + 6 = 0

  • a = 1, b = -5, c = 6
  • Discriminant: (-5)² - 4(1)(6) = 25 - 24 = 1
  • x = (5 ± √1) / 2
  • x₁ = (5 + 1) / 2 = 3
  • x₂ = (5 - 1) / 2 = 2

The roots are x = 2 and x = 3.

Example 2: One Repeated Root

Solve x² - 4x + 4 = 0

  • a = 1, b = -4, c = 4
  • Discriminant: (-4)² - 4(1)(4) = 16 - 16 = 0
  • x = 4 / 2 = 2

The repeated root is x = 2.

Example 3: Complex Roots

Solve x² + 2x + 5 = 0

  • a = 1, b = 2, c = 5
  • Discriminant: (2)² - 4(1)(5) = 4 - 20 = -16
  • x = (-2 ± √(-16)) / 2
  • x = (-2 ± 4i) / 2
  • x₁ = -1 + 2i, x₂ = -1 - 2i

The roots are x = -1 + 2i and x = -1 - 2i.

Vertex Form of a Quadratic Equation

Every quadratic equation ax² + bx + c = 0 can be written in vertex form: a(x - h)² + k, where (h, k) is the vertex of the parabola.

The vertex coordinates are calculated as:

  • h = -b / (2a)
  • k = f(h) = a(h)² + b(h) + c

The vertex represents the maximum or minimum point of the parabola. If a > 0, the parabola opens upward and the vertex is the minimum point. If a < 0, the parabola opens downward and the vertex is the maximum point.

The vertex form is useful for graphing because it immediately tells you the location of the vertex and the direction of the parabola. Converting between standard form and vertex form involves a process called completing the square.

Graph Properties of a Quadratic Function

The graph of a quadratic function f(x) = ax² + bx + c is a parabola with several important properties:

  • Direction: If a > 0, the parabola opens upward. If a < 0, it opens downward.
  • Vertex: The point (h, k) where the parabola changes direction, at h = -b/(2a).
  • Axis of Symmetry: The vertical line x = h = -b/(2a) that divides the parabola into mirror images.
  • Y-intercept: The point where the parabola crosses the y-axis, always at (0, c).
  • X-intercepts (roots): The points where the parabola crosses the x-axis, found using the quadratic formula. There can be 0, 1, or 2 x-intercepts depending on the discriminant.

Real-World Applications

Projectile Motion

When an object is thrown, kicked, or launched into the air, its height over time follows a quadratic equation. The formula h(t) = -½gt² + v₀t + h₀ is a quadratic in time, where g is gravity, v₀ is initial velocity, and h₀ is initial height. Using the quadratic formula, you can determine when the object hits the ground, reaches its maximum height, or passes a specific elevation.

Area and Optimization

Quadratic equations arise in area optimization problems. For example, if you have a fixed length of fencing to enclose a rectangular area, the area is a quadratic function of one side length. The vertex of this quadratic gives the maximum area achievable.

Business and Economics

Profit functions are often quadratic. If revenue and cost are modeled as linear functions of quantity, then profit (revenue minus cost) becomes quadratic. The vertex reveals the quantity that maximizes profit.

Physics and Engineering

Quadratic equations model electrical circuits (RLC circuits), lens and mirror equations in optics, and stress-strain relationships in structural engineering. The resonance frequency of an RLC circuit involves solving a quadratic characteristic equation.

Satellite Dishes and Reflectors

Parabolic reflectors used in satellite dishes, flashlights, and car headlights are based on the quadratic curve. The quadratic function describes the shape of the dish, and the vertex represents the focal point where signals or light converge.

Frequently Asked Questions

What is the quadratic formula?

The quadratic formula is x = (-b ± √(b² - 4ac)) / 2a. It provides a direct method for finding the roots (solutions) of any quadratic equation in the form ax² + bx + c = 0. Simply substitute the values of a, b, and c into the formula to compute the solutions.

What does the discriminant tell you?

The discriminant D = b² - 4ac reveals the nature of the roots. If D > 0, there are two distinct real roots. If D = 0, there is one repeated real root. If D < 0, there are two complex conjugate roots with no real solutions.

Can the quadratic formula solve equations where a = 0?

No. If a = 0, the equation becomes linear (bx + c = 0) rather than quadratic. The quadratic formula requires a ≠ 0 because division by 2a is part of the formula. For linear equations, the solution is simply x = -c/b.

How is the quadratic formula derived?

The quadratic formula is derived by completing the square on the standard form ax² + bx + c = 0. First, divide everything by a. Then move the constant to the right side. Add (b/2a)² to both sides to create a perfect square trinomial on the left. Factor the left side, simplify the right side, and take the square root of both sides. Finally, isolate x to obtain the formula.

What are complex roots?

Complex roots occur when the discriminant is negative. They involve the imaginary unit i, where i = √(-1). Complex roots always come in conjugate pairs: if p + qi is a root, then p - qi is also a root. While complex roots cannot be plotted on a standard x-y graph, they are valid mathematical solutions.

How do I convert standard form to vertex form?

To convert ax² + bx + c to vertex form a(x - h)² + k, first calculate h = -b/(2a) and k = f(h). Alternatively, complete the square: factor out a from the first two terms, add and subtract (b/2a)² inside the parentheses, and rewrite as a perfect square.

When should I use the quadratic formula instead of factoring?

Factoring works well when the roots are integers or simple fractions, but it can be difficult or impossible for equations with irrational or complex roots. The quadratic formula always works for any quadratic equation. Use factoring for quick mental math on simple equations, and the quadratic formula for all other cases.

What is the relationship between roots and the x-intercepts?

The real roots of a quadratic equation correspond exactly to the x-intercepts of the parabola y = ax² + bx + c. If the discriminant is positive, the parabola crosses the x-axis twice. If zero, it touches the x-axis once at the vertex. If negative, the parabola does not cross the x-axis at all, meaning there are no real x-intercepts.

Why Use Our Quadratic Formula Calculator

  • Free and instant - No registration required, results in real time
  • All root types - Handles real, repeated, and complex roots automatically
  • Discriminant analysis - Color-coded feedback showing root type at a glance
  • Graph properties - Vertex, axis of symmetry, direction, and y-intercept
  • Factored form - Displays the factored form when real roots exist
  • Step-by-step solution - Every calculation step shown in detail
  • Quick examples - Load common equations with one click
  • Mobile friendly - Works perfectly on any device and screen size