Sub topic 7
Cross-price elasticity of demand: definition and calculation
This chapter assumes you know the law of demand, can compute a percentage change, and have met price elasticity of demand. It also assumes you can reason with ceteris paribus ("all else equal"). Here you will define cross-price elasticity, compute it with the midpoint method, and avoid the usual mistakes in setting up the calculation. The chapter after this one covers how to interpret the sign in detail.
What cross-price elasticity measures
Price elasticity of demand asks how the quantity demanded of a good responds to a change in its own price. Cross-price elasticity of demand asks a different question. It measures how the quantity demanded of good A responds to a change in the price of a different good B.
The definition is:
E_AB = (% change in quantity demanded of A) / (% change in price of B)
Three features of this definition matter in every calculation.
- The numerator is a quantity of good A. The denominator is a price of good B. Mixing these up is the most common error.
- The price of A, consumer income, tastes, and everything else that affects demand for A are held constant. This is ceteris paribus reasoning. The measured response is attributed only to the change in B's price.
- The result is a pure number with no units. A percentage divided by a percentage cancels the units, so you can compare cross-price elasticities for goods measured in liters, kilograms, or tickets.
The subscript order tells you the direction. EAB means "the response of A to the price of B." EBA is a separate quantity, and it will usually have a different value. This chapter does not explain why. The chapter on asymmetry does.
Why the sign and size carry information
The calculation produces a number with a sign and a magnitude. You will read them in later chapters, but a preview helps you check your work.
- A positive value means the price of B and the quantity of A move in the same direction. B's price rises and people buy more of A.
- A negative value means they move in opposite directions. B's price rises and people buy less of A.
- A value near zero means A's quantity barely reacts to B's price.
Unlike own-price elasticity, you should not drop the sign. For own price, the law of demand guarantees a negative value, so textbooks often report the absolute value. Cross-price elasticity has no such guarantee, and the sign is the main finding.
The midpoint method
A percentage change depends on which value you divide by. A rise from 100 to 110 is 10%, but the fall from 110 back to 100 is about 9.1%. The midpoint method removes this problem by dividing each change by the average of the starting and ending values.
For quantity of A moving from q0 to q1:
% change in quantity = (q1 − q0) / ((q1 + q0) / 2)
For the price of B moving from p0 to p1:
% change in price = (p1 − p0) / ((p1 + p0) / 2)
The elasticity is the first divided by the second. The result is the same whichever direction you travel along the interval, so the order of "before" and "after" does not matter as long as you keep the quantity pair and the price pair in the same order.
A worked example
The price of good B rises from 1.00 to 1.10. The quantity demanded of good A falls from 200 to 190. Nothing else changes.
- Percentage change in quantity of A: (190 − 200) / 195 = −10 / 195 ≈ −0.0513, or −5.13%.
- Percentage change in price of B: (1.10 − 1.00) / 1.05 = 0.10 / 1.05 ≈ 0.0952, or 9.52%.
- Divide: −0.0513 / 0.0952 ≈ −0.54.
So E_AB ≈ −0.54. A 1% rise in B's price is associated with about a 0.54% fall in the quantity of A. The negative sign means A and B move against each other. Goods like this are complements, such as printers and ink cartridges.
The same steps can be put in a function:
def midpoint_elasticity(x0, x1, q0, q1):
"""Elasticity of quantity q with respect to driver x (income or another good's price)."""
pct_q = (q1 - q0) / ((q1 + q0) / 2)
pct_x = (x1 - x0) / ((x1 + x0) / 2)
return pct_q / pct_x
# Price of good B rises from 1.00 to 1.10; quantity demanded of good A falls from 200 to 190.
cross_e = midpoint_elasticity(1.00, 1.10, 200, 190)
print(round(cross_e, 2)) # -0.54: negative sign, so A and B are complementsThe function is generic. For cross-price elasticity, pass B's prices as the driver and A's quantities as the response. The same function computes income elasticity if you pass income as the driver.
The calculation as a flow
The diagram shows what is held fixed and what is measured.
Point formula versus midpoint formula
Some courses compute percentage changes from the starting value:
EAB = (ΔQA / QA) / (ΔPB / P_B)
For the example above, this gives (−10/200) / (0.10/1.00) = −0.05 / 0.10 = −0.50. The midpoint result is −0.54. The two methods agree on the sign and roughly on the size, but they differ in the second digit. The gap grows as the change gets larger. State which method you used, and use one method throughout a comparison.
A third use of the point formula is for a calculus-based demand function QA(PB). There, the elasticity at a point is (∂QA/∂PB) × (PB/QA). Evaluating it at different points on the same demand function usually gives different values, unless the demand function has constant elasticity.
A second example: a positive result
Suppose the price of tea (good B) rises from 2.00 to 2.20, and the quantity of coffee (good A) demanded in a town rises from 500 to 530 cups per day.
- Quantity change: 30 / 515 ≈ 0.0583, or 5.83%.
- Price change: 0.20 / 2.10 ≈ 0.0952, or 9.52%.
- Ratio: 0.0583 / 0.0952 ≈ 0.61.
E_AB ≈ +0.61. Some tea drinkers switched to coffee, so the two move together. The positive sign points to substitutes.
A third case is an unrelated pair. If the price of B rises from 1.00 to 1.10 and the quantity of A stays at 300, the quantity change is 0 and E_AB = 0. A value of zero means no measured response over that interval. It does not prove the goods are unrelated in general.
The following code computes all three cases with both methods and checks its inputs:
def cross_price_elasticity(p_b0, p_b1, q_a0, q_a1, method="midpoint"):
"""Cross-price elasticity of A's quantity with respect to B's price."""
if p_b0 <= 0 or p_b1 <= 0 or q_a0 <= 0 or q_a1 <= 0:
raise ValueError("prices and quantities must be positive")
if p_b0 == p_b1:
raise ValueError("the price of B did not change; elasticity is undefined")
if method == "midpoint":
pct_q = (q_a1 - q_a0) / ((q_a1 + q_a0) / 2)
pct_p = (p_b1 - p_b0) / ((p_b1 + p_b0) / 2)
elif method == "point":
pct_q = (q_a1 - q_a0) / q_a0
pct_p = (p_b1 - p_b0) / p_b0
else:
raise ValueError("method must be 'midpoint' or 'point'")
return pct_q / pct_p
cases = [
("printer ink vs printers", 1.00, 1.10, 200, 190),
("coffee vs tea", 2.00, 2.20, 500, 530),
("unrelated pair", 1.00, 1.10, 300, 300),
]
for name, p0, p1, q0, q1 in cases:
mid = cross_price_elasticity(p0, p1, q0, q1)
pt = cross_price_elasticity(p0, p1, q0, q1, method="point")
print(f"{name}: midpoint={mid:.2f}, point={pt:.2f}")The output is:
printer ink vs printers: midpoint=-0.54, point=-0.50
coffee vs tea: midpoint=0.61, point=0.60
unrelated pair: midpoint=0.00, point=0.00Using the result to forecast
Once you have an estimate of E_AB, you can predict how demand for A responds to a price change in B:
% change in quantity of A ≈ E_AB × % change in price of B
If EAB = −0.54 and B's price rises by 5%, the quantity of A falls by about 0.54 × 5 = 2.7%. This is an approximation. It is reliable for modest changes near the range where you measured EAB. It becomes less reliable for large changes, because the elasticity itself can change along the demand curve.
Common errors
| Error | What goes wrong | Fix |
|---|---|---|
| Using A's own price in the denominator | You compute own-price elasticity, not cross-price | Use the price of the other good, B |
| Using B's quantity in the numerator | You measure the wrong response | Use the quantity demanded of A |
| Dropping the sign | You lose the information about substitutes or complements | Keep the sign |
| Mixing the order of before and after | Percentages for quantity and price come from different directions, and the sign flips | Use the same order, old then new, for both |
| Letting other factors change | Income or A's own price also moved, so the response is not due to B | Control for them, or compute only when they are fixed |
| Reading E_AB as E_BA | The two values usually differ | Check the subscript order |
Practice
Exercise
The price of good B rises from 5.00 to 5.50. The quantity demanded of good A rises from 80 to 88. Compute the cross-price elasticity of A with respect to B using the midpoint method, and state the sign.
Show answer
Quantity change: (88 − 80) / 84 = 8 / 84 ≈ 0.0952. Price change: (5.50 − 5.00) / 5.25 = 0.50 / 5.25 ≈ 0.0952. E_AB = 0.0952 / 0.0952 = 1.00. The sign is positive, so the quantity of A moves in the same direction as the price of B.
Exercise
A study finds E_AB = −0.8. The price of B is expected to rise by 5%, and nothing else changes. Roughly how much will the quantity demanded of A change? Which good's price and which good's quantity appear in this elasticity?
Show answer
% change in quantity of A ≈ −0.8 × 5% = −4%, so the quantity of A falls by about 4%. The price is that of B (the denominator) and the quantity is that of A (the numerator).
Exercise
A student calculates the elasticity with the quantity of A going from 200 to 190 but uses the price of B going from 1.10 to 1.00, in the reverse order. What happens to the result, and how do you fix it?
Show answer
The price change becomes −0.0952 while the quantity change is −0.0513, so the ratio is about +0.54 instead of −0.54. The sign flips and gives the wrong conclusion about the relationship. Fix it by keeping both pairs in the same order, such as old then new, so that the price of B rises from 1.00 to 1.10 while the quantity of A falls from 200 to 190.