To calculate the slope of a graph, you need to determine the change in y divided by the change in x between any two points on the line. You can do this by selecting two points on the line and using the formula: slope = (y2 - y1) / (x2 - x1). Once you have calculated the slope, you can use it to analyze the behavior of the physical phenomenon represented by the graph.