Sub topic 6
The midpoint formula
This chapter assumes you know how to compute a percentage change, what the law of demand says, and the simple elasticity formula from the previous chapter. No calculus is needed here.
The problem the midpoint formula solves
The simple formula divides each change by the starting value. A change from 100 to 90 is -10%. A change from 90 back to 100 is +11.1%. The same two points give different percentages depending on which one you call "start."
That makes the simple elasticity depend on the direction of travel. Take a price rise from 10 to 12 that cuts quantity from 100 to 90:
- Going up (10 to 12, 100 to 90): (-10/100) / (2/10) = -0.50
- Going down (12 to 10, 90 to 100): (10/90) / (-2/12) = -0.67
Both are measurements of the same demand behavior between the same two points, yet they disagree. The gap grows as the change gets larger. The midpoint formula removes the disagreement by choosing a base that does not depend on direction.
The formula
Divide each change by the average of its two endpoint values:
- % change in quantity = (Q2 - Q1) / ((Q1 + Q2) / 2)
- % change in price = (P2 - P1) / ((P1 + P2) / 2)
- Elasticity = % change in quantity / % change in price
The result is also called arc elasticity, because it describes the average responsiveness along the stretch (the arc) of the demand curve between the two points.
The "midpoint" in the name refers to the averages used as bases. Those averages are the same whichever endpoint you call first.
Why direction no longer matters
Swap the two observations. The numerators (Q2 - Q1) and (P2 - P1) both change sign. The averages are unchanged, because addition is commutative. Both percentage changes flip sign, so their ratio stays the same.
Worked example 1: a price rise
A seller raises the price from 10 to 12, and quantity demanded falls from 100 to 90.
- Quantity: change = 90 - 100 = -10. Average = (100 + 90) / 2 = 95. Percentage change = -10 / 95 = -0.1053, about -10.5%.
- Price: change = 12 - 10 = 2. Average = (10 + 12) / 2 = 11. Percentage change = 2 / 11 = 0.1818, about 18.2%.
- Elasticity = -0.1053 / 0.1818 = -0.58.
The absolute value 0.58 is below 1, so demand is inelastic over this range. Quantity moved by a smaller percentage than price did.
The next section turns this into code and compares it with the simple formula.
Computing it in Python
def simple_elasticity(p1, q1, p2, q2):
pct_dq = (q2 - q1) / q1
pct_dp = (p2 - p1) / p1
return pct_dq / pct_dp
def midpoint_elasticity(p1, q1, p2, q2):
if p1 == p2:
raise ValueError("Prices are equal, so the percentage change in price is zero.")
avg_q = (q1 + q2) / 2
avg_p = (p1 + p2) / 2
if avg_p == 0 or avg_q == 0:
raise ValueError("An average of zero makes the percentage change undefined.")
pct_dq = (q2 - q1) / avg_q
pct_dp = (p2 - p1) / avg_p
return pct_dq / pct_dp
# Price rises from 10 to 12, quantity falls from 100 to 90
print(round(simple_elasticity(10, 100, 12, 90), 2)) # -0.5
print(round(simple_elasticity(12, 90, 10, 100), 2)) # -0.67
print(round(midpoint_elasticity(10, 100, 12, 90), 2)) # -0.58
print(round(midpoint_elasticity(12, 90, 10, 100), 2)) # -0.58The simple version gives two answers for one pair of points. The midpoint version gives -0.58 both ways. The midpoint value lies between the two simple values, which is typical.
The checks in midpoint_elasticity guard two failure cases, covered under edge cases below.
Worked example 2: an elastic range
Price rises from 8 to 10, and quantity falls from 60 to 40.
- % change in quantity = (40 - 60) / 50 = -0.40
- % change in price = (10 - 8) / 9 = 0.2222
- Elasticity = -0.40 / 0.2222 = -1.8
The absolute value is 1.8, which is above 1, so demand is elastic here. Quantity fell by a larger percentage than price rose.
You can check the result against revenue. Revenue before is 8 × 60 = 480. Revenue after is 10 × 40 = 400. A price rise with elastic demand lowers revenue, which is what the elasticity predicts. The next chapters develop this link in detail.
def midpoint_elasticity(p1, q1, p2, q2):
avg_q = (q1 + q2) / 2
avg_p = (p1 + p2) / 2
return ((q2 - q1) / avg_q) / ((p2 - p1) / avg_p)
e = midpoint_elasticity(8, 60, 10, 40)
print(round(e, 2)) # -1.8
print(8 * 60, 10 * 40) # 480 400Simple formula versus midpoint formula
| Feature | Simple formula | Midpoint formula |
|---|---|---|
| Base for each percentage | Starting value | Average of the two values |
| Same answer in both directions | No | Yes |
| Difference between the two | Large for big changes | Negligible for small changes |
| Needs a choice of "start" | Yes | No |
| Best use | Quick estimate for small changes | Two observed points with a ssizable gap |
For small changes the average and the starting value are nearly equal, so both formulas agree closely. A 1% price change gives almost identical results. The midpoint formula matters when the gap between the observations is large, such as a 20% or 50% price change.
A useful property for straight-line demand
When demand is a straight line, the midpoint elasticity between two points equals the point elasticity at the midpoint of the segment. Take Q = 100 - 2P between P = 20 (Q = 60) and P = 30 (Q = 40):
- % change in quantity = -20 / 50 = -0.40
- % change in price = 10 / 25 = 0.40
- Elasticity = -1.0
The midpoint is P = 25, Q = 50. The point elasticity there is (-2) × (25 / 50) = -1. The two agree. This is why the formula is described as measuring elasticity "at the middle" of the arc. For a curved demand function, the two values are close but not equal.
The same example shows a caution. This segment is unit elastic on average, yet the lower end (P = 20) is inelastic and the upper end (P = 30) is elastic. An arc elasticity is an average over the stretch, so it hides variation inside it. A later chapter looks at how elasticity changes along a line.
Edge cases and common errors
- Equal prices. If P1 = P2, the percentage change in price is zero and the ratio is undefined. There is no price movement to measure a response to. Raise an error or return nothing; do not return infinity silently.
- A zero average. An average of zero occurs only when both values are zero, or when they cancel (which cannot happen for real prices and quantities, since both are non-negative). A quantity pair of (0, 0) gives no information.
- A quantity of zero at one end. The formula still works. For example, Q falling from 40 to 0 gives -40 / 20 = -2, which is -200%. This is a valid midpoint percentage, but it signals that the arc spans the whole range from a positive quantity to a choke price. Be careful reading it as a "typical" responsiveness.
- Mixing up the order. Each observation must be a matching price and quantity pair. Pairing P1 with Q2 produces a meaningless number.
- Forgetting the sign. The result is normally negative. Compare its absolute value to 1 when classifying, as described in the sign convention chapter.
- Rounding too early. Round only the final answer. Rounding -0.1053 and 0.1818 first gives -0.58 here but can drift in other cases.
- Using percentages inconsistently. Keep both changes as fractions or both as percentages. The factor of 100 cancels in the ratio, but mixing the two forms does not.
- Treating one arc as the whole curve. The result describes only the range between the two points. Do not apply it to prices far outside that range.
Summary of the method
- Write down both observations as (P1, Q1) and (P2, Q2).
- Compute each change and each average.
- Divide change by average for price and for quantity.
- Divide the quantity percentage by the price percentage.
- Keep the sign for interpretation and use the absolute value to classify the demand as elastic, inelastic, or unit elastic.
Exercise
A shop cuts the price of a product from 50 to 40. Quantity demanded rises from 200 to 260. Compute the midpoint elasticity, classify demand over this range, and say what happened to total revenue.
Show answer
Quantity: change = 60, average = 230, percentage change = 60 / 230 = 0.2609. Price: change = -10, average = 45, percentage change = -10 / 45 = -0.2222. Elasticity = 0.2609 / -0.2222 = -1.17. The absolute value 1.17 is above 1, so demand is elastic. Revenue before is 50 × 200 = 10,000. Revenue after is 40 × 260 = 10,400. Revenue rose after the price cut, as expected for elastic demand.
Exercise
Explain, without computing, why the midpoint elasticity between (P1, Q1) and (P2, Q2) equals the value you get after swapping the two observations.
Show answer
Swapping the observations changes the sign of both numerators, (Q2 - Q1) and (P2 - P1). The averages (Q1 + Q2) / 2 and (P1 + P2) / 2 do not change, because addition does not depend on order. Both percentage changes therefore change sign, and the sign changes cancel in the ratio. The simple formula divides by the starting value, which changes when you swap, so it lacks this property.
Exercise
Prices are 6 and 6 in two periods, while quantity demanded rises from 30 to 35. Can you compute a midpoint elasticity? Why or why not?
Show answer
No. The price change is zero, so the percentage change in price is zero and the ratio divides by zero. The quantity change happened without a price change, so something else, such as income or tastes, must have moved demand. The data cannot measure responsiveness to price.