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.
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 and a plus sign in front of .
Market equilibrium occurs where quantity demanded equals quantity supplied. Using the linear equations above, the equilibrium conditions are:
Substituting the linear forms into that condition gives:
Collect terms in on one side and constants on the other:
Solving for the equilibrium price yields the core formula used by the calculator:
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:
The calculator performs exactly these steps: it plugs your inputs for , , , and into the formulas for and , and then displays the resulting equilibrium.
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.
Consider a simple market with the following linear curves:
In calculator terms, you would enter:
First, compute the equilibrium price:
Next, plug this price into the supply equation to find equilibrium quantity:
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.
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.
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.