Consumer and Producer Surplus Calculator

Enter linear demand and supply. The calculator solves for market equilibrium and returns consumer surplus, producer surplus, and total economic surplus.

One tile of the full market analysis unit.

The course teaches market analysis interactively — drag the graphs, practice with feedback, and spaced reviews bring it back before you forget. Free.

Enter the intercepts and slopes for linear demand and supply. The calculator finds the equilibrium and computes consumer surplus, producer surplus, and total surplus.

Demand:

Supply:

Equilibrium quantity

40.00

Equilibrium price

60.00

Consumer surplus

800.00

Producer surplus

800.00

Total surplus

1600

What the course adds

Beyond this one page

The market-analysis unit walks you through consumer and producer surplus on draggable supply-and-demand graphs, then extends to taxes, ceilings, and floors — with mastery tracking that tells you which arithmetic you still mix up.

Spaced reviews

FSRS brings every concept back right before you'd forget. ~50% better retention than re-reading.

Per-concept mastery

Performance Factor Analysis tracks each sub-skill separately — you see which version of the idea is still wobbly.

Diagnostic placement

A short test skips you past what you already know. No re-learning the basics.

The formulas

Demand: Supply:

Worked example

Demand: . Supply: .

Total surplus =

FAQ

What is consumer surplus?
Consumer surplus is the difference between what consumers are willing to pay for a good and what they actually pay at the market price, summed across all units purchased. On a standard demand-supply diagram it is the triangular area between the demand curve and the horizontal line at the equilibrium price, bounded on the right by the equilibrium quantity.
What is producer surplus?
Producer surplus is the difference between the market price and the minimum price producers would have accepted, summed across all units sold. It is the triangular area between the horizontal line at the equilibrium price and the supply curve, bounded on the right by the equilibrium quantity.
What is the formula for consumer surplus with linear demand?
If demand is and the equilibrium price is , then . The height of the triangle is the vertical distance from the equilibrium price up to the choke price (), and the base is the equilibrium quantity .
What is the formula for producer surplus with linear supply?
If supply is and the equilibrium price is , then . The height is the vertical distance from the supply intercept up to the equilibrium price, and the base is the equilibrium quantity .
How do I find the equilibrium price and quantity?
Set quantity demanded equal to quantity supplied. With linear curves and , equate the two to get , then substitute back to get (equivalently ). Total surplus is just .

For instructors

Assign this to your class

Free, no account needed for students. Paste either snippet into Canvas, Moodle, Blackboard, Google Classroom, or your slide deck.

Sends students to the full page with the worked example and related lessons.

Inlines just the interactive widget in your LMS — no nav, no footer, no signup wall.

Want to see the triangles come alive?

The Econ Academy surplus lesson includes a draggable supply-demand graph that highlights CS and PS as you shift the curves. Perfect for AP Microeconomics and Econ 101.

Related calculators