Opportunity Cost Calculator
Calculate the opportunity cost of any financial decision by comparing the net value of two options.
About the Opportunity Cost Calculator
Opportunity cost is the value of the best alternative you give up when making a decision. Every choice you make — whether to invest money, spend time, or use a resource — implicitly forecloses other options. Understanding opportunity cost helps you make better decisions by making the true cost of each choice visible, including the costs that never appear on any invoice or statement.
Opportunity cost applies to financial decisions, career choices, business investments, and everyday trade-offs. When you invest in stocks instead of paying off debt, the opportunity cost is the interest savings you forego. When you choose one job over another, the opportunity cost is the salary and benefits of the rejected offer. This calculator helps you quantify opportunity cost in financial terms by comparing the expected net return of two competing options.
How It Works
Opportunity cost is what you give up when choosing one option over another. Enter the costs and expected returns for each option. The calculator shows the net value of each choice and the true opportunity cost of your decision.
What Opportunity Cost Is in Economics
Opportunity cost is one of the most fundamental principles in economics, representing the value of the next-best alternative forgone whenever a choice is made. Because resources — money, time, raw materials, labor — are finite, choosing to use them in one way necessarily means they cannot be used in another. The opportunity cost of a decision is not the price you pay, but the value of the best option you did not choose. A business that spends $500,000 building a new warehouse incurs an explicit cost of $500,000, but the opportunity cost also includes the return that $500,000 could have earned if invested in marketing, new equipment, or financial assets instead. True decision-making requires accounting for both.
The concept was formalized by classical economists in the late 19th century as a way to quantify the trade-offs inherent in every economic choice. Frédéric Bastiat illustrated it through his 'broken window' parable: if a shopkeeper's window is broken, money is spent on a glazier, which appears to stimulate economic activity. But the opportunity cost is the new suit the shopkeeper would have bought with that money if the window had not broken — an economic contribution equally valuable but invisible because it did not happen. This insight — that economic analysis must account for what is not seen, not just what is — is the core of opportunity cost reasoning, and modern economists apply the same logic to tax policy, infrastructure spending, and regulatory decisions.
Opportunity cost is omnipresent in everyday life, though we rarely articulate it explicitly. When you spend two hours watching television, the opportunity cost might be the two hours of studying, exercising, or working on a side project that you did not do. When you choose a state university over a private college, the opportunity cost includes the prestige, networking, and potentially higher graduate earnings of the alternative — not just the tuition difference. When a government allocates its defence budget, the opportunity cost is all the healthcare, education, or infrastructure that funding cannot simultaneously provide. Recognizing opportunity costs does not mean you made the wrong choice, but it does mean you are making a fully informed one that acknowledges all the real trade-offs involved.
Explicit vs. Implicit Costs
In economics, the costs of any decision are divided into two categories: explicit costs and implicit costs. Explicit costs are direct, out-of-pocket expenditures that show up in accounting records — wages paid to workers, rent on office space, materials purchased, interest paid on loans. These are the costs that appear on a standard income statement and are intuitive to track. Implicit costs, by contrast, are opportunity costs of resources already owned or controlled by the decision-maker, for which no cash payment is made. The most common example is the entrepreneur's own time: if you quit an $80,000-per-year job to start a business, the $80,000 in forgone salary is a real economic cost even though it does not appear anywhere in your business's accounting records.
The distinction between explicit and implicit costs leads to the difference between accounting profit and economic profit. Accounting profit = Total Revenue − Explicit Costs. Economic profit = Total Revenue − Explicit Costs − Implicit Costs. A business might show a healthy accounting profit while operating at a zero or negative economic profit if the implicit opportunity costs of the owner's time and capital are large. An entrepreneur earning $50,000 in accounting profit who could have earned $70,000 in stable employment is effectively losing $20,000 in economic terms, even though their financial statements show a profit. Economic profit, not accounting profit, is the correct metric for evaluating whether a business venture is genuinely worthwhile as an alternative to other uses of the owner's time and capital.
Implicit costs also include the opportunity cost of owned capital. If a business owner uses $200,000 of personal savings to fund operations rather than investing it, the implicit cost is the return those savings would have earned — perhaps 6–8% per year in a diversified investment portfolio. That $12,000–$16,000 per year in forgone investment returns is a real economic cost of the business, even though it never appears as a line item in the ledger. This is why economists distinguish between the normal rate of return — the return capital would earn in its next-best use — and economic profit, which is revenue minus all costs including the normal return on capital. A business earning exactly the normal rate of return is generating zero economic profit: it is breaking even in the fullest economic sense.
How Businesses Use Opportunity Cost for Decisions
Businesses apply opportunity cost analysis to virtually every major resource allocation decision, from capital budgeting to hiring to product line management. In capital budgeting, a company evaluating multiple potential projects — building a new factory, acquiring a competitor, upgrading technology infrastructure — must consider not only the projected return on each project but the opportunity cost of the capital deployed. If the best available project returns 12% and the firm's cost of capital is 8%, the opportunity cost of not investing in that project is the 4% incremental return forgone. This framework, formalized in the concepts of Net Present Value (NPV) and Internal Rate of Return (IRR), ensures that capital flows toward its highest-valued use rather than toward whichever project happens to be proposed first.
Make-or-buy decisions are another classic application of opportunity cost in business. When a manufacturer considers whether to produce a component in-house or outsource it to a supplier, the opportunity cost of in-house production includes the factory floor space, equipment, and management attention that could be deployed elsewhere. If those resources could earn a higher return in a different activity, outsourcing may be economically superior even if the in-house production cost appears lower on a simple cost comparison. This is why specialized manufacturers focus narrowly on core competencies: the opportunity cost of spreading attention and capital across too many activities typically exceeds the benefits of vertical integration, even when the integrated firm appears efficient on paper.
Opportunity cost also governs pricing strategy in businesses with limited capacity. A hotel with 100 rooms that is 90% booked on a particular night must consider the opportunity cost of a deeply discounted last-minute rate: if a customer willing to pay full price might still arrive, the discounted booking uses up a room that could have generated greater revenue. Yield management systems in airlines, hotels, and car rentals automate this opportunity cost reasoning continuously, adjusting prices in real time to maximize revenue given the opportunity cost of capacity allocation. Understanding opportunity cost as a strategic framework — rather than just an economic abstraction — reveals the logic behind many pricing and operational decisions that might otherwise appear arbitrary or counterintuitive.
Opportunity Cost in Investing
In investing, opportunity cost is the return you forgo on the capital allocated to one investment that you could have earned on an alternative investment of similar risk. This concept is central to how professional investors evaluate performance and make allocation decisions. Simply earning a positive return is not sufficient — the relevant question is whether you earned more than you would have by investing the same capital in the best available alternative. If your actively managed stock portfolio returned 8% last year and a low-cost index fund returned 10% over the same period, the opportunity cost of active management was 2 percentage points — plus any management fees charged, which compound the underperformance over time.
The risk-free rate of return — typically proxied by the yield on short-term government securities such as U.S. Treasury bills — establishes the baseline opportunity cost for any investment. Any investment that does not at minimum beat the risk-free rate (adjusted for risk) is destroying economic value relative to simply holding government bonds. This principle underlies the Capital Asset Pricing Model (CAPM), which holds that the expected return of an investment must exceed the risk-free rate by a premium proportional to the investment's systematic risk. An investment that falls short of this hurdle rate means the investor would have been better served by the lower-risk alternative — demonstrating that opportunity cost applies whether the alternative is a passive index fund, a risk-free bond, or another active investment.
Opportunity cost reasoning also explains why holding cash — often seen as a safe default — carries a real cost during periods of positive expected returns on alternative assets. In an inflationary environment, cash held in a zero-interest account loses purchasing power equal to the inflation rate. If inflation is running at 5% and the stock market offers an expected return of 8%, the opportunity cost of holding $100,000 in cash for one year includes both the real loss of purchasing power and the investment return forgone — a combined economic cost of approximately $13,000 relative to the invested alternative. Long-term investors who maintain excessive cash positions systematically destroy wealth relative to what they could have earned, even when they frame cash as a conservative or prudent choice.
Real-Life Examples of Opportunity Cost
Opportunity cost appears in virtually every significant decision in life, and thinking through it explicitly before committing often reveals considerations that pure cash-flow analysis misses. The classic example is the decision to attend college. The direct costs include tuition, fees, room and board, and textbooks — perhaps $30,000–$80,000 per year at a private U.S. university. But the full economic cost also includes the salary the student forgoes by not working full-time during those four years — potentially $35,000–$50,000 per year for a high school graduate entering the workforce directly. The total economic cost of a four-year degree can therefore reach $200,000–$400,000 when opportunity costs are fully counted, which changes the return-on-investment calculation significantly relative to just looking at tuition bills.
A common everyday example is the rent-versus-buy decision in housing. Buying a home requires a down payment (typically 5–20% of the purchase price), locking up a large sum of capital that could otherwise be invested in financial assets. The opportunity cost of a $60,000 down payment at a 7% expected return is $4,200 per year in investment returns forgone. This is a real economic cost of homeownership that never appears in standard rent-vs-buy calculators focused only on mortgage payments, insurance, taxes, and maintenance. Including the opportunity cost of tied-up equity often significantly narrows the apparent financial advantage of owning relative to renting in high-priced markets, especially over shorter time horizons before equity appreciation offsets the compounding cost of forgone investment returns.
Opportunity cost is also central to medical and public health decision-making. When healthcare systems allocate scarce resources — ICU beds, specialist time, drug procurement budgets — they face trade-offs in which providing one treatment necessarily means not providing another. The opportunity cost of treating a patient with a costly condition for an extended period includes the preventive care and routine treatments that the same resources could provide to a larger number of people with better expected health outcomes. These are among the most difficult opportunity cost calculations because they involve non-financial values such as quality of life and equity. Nevertheless, the underlying logic — every resource used for one purpose cannot simultaneously be used for another — is identical to the economic opportunity cost framework applied in business and investing.