An opportunity cost calculator measures the value of the option you did not take. Every decision to commit money forecloses the next-best use of it, and that forgone return is a genuine cost even though no invoice ever arrives for it. Because it never appears in any accounting record, it is the cost most often left out of a decision entirely — which is precisely why it is worth calculating explicitly.
Arb Digital publishes this in the free tool library at arbsbuy.com for people weighing one commitment against another rather than judging a single one. That is the boundary with the live investment ROI calculator, which scores one option in isolation and reports whether it made money. This page starts from the position that both options make money and asks which one costs less to forgo.
What This Opportunity Cost Calculator Does
Enter the capital being committed now, any recurring annual commitment, the time horizon, and the annual return you expect from the chosen option and from the next-best alternative. The calculator compounds both streams forward across the horizon and reports the difference between the two end values.
Presenting the answer as a single currency figure is the point. A two-point difference in annual return sounds small; the same difference over a decade, applied to a meaningful sum, does not. The four bars set the total amount committed next to what each route grows it to, so the compounding is visible rather than asserted.
The inflation input converts the gap into today's purchasing power. Future currency and current currency are different units, and a gap quoted in money a decade away overstates what it would buy. The inflation calculator handles that conversion in its own right, and the real interest rate calculator explains why the adjustment is not simply subtracting one rate from the other.
How to Use It
- Name the alternative before you enter a rate. Opportunity cost is the value of one specific forgone option — the best one available to you — not a generic market average.
- Use the same basis for both rates. Comparing a pre-tax business return against an after-tax investment return builds the error straight into the answer.
- Set the horizon to how long the money is genuinely tied up. Capital in inventory that turns four times a year is not committed for a decade, even if the business runs that long.
- Include ongoing commitments. A decision that also absorbs cash every year has a far larger opportunity cost than the initial outlay suggests.
- Run it in both directions. Whichever option you label as chosen, the other one has an opportunity cost too. Swapping the two rates shows the full picture.
The Formula / How It's Calculated
Each route is compounded independently and then compared. The end value of a lump sum plus annual contributions is FV = P × (1 + r)ⁿ + C × [((1 + r)ⁿ − 1) ÷ r], where P is the amount committed today, C is the annual addition, r is the annual rate and n is the number of years. Opportunity cost is FV of the alternative − FV of the chosen option.
Run the defaults. With 50,000 committed today, 6,000 added each year and a horizon of 10 years, the chosen option at 4 percent grows the lump sum to 50,000 × 1.04¹⁰ = 74,012, and the contribution stream to 6,000 × 12.006107 = 72,036. The chosen route therefore ends at 146,049.
The alternative at 8 percent grows the same lump sum to 50,000 × 1.08¹⁰ = 107,946 and the same contributions to 6,000 × 14.486562 = 86,919, ending at 194,866. The opportunity cost is 194,866 − 146,049 = 48,817.
Set that against the 110,000 actually committed across the decade and the gap is 44.38 percent of the money put in. A four-point annual difference has cost close to half the capital again — not because either return is unusual, but because compounding operates on the difference for the whole period.
Why the Horizon Matters More Than the Rates
Most people intuitively grasp that a higher rate produces a bigger gap. Far fewer notice that extending the horizon does more damage than widening the rate difference, because the gap grows geometrically in time and only linearly in the spread.
Take the default figures and change one thing at a time. Widen the rate difference from four points to six, by moving the alternative to 10 percent, and the opportunity cost rises to roughly 82,000. Instead keep the four-point spread and extend the horizon from ten years to twenty, and the gap rises to well over 200,000. The second change is far more consequential, and it is the one that decisions typically get wrong, because horizons are assumed rather than chosen.
The practical implication is that the most expensive opportunity costs come from long-lived, low-return commitments rather than from dramatic ones. Capital parked in slow inventory, in a property held for reasons nobody revisits, or in a product line kept alive out of habit rarely triggers a decision at all — and never triggering a decision is exactly what makes the horizon long. The compound interest calculator shows the same mechanism working in your favour rather than against you.
Choosing the Alternative Honestly
The single biggest source of nonsense in opportunity-cost arguments is an alternative that was never actually available.
Three tests keep the figure defensible. First, availability: could this capital genuinely have gone there, in this amount, at this time? Money already inside a business is not always extractable without tax or disruption, and an alternative you cannot reach is not an alternative. Second, comparable risk: a risky venture return and a government bond yield are not exchangeable, and comparing them attributes to opportunity cost what is really a risk premium. Third, comparable effort: a return that requires full-time management is not equivalent to one that requires none.
For business decisions the most defensible alternative is usually the firm's own cost of capital, because that is the rate at which money can actually be raised or retired. The WACC calculator computes it, and using it turns opportunity cost into the same discipline that the NPV calculator applies to a project — the discount rate in a net present value calculation is nothing other than opportunity cost expressed as a rate.
Where Opportunity Cost Hides in a Business
The formula on this page is simple. Recognising when it applies is the harder part, and there are three cases where it routinely goes unnoticed.
The first is cash sitting idle. A business holding a large balance beyond its working capital needs is making a decision every day, and the opportunity cost is the return that balance could earn less whatever insurance value the buffer provides. That is a real trade-off, but it should be a chosen one.
The second is time rather than money. An owner spending twenty hours a week on work that could be delegated is forgoing whatever those hours would produce elsewhere, and the billable hours calculator and the freelance hourly rate calculator give that a defensible rate. The third is the decision to build something in-house rather than buy it, where the internal cost usually excludes the value of the team's time entirely — the case the build vs buy calculator exists to structure.
What all three share is that the cost never appears in any ledger. There is no line item for a return you did not earn, which is why the discipline has to be imposed deliberately. MIT's OpenCourseWare publishes the standard treatment in Finance Theory I, where present value relations and the opportunity cost of capital are developed together, and the Securities and Exchange Commission's compound interest calculator on Investor.gov demonstrates the compounding that drives the size of the gap.
What the Number Does Not Settle
Opportunity cost is a comparison of expected returns, and expected returns are estimates. Two things sit outside the arithmetic entirely.
Risk is the first. The alternative's higher return usually exists because it carries more uncertainty, and this calculator treats both rates as if they were certain. If the alternative's outcome has a wide distribution and the chosen option's does not, the headline gap overstates the true cost of choosing safety. Adjusting for that means lowering the alternative's rate to a risk-equivalent figure, not adding a caveat afterwards.
Reversibility is the second. An option that can be unwound cheaply has a smaller effective opportunity cost than the horizon suggests, because the horizon is a choice rather than a commitment. An irreversible one has a larger cost than the arithmetic shows, because it also forecloses alternatives that have not appeared yet. Neither adjustment is a formula, and this page takes no view on which option anyone should choose.
Arb Digital runs paid acquisition against measured return per channel, so the money in each one is being compared against the next-best place it could go.
Paid Advertising Talk to Arb DigitalCommon Mistakes to Avoid
- Comparing against an alternative you could not access — the figure is only meaningful if the money could genuinely have gone there.
- Ignoring risk differences — a higher expected return usually carries more uncertainty, and treating both rates as certain inflates the gap.
- Mixing pre-tax and after-tax rates — the error compounds across the whole horizon alongside everything else.
- Assuming a horizon rather than choosing one — the length of the commitment drives the answer more than either rate does.
- Quoting the gap in future currency — without an inflation adjustment it overstates what that money would actually buy.
Related Free Tools From Arb Digital
Use the NPV calculator when the alternative is a project with its own cash flows, the IRR calculator to express a return as a rate rather than an amount, the payback period calculator for how long capital stays committed, the present value calculator to bring any future figure back to today, the investment ROI calculator to score a single option, and the savings goal calculator when the horizon is fixed by a target rather than a decision. The free online tools hub lists everything else.
Frequently Asked Questions
Compound the chosen option and the next-best alternative forward across the same horizon, then subtract one end value from the other. The difference is the return given up by choosing one over the other.
It is real in the sense that it changes how much wealth exists at the end of the period, but it never appears in any accounting record because no transaction occurs. That invisibility is why it has to be calculated deliberately.
The return on the best option genuinely available to you at comparable risk and effort. For business decisions the weighted average cost of capital is often the most defensible choice, since it is the rate at which money can actually be raised or repaid.
Opportunity cost looks forward at what a commitment forecloses from now on. A sunk cost is money already spent that cannot be recovered and should not influence any future decision at all.
Yes. Hours spent on one activity cannot be spent on another, and valuing them at a defensible hourly rate makes the trade-off visible in the same currency terms as a capital decision.
Because the difference between the two routes compounds. Extending the horizon multiplies the gap geometrically, while widening the rate spread only increases it in proportion, so the horizon usually dominates the result.
They can be, provided both are adjusted the same way. Entering an inflation rate expresses the gap in today's purchasing power, which is the more meaningful figure over long horizons.
This calculator performs arithmetic on figures you supply and is provided for general information only. It is not financial or investment advice, returns are assumptions rather than guarantees, and the appropriate comparison depends on your circumstances — confirm any figure with a qualified professional.