Basic Principles

How to Calculate a Linear Supply Function

Updated Jun 26, 2020

Supply and demand functions play a crucial role in economics. They help us analyze and understand the most fundamental economic concepts and issues (e.g., the law of supply and demand, calculating producer surplus). For the sake of simplicity, we often assume them to be linear, which makes it much easier to calculate them. Thus, in the following paragraphs, we will take a closer look at how to calculate a linear supply function. Fortunately, we can use the same four-step process we use to calculate a linear demand function, with a few subtle differences: (1) Write down the basic linear function, (2) find two ordered pairs of price and quantity, (3) calculate the slope of the supply function, and (4) calculate its x-intercept.

1) Write Down the Basic Linear Function

In its most basic form, a linear supply function looks as follows:  y = mx + b. In this case, x and y represent the independent and dependent variables. Meanwhile, m shows the slope of the function, and b represents its y-intersect (i.e., the point where the function intersects the y-axis). However, please note that in the supply and demand diagram, the two axis are flipped (for whatever reason). That means we have the independent variable (i.e., price) on the y-axis and the dependent variable (i.e., quantity) on the x-axis. Therefore, we’ll have to make some adjustments as we move along. For now, let’s start with the supply function of an imaginary candy bar factory, called SuperCandy. We will call the function Qs, with P being the price of candy bars in the market. Hence, the basic linear function in our example can be written as Qs = mP + b.

2) Find Two Ordered Pairs of Price and Quantity

To calculate a linear supply function, we need to know the quantities supplied for at least two different prices. This allows us to create what we call two ordered pairs (x1,y1) and (x2, y2). Note that each of these pairs represents the x and y coordinates of a point in the supply and demand diagram. You will usually find the information needed to create these ordered pairs in statements like “at a price of y, sellers are willing and able to sell x units of good A” or “when the price rises to y, the supply of good B increases to x.” Going back to our example, we’ll assume that at USD 2.00, SuperCandy is willing to sell 500 candy bars. Meanwhile, at USD 1.00, the company only sells 250 bars. With this information, we can create two ordered pairs (500,2) and (250,1).

3) Calculate the Slope of the Supply Function

With the two ordered pairs and the basic linear function, we can now calculate the slope of the supply function. The slope is defined as the change in price divided by the change in quantity supplied between two points (i.e., the two ordered pairs). However, in this case, we need the inverse slope because our axes are flipped, as explained above. Thus, we can use the following formula to calculate the slope: m = (x x1)/(y– y1). In the case of our example, the two ordered pairs are (2, 500) and (1, 250). That means the formula looks as follows: (250-500)/(1-2), which results in a slope of 250 (i.e., 250/-1). Please note that, unlike most demand functions, supply functions usually have a positive slope. That means, they slope upwards from left to right.

4) Calculate the x-Intercept of the Supply Function

Now that we have calculated the slope of the function, we can plug that value into the initial function (instead of m). Then all we need to do is plug in the values of one ordered pair, which allows us to calculate the x-intercept of the function (by solving the equation for b). Again, please note we are using the x-intercept because the axes are flipped. Revisiting our example, we can update the initial linear function to include the slope (i.e., Qs =  250P + b). Next, we replace P and Qs with the values of our first ordered pair (2, 500). This leaves us with the following equation: 500 = 250*2 + b. When we solve this for b (i.e., the x-intercept), we find that in this case, b = 0. Thus, the supply function is Qs = 250P + 0 (i.e. Qs = 250P).

5) Plug in the Second Ordered Pair to Validate your Result (Optional)

Last but not least, we can use the second ordered pair to double-check our result. Please note that this step is optional. However, it might come in handy during exams or quizzes. All we need to do is plug the values of the second pair into the supply function we just calculated and see if the equation is still correct. If we do this with the values from our example above (1, 250), we get the following equation: 250 = 250*1. As you can see, this equation still holds. Thus, the supply function we calculated above must be correct.

In a Nutshell

In economics, we often use linear supply and demand functions to make calculations. This makes it easier to work with them, which in turn allows us to analyze and understand a wide range of basic economic concepts. To calculate linear supply functions, we can follow a simple four-step process: (1) Write down the basic linear function, (2) find two ordered pairs of price and quantity, (3) calculate the slope of the supply function, and (4) calculate its y-intercept.