Interactive tool
Budget Line Visualizer
See which bundles are affordable and how income or prices rotate and shift a budget line.
Controls
Result
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.
Related lesson
Sources and scope
- OpenStax, Principles of Economics 3e, 6.1 Consumption Choices: budget constraints and opportunity cost.
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.
Define the market, period, price concept and affected population behind “Controls.”
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.
Trace quantities, prices, expectations and institutional adjustment before claiming an effect.
Use OpenStax, Principles of Economics 3e, 6.1 Consumption Choices to describe what would plausibly have happened without the shock.
| Actor | Transmission channel | Evidence to compare |
|---|---|---|
| Households | Income, prices, access and risk | Outcomes by exposure rather than only the average |
| Firms | Costs, demand, finance and entry | Margins, timing and market structure |
| Public institutions | Rules, revenue and balance sheets | Implementation plus unintended response |