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:

  • Demand: Qd=adโˆ’bdP
  • Supply: Q_s=a_s+b_sP

Where:

  • Qd is quantity demanded.
  • Qs is quantity supplied.
  • P is the market price.
  • ad is the demand intercept, the quantity demanded when price is zero.
  • bd is the demand slope, the reduction in quantity demanded when price rises by one unit.
  • as is the supply intercept, the quantity supplied when price is zero.
  • bs is the supply slope, the increase in quantity supplied when price rises by one unit.

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:

  • Demand intercept (ad): Higher values represent stronger baseline demand. All else equal, increasing ad shifts the demand curve outward and raises both P* and Q*.
  • Demand slope (bd): Larger values mean demand is more sensitive to price. A steeper downward slope (higher bd) tends to lower equilibrium price and change equilibrium quantity, holding other parameters constant.
  • Supply intercept (as): Higher values represent more supply at low prices. Raising as shifts the supply curve to the right, usually lowering price and increasing quantity.
  • Supply slope (bs): Larger values mean supply expands more quickly with price. A steeper upward slope influences how much price must move to clear the market when demand changes.

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:

  • Demand: Q_d=120-4P
  • Supply: Qs=20+2P

In calculator terms, you would enter:

  • Demand intercept ad=120
  • Demand slope bd=4
  • Supply intercept as=20
  • Supply slope bs=2

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:

  • Perfect competition: The model assumes many small buyers and sellers, none of whom can individually influence the market price.
  • Linear curves: Both supply and demand are assumed to be straight lines. Real-world relationships may be curved, discontinuous, or change at different price levels.
  • Static, one-period analysis: The framework captures a single point in time. It does not model adjustment paths, dynamics, or expectations about future prices and quantities.
  • No government intervention: Taxes, subsidies, price floors, price ceilings, and quotas are not included. If you need those, you must adjust the equations manually before entering them.
  • No externalities or market power: Effects on third parties, monopoly or oligopoly behavior, and strategic interaction among firms are ignored.
  • No capacity or quantity constraints: The model allows quantity to adjust freely to clear the market. In practice, physical capacity, regulation, or technology may cap production or consumption.
  • Not a forecasting tool: The results are best viewed as an illustration of theory under chosen parameters, not as predictions for real-time markets.

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.