GraphingCalculator.io

Algebra · Step-by-step guide

How to solve quadratic equations by graphing

Graph the quadratic expression and look where its parabola meets the x-axis. This guide focuses on finding and verifying the equation’s real roots.

Solve a quadratic by graphing in four steps

To solve a quadratic equation by graphing, first put zero on one side. Graph the expression on the other side as y. The real solutions are the x-values where the graph crosses or touches the x-axis. Check each value in the original equation before reporting your answer.

Core idea

At an x-intercept, y equals zero. That is exactly what the quadratic equation asks you to find.

Graphing makes the roots visible and shows how they relate to the whole parabola. It also reveals whether there are two distinct real solutions, one repeated real solution, or no real solutions.

Why do x-intercepts solve the equation?

A quadratic equation can be written in the standard form ax² + bx + c = 0, where a is not zero. Now graph y = ax² + bx + c. Every point on the graph connects an x-value to the value of the quadratic expression.

The x-axis is the line y = 0. When the parabola meets this axis, the quadratic expression equals zero. Therefore, the x-coordinate of each meeting point is a solution to the original equation.

These solutions are also called roots or zeros. The points on the graph are x-intercepts. The words describe closely related ideas, but the answer to the equation is usually written as x-values rather than coordinate pairs.

Worked example: solve x² − 5x + 6 = 0

We will solve this quadratic equation by graphing:

x² − 5x + 6 = 0
  1. 01
    Check that zero is on one side.

    The equation is already in the form ax² + bx + c = 0, so no rearrangement is needed.

  2. 02
    Turn the expression into a function.

    Enter or draw y = x² − 5x + 6. Its graph is an upward-opening parabola.

  3. 03
    Find the x-intercepts.

    The parabola crosses the x-axis at (2, 0) and (3, 0).

  4. 04
    Read and verify the roots.

    The x-coordinates are 2 and 3. Substitute both values into the original equation.

Parabola crossing the x-axis at two and threeThe graph of y equals x squared minus five x plus six crosses the x-axis at the labeled roots two and three. Its vertex lies slightly below the x-axis.y = x² − 5x + 6(2, 0)(3, 0)vertex (2.5, −0.25)023xy
The parabola crosses the x-axis twice, so the equation has two distinct real solutions: x = 2 and x = 3.

Verify both roots

Try x = 22² − 5(2) + 6 = 0 ✓
Try x = 33² − 5(3) + 6 = 0 ✓

Both substitutions equal zero. Therefore, the verified solutions are x = 2 and x = 3. The intercepts are the points (2, 0) and (3, 0), but the roots themselves are 2 and 3.

The three possible real-root cases

The position of the parabola relative to the x-axis tells you how many real solutions the quadratic equation has.

Crosses twice

Two real solutions

The parabola passes through the x-axis at two different points. The discriminant is positive.

Touches once

One repeated solution

The vertex touches the x-axis without crossing it. The discriminant equals zero.

Never meets

No real solutions

The parabola stays above or below the x-axis. The discriminant is negative.

“No real solutions” does not mean that the equation has no solutions of any kind. A quadratic has two complex solutions when complex numbers are included. Those complex roots do not appear as x-intercepts on an ordinary real coordinate graph.

How the vertex and discriminant help

The vertex is the highest or lowest point of a parabola. If an upward-opening parabola has its vertex below the x-axis, it crosses the axis twice. If the vertex sits on the axis, the equation has one repeated real root. If the vertex is above the axis, there are no real roots.

The discriminant gives the same classification using numbers. For ax² + bx + c = 0, the discriminant is b² − 4ac. In our example, a = 1, b = −5, and c = 6. The discriminant is 25 − 24 = 1. Since 1 is positive, the graph must have two distinct real x-intercepts.

The axis of symmetry also helps you check the picture. It lies halfway between the two roots. The midpoint of 2 and 3 is 2.5, which matches the example’s axis of symmetry, x = 2.5.

How to graph a quadratic by hand

  1. Identify a, b, and c. The sign of a tells you whether the parabola opens upward or downward.
  2. Find the axis of symmetry. Use x = −b/(2a).
  3. Find the vertex. Substitute the axis value into the quadratic to calculate y.
  4. Plot the y-intercept. Set x = 0, which gives the point (0, c).
  5. Create more points. Choose x-values on both sides of the axis and calculate matching y-values.
  6. Draw a smooth parabola. Use symmetry and do not connect the points with sharp corners.
  7. Read the x-intercepts. Estimate where the curve crosses or touches y = 0.

Use a window and scale that show the vertex and likely intercepts. A poor window can hide roots that exist. If an intercept falls between grid marks, record it as an estimate until algebra confirms it.

What if zero is not already on one side?

Suppose you need to solve x² + 1 = 3x. You can graph y = x² + 1 and y = 3x, then find their intersections. You can also move every term to one side and graph y = x² − 3x + 1. Its x-intercepts give the same x-values.

Rearranging into a zero equation makes the connection to x-intercepts clearer. Graphing both sides can be useful when you want to see why the two expressions are equal at a solution. Either method should lead to the same real roots when the graph is read accurately.

Graphing both sides uses the same shared-point idea as solving a system of equations by graphing: a solution is an x-value where both expressions produce the same y-value.

How to use our calculators

In the main graphing workspace, enter y = x² − 5x + 6. Adjust the viewing window until you can see the vertex and both x-intercepts. If you need help with those controls, follow the step-by-step graphing calculator guide. Use the graph to explore the shape and estimate the roots.

For exact quadratic details, open the dedicated quadratic calculator and enter a = 1, b = −5, and c = 6. It reports the discriminant, roots, vertex, and axis of symmetry. You can then transfer the parabola into the full graphing workspace for further exploration.

Compare the calculator’s roots with the intercepts, then use the substitution checks above to confirm them.

Common mistakes to avoid

  • Reading y-values instead of x-values. The roots are the x-coordinates of the intercepts.
  • Forgetting to set the equation equal to zero. X-intercepts solve the equation only when the graphed expression is compared with zero.
  • Losing a negative sign. Keep signs attached to their coefficients when rearranging.
  • Using a narrow graph window. A root may exist outside the visible area.
  • Assuming a visual estimate is exact. Verify roots by substitution, factoring, or the quadratic formula.
  • Saying “no solutions” too broadly. No x-intercepts means no real solutions, not no complex solutions.

Common questions

How do you solve a quadratic equation by graphing?

Put zero on one side, graph the expression on the other side, and read the x-coordinates where the parabola crosses or touches the x-axis.

What if a quadratic graph does not cross the x-axis?

Not crossing is not enough to decide. If the parabola touches the x-axis, it has one repeated real root, as y = x² does at x = 0. If it neither crosses nor touches the axis, it has no real roots and two non-real complex roots.

How can you check roots found on a graph?

Substitute each x-value into the original quadratic equation. A correct root makes the expression equal zero.

See every part clearly

Try the quadratic example.

Open y = x² − 5x + 6 with the graph already loaded. Find the intercepts at 2 and 3, then check them by substitution.

Open this example in a new tab

Opens a separate editable copy in a new tab. Your existing graphs stay saved.