What Is Opportunity Cost? Definition, Formula and Examples

By Markets & Investing DeskUpdated Nov 10, 2026

Opportunity Cost
Illustration · Fintrev

Definition

Opportunity cost is the value of the next-best alternative you give up when you choose one use of money, time or other resources over another.

Key takeaways

  • Opportunity cost counts only the single next-best alternative, not the sum of every option passed up.
  • For investments, it equals the return on the best forgone option minus the return on the chosen option.
  • Between two goods, divide units of the good given up by units of the good gained, never the reverse.
  • The producer with the lower opportunity cost for a good holds the comparative advantage in it.

Opportunity cost is the value of the next-best alternative you give up when you choose one use of money, time or other resources over another. Resources are limited, so every choice to do one thing is also a choice not to do something else. The benefit you would have received from the best option you rejected is the opportunity cost of the option you took.

The definition rests on two points. First, opportunity cost counts only the next-best alternative, not the sum of every option you passed up. If you could have spent a Saturday working a paid shift, studying or hiking, and you chose to study, the opportunity cost is whichever of the other two you valued more, not both together. Second, it is measured in what you forgo, which can be money, output, time or satisfaction.

What Opportunity Cost Means in Economics

Economics starts from scarcity. Land, labor, capital and entrepreneurship, the factors of production, are finite, and so is an individual’s income and time. Because nobody can have everything at once, each decision carries a trade-off, and opportunity cost is the name for the price of that trade-off.

Opportunity Cost Formula

There is no single formula that covers every case. The right calculation depends on whether you are comparing returns, comparing quantities of goods, or comparing time.

Formula for investment decisions

When the choice is between two investments, opportunity cost is the difference in their expected returns:

Opportunity cost = Return on the best forgone option − Return on the chosen option

Hypothetical example: a company can put spare cash into a stock portfolio expected to return 10% over the next year, or into new equipment expected to return 8% over the same year. The two options are mutually exclusive. Choosing the equipment carries an opportunity cost of 2 percentage points (10% − 8%) for that year.

The same formula works in dollar terms. On $100,000 under the assumptions above, the expected opportunity cost of the equipment is $2,000 for the first year.

Formula for two goods

In economics courses, opportunity cost is usually calculated between two goods that compete for the same resources. The formula is a ratio:

Opportunity cost of good X = Units of good Y given up ÷ Units of good X gained

The good you give up goes in the numerator and the good you gain goes in the denominator; flipping the ratio is a common mistake.

How to calculate opportunity cost from a table

Hypothetical example: two workshops each have one day of labor and can make either shirts or hats.

Workshop Shirts per day Hats per day
A 10 5
B 6 6

For Workshop A, making 5 hats means giving up 10 shirts. The opportunity cost of one hat is 10 ÷ 5 = 2 shirts, and the opportunity cost of one shirt is 5 ÷ 10 = 0.5 hat.

For Workshop B, making 6 hats means giving up 6 shirts. One hat costs 1 shirt, and one shirt costs 1 hat.

The calculation assumes each workshop can switch between products at a constant rate. When the trade-off changes as output shifts, which is the usual case on a curved production possibility frontier, the opportunity cost has to be calculated for each step along the curve rather than once for the whole range.

Interpreting Opportunity Cost

Lower opportunity cost and comparative advantage

A lower opportunity cost means a producer gives up less of the other good to make one more unit. In the table, Workshop B makes hats at a lower opportunity cost (1 shirt per hat versus 2), while Workshop A makes shirts at a lower opportunity cost (0.5 hat per shirt versus 1).

The producer with the lower opportunity cost for a good has the comparative advantage in it. Absolute advantage simply means producing more of a good with the same resources: Workshop A has it in shirts (10 versus 6), and Workshop B in hats (6 versus 5). The two ideas can diverge: a producer can be faster at both goods and still have a comparative advantage in only one of them. Comparative advantage is what explains why specialization and trade can leave both sides with more total output.

Positive, zero and negative values

In return comparisons, a positive opportunity cost means the alternative was expected to earn more than the chosen option, zero means equal expected payoffs, and a negative figure means the chosen option was expected to do better. These readings hold only if the comparison is fair, which the risk section below addresses.

Examples of Opportunity Cost

A business choosing between securities and equipment

Hypothetical example: a business has $50,000 and two options.

  • Securities expected to return 6% a year, compounding: $3,000 in year one, $3,180 in year two and $3,370.80 in year three, a three-year total of $9,550.80.
  • New equipment that needs setup and staff training, so it starts slowly: an estimated $1,000 of added profit in year one, $4,000 in year two and $7,000 in year three, a total of $12,000.

After one year, the securities are ahead by $2,000, which is the opportunity cost of buying the equipment at that point. After two years, the equipment has produced $5,000 against $6,180 from securities, still $1,180 behind. By the end of year three, the equipment leads by $12,000 − $9,550.80 = $2,449.20, and the securities become the option with the opportunity cost.

The answer depends on the time horizon chosen. A one-year comparison favors the securities, while a three-year comparison favors the equipment, under the same estimates.

An individual deciding what to do with a bonus

