Consumer theory explains choices from two ingredients: what a person can afford and what they want. The budget constraint, the first ingredient, turns prices and income into a set of affordable bundles, and its shape already explains how a price change, a raise, a tax or a ration alters the options.
We will draw the budget line, read prices off it, read its slope as a trade-off, shift and rotate it, and then bend it with taxes and rations.
Step 1: The budget line
With income M and prices px and py, the consumer can afford any bundle with
Spending everything gives the budget line. With $120, x at $3 and y at $4, buying 24 units of x costs $72 and leaves $48, enough for 12 of y.
Step 2: Reading the intercepts
The line hits the x-axis at M/px (all income on x) and the y-axis at M/py. In the example it runs from 40 units of x to 30 of y. Read backwards, the intercepts give the prices: if income is $60 and the line meets the y-axis at 20, then py = 60 ÷ 20 = $3.
Step 3: The slope: the market trade-off
With y on the vertical axis, the budget line's slope is
It is the rate at which the market lets you trade y for x: each extra unit of x costs px/py units of y, the opportunity cost of x. In the example, the slope is −3/4.
Step 4: Shifts and rotations
A change in income moves the line in parallel: both intercepts change, the slope does not. A change in one price rotates it around the other intercept. Raising px from $3 to $6 halves the most x you can buy, to 20, while the most y stays at 30. Doubling every price and income leaves the line exactly where it was. Try it below.
With $120 of income and x at $3, the most x is 120 ÷ 3 = 40 and the most y is 120 ÷ 4 = 30. The slope is −3 ÷ 4 = −0.75. The dashed line is the starting budget, $120 with x at $3.
Step 5: Taxes, subsidies and rationing
A per-unit tax t on x raises its price to px + t, rotating the line inward around the y-intercept; a per-unit subsidy rotates it outward. A lump-sum tax T shifts the line in parallel to M − T. Rationing caps how much x anyone may buy.
A policy that applies only beyond a threshold puts a kink in the line: with a $3 tax on x beyond 20 units, the line bends at (20, 15) and the most x falls from 40 to 20 + 60/6 = 30.