Market Equilibrium Calculator

JJ Ben-Joseph headshot JJ Ben-Joseph

How This Market Equilibrium Calculator Works

This market equilibrium calculator finds the intersection of a linear demand curve and a linear supply curve. Given the intercepts and slopes of each curve, it solves for the price and quantity at which quantity demanded equals quantity supplied. That point is the competitive equilibrium in a simple, one-period market model.

The tool is designed for textbook-style problems, classroom exercises, and quick microeconomics checks. You enter the demand intercept and slope, the supply intercept and slope, and the calculator returns the equilibrium price and equilibrium quantity implied by those parameters.

Linear Supply and Demand Equations

The calculator assumes linear (straight-line) supply and demand curves. In this setup, quantity demanded and quantity supplied are written as simple linear functions of price:

Where:

The key idea is that demand slopes downward (higher prices reduce quantity demanded) and supply slopes upward (higher prices increase quantity supplied). In the linear form used here, that pattern shows up as a minus sign in front of bd and a plus sign in front of bs.

Equilibrium Price and Quantity: Step-by-Step

Market equilibrium occurs where quantity demanded equals quantity supplied. Using the linear equations above, the equilibrium conditions are:

Qd = Qs

Substituting the linear forms into that condition gives:

ad - bd P = as + bs P

Collect terms in P on one side and constants on the other:

(bs+bd) P = ad - as

Solving for the equilibrium price P* yields the core formula used by the calculator:

P* = ad - as bs + bd

Once the equilibrium price is known, the equilibrium quantity Q* is found by substituting P* into either the supply equation or the demand equation. Using the supply equation:

Q* = as + bs P*

The calculator performs exactly these steps: it plugs your inputs for ad, bd, as, and bs into the formulas for P* and Q*, and then displays the resulting equilibrium.

Interpreting the Inputs and Results

To use the tool effectively, it helps to connect each input to the underlying economics:

In the output, the equilibrium price tells you the modelโ€™s prediction of the market-clearing price. The equilibrium quantity gives the traded quantity at that price. Points above this price create excess supply; points below it create excess demand.

Worked Example

Consider a simple market with the following linear curves:

In calculator terms, you would enter:

First, compute the equilibrium price:

P*=ad-asbs+bd=120-202+4=1006โ‰ˆ16.67.

Next, plug this price into the supply equation to find equilibrium quantity:

Q*=as+bsP*=20+2ร—16.67โ‰ˆ20+33.33=53.33.

The calculator will report an equilibrium price of about 16.67 (in your chosen currency units) and an equilibrium quantity of about 53.33 units. Economically, this means that at a price of 16.67, the quantity that consumers wish to buy and the quantity that producers wish to sell are equal, so there is no tendency for price to rise or fall within this simple model.

You can also experiment with parameter changes. For example, if you increase the demand intercept from 120 to 140, representing stronger underlying demand, equilibrium price and quantity will both rise. If you increase the supply intercept, representing more supply at low prices, equilibrium price falls while equilibrium quantity rises.

Comparison: Effects of Different Parameter Changes

The table below summarizes how basic parameter changes tend to affect equilibrium price and quantity, holding other parameters constant and assuming usual signs (downward-sloping demand, upward-sloping supply).

Change in parameter Effect on equilibrium price (P*) Effect on equilibrium quantity (Q*)
Increase in demand intercept (ad) Price rises Quantity rises
Decrease in demand intercept (ad) Price falls Quantity falls
Increase in supply intercept (as) Price falls Quantity rises
Decrease in supply intercept (as) Price rises Quantity falls
Increase in demand slope (bd) Price generally falls Quantity may rise or fall, depending on supply
Increase in supply slope (bs) Price response to demand shifts is dampened Quantity response to demand shifts is amplified

This comparative statics perspective is useful for reasoning about policy changes, technological improvements, or demand shocks using the same linear framework powered by the calculator.

Model Assumptions and Limitations

The calculator is intentionally simple and relies on a stylized microeconomic model. When interpreting the results, keep these assumptions and limitations in mind:

Within those constraints, the calculator is a compact way to explore how linear supply and demand interact, to check algebra in problem sets, and to visualize the impact of shifting parameters on equilibrium outcomes.

Enter coefficients to compute equilibrium price and quantity.

Embed this calculator

Copy and paste the HTML below to add the Market Equilibrium Calculator - Find Supply & Demand Intersection to your website.