Market Surplus Calculator
Two triangles decide who gains from a trade: what buyers save against the most they would have paid, and what sellers earn above the least they would have accepted. Enter the two price intercepts, the market price and the quantity traded, and this market surplus calculator returns consumer surplus, producer surplus and their sum, with a label showing whether your price sits above, below or at the implied equilibrium.
Assumes linear supply and demand. Educational illustration of welfare economics, not a market forecast.
Quick Answer
Market surplus is consumer surplus plus producer surplus. With a $100 demand intercept, a $20 supply intercept, a $60 price and 400 units traded, consumer surplus is $8,000, producer surplus is $8,000, and total market surplus is $16,000, split evenly because the $60 price sits exactly at the implied equilibrium of $60.
Key takeaways
- Total surplus at a fixed quantity does not depend on the price: add the two triangles and the price cancels, leaving 0.5 x (demand intercept minus supply intercept) x quantity.
- The price decides the split, not the size. A higher price moves surplus from buyers to sellers dollar for dollar.
- Market surplus (a welfare measure) is not a surplus of goods (too much quantity supplied). This page computes the first and labels the second.
- The implied equilibrium in this simplified model is the midpoint of the two intercepts, a shortcut that only holds because the tool takes no slope inputs.
- Quick Answer
- How to use the market surplus calculator
- The formulas: two triangles and a sum
- Worked example: $100, $20, $60 and 400 units
- What each surplus actually means
- Reading the price label: shortage, surplus of goods, equilibrium
- Where the numbers come from in practice
- Market surplus is not a monthly budget surplus
- What competing calculators miss
- Frequently asked questions
- Add This Calculator to Your Website
- References
How to use the market surplus calculator
Four inputs, one click. The tool needs the two prices where the curves start, the price actually charged, and how many units trade at that price.
- Demand price intercept: the price at which quantity demanded reaches zero. On a graph it is where the demand curve meets the price axis.
- Supply price intercept: the price at which quantity supplied reaches zero, where the supply curve meets the price axis.
- Market price: the price buyers pay and sellers receive. It must sit strictly between the two intercepts, or the tool stops with a message explaining why.
- Quantity traded: the units that actually change hands at that price. It must be above zero.
Press Calculate and the tool returns both triangles, the total, each side’s percentage share, and a label comparing your price with the implied equilibrium price, the average of the two intercepts. Copy and Share buttons sit inside the results box, and Reset restores the worked example below. One behaviour worth knowing before you experiment: at a fixed quantity, raising or lowering the price leaves the total untouched and only moves the split. Try $80 and then $40 at 400 units and watch the same $16,000 divide 25/75 and then 75/25.
The formulas: two triangles and a sum
Each surplus is the area of a triangle: half the price gap multiplied by the quantity traded. Consumer surplus uses the gap between the demand intercept and the price; producer surplus uses the gap between the price and the supply intercept.
Producer surplus = 0.5 x (price – supply intercept) x quantity
Total market surplus = consumer surplus + producer surplus = 0.5 x (demand intercept – supply intercept) x quantity
The third line is worth a second look. Because the price appears once as a subtraction and once as an addition, it cancels out of the total. In this linear model the total depends only on the distance between the two intercepts and the quantity traded. That is the arithmetic behind a claim textbooks make in words: at a given quantity, the price is a transfer between buyers and sellers, not a creator or destroyer of surplus. Surplus is destroyed only when the quantity itself moves away from the level where the two curves cross, which is where deadweight loss comes from. How responsive quantity is to price changes along each curve is a separate question, covered by the coefficient of elasticity calculator.
Worked example: $100, $20, $60 and 400 units
The pre-filled example puts the price exactly at equilibrium, so the split is even. Consumer surplus is 0.5 x (100 – 60) x 400 = $8,000. Producer surplus is 0.5 x (60 – 20) x 400 = $8,000. The total is $16,000.
Read the first three rows together and the model’s central point makes itself: the total never moves. Only the fourth row, where quantity halves, shrinks the total, and it shrinks it by half. In a real market a price away from equilibrium would change the quantity traded too, and that quantity change is where the welfare loss would appear. This tool holds quantity where you put it, so treat the label as a direction signal, not a forecast of how much would actually trade.
What each surplus actually means
Consumer surplus is the bargain, added up. Producer surplus is the margin above the minimum acceptable price, added up. Neither is money anyone holds; both are measures of gain from taking part in the market.
Consumer surplus: the buyer’s bargain
The demand curve ranks buyers by willingness to pay. The first buyer would pay close to the demand intercept; later buyers would pay less. Everyone pays the same market price, so everyone except the marginal buyer pockets the difference. Summed over all units, that difference is the triangle this tool computes. It connects directly to how much value each extra dollar of spending delivers, the idea behind the marginal utility per dollar calculator: as price falls toward cost, more of that value stays with buyers.
Producer surplus: margin before fixed costs
The supply curve ranks sellers by the least they would accept, which tracks marginal cost. Sellers whose cost sits below the price keep the gap. The total looks like profit and is often confused with it, but it is revenue minus variable cost only. Rent, equipment and other fixed costs still come out of it, so a market can show healthy producer surplus while individual firms with heavy fixed costs lose money.
Total surplus and deadweight loss
Total surplus is the standard yardstick for how much value a market creates. A competitive equilibrium maximises it because every unit whose value to a buyer exceeds its cost to a seller gets traded. Taxes, binding price ceilings and floors, and monopoly pricing all push traded quantity below that level, and the surplus on the units that stop trading is the deadweight loss: value that goes to nobody, rather than moving from one side to the other.
Reading the price label: shortage, surplus of goods, equilibrium
The label compares your price with the implied equilibrium, the midpoint of the two intercepts. Above it, sellers want to sell more than buyers want to buy; below it, the reverse.
Two cautions belong with the label. First, the midpoint rule is a modelling shortcut: this tool takes no demand or supply slopes, so it places the crossing halfway between the intercepts. Give it real curves with different slopes and equilibrium could sit anywhere in between. Second, the half-cent tolerance is real tool behaviour, not a typo: at intercepts of $100 and $20, a price of $60.004 is still labelled at equilibrium, while $60.006 is labelled above it. The word equilibrium does different work at the scale of a whole economy, where the equilibrium income calculator covers the income and spending version of the same balancing idea.
Where the numbers come from in practice
Intercepts are estimated, not observed. Nobody can watch a market at a quantity of zero, so the intercept is an extension of the curve beyond the data.
For classroom and back-of-envelope work, the usual route is a known point plus a slope: if 400 units trade at $60 and each $1 price rise costs 10 units of demand, the demand line through that point reaches zero quantity at $100. Applied researchers lean on price variation over time, natural experiments such as tax changes, or structural models, and they argue about the slope far more than about the arithmetic. The surplus triangles are the easy part of any welfare estimate; the curve underneath them is the hard part, and honest results say so.
Market surplus is not a monthly budget surplus
The word surplus does at least three jobs in economics and personal finance, and search results mix them freely. This page covers the welfare measure: gains to buyers and sellers in a single market. A household working out whether income covers spending needs a budget tool instead, and the monthly surplus or deficit calculator does that job. Neither result says anything about the other.
What competing calculators miss
Most rival tools compute one or both triangles and stop. Checked against the tools ranking for consumer and producer surplus, the gaps are consistent.
- OnlineMiniTools’ consumer surplus calculator: solid triangle formulas for both surpluses and total welfare. Gap: no comparison of the entered price with equilibrium, so nothing tells you whether the price implies a shortage or unsold goods.
- Ryan O’Connell Finance consumer and producer surplus calculator: the most complete rival, with curve equations, equilibrium formulas and an Excel version. Gap: it works from curve coefficients (a, b, c, d) that most visitors do not have, while this tool works from the two intercepts, a price and a quantity read straight off a graph. Its own notes also limit it to free-market equilibrium, with taxes and price controls pushed to separate models.
- CalculatorUltra’s total surplus calculator: adds two surplus figures you must already know. Gap: it never derives either triangle, so it cannot help anyone starting from a supply and demand setup.
- Creative Widgets’ consumer surplus calculator: a single subtraction, willingness to pay minus price paid, for one purchase. Gap: no quantity, no producer side, no total, and the per-unit answer is not market surplus in the welfare sense.
- The gap this page fills: both triangles from graph-readable inputs, the percentage split between buyers and sellers, a shortage or surplus-of-goods label tied to an implied equilibrium, and a plain statement of the two simplifications (linear curves, midpoint equilibrium) that rivals leave unstated.
Frequently asked questions
Consumer surplus plus producer surplus: the total value a market creates for buyers and sellers together. In the worked example on this page it is $16,000, split $8,000 to buyers and $8,000 to sellers.
With linear demand it is the triangle above the price line: one half times (demand intercept minus price) times quantity. At a $100 demand intercept, a $60 price and 400 units, that is 0.5 x 40 x 400 = $8,000.
With linear supply it is the triangle below the price line: one half times (price minus supply intercept) times quantity. At a $60 price, a $20 supply intercept and 400 units, that is 0.5 x 40 x 400 = $8,000.
Deadweight loss is surplus destroyed when the quantity traded moves away from the efficient level, for example after a tax, a price floor or ceiling, or monopoly pricing. This tool shows the surplus at the quantity you enter; it does not subtract a separate deadweight loss figure.
A surplus of goods means quantity supplied exceeds quantity demanded, which happens when the price sits above equilibrium. Market surplus is the welfare measure, consumer plus producer surplus. The tool labels the first condition and computes the second, and the two should not be confused.
They are the prices at which quantity demanded or supplied would fall to zero. In classroom work they are usually given or read off a graph; in applied work they are backed out of a known price and quantity point plus an estimated slope or elasticity.
Yes. The triangle formulas require straight-line demand and supply. With curved demand or supply, surplus is the area between the curve and the price line, which needs integration or a sum over individual buyers and sellers, and this tool does not do that.
No. The tool rejects a price at or below the supply intercept with the message that the price must be above the supply intercept, and a price at or above the demand intercept with the message that the price must be below the demand intercept, because no trade happens outside that range in this model.
Because this simplified model works with one quantity and no slope inputs, it places the crossing of supply and demand halfway between the two intercepts. That is a property of the simplification, not a general rule: with real curves of different slopes, equilibrium can sit anywhere between the intercepts.
No. Producer surplus is revenue minus variable cost, so it still has to cover fixed costs before anything is profit. Consumer surplus has no business accounting counterpart at all; it measures value buyers received without paying for it.
Add This Calculator to Your Website
Embed this calculator on your own site with the code below. Pick a size to preview it live, then copy the code.
Powered by Calculator Zilo
References
- OpenStax, Rice University. Principles of Economics 3e. Accessed October 22, 2026.
- Khan Academy. Consumer and Producer Surplus (unit). Accessed October 22, 2026.
- MIT OpenCourseWare. 14.01SC Principles of Microeconomics. Accessed October 22, 2026.
- International Monetary Fund, Finance and Development. Back to Basics: Supply and Demand. Accessed October 22, 2026.
- CORE Econ. The Economy, Section 7.7: Gains from Trade: The Surplus and How It Is Divided. Accessed October 22, 2026.
- Federal Reserve Bank of St. Louis. Page One Economics: Sold Fast: Price Tags and the Impact on Consumer and Producer Surplus. Accessed October 22, 2026.
