Enter Values

$
$
$

Comparative Statics (Optional)
$
$
$
Budget Constraint Formulas
Px × X + Py × Y = M
Y = (M / Py) − (Px / Py) × X
X-intercept: M / Px
Y-intercept: M / Py
Slope: −Px / Py
Model Assumptions
  • Two-good economy (simplification of reality)
  • Linear budget constraint (constant prices, no quantity discounts)
  • The budget line represents full expenditure of income; bundles below the line involve spending less than total income
  • Prices are given (consumer is a price taker)
  • Non-negativity: quantities must be non-negative (X ≥ 0, Y ≥ 0)
  • No taxes, subsidies, or transaction costs

For educational purposes only. This model simplifies real-world consumer choice to two goods with fixed prices.

Ryan O'Connell, CFA
Calculator by Ryan O'Connell, CFA

Budget Constraint Results

Budget Line Equation
5X + 10Y = 100
Y = 10 − 0.5X
Key Values
X-Intercept 20.00 units of Good X
Y-Intercept 10.00 units of Good Y
Slope −0.5000
Interpretation
Opportunity Cost Each Good X costs 0.50 Good Y
Equal-Spending Bundle (10.00, 5.00)

Equal-spending bundle: illustrative point where spending is split equally between both goods.

Comparative Statics
New X-Intercept
New Y-Intercept
New Slope

Budget Line Diagram

Budget line diagram with axes for Good X and Good Y
Original Budget Line New Budget Line

Formula Breakdown

Px × X + Py × Y = M

Understanding Budget Constraints

What Is a Budget Constraint?

A budget constraint represents all combinations of two goods that a consumer can afford given their income and the prices of both goods. The budget line (Px × X + Py × Y = M) is the frontier where all income is spent. The budget set includes all affordable bundles on or below this line.

Key Formulas (Mankiw Ch. 21)
Budget Line: Px × X + Py × Y = M
Slope Form: Y = (M / Py) − (Px / Py) × X
Slope: −Px / Py (opportunity cost of X in terms of Y)
Source: Mankiw, Principles of Microeconomics, Ch. 21

How Changes Shift the Budget Line

Income changes cause a parallel shift: an increase shifts the line outward (more affordable bundles), while a decrease shifts it inward. The slope remains unchanged because relative prices have not changed.

Price changes cause the budget line to pivot. If Px rises, the line pivots inward around the Y-intercept (you can still afford the same amount of Good Y). If Py rises, it pivots around the X-intercept.

Verification Example (Mankiw Ch. 21): M = $100, Px = $5, Py = $10.
X-intercept = 20, Y-intercept = 10, Slope = −0.5.
If Px rises to $10: new X-intercept = 10, Y-intercept unchanged = 10, new slope = −1.
Download This Calculator as an Excel Template Interactive model with editable formulas — customize, save, and share.
Get Excel Template

Frequently Asked Questions

A budget constraint shows all combinations of two goods a consumer can afford given their income and the prices of both goods. The budget line (Px × X + Py × Y = M) represents the frontier where all income is spent. The budget set includes all affordable bundles on or below this line (Px × X + Py × Y ≤ M). Points above the budget line are unaffordable.

The slope of the budget line equals −Px/Py and represents the opportunity cost of Good X in terms of Good Y. A slope of −0.5 means the consumer must give up 0.5 units of Good Y to obtain one additional unit of Good X. It reflects the market’s rate of exchange between the two goods, determined solely by their prices.

An income increase shifts the budget line outward in a parallel fashion — both intercepts increase proportionally while the slope stays the same, since relative prices haven’t changed. An income decrease shifts it inward. This is because more (or less) of both goods becomes affordable without changing the trade-off rate between them.

A price change causes the budget line to pivot. If the price of Good X increases, the budget line pivots inward around the Y-intercept (you can still buy the same amount of Good Y, but less of Good X). The slope becomes steeper. If the price of Good Y increases, the line pivots inward around the X-intercept and the slope becomes flatter. Price decreases cause the opposite pivots.

A budget constraint shows what a consumer can afford (determined by income and prices), while an indifference curve shows what a consumer prefers (combinations giving equal satisfaction). The optimal consumption bundle is typically where the highest indifference curve is tangent to the budget constraint, though corner solutions are possible when the consumer maximizes utility by spending all income on one good.

When a price changes, the budget line pivots. Economists decompose the total effect on consumption into substitution and income effects, but this requires knowing consumer preferences (indifference curves). This calculator shows how the budget constraint itself changes — the first step in that analysis. The substitution effect reflects the change in relative prices, while the income effect reflects the change in purchasing power. The full decomposition requires additional preference information beyond what the budget constraint alone provides.
Disclaimer

This calculator is for educational purposes only. It uses a simplified two-good model with linear budget constraints and constant prices. Real-world consumer choice involves many goods, non-linear pricing, taxes, and transaction costs not captured here. This tool should not be used for business or policy decisions.