Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

How to graph a function

A graph is a picture of every pair (x, y) that makes a function true. You can draw a good one by hand with a short table of values and two or three key points, then use a graphing calculator to check it.

By the Calcist team · Updated October 26, 2026 · About a 4-minute read

Step by step

  1. Make a table of values. Pick a few x values, including negatives and 0, and work out y for each.
  2. Find the y-intercept. Put x = 0. This is where the graph crosses the vertical axis.
  3. Find the x-intercepts (zeros). Solve y = 0. These are where the graph crosses the horizontal axis.
  4. Plot the points and join them with a smooth curve (or a straight line, for a linear function).
  5. Check the shape. Lines are straight, x² makes a U, x³ makes an S, 1/x has a gap at x = 0.

Example 1: a line, y = 2x + 1

x−2−1012
y−3−1135

The y-intercept is (0, 1). Setting 2x + 1 = 0 gives the x-intercept (−0.5, 0). The 2 in front of x is the slope: every step of 1 to the right goes 2 up.

Example 2: a parabola, y = x² − 4

x−3−2−10123
y50−3−4−305

The y-intercept is (0, −4), which is also the lowest point. Setting x² − 4 = 0 gives x = −2 and x = 2, so it crosses the x-axis at (−2, 0) and (2, 0). The table is symmetric, which is a quick check that the arithmetic is right.

Where two graphs meet

Graph both sides of an equation and the crossing points are its solutions. y = x² − 4 and y = 2x + 1 meet where x² − 4 = 2x + 1, that is x² − 2x − 5 = 0, so x = 1 ± √6 (about −1.449 and 3.449).

Use the graphing calculator

Open these two examples in Calcist's graphing calculator. It lists the intercepts for you, shows a table of values, and lets you trace any point by moving across the graph. For exact solutions with steps, use the equation solver.

Every worked example on this page was checked with Calcist's own engine and an independent reference.

Questions people ask

How do you graph a function?

Make a table of x and y values, find where the graph crosses the axes (the intercepts), plot the points and join them with a smooth curve.

How do you find the y-intercept?

Put x = 0 into the function. For y = 2x + 1 that gives y = 1, so the intercept is (0, 1).

How do you find the x-intercepts?

Set y = 0 and solve for x. For y = x² − 4, x² = 4 gives x = −2 and x = 2.