Opportunity Cost Calculator – What Your Choice Really Costs

Type the value of the best option you are passing on and the value of the option you picked.

100% FreeNo sign-up neededInstant results

Your numbers

The best option you are NOT choosing. Use dollars, hours, or any unit, but keep both values in the same unit.

Your numbers never leave this page. Everything is calculated in your browser.

Result

Opportunity cost
$800.00
Choosing the 4200 option gives up 800 of value, because the best alternative was worth 5000.

The numbers behind it

Best forgone alternative$5,000.00
Chosen option$4,200.00
Opportunity cost$800.00
Cost as a share of the forgone value16.0%
Copied

A positive result is the value the choice costs. A negative result means the chosen option beats the alternative, so the choice gained value instead of costing value.

How the cost moves as the forgone value changes

Keeping the chosen option at 4200, here is the opportunity cost for four different forgone values. The cost rises dollar for dollar with the forgone value, which is why picking the right alternative to compare against matters so much.

Forgone valueChosen valueOpportunity cost
$4,000.00$4,200.00-$200.00
$5,000.00$4,200.00$800.00
$6,000.00$4,200.00$1,800.00
$7,000.00$4,200.00$2,800.00
Key takeaways
  • Opportunity cost is one subtraction: the forgone value minus the chosen value.
  • A negative cost is a gain — the chosen option beat the alternative, by that amount.
  • Time mode turns hours into money by multiplying hours by an honest hourly rate.

How it works, in three steps

1

Name the best alternative

List what you could do instead, and keep only the best one. Opportunity cost is measured against the single best forgone option, not against every option added together.

2

Put both values in the same unit

Compare dollars with dollars, hours with hours, or points with points. If the two options are measured differently, convert one of them first.

3

Subtract, then read the sign

Forgone minus chosen is the cost. A positive answer is what the choice costs, a negative answer means the choice gained value, and zero means the two options tie.

How the calculation works

Opportunity cost = value of the best forgone alternative − value of the chosen option · Time cost = hours × value per hour

Worked example. Forgone value 5000 minus chosen value 4200 = 800. The choice costs 800, because the best alternative was worth 800 more. Time example: 40 hours times 30 per hour = 1200, so spending those 40 hours costs 1200 of time value. If the numbers flip, the sign flips too: forgone 4200 minus chosen 5000 = negative 800, which means the chosen option is worth 800 more than the alternative.

Why only the best alternative counts. Suppose you turn down jobs paying 5000, 4200 and 3000 to take one paying 3800. The opportunity cost is 5000 minus 3800 = 1200, not the sum of all three turn-downs. You could only have taken one of them, so only the best one is truly given up.

Going deeper

When you pick one option, you give up every other option, but you could only ever have picked one of them. Adding up all the forgone options would double count, because they were never all available at once. Economics therefore defines opportunity cost against the single next-best alternative. That is also why the choice of comparison matters: comparing against a weak alternative understates the cost, and comparing against the best alternative gives the honest number.

A negative opportunity cost looks like a mistake, but it is the math telling you the choice was better than the alternative. If the chosen option is worth 5000 and the best forgone option is worth 4200, the cost is 4200 minus 5000, which is negative 800. Read it as a gain of 800, not as a cost at all. This calculator shows the negative sign plainly instead of hiding it behind zero, so a winning choice is visible as a win.

Every choice gives something up. Type the value of the best option you are passing on and the value of the option you picked, and this calculator shows what the choice costs, or what it gains.

The cost of a choice, in one subtraction

Opportunity cost is the value of the best option you give up when you choose something else. It is one subtraction: the value of the forgone option minus the value of the chosen option. If the result is positive, the choice cost you something. If it is negative, the choice gained you something. If it is zero, the two options were worth the same, and the choice cost nothing in value terms.

The page’s default example makes the subtraction concrete. The forgone option is worth $5,000 and the chosen option is worth $4,200, so the opportunity cost is $5,000 minus $4,200, which is $800.00. The result line says it plainly: choosing the $4,200.00 option gives up $800.00. That $800 is not a bill you pay and not money that leaves your account. It is the value you did not get because you picked the lower-valued option, and naming it is the whole point: an unnamed cost is easy to ignore, while a named $800 invites a second thought.