Suppose you receive an unexpected $1,000. You could spend it now on a short trip, or put it in a one-year certificate of deposit. Assuming a 5% CD rate, the deposit would be worth $1,050 in a year. The opportunity cost of the trip is the $50 of interest plus whatever value you place on having $1,050 available later. The opportunity cost of saving is the trip itself, and if you have use-it-or-lose-it vacation days, the time off as well.

Time and education

Time is a resource with an opportunity cost too. The full economic cost of a year at college includes tuition, books and fees plus the wages the student could have earned by working instead. Those forgone wages never appear on a tuition bill, yet for many students they are a large part of the true cost. The same reasoning applies to an hour spent commuting, waiting in line or studying for an exam instead of working.

The 10,000-bitcoin pizzas

One of the most cited examples comes from 2010, when 10,000 bitcoins were exchanged for two large pizzas worth about $41 at the time. As bitcoin’s price rose in later years, the value of those coins grew to hundreds of millions of dollars. Measured afterward, the opportunity cost of those pizzas was enormous, though nobody could have known that at the time of the trade.

Opportunity cost in investing over a long horizon

Hypothetical example: an investor puts $5,000 a year into bonds for 30 years. Assuming a 3% average annual return, the portfolio ends at roughly $238,000. If the same contributions had instead earned a 6% average blended return from a mix that included stocks (an index such as the S&P 500 is the typical benchmark for the stock side), the ending balance would be roughly $395,000. Under these assumptions, the opportunity cost of the bond-only approach is about $157,000, because compounding widens a few percentage points a year into a large dollar gap over decades. The comparison ignores the different risk of the two portfolios.

Opportunity Cost and Capital Structure

Companies use opportunity cost analysis when deciding how to finance themselves. Beyond the explicit costs of interest paid to lenders and returns expected by shareholders, cash committed to bond interest and principal payments cannot be invested in new projects, and issuing shares gives up a portion of future profits and control. The goal is a mix of debt and equity that minimizes the combined cost, including non-monetary factors such as financial flexibility. Because future returns are unknown, this analysis relies on projections.

Explicit vs. implicit costs

Explicit costs are out-of-pocket payments such as rent, wages and supplies. They involve cash and are recorded on financial statements. Implicit costs involve no cash payment and cannot be measured precisely for accounting purposes. Opportunity costs are implicit costs, which is why they are also called imputed costs. An owner who works in their own business without a salary, for example, incurs an implicit cost equal to the wage they could have earned elsewhere.

Opportunity cost vs. sunk cost

A sunk cost is money already spent that cannot be recovered. Opportunity cost is the future benefit given up by choosing one path over another. Sound decision-making ignores sunk costs and focuses on opportunity costs, because only future outcomes can still be changed. If you bought 1,000 shares at $10, the $10,000 is sunk. Whether to keep holding the shares depends on how they compare with the best alternative use of their current value, not on what you paid.

Opportunity cost vs. risk

Risk is the chance that an investment’s actual return differs from its expected return, including the chance of losing some or all of the capital. Opportunity cost is the chance that the chosen investment returns less than the forgone one. Risk compares one investment’s actual result against its own projection, while opportunity cost compares two investments with each other.

The two interact. A Treasury bill and a volatile stock with the same expected return show an opportunity cost of zero, yet they are not equivalent: T-bills are backed by the U.S. government and are generally considered among the safest investments, and the stock carries no such backing. Comparing returns without adjusting for risk can make a dangerous option look free.

Accounting profit vs. economic profit

Accounting profit, calculated under rules such as U.S. generally accepted accounting principles (GAAP), subtracts only explicit costs from revenue. Economic profit also subtracts opportunity costs. A business can report an accounting profit and still have an economic loss if its owners could have earned more by using the same capital and time elsewhere. Economic profit is an internal measure for strategy and planning; it is not reported in financial statements.

Limitations of Opportunity Cost

  • It relies on estimates. The return of the path not taken is never observed, so the calculation depends on forecasts. Investors often use historical returns as a guide, but past performance does not guarantee future results.
  • Hindsight distorts it. Judging a past decision, such as the bitcoin pizzas, by outcomes nobody could have known overstates its opportunity cost.
  • Some values are hard to price. Time with family, job satisfaction or peace of mind do not convert neatly into dollars, yet they are often the deciding factors.
  • The horizon changes the answer, as the equipment example shows.
  • Comparisons must be like for like. Returns should be adjusted for risk, taxes, fees and, over long periods, inflation, since similar nominal returns can differ in real purchasing power. Economists often hold other factors constant, the ceteris paribus assumption, to isolate one trade-off, but real decisions rarely change only one variable at a time.

The Bottom Line

Anyone weighing investments, business spending, education or how to use their time can use opportunity cost to see what a choice really costs. The figure rests on forecasts, so compare options over the same time horizon and adjust for risk, taxes, fees and inflation. Ignore money already spent, since only future outcomes can still change, and judge past choices by what could have been known at the time.

About this page

Written by Markets & Investing Desk

The Markets & Investing Desk covers investing guides, the financial dictionary, companies, people, economics and market data.

Published
Last updated

Spotted an error? Tell the editors. This page is general information, not financial advice.