Interactive tool

Budget Line Visualizer

See which bundles are affordable and how income or prices rotate and shift a budget line.

Formula and input boundaries reviewed 9 October 2026

Controls

Result

Maximum A—
Maximum B—
Opportunity cost of A—
Preferred bundle—

How the calculation works

The budget constraint is income = price of A × units of A + price of B × units of B. The horizontal intercept is income divided by the price of A; the vertical intercept is income divided by the price of B. The opportunity cost of one additional unit of A is price A divided by price B, measured in units of B.

The model assumes only two goods, fixed prices, a fixed spending budget, and divisible quantities. It does not include taxes, borrowing, bulk discounts, uncertainty, or changing preferences.

Try these scenarios

  • Double income with both prices fixed: the line shifts outward in parallel.
  • Raise only the price of A: the horizontal intercept moves inward and the line rotates.
  • Enter a bundle just beyond the line: its cost exceeds income and the marker turns red.

Sources and scope

Results are deterministic teaching calculations, not forecasts or financial advice. Displayed values are rounded; affordability is calculated from the unrounded inputs.

Counterfactual workshop / tools

Stress-test Budget Line Visualizer

See which bundles are affordable and how income or prices rotate and shift a budget line.

01Baseline

Define the market, period, price concept and affected population behind “Controls.”

→
02Shock

Write the causal chain in steps, name what is held constant, and identify whose outcome may move differently from the aggregate. Specify what changes first and what is held constant.

→
03Response

Trace quantities, prices, expectations and institutional adjustment before claiming an effect.

→
04Counterfactual

Use OpenStax, Principles of Economics 3e, 6.1 Consumption Choices to describe what would plausibly have happened without the shock.

Distribution ledger
ActorTransmission channelEvidence to compare
HouseholdsIncome, prices, access and riskOutcomes by exposure rather than only the average
FirmsCosts, demand, finance and entryMargins, timing and market structure
Public institutionsRules, revenue and balance sheetsImplementation plus unintended response
120-word decision memo

State the mechanism for Budget Line Visualizer, identify the group that gains and the group that bears the adjustment, then name one result that would overturn the recommendation.