The calculator also shows the cost as a share of the forgone value, which helps you judge whether the cost is large or small relative to the decision. A larger example shows the share clearly: forgone $10,000 and chosen $6,000 give a cost of $4,000.00, which is 40.0% of the forgone value. Two decisions can have the same dollar cost and very different shares, and the share is what tells you whether you gave up a tenth of the value or nearly half of it. Read the dollars for the size of the sacrifice and the share for its proportion, and a choice that looks cheap in dollars sometimes looks expensive as a share, and vice versa.

The subtraction only works when the two values are comparable. Both must be in the same currency and both must describe the same kind of value: two prices, two salaries, two investment returns, or two time values. Comparing a price with a salary, or a one-off amount with a yearly amount, produces a subtraction that is arithmetically correct and meaningless. Before entering numbers, check that both options are measured the same way, over the same period, in the same units, and the result will mean what it says.

When the cheaper-looking option wins

Opportunity cost can be negative, and a negative cost is good news: it means the option you picked is worth more than the option you gave up. Swap the default numbers around, with forgone $4,200 and chosen $5,000, and the cost becomes $4,200 minus $5,000, which is −$800.00, with a share of −19.0%. The minus sign is doing real work here: it says the choice did not cost value, it gained $800 of value relative to the alternative. A calculator that only showed positive costs would hide exactly the cases where you chose well.

This matters because the option with the higher price tag is not always the better choice, and the option with the lower price tag is not always the worse one. Value and price are different things: a cheaper option that lasts longer, needs less maintenance, or frees time for something valuable can be worth more than an expensive option that does none of those things. Opportunity cost compares values, not prices, so the numbers you enter should reflect what each option is actually worth to you, including durability, time and hassle, not just the sticker figure.

The negative case also guards against a common misreading. A cost of −$800 does not mean you received $800 in cash. It means that relative to the alternative, you are $800 better off in value terms. The money itself may arrive later, in saved spending, higher earnings, or avoided costs, and the timing depends on the options. What the negative sign gives you immediately is the direction of the decision: this choice beat the alternative, by $800 of value, and that is a reason to feel confident about it rather than to second-guess it.

Zero is informative too. When the two values are equal, the opportunity cost is $0.00 and the share is 0.0%, which means the decision is a tie on value and should be made on other grounds: convenience, risk, timing, or preference. A tie is not a failure of the calculation; it is the calculation telling you that value alone cannot decide, and that is useful knowledge, because it stops you from agonising over a difference that does not exist.

Time is money, literally

Not every forgone option is a sum of money. Sometimes it is hours, and the page’s time mode handles that case by multiplying hours by an hourly rate. The default time example is 40 hours at $30 per hour, which gives a forgone value of $1,200.00. That figure is the value of the time in money terms, and once it exists, the same subtraction applies: compare it with the chosen option’s value, and the difference is the opportunity cost of spending the time that way.

The hourly rate is the number to think hardest about, because it determines everything downstream. A rate that reflects what your time could actually earn, or what it is genuinely worth to you, gives an honest cost. A rate picked from the air gives a cost that looks precise and means nothing. If the hours could have been billed at $30, then $30 is the right rate. If the hours are leisure time that you value differently, then the rate should reflect that value, and the result should be read as a comparison of values, not as lost wages.

Time mode also exposes a subtlety that money mode hides: time cannot be saved and spent later. Money not spent on one option remains available for another, but hours spent on one activity are gone regardless of what you chose. That makes the time comparison sharper, not softer. The $1,200.00 for 40 hours at $30 is not money you could have kept; it is the value of 40 hours that will not come back, and the chosen option needs to be worth at least that much to justify the spend. Framing time this way often changes decisions that looked obvious in money terms alone.

Use time mode for the decisions where time is the real currency: taking a longer route to save a fare, doing a task yourself instead of hiring it out, or spending a weekend on a project instead of resting. In each case, enter the hours and the rate honestly, read the resulting cost alongside the money comparison, and let both figures inform the choice. A decision that wins on money and loses on time, or the reverse, is a decision worth thinking about twice.

