Enter the highest price anyone would pay (the demand curve’s choke price), the market price, and the quantity sold to size the welfare gain that flows to buyers under a linear demand curve.
Calculated in your browser — the numbers you enter are never sent to our servers.
What it calculates: Consumer Surplus, Price Gap, Total Spending.
Enter a choke price of $50 and a market price of $30 and this tool reports a $20 price gap. That $20 is the surplus earned on exactly one unit — the very first one, bought by the person whose willingness to pay sits right at the top of the demand curve. Nobody else in the market earns $20. The second-most eager buyer earns slightly less, the next slightly less again, and the buyer who finally clears the market at 40 units earns nothing at all, because their willingness to pay is exactly the $30 they hand over.
That steady decline is why the answer is a triangle rather than a rectangle. If every buyer captured the full gap, total surplus would be $20 × 40 = $800. Because the gap shrinks evenly from $20 down to zero across the 40 units, the average buyer captures half the maximum, and the total is ½ × $20 × 40 = $400. The one-half in the formula is not a fudge factor or a deliberate conservatism: it is the average of a quantity that falls linearly to zero.
The price gap is reported as its own output for precisely this reason. The gap is the ceiling on what any single buyer can gain; the surplus is what the whole market gains once that ceiling has been averaged across everyone who actually bought. Reading the gap as though every buyer pocketed it is the single most common way to overstate the answer by a factor of two.
Why $400 of value sits on top of $1,200 of spending
Total spending in the worked example is the $30 price times the 40 units sold, or $1,200. That is the money that actually changed hands: it appears in the seller’s revenue line and on the buyers’ bank statements. The $400 of surplus appears nowhere. It is value the buyers received and did not pay for, which is why it is invisible to accounting and yet entirely real to the people who captured it. The two figures answer different questions and neither one substitutes for the other.
Read together they become a ratio. $400 against $1,200 is $400 ÷ $1,200 = about 33 percent, meaning buyers captured roughly a third as much again in unpriced value as they spent in cash. That ratio is the quickest way to judge whether a price is leaving value with buyers or extracting it. Push the price up toward the $50 choke price and the ratio collapses; a seller able to charge every buyer their exact willingness to pay would drive it to zero and convert the entire triangle into revenue.
Because the measure rests on willingness to pay rather than on cash flows, it registers benefits that sales figures miss completely. A market where buyers are delighted and one where they are barely indifferent can post identical revenue. Only the surplus number tells them apart, which is why it is the yardstick economists reach for when the question is how much a market benefits the people buying in it.
Nothing stops you entering a quantity that is not on the demand curve
The three inputs are taken at face value and are never checked against one another. The model behind the formula is a single straight line running from the choke price down through the point where the market clears, which means the quantity is not actually free. Once you fix a choke price of $50 and a market price of $30, the 40 units are a property of that particular line. Type 400 units instead and the tool will still return a triangle, ½ × $20 × 400 = $4,000, describing a far flatter demand curve than the one you had in mind.
That is a division of labour rather than a defect: the calculator computes an area, and you supply a consistent set of coordinates. The practical rule is to take the price and the quantity from the same observed market at the same moment, and to make sure the choke price belongs to that same demand curve — not to a different product tier, a different region, or a different season. Mixing coordinates from two curves produces a number that is arithmetically correct and economically meaningless.
The same single-line model is why the result says nothing about buyers who were priced out entirely. Everyone who would have bought below $30 contributes zero here. So does any value that comes from attributes other than price, such as reliability, delivery speed, warranty, or brand, because a demand curve has only one dimension available to express what a buyer is willing to give up.
Drop the price from $30 to $20 and the triangle more than doubles
The worked example pins a demand line through two points: the choke price of $50 at zero units, and $30 at 40 units. A $20 fall in price bought 40 units of extra demand, so that line is Q = 2 × ($50 − P). Now cut the price to $20. The gap widens from $20 to $30, and the quantity implied by the same line rises to 2 × ($50 − $20) = 60 units. Surplus becomes ½ × $30 × 60 = $900, against $400 before.
A ten-dollar cut, one third off the original price, produced more than twice the surplus. Both dimensions of the triangle moved at once: each existing buyer keeps an extra $10, and twenty buyers who were previously priced out enter the market. This is why consumer surplus and price always move in opposite directions along a fixed demand curve, and why the response is more than proportional to the price change rather than in step with it.
A demand shift is a different animal entirely. If tastes change and the whole line moves outward, the choke price and the quantity rise together and the triangle grows even with the price untouched. Before concluding which way surplus moved, work out whether you are looking at a movement along the curve, which a price change causes, or a shift of the curve itself, which a change in demand causes. The two have opposite implications for what a seller should do next.
The choke price is the one input nobody can look up
Price and quantity are observable — they sit in transaction records. The choke price is not. It is the price so high that quantity demanded falls to zero, the point where the demand curve meets the vertical axis, and by construction no transaction ever happens there for anyone to record. Every choke price is therefore an estimate, usually recovered by fitting a line through the demand you can see and extrapolating past the end of your data.
That extrapolation is where the error lives, and the whole triangle is anchored to it. Holding the price at $30 and the quantity at 40 units, a choke price of $50 gives ½ × $20 × 40 = $400 of surplus, while a choke price of $40 gives ½ × $10 × 40 = $200. Halving the estimated gap halves the answer exactly. Run the tool at a plausible high and a plausible low choke price and treat the output as the range between them rather than as a single figure.
A deeper problem sits underneath the measurement one. Willingness to pay is expressed in dollars, and a dollar does not mean the same thing to every buyer. The model ignores income effects and the diminishing marginal utility of money, so it quietly weights a wealthy buyer’s enthusiasm more heavily than a poorer buyer’s equally strong preference. Whenever you are comparing welfare across groups with very different incomes, that distortion matters more than the geometry does.
A zero result means the market has closed, not that the math broke
Set the market price at or above the choke price and the tool returns zero rather than a negative number. The floor is deliberate and it is economically correct: if the price exceeds what even the most eager buyer will pay, no mutually beneficial trade exists, the quantity that should trade is zero, and there is no surplus to divide. A negative triangle would be a geometric artifact of the formula, not a real loss suffered by buyers.
The floor doubles as a sanity check on your inputs. If you entered a genuine observed price alongside a genuine observed quantity and still got zero, the choke price you supplied is too low to be consistent with the trades you already know happened. The market has just told you that somebody was willing to pay more than the maximum you estimated, and the choke price is the input to revisit.
Two rounding conventions are worth knowing before you compare one run against another. Consumer surplus and total spending are rounded to whole dollars, while the price gap keeps two decimals. On a market of 40 units that is invisible. On a market of millions of units the surplus figure has been rounded to the nearest dollar out of a very large number, so do not read precision into its final digits that the inputs never contained in the first place.
Where the straight line stops standing in for real demand
Real demand curves are rarely straight. They tend to bow outward, steep among the buyers who must have the product and flattening among the price-sensitive tail, which means the true area between the curve and the price line is usually larger than the triangle drawn here. The formula is exact for linear demand and an approximation for everything else, and the approximation gets worse the further the real curve bends away from a line.
The exact calculation for a curved demand curve is an integral: the area under the demand function from zero out to the equilibrium quantity, minus the spending rectangle of price times quantity. That generally returns a different number from ½ × gap × quantity. Across a narrow band of prices around the market you actually observe — the range in which most business questions live — a straight line is a reasonable local approximation. The further you extrapolate up toward the choke price, the more of the answer is being supplied by the assumption rather than by the data.
Stated plainly, this tool cannot measure the surplus under a curved demand curve, cannot handle discounting or price discrimination because it assumes one price for every buyer, cannot value non-price attributes, and cannot tell you whether the choke price you supplied is right. It computes one area under one stated set of assumptions. Treat the result as an educational estimate, not as a welfare measurement fit to carry a pricing or policy decision on its own.
Price ceilings and tariffs are argued over this same triangle
Consumer surplus is the number advocates reach for when they want to claim that buyers are being helped or harmed. A price ceiling set below the market price is defended on the grounds that it transfers surplus from sellers to the buyers who still get the good; critics answer that the resulting shortage and quality erosion shrink the very triangle the ceiling was supposed to protect. Tariffs, rent control, minimum prices, and patent-protected monopoly pricing are all routinely scored the same way, by how much of this area they create or destroy.
The measure carries that weight because it rests on willingness to pay rather than on cash flows, so it registers benefits that revenue and output figures never see. It is also only half the welfare picture. Producer surplus is the mirror-image area between the price line and the supply curve, and the two added together make total surplus, the standard yardstick for judging whether a market is allocating efficiently.
From this result, the useful next moves are:
Pair the $400 with producer surplus at the same price and quantity to size the total gains from trade.
Watch both triangles deform under a tax, a subsidy, or a price control to find the deadweight loss — the value that disappears rather than changing hands.
Check the slope of your demand line against price elasticity, which governs how fast willingness to pay falls as quantity rises, and therefore how fat or thin the triangle turns out to be.
Frequently Asked Questions
What exactly is consumer surplus?
It is the difference between what buyers are willing to pay for a good and what they actually pay. Summed across all buyers, it measures the net benefit consumers receive from participating in the market.
Why is the formula a triangle?
With a straight-line demand curve, the surplus on each successive unit falls evenly until it reaches zero at the equilibrium quantity. That declining wedge between the demand line and the price is a right triangle, so its area is one-half base times height.
Can consumer surplus ever be zero or negative here?
In this model it cannot be negative: if the market price is at or above the choke price, the calculator floors the result at zero because no mutually beneficial trades would occur.
Sources & References
Figures on this page are checked against primary, authoritative sources. Links open in a new tab.