Quadratic Formula Solver

Solve ax² + bx + c = 0, get real/complex roots, vertex, and a plot.

Tip: Works with any real numbers. If a = 0, we solve the linear equation bx + c = 0.
Results
Discriminant (Δ)1
OpensUpward (a > 0)
Axis of symmetry (x)x = 1.5
Vertex (x, y)(1.5, -0.25)
y-intercept(0, 2)
Roots
x₁ = 2, x₂ = 1
Advertisement
About This Quadratic Formula Solver
Enter coefficients a, b, and c for ax² + bx + c = 0 to get exact real or complex roots, discriminant, vertex, axis of symmetry, y-intercept, and a live graph of the parabola. Automatically handles linear and special cases when a = 0.

How the Quadratic Formula Solver Works

This Quadratic Formula Solver is built to handle everything from standard textbook problems to edge cases in one place. It solves equations of the form ax² + bx + c = 0, supports both real and complex roots, automatically detects linear and degenerate cases when a = 0, and visualizes the corresponding parabola so you can see exactly how the algebra translates into a graph.

Step 1: Inputs & Validation

Start by entering your coefficients:

  • a: any real number (if a = 0, the equation is treated as linear).
  • b: any real number.
  • c: any real number (also the y-intercept of the graph).
  • Precision: choose how many decimal places (0–12) to show in all numeric outputs.

Inputs are validated to ensure they are finite numbers. Invalid entries are flagged with clear inline messages so you never have to guess what went wrong.

Step 2: Detecting Linear & Special Cases

Before applying the quadratic formula, the solver checks your coefficients:

  • If a = 0 and b ≠ 0, it solves the linear equation bx + c = 0 and showsx = -c / b.
  • If a = 0, b = 0, c ≠ 0, it reports that no solution exists.
  • If a = 0, b = 0, c = 0, it reports infinitely many solutions.

These branches ensure you always get the correct interpretation of your equation, even when it isn't truly quadratic.

Step 3: Quadratic Formula, Discriminant & Roots

When a ≠ 0, the solver applies the standard quadratic formula:

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

It calculates the discriminant Δ = b² - 4ac and uses it to classify the roots:

  • Δ > 0: two distinct real roots.
  • Δ = 0: one real double root.
  • Δ < 0: two complex conjugate roots, shown asp ± qi.

All values use your selected precision while keeping the underlying computation consistent and accurate for typical problem ranges.

Parabola Features & Graph

For valid quadratics, the solver doesn't stop at roots. It also gives:

  • Axis of symmetry: x = -b / (2a).
  • Vertex: (xᵥ, yᵥ) with xᵥ = -b / (2a), yᵥ = f(xᵥ).
  • Opening direction: up if a > 0, down if a < 0.
  • y-intercept: (0, c).

It then samples points around the vertex to render a smooth parabola on a coordinate grid with axis lines and the axis of symmetry highlighted. This visual context helps you see how changing a, b, and c affects the shape and position of the graph.

Scope & Educational Use

This Quadratic Formula Solver is ideal for:

  • Checking homework and exam solutions.
  • Exploring how coefficients change roots, vertex, and graph in real time.
  • Teaching the connection between algebraic form, discriminant, and geometric interpretation.

It focuses on fast, accurate solutions and clear visualization. It does not attempt symbolic proofs, solve higher-degree polynomials, or replace full-featured CAS tools—making it streamlined, reliable, and perfect for students and educators.

Advertisement
Advertisement