Source: https://goodhandover.co.uk/tools/supply-demand-equilibrium-calculator/

[Economics](https://goodhandover.co.uk/tools/economics/#bsc) / BSc economics

🔒 Files never leave your device

# Supply and demand equilibrium calculator

Solve for market equilibrium and calculate consumer and producer surplus from linear equations. Your inputs stay on your device.

## Set up your task

Ready. Processing stays in this browser.

Files and text stay on your device. [Privacy details](https://goodhandover.co.uk/privacy/).

 

## How to use Supply and demand equilibrium calculator

Solve for market equilibrium and calculate consumer and producer surplus from linear equations. The example below shows the input values and the result so you can compare the calculator’s method with your own working.

 

- Start with the pre-filled values for demand intercept a, demand slope magnitude b, supply intercept c, supply slope d.

- Replace the example with your own coursework values. Keep units consistent across the inputs and compare with the stated model.

- Read the intermediate values in the result. Use the check below to see how a change in the assumptions affects the answer.

 

## Supported inputs and limits

Use Qd = a − bP and Qs = c + dP, with b and d positive. The intersection must have non-negative price and positive quantity.

 

## How it works

Market equilibrium occurs where buyers want to purchase the quantity sellers want to offer at the same price. In a linear model, the intercept is the quantity when price is zero. The slope sets how much that quantity changes with price. The demand slope is entered as a positive magnitude because the model subtracts it.

Solve a − bP = c + dP to find P, then substitute it into either equation for Q. Consumer surplus is the triangle below inverse demand and above the price line, ending at the traded quantity. Producer surplus is the triangle above inverse supply and below that same price line. The price intercepts in the result show the heights used in the calculation.

 

## Example

The pre-filled example gives “Equilibrium price: 20 · Quantity: 60” as its first result.

Demand intercept a

100

Demand slope magnitude b

2

Supply intercept c

0

Supply slope d

3

Equilibrium price: 20 · Quantity: 60
Consumer surplus: 900 · Producer surplus: 600
Total surplus: 1500
Demand price intercept: 50 · Supply price intercept: 0
Set quantity demanded equal to quantity supplied. Each surplus is its triangle’s height times quantity divided by two.

 

## Questions about Supply and demand equilibrium calculator

### Which equations does the calculator use?

It takes quantity as a function of price. Rearrange equations expressed as inverse demand P(Q) or inverse supply before entering their coefficients.

### Why might the supply intercept be negative?

A negative quantity intercept can describe an upward-sloping supply curve that first reaches positive quantity at a positive price. The calculated equilibrium must fall in the feasible region.

### How do I check the example with Qd = 100 − 2P and Qs = 3P?

Equating gives 100 = 5P, so the price is 20. Substituting into supply gives 60, which is also the quantity demanded.

 
 

## Related tools

[BSc economics](https://goodhandover.co.uk/tools/economics/#bsc)

- [Tax incidence calculator](https://goodhandover.co.uk/tools/tax-incidence-calculator/)

- [Price elasticity of demand calculator](https://goodhandover.co.uk/tools/price-elasticity-of-demand-calculator/)

- [CPI inflation rate calculator](https://goodhandover.co.uk/tools/cpi-inflation-calculator/)

- [GDP deflator calculator](https://goodhandover.co.uk/tools/gdp-deflator-calculator/)

 

Last updated 24 November 2026
