Microeconomics
Budget Constraint
The line between affordable and not
The budget constraint draws the affordability frontier: every bundle of two goods that exhausts a fixed income at given prices. The equation is Px·X + Py·Y = M; the slope is the negative price ratio −Px/Py; the intercepts are M/Py and M/Px. Price changes pivot the line, income changes shift it in parallel, and the consumer's optimum is the tangency with the highest reachable indifference curve. The same machinery scales up to intertemporal saving, labor supply, and welfare-program design.
- EquationPx·X + Py·Y = M
- Slope−Px / Py
- Y-interceptM / Py
- X-interceptM / Px
- Price changePivots line
- Income changeParallel shift
Interactive visualization
Press play, or step through manually. The visualization is yours to drive — try it before reading on.
Watch the 60-second explainer
A condensed visual walkthrough — narrated, captioned, under a minute.
How the budget constraint works
You walk into a coffee shop with $20. Espresso costs $4; pastries cost $5. How many of each can you buy? Every combination satisfying 4·X + 5·Y ≤ 20 is on the table — including the corners (5 espressos and 0 pastries; 0 espressos and 4 pastries) and a long line of intermediate options like 2 espressos and 2 pastries (using $18, with $2 left). The set of bundles where you spend exactly your $20 is the budget line. The triangle below it (affordable but doesn't spend everything) is the budget set or opportunity set.
The general form, for income M and prices Px, Py:
Px · X + Py · Y = M (budget line — full spending)
Px · X + Py · Y ≤ M (budget set — every affordable bundle)
Solving for Y produces the slope-intercept form:
Y = M/Py − (Px/Py) · X
So the line crosses the Y-axis at M/Py (spend everything on Y) and the X-axis at M/Px (spend everything on X). Its slope is −Px/Py — the rate at which the market lets you trade one good for the other. Buying one more X costs Px dollars, and those dollars would have bought Px/Py units of Y; the slope captures this opportunity cost in good-for-good terms.
The geometry: pivots vs shifts
Three diagrams cover almost everything that happens to a budget line:
Income rises (parallel shift outward) Px rises (pivot inward at Y-intercept)
Y ↑ Y ↑
M2/Py ● M/Py ●
\ \\
M1/Py ● \\
\\ \\
\\ \\
\\ \\
●─→ X ●●─→ X
M1/Px M2/Px M/Px2 M/Px1
Both prices rise proportionally (looks like an income cut)
Y ↑ Lines collapse toward origin;
● slope unchanged because
\\ Px/Py is unchanged.
●
\\
●─→ X
Three rules to memorize:
- An income change shifts the line in parallel — the slope is determined by relative prices, which don't change.
- A change in one price pivots the line around the unaffected good's intercept. Steeper means good X became relatively more expensive.
- Equal proportional changes in both prices are equivalent to an income change in the opposite direction. Halving every price has the same effect as doubling income.
The pivot-vs-shift distinction is the foundation of the substitution-vs-income decomposition that runs through the indifference-curve diagram and the entire Slutsky equation.
Worked example: a coffee budget and a price hike
Yusra spends $40 a week on espresso (Px = $4) and pastries (Py = $5). Her budget line is 4X + 5Y = 40. The intercepts are 10 espressos (40/4) and 8 pastries (40/5). The slope is −4/5 = −0.8.
Suppose her current optimum is 5 espressos and 4 pastries (spending exactly $40). The price of espresso rises to $5 while pastries stay at $5. The new budget line is 5X + 5Y = 40, with X-intercept = 8, Y-intercept = 8, slope = −1. The line pivots inward around the unchanged Y-intercept; the X-intercept falls from 10 to 8.
Her old bundle (5, 4) now costs 5·5 + 5·4 = $45 — no longer affordable. To stay on the new budget line she must move. If she keeps 4 pastries, she can afford only (40 − 20)/5 = 4 espressos. If she keeps 5 espressos, she can afford (40 − 25)/5 = 3 pastries. Where she lands depends on her preferences (her indifference map).
To isolate the substitution effect Slutsky-style, ask how much income would let her just afford the original bundle (5, 4) at the new prices: 5·5 + 5·4 = $45. So a hypothetical $5 income boost would restore purchasing power but the new pivoted slope (−1) would still favor pastries over espressos. The compensated tangency moves leftward — the substitution effect on espressos is negative. Removing the $5 boost (the income effect) shifts her further to a lower indifference curve. Total change = substitution + income, both negative for a normal good.
Variants of the budget constraint
| Setting | Equation | Slope | What changes |
|---|---|---|---|
| Standard two-good | Px·X + Py·Y = M | −Px/Py | Baseline |
| Intertemporal (two periods) | C₀ + C₁/(1+r) = M₀ + M₁/(1+r) | −(1+r) | Interest rate is the relative price of future for present consumption |
| Labor supply | w·H + V = Px·X (with H = T − L) | −w/Px | Wage is the price of leisure; T is total time, L is leisure |
| Quantity discount | Px(Q)·X + Py·Y = M, Px stepped | Kinked at threshold | Slope flattens past the discount |
| Food-stamp / voucher | Px·X + Py·Y = M, X subsidized up to Q* | Kinked at Q* | Cheap up to Q*, full price beyond |
| Bracketed income tax | After-tax income piecewise in M | Kinks at bracket cutoffs | Bunching at kinks (Saez tax-elasticity work) |
Each variant uses the same engine — find the line of just-affordable bundles at given relative prices — but the relative price is reinterpreted: the interest rate, the wage, the quantity-discount step. In every case the slope is the marginal trade-off rate the market enforces.
The intertemporal budget is the workhorse of macroeconomics. Doubling the interest rate from 5% to 10% steepens the slope from −1.05 to −1.10 — a 5% pivot — and produces measurable shifts in saving rates. The labor-supply budget gives the wage as the price of leisure; raising w pivots the budget around the no-work corner and either pulls hours up (substitution effect) or down (income effect) depending on preferences. Both look unfamiliar at first but reduce to the same diagram.
Real-world budget constraints
Real budgets rarely look like one straight line. Three patterns recur:
- Bracketed taxes. A worker in the U.S. faces marginal tax rates of 10%, 12%, 22%, 24%, 32%, 35%, 37% as income crosses bracket cutoffs in 2026. The take-home budget line kinks at every cutoff. Saez and Chetty's bunching estimator uses the density of taxpayers near the kinks to back out the elasticity of taxable income — a labor-supply elasticity around 0.25 in modern U.S. data.
- Means-tested benefits. Programs like SNAP and TANF phase out as earnings rise, producing implicit marginal tax rates that can exceed 80% in transition zones. The kink can flatten the labor-supply budget so much that working a few extra hours barely raises take-home — the "welfare cliff" problem.
- Two-part tariffs. Costco-style memberships, gym fees, and electricity rate plans all set a fixed access fee plus a per-unit price. The budget line for the relevant good has a different intercept (income minus fee) but the same slope inside the membership. Choosing whether to pay the membership at all is a separate calculation comparing surplus across regimes.
Empirical labor-supply work since the 1980s has used the visible kinks in tax codes as natural experiments: workers should bunch on the low-tax side of each cutoff if they have any flexibility, and the size of the bunch reveals their elasticity. Cross-country comparisons (Denmark vs U.S. vs South Korea) consistently show modest elasticities for prime-age workers and larger ones for secondary earners.
Common pitfalls
- Confusing a price change with an income change. Both move the budget line, but a price change pivots it (slope changes) while an income change shifts it in parallel (slope unchanged). The substitution-vs-income decomposition rests on this distinction.
- Forgetting that the slope is a price ratio. The budget line's slope depends only on relative prices, not on income. Doubling all nominal prices and income leaves the budget line unchanged — the consumer's opportunity set is identical.
- Mixing flow and stock. Income M is a flow (per week, per year); the budget constraint is a flow constraint. Mixing M with a stock variable (savings, wealth) produces nonsense unless the model is genuinely intertemporal.
- Ignoring kinks. Real budgets kink at quantity discounts, tax brackets, and benefit phaseouts. A linear approximation hides the bunching and corner behavior that is often where the empirical action is.
- Treating the budget line as a non-negotiable boundary in welfare math. The budget line is a constraint on the consumer's choice problem; cost-benefit analysis cares about the underlying utility levels, which require both the budget line and the indifference map. The line alone can't say whether one situation is better than another.
- Forgetting that prices are themselves choices in a two-sided model. In partial equilibrium the budget line takes prices as given; in general equilibrium prices adjust until markets clear. A welfare statement that holds prices fixed when they wouldn't is incomplete.
Frequently asked questions
What is the budget constraint?
The budget constraint is the equation Px·X + Py·Y = M describing every bundle of goods X and Y the consumer can just afford with income M at prices Px and Py. Drawn in the (X, Y) plane it's a straight line — the budget line — separating affordable bundles below it from unaffordable ones above. The triangle below the line is the budget set or opportunity set.
What's the slope of the budget line?
The slope is −Px/Py. Geometrically, giving up one unit of X frees Px dollars; spending those dollars on Y buys Px/Py extra units. The minus sign reflects the trade-off: more X means less Y. The price ratio is the relative price — how many Y a market exchange of one X delivers.
What happens to the budget line when prices change?
If only Px rises, the X-axis intercept (M/Px) shrinks and the line pivots inward around the Y-intercept; the slope steepens. If only Py rises, the Y-intercept shrinks and the line pivots inward around the X-intercept. Equal proportional changes in both prices look like an income cut. Pure parallel shifts come from income changes, not price changes.
What happens when income changes?
An increase in income shifts the budget line outward in parallel — slope stays the same because relative prices haven't changed, but the line is farther from the origin. A decrease shifts it inward. The pivot-vs-shift distinction matters for the substitution-vs-income decomposition: price changes pivot, income changes shift.
What is an intertemporal budget constraint?
An intertemporal budget connects spending today (C₀) to spending tomorrow (C₁) via the interest rate: C₀ + C₁/(1+r) = M₀ + M₁/(1+r), where M₀ and M₁ are income flows. Slope is −(1+r): each dollar saved today buys (1+r) dollars of consumption tomorrow. Higher r steepens the slope, rotating the budget line and altering the savings decision.
Can the budget line have a kink?
Yes. Quantity discounts, food-stamp programs, and bracketed taxes all introduce kinks. For example, the first 100 gallons of gasoline at $4.00 then $5.00 above that produces a budget line that bends at 100 gallons. Welfare programs that pay only if income falls below a threshold create a similar kink. Kinked budgets often yield bunching at the corners and can violate single-tangency assumptions.