Reading the share figure

The calculator shows two numbers for every comparison: the dollar cost and the share of the forgone value. The share is the cost divided by the forgone value, expressed as a percentage, and it answers a question the dollars alone cannot: how big is this sacrifice relative to what was at stake? The $4,000.00 cost on a $10,000 forgone value is 40.0%, which is a large share by any standard. The same $4,000 on a $100,000 forgone value would be 4.0%, a small share of a large decision. Same dollars, different meaning, and the share is what distinguishes them.

Negative shares work the same way in reverse. The −$800.00 cost on a $4,200 forgone value is −19.0%, which says the chosen option beat the alternative by nearly a fifth of the alternative’s value. A gain of 19% is substantial, and the share makes that clear in a way the bare −$800 does not, because $800 means something different against $4,200 than it does against $40,000. When you compare decisions of different sizes, compare shares, not dollars, or the larger decisions will always look more important than they are.

Shares also help with repeated small decisions, where each individual cost looks trivial. A daily choice that gives up a small amount each time can add to a large total over a year, and expressing each instance as a share shows whether the pattern is a rounding error or a real drain. The calculator handles one comparison at a time, so for repeated decisions, run the comparison once, note the share, and multiply the pattern out yourself: a 40% share on a daily decision is a very different habit from a 4% share, even when the daily dollars look similar.

Do not over-read the share. It is a proportion, not a verdict, and a large share on a tiny decision still involves tiny dollars, while a small share on a huge decision still involves huge dollars. Read both figures together, every time: dollars for the absolute size, share for the relative size, and the combination for the judgement. A decision that is large on both measures deserves the most thought, a decision that is small on both deserves the least, and a decision that is large on one and small on the other deserves a moment to decide which measure matters more for that choice.

Decisions under uncertainty

Most real opportunity costs are uncertain, because the forgone option’s value is a forecast, not a fact. A job offer not yet accepted, an investment not yet returned, a course not yet completed: each has a range of possible values, and the opportunity cost computed from a single value inherits that range. The discipline is to run the comparison at several values, not one, and to see how the decision changes across the range. If the choice wins at every plausible value of the alternative, the decision is robust. If it wins only at the most favourable value, the decision is fragile, and the fragility itself is the finding.

Uncertainty cuts both ways. The forgone option might be worth more than entered, which raises the cost, or less, which lowers it, and the chosen option’s value is usually uncertain too. A comparison of two point estimates hides two ranges, and the honest presentation is a range of costs: at the low end of the alternative’s value, the cost is small or negative; at the high end, it is large. The page computes one comparison at a time, so build the range yourself by running the low, central and high values in turn, and note the three costs. A decision that looks good at the central value but bad at the high value deserves more thought than a decision that looks good at all three.

Risk attitude belongs in the judgement, not in the arithmetic. Two people facing the same uncertain comparison may decide differently because one tolerates risk and the other does not, and neither is miscalculating. The calculator’s subtraction is risk-neutral: it treats a certain $800 and an uncertain $800 the same, because both enter as the same number. If the forgone option is risky, consider entering a risk-adjusted value, lower than its average, to reflect that a risky $5,000 is worth less than a certain $5,000 to a risk-averse decision maker. The adjustment is a judgement, and it should be made explicitly, not smuggled into the numbers.

Irreversible decisions deserve wider ranges than reversible ones, because an irreversible choice cannot be corrected when the forecast proves wrong. Spending 40 hours on a project that cannot be undone carries a different opportunity cost than spending the same hours on a task that can be abandoned, even when the hourly rate is identical, because the reversible task preserves the option to switch. The page does not price reversibility, so add it as a qualitative weight: for irreversible decisions, require a larger margin in the cost’s favour before proceeding, and for reversible ones, accept a smaller margin, because the cost of being wrong is lower.

Finally, revisit the comparison after deciding, not just before. Opportunity costs are often computed once, acted on, and forgotten, but the forgone option’s actual outcome becomes visible over time, and comparing it with the chosen option’s actual outcome teaches calibration: were the entered values realistic, was the range wide enough, was the risk adjustment adequate? That retrospective habit improves future estimates more than any refinement of the arithmetic, because the arithmetic was never the weak point. The weak point is always the values, and values improve only by checking them against reality.

