Production Possibility Frontier and Cost Curves Grapher
Two economics graphs in one: a PPF from your data with opportunity cost per step, efficiency of any point and shifts, and cost curves with AFC, AVC, ATC and MC from a cost table.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Name the goods
Type the goods for the x and y axes in the PPF tab.
- 2Enter the frontier
Edit the points or add new ones; the graph and the opportunity costs update.
- 3Test a point and shift
Enter a test point and move the shift sliders to model growth.
- 4Build a cost table
In Cost curves type Q and TC, or generate TC from F, a, b and c.
- 5Read the curves
Check AFC, AVC, ATC and MC in the table and chart and the minimum points.
- 6Practise and export
Answer generated questions in Practice and export the PNG or CSV.
About this tool
Two diagrams appear in almost every introductory economics course. The production possibility frontier (PPF) shows the combinations of two goods an economy can produce with all its resources, and introduces scarcity, choice and opportunity cost. Cost curves show how a firm's average and marginal costs change with output, and lead on to supply and the theory of the firm. Students are usually given a table and asked to draw the diagram, calculate opportunity costs or average costs and explain the shape. This grapher does both from your own numbers. It draws the PPF, calculates the opportunity cost between each pair of points, tells you whether any point is efficient, inefficient or unattainable and shows shifts; and it turns a total cost table into fixed, variable, average and marginal costs with all four curves plotted.
The production possibility frontier
Each point on the frontier is a combination of two goods the economy can produce when all resources are used efficiently. Points inside the curve leave resources idle or wasted; points outside cannot be produced with current resources and technology. Moving along the curve means giving up some of one good to get more of the other: that sacrifice is the opportunity cost.
Opportunity cost between points
For each step along the frontier the tool divides the amount of the y-axis good given up by the extra amount of the x-axis good gained. If moving from 10 to 20 robots reduces wheat from 90 to 70, each robot costs 20 ÷ 10 = 2 units of wheat, and each unit of wheat costs 0.5 robots. When this ratio rises as you produce more of a good, the frontier bows outwards. That is the usual case, because resources are not equally suited to every product: the first workers moved into robot factories are the best at it, later ones are farmers who are much more productive in wheat.
Shifts
Two sliders scale the maximum output of each good. Moving both above 100 % models economic growth from more resources or better technology; moving only one models technology that helps one industry; moving below 100 % models a disaster or loss of resources. The shifted frontier appears as a dashed green line.
Cost curves
From a table of total cost (TC) at each output Q, the tool finds:
- fixed cost FC (cost at Q = 0) and variable cost VC = TC − FC, - average fixed cost AFC = FC ÷ Q, which keeps falling, - average variable cost AVC = VC ÷ Q and average total cost ATC = TC ÷ Q, usually U-shaped, - marginal cost MC = change in TC ÷ change in Q.
The marginal cost curve cuts AVC and ATC at their lowest points. The table highlights the minimum ATC and AVC, and you can fill the table from a cubic cost function TC = F + aQ + bQ² + cQ³ to get smooth textbook shapes.
Worked example
TC is 100 at Q = 0, then 150, 190, 220, 260, 340 and 450 for Q = 1 to 6. Fixed cost is 100. ATC falls from 150 to 65 at Q = 4 and then rises to 68 and 75. MC between Q = 3 and 4 is 40 and between Q = 4 and 5 is 80, so MC crosses ATC near its minimum at Q = 4, as theory predicts. AVC is lowest, 40, at Q = 3 and 4.
Limits
The tools use straight lines between the points you enter, so a frontier drawn from five points is an approximation of a smooth curve. Marginal cost is calculated between table rows, not as a derivative. These are teaching diagrams, not models of a real economy or firm.
Worked example
Robots 10 → 20 reduces wheat 90 → 70: opportunity cost 2 wheat per robot. TC table: minimum ATC 65 at Q = 4.
Quick facts
- Category: Study & Education
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: OpenStax Principles of Economics 3e, chapters 2 and 7
Frequently asked questions
Why is the PPF usually bowed outwards?
Because opportunity cost rises: resources are not equally good at producing both goods, so each extra unit of one good costs more and more of the other.
What does a point inside the PPF mean?
The economy is not using all its resources efficiently, for example because of unemployment.
What shifts the PPF outwards?
More resources (labour, capital, land) or better technology. Technology that helps only one industry shifts only that end of the curve.
Why does MC cut ATC at its minimum?
When the cost of the next unit is below the average, the average falls; when it is above, the average rises. So the average is lowest where marginal cost equals it.
Can I enter my own cost table?
Yes. Type quantities and total costs in the table, or generate one from a cubic cost function.
Can I export the graphs?
Export the PPF as a PNG image and the cost table as a CSV file.
