Creating and Interpreting Graphs

Learning Objectives

  • Explain how to construct a simple graph that shows the relationship between two variables

It’s important to know the terminology of graphs in order to understand and manipulate them. Let’s begin with a visual representation of the terms (shown in Figure 1), and then we can discuss each one in greater detail.

A standard graph with an x- and y-axis. There is a positive slope line and a negative slope line. Where the lines cross the x-axis is a x-intercept. Where the lines cross the y-axis is a y-intercept. Where the two lines cross is the intercept. Slope is defined as rise over run, or the slant of the line.

Figure 1. Graph Terminology.

Throughout this course we will refer to the horizontal line at the base of the graph as the x-axis. We will refer to the vertical line on the left hand side of the graph as the y-axis. This is the standard convention for graphs. In economics, we commonly use graphs with price (p) represented on the y-axis, and quantity (q) represented on the x-axis.

An intercept is where a line on a graph crosses (“intercepts”) the x-axis or the y-axis. Mathematically, the x-intercept is the value of x when y = 0. Similarly, the y-intercept is the value of y when x = 0. You can see the x-intercepts and y-intercepts on the graph above.

The point where two lines on a graph cross is called an intersection point.

The other important term to know is slope. The slope tells us how steep a line on a graph is as we move from one point on the line to another point on the line. Technically, slope is the change in the vertical axis divided by the change in the horizontal axis. The formula for calculating the slope is often referred to as the “rise over the run”—again, the change in the distance on the y-axis (rise) divided by the change in the x-axis (run).

Now that you know the “parts” of a graph, let’s turn to the equation for a line:

y = mx + b

In any equation for a line, m is the slope and b is the y-intercept.

Let’s use the same equation we used earlier, in the section on solving algebraic equations, y = 9 + 3x, which can also be written as:

y = 3x + 9

In this equation for a line, the b term is 9 and the m term is 3. The table below shows the values of x and y for this equation. To construct the table, just plug in a series of different values for x, and then calculate the resulting values for y.

Values for the Slope Intercept Equation
x y
0 9
1 12
2 15
3 18
4 21
5 24
6 27
Next we can place each of these points on a graph. We can start with 0 on the x-axis and plot a point at 9 on the y-axis. We can do the same with the other pairs of values and draw a line through all the points, as on the graph in Figure 2, below.
The line graph shows the following approximate points: (0, 9); (1, 12); (2, 15); (3, 18); (4, 21); (5, 24); (6, 27).

Figure 2. Slope and Algebra of a Straight Line.

This example illustrates how the b and m terms in an equation for a straight line determine the position of the line on a graph. As noted above, the b term is the y-intercept. The reason is that if x = 0, the b term will reveal where the line intercepts, or crosses, the y-axis. In this example, the line hits the vertical axis at 9. The m term in the equation for the line is the slope. Remember that slope is defined as rise over run; the slope of a line from one point to another is the change in the vertical axis divided by the change in the horizontal axis. In this example, each time the x term increases by 1 (the run), the y term rises by 3. Thus, the slope of this line is therefore 3/1 = 3. Specifying a y-intercept and a slope—that is, specifying b and m in the equation for a line—will identify a specific line. Although it is rare for real-world data points to arrange themselves as a perfectly straight line, it often turns out that a straight line can offer a reasonable approximation of actual data.

Watch It

Watch this video to take a closer look at graphs and how variables can be represented in graph form. NOTE: Around the two-minute mark, the narrator inadvertently says “indirect,” rather than “inverse.” This is corrected later in the video.

Try It


the point on a graph where a line crosses the vertical axis or horizontal axis
the change in the vertical axis divided by the change in the horizontal axis
a quantity that can assume a range of values
the horizontal line on a graph, commonly represents quantity (q) on graphs in economics
the vertical line on a graph, commonly represents price (p) on graphs in economics