Market Equilibrium Calculator
How to use: Introduction: 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:
- Supply:
Where:
- is quantity demanded.
- is quantity supplied.
- is the market price.
- is the demand intercept, the quantity demanded when price is zero.
- is the demand slope, the reduction in quantity demanded when price rises by one unit.
- is the supply intercept, the quantity supplied when price is zero.
- 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 and a plus sign in front of .
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:
Formula: Q d = Q s
Substituting the linear forms into that condition gives:
Formula: a_d - b_d P = a_s + b_s P
Collect terms in on one side and constants on the other:
Formula: (b_s + b_d) P = a_d - a_s
Solving for the equilibrium price yields the core formula used by the calculator:
Formula: P^* = (a_d - a_s) / (b_s + b_d)
Once the equilibrium price is known, the equilibrium quantity is found by substituting into either the supply equation or the demand equation. Using the supply equation:
Formula: Q^* = a_s + b_s P^*
The calculator performs exactly these steps: it plugs your inputs for , , , and into the formulas for and , 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 (): Higher values represent stronger baseline demand. All else equal, increasing shifts the demand curve outward and raises both and .
- Demand slope (): Larger values mean demand is more sensitive to price. A steeper downward slope (higher ) tends to lower equilibrium price and change equilibrium quantity, holding other parameters constant.
- Supply intercept (): Higher values represent more supply at low prices. Raising shifts the supply curve to the right, usually lowering price and increasing quantity.
- Supply slope (): 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:
- Supply:
In calculator terms, you would enter:
- Demand intercept
- Demand slope
- Supply intercept
- Supply slope
First, compute the equilibrium price:
Formula: P * = (a_d - a_s) / (b_s + b_d) = (120 - 20) / (2 + 4) = 100 / 6 โ 16.67.
Next, plug this price into the supply equation to find equilibrium quantity:
Formula: Q^* = a_s + b_s P^* = 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 () | Effect on equilibrium quantity () |
|---|---|---|
| Increase in demand intercept () | Price rises | Quantity rises |
| Decrease in demand intercept () | Price falls | Quantity falls |
| Increase in supply intercept () | Price falls | Quantity rises |
| Decrease in supply intercept () | Price rises | Quantity falls |
| Increase in demand slope () | Price generally falls | Quantity may rise or fall, depending on supply |
| Increase in supply slope () | 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.
Formula: 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 calculation 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.
Arcade Mini-Game: Market Equilibrium Calculator Calibration Run
Use this quick arcade run to practice separating useful scenario inputs from common planning mistakes before you rely on the calculator output.
Start the game, then use your pointer or arrow keys to catch useful inputs and avoid bad assumptions.