Sunk costs are the mirror image of opportunity costs, and confusing them is a common error. A sunk cost is money or time already spent and unrecoverable, while an opportunity cost is the value of an alternative not yet taken. Sunk costs should not enter a forward-looking comparison, because no decision can recover them, while opportunity costs are exactly what a forward-looking decision should weigh. A project that has already consumed 40 hours does not become worth continuing merely because those hours were spent; the question is always what the next hours are worth elsewhere, compared with what they earn here. The page computes forward comparisons only, and any backward-looking figure smuggled into its inputs distorts the very decision it exists to clarify.

What opportunity cost leaves out

Opportunity cost is a comparison of two values, and it leaves out everything that is not in those values. Risk is the largest omission: an option worth $5,000 with certainty and an option worth $5,000 on average but with a wide range of outcomes have the same value on paper and very different appeal in life. The calculator does not adjust for risk, so if one option is riskier, that difference belongs in the values you enter, either as a lower value for the risky option or as a separate judgement alongside the result.

Timing is the second omission. A value received today is not the same as the same value received in five years, but the subtraction treats them as equal unless you adjust for it. If the two options pay out at different times, discount the later value or compare them at a common date before entering the numbers. The page does not do this adjustment for you, and entering undiscounted future values against present values will flatter the later option.

Irreversibility is the third omission. Some choices can be undone and some cannot, and the cost of an irreversible choice includes the value of the flexibility you give up, which no subtraction captures. Quitting a job, selling an asset, or committing years to a path all carry this extra cost, and it should weigh in the decision even though it has no line on the calculator. The result tells you the value difference; it does not tell you whether the difference is worth the loss of freedom to change your mind.

Finally, the calculator compares two options, but real decisions often have more than two. The right comparison is against the best alternative, not just any alternative, and picking a weak alternative to compare against flatters the chosen option. Before accepting a reassuring result, ask whether a better alternative exists that you have not entered. If it does, run the comparison against that one instead, because the honest opportunity cost is measured against the best thing you gave up, not the most convenient one.

Using this calculator well

Used well, this page is a discipline more than a calculation. The discipline has four steps. First, name the two options precisely, including what each one actually includes, over what period, and in what units. Second, value each option honestly, counting durability, time and hassle alongside price, and adjusting for risk and timing where they differ. Third, read both result figures, dollars and share, and let the combination inform you rather than either figure alone. Fourth, check the best alternative: if a better forgone option exists, run the comparison against that one, because the honest cost is measured against the best thing you gave up.

The most valuable habit the page teaches is naming the forgone option at all. Most poor decisions are not made by choosing badly between two named options; they are made by choosing the visible option without ever naming what was given up. The $800 in the default example is not a large sum, but it is a named sum, and named sums get weighed while unnamed ones get ignored. Run the comparison before the decision, not after it, when the result can still change what you do.

Keep the results in proportion. A calculator that turns every decision into dollars can make small decisions feel heavier than they are, and the share figure helps here: a large share on a tiny decision is still a tiny decision. Reserve the full four-step discipline for decisions where the dollars or the share are large enough to matter, and let small decisions be quick. The point of measuring opportunity cost is to think better about important choices, not to agonise over every trivial one.

College choice as opportunity cost

Choosing a college is an opportunity cost decision in two currencies: money and years. The expensive college costs more in fees and, often, in forgone earnings if its programme is longer, while the cheaper college costs less but may offer a different network, credential, or experience. The honest comparison is lifetime: the earnings difference the credential plausibly causes, minus the cost difference including interest on any borrowing, over a working life, not the sticker difference in year one.

The non-money side matters too: a college chosen for fit, location, or a specific programme may be worth a premium that no earnings calculation captures, and a college chosen purely on cost may cost motivation and completion. Opportunity cost frames the tradeoff; it does not make the choice, because the values being compared are not all monetary.

Business decisions: the project not taken

