General investing

Opportunity Cost Calculator

Compare the return from the best alternative with the return from your choice to find opportunity cost, the value of what you give up by deciding.

  • Free
  • No sign-up
  • Updated for 2026

Two options

$
$

Enter both returns to see the opportunity cost.

Worked example

With these example inputs:

  • Return from best alternative$8,000
  • Return from your choice$5,000

Opportunity cost: $3,000

  • Return from best alternative$8,000
  • Return from your choice$5,000

Add this calculator to your site

Free to embed. Copy the snippet below, it drops the live calculator straight into any page.

What this opportunity cost calculator does

This calculator finds your opportunity cost. You enter the return from your best alternative. You also enter the return from your choice. The tool then subtracts the two. So you see the value you gave up. The result appears in your chosen currency.

What opportunity cost is

Opportunity cost is the value of the road not taken. It is what the next best option would have paid. So every choice has a hidden cost. It is not money you spend. It is the gain you skip. This tool puts a number on it.

How it is calculated

The tool takes the best alternative return. It subtracts the return from your choice. So a richer alternative lifts the cost. A better choice shrinks it. The result is your opportunity cost. The calculator works it out for you.

What the result tells you

The result shows your opportunity cost. An alternative of eight thousand against a choice of five thousand is three thousand. A richer alternative raises it. A better choice lowers it. So it shows what you traded away. It reads clearly at a glance.

The best alternative return

Your best alternative return is the top option you passed. It is what the runner-up would have earned. A higher alternative lifts the cost. So this number sets the bar. Use the best other use of the money. It sets the size of the result. Enter your best alternative return.

The return from your choice

Your return from your choice is what you picked earns. It is the payoff of the path you took. A higher choice lowers the cost. So this number is the offset. Use the real return of your pick. Match it to the same period. Enter your return from your choice.

Why opportunity cost matters

Opportunity cost shows the true price of a choice. A plain profit can still hide a loss. So a gain that trails the alternative is costly. It pushes you to weigh every option. It is key for smart money moves. The best choice has the lowest cost.

When the cost is negative

A negative cost means your choice won. Your pick beat the best alternative. So you came out ahead by that gap. It is a sign you chose well. A zero cost means a tie. Either way, the number guides you.

How to use it

Enter your best alternative return first. Add the return from your choice. Read the opportunity cost in your currency. Then compare a few options. See which gap is smallest. Try different returns. Use it to weigh a decision.

The limits of this calculator

Every tool has its limits. It uses two returns you provide. Those returns can be hard to guess. It ignores risk and timing. It does not weigh effort or stress. So treat it as a guide. So check your figures with care.

A final tip

Use this to weigh a choice with clear eyes. Remember the alternative return is an estimate. Use the same period for both. Add risk to your thinking too. The lowest cost is the best move. Do not ignore what you give up. A careful choice needs honest numbers.

Frequently asked questions

What is opportunity cost?

Opportunity cost is the benefit you give up by choosing one option over the next best one. Here it is the alternative's return minus your choice's return.

What does a negative result mean?

A negative opportunity cost means your choice outperformed the alternative, so you gave up nothing, you came out ahead by the amount shown.