A business with capital for one project and two candidates should compare each project return against the other, not against zero. A project returning 12% is a good project in isolation and a bad project if the alternative returns 18%, because choosing it forgoes 6 percentage points on the same capital. Capital budgeting formalises this through NPV at the cost of capital, which is itself an opportunity cost: the return the capital could earn elsewhere at similar risk.

The same logic applies to a team time: a team that spends a quarter on a low-value feature forgoes the high-value feature it could have built instead, and the cost of the low-value feature is the high-value feature, not just the salaries paid. Roadmaps are opportunity cost decisions, whether they are labelled as such or not.

Health and attention: the scarcest resources

Money opportunity cost gets the attention, but attention and health opportunity costs are often larger. An hour of sleep sacrificed for work costs next-day performance, health, and mood, and the tradeoff is rarely priced honestly at midnight. A year spent in a draining job costs health that later years must repay, sometimes at far higher cost than the salary gained.

The practical discipline is to price non-money costs explicitly: ask what an hour, a year, or a unit of health is worth in the terms that matter to you, and compare alternatives on that broader ledger. Decisions that look profitable on a money ledger alone often fail on the full ledger, and that failure is opportunity cost doing its work.

Frequently asked questions

What is opportunity cost in simple words?

Opportunity cost is the value of the best thing you give up when you choose something else. If you pick option A, the opportunity cost is what option B would have given you.

How do you calculate opportunity cost?

Subtract the value of the chosen option from the value of the best forgone alternative. For example, a forgone value of 5000 dollars minus a chosen value of 4200 dollars gives an opportunity cost of 800 dollars. Both values must use the same unit, such as dollars or hours.

Can opportunity cost be negative?

Yes. A negative result means the chosen option is worth more than the forgone alternative, so the choice gained value instead of costing value. For example, a forgone value of 4200 dollars minus a chosen value of 5000 dollars gives negative 800 dollars.

What is the opportunity cost of time?

Multiply the hours spent by the value of one hour. Forty hours at 30 dollars per hour gives an opportunity cost of 1200 dollars of time. The hourly value is your own estimate, such as your wage or what an hour is worth to you.

What is the difference between opportunity cost and sunk cost?

Opportunity cost looks forward at what you give up by choosing one option over another. A sunk cost is money or time already spent that cannot be recovered, and it should not change the decision.

Why must both values use the same unit?

Because the formula subtracts one value from the other, mixing units gives a meaningless number. Compare dollars with dollars, hours with hours, or points with points, and convert first if the two options are measured differently.

Is opportunity cost a real amount of money I lose?

No. It is the value of the option you gave up, not a bill you pay or money that leaves your account. The $800 in the default example is value you did not get because you picked the lower-valued option, and naming it is what makes it useful.

Can opportunity cost be negative?

Yes, and a negative cost is good news: it means the option you picked is worth more than the option you gave up. Forgone $4,200 and chosen $5,000 give −$800.00, a gain of $800 in value terms, with a share of −19.0%.

What hourly rate should I use in time mode?

The rate your time could actually earn, or what it is genuinely worth to you. A rate picked from the air gives a cost that looks precise and means nothing, so use a rate you can defend: a billing rate, a wage rate, or an honest personal value for the hours.

Does the calculator include taxes or fees?

No. It compares the two values you enter, exactly as entered. If taxes or fees matter to the comparison, include them in the values before entering them, so that both options are measured on the same basis.

How does opportunity cost apply to choosing a college?

Compare lifetime earnings differences the credential plausibly causes against the full cost difference including borrowing interest, not just the year-one sticker gap, and weigh non-money fit alongside money.

Why compare business projects against each other, not against zero?

Because capital can only fund one project, so the cost of choosing one is the best alternative forgone. A 12% project is bad if the alternative returns 18%.

What is the opportunity cost of lost sleep?

Next-day performance, health, and mood, often worth more than the work gained at midnight. Non-money costs belong on the ledger too.

This calculator is an educational tool. Its results depend entirely on the values you type in, including your own estimate of what an hour is worth, and they are not financial advice. For a real decision, check the actual figures behind each option before you commit.

↑

Opportunity Cost Explained

Formula, money, time, and career examples, and the mistakes it catches.