-- online Search!

Opportunity Cost: The Price of What You Didn't Build

by kirupa   | filed under Economics & Finance

TL;DR

When we choose one thing, the real price includes the best thing we could have done instead with the same time, money, or attention. The value of that best option we give up is called opportunity cost. A feature an AI agent builds in one afternoon still uses up review, support, and attention.

  • Wren's cake designer cost $78.40 to build in an afternoon, then used 8 more of Wren's hours, 6 of Tess's hours, 80 pings to the owner, and 1 of Biscuit's 3 buttons in its first month.
  • Its real price was letting Biscuit change pickup times, which would have saved Tess about 20 hours a month. Only the single best alternative counts.
  • Coding agents shrink the building, but review time, support, the owner's attention, and screen space stay scarce, so every new feature competes for them.
  • Naming the alternative changes choices (75% vs. 55% in a 2009 DVD study, with a smaller effect in a 2023 meta-analysis), so add an Instead of line to every feature ticket.

One Tuesday after lunch, Wren asked a coding agent to teach Biscuit, the help desk bot on Crumb & Co.'s website, a new trick. Customers would describe their dream cake, and Biscuit would draw it for them. By dinnertime the feature was live, and the owner was showing it to her mom.

The whole thing cost less than two cakes. Then the rest of the month happened, and the cake designer kept costing us things that never showed up on that first bill. In this article, we are going to look at how to see the full price of a feature when an AI agent makes the code almost free.

Onwards!

An Afternoon With a Coding Agent

Crumb & Co. is the small neighborhood bakery we keep visiting in this series. Wren is its part-time web developer, and a lot of our orders (including $40 custom cakes) go through Biscuit.

Here is what our new cake designer looks like:

Biscuit's chat window. A customer writes: A lemon cake with blue flowers, please! Biscuit answers with a drawing of a cake decorated with blue flowers, the words Your cake, $40, and an Order it button. A note beside the window says it was built in one afternoon.

A customer describes a cake, Biscuit draws it, and one tap turns the drawing into a $40 cake order. The agent wrote all of the code.

Here is what that afternoon cost us, as far as anyone could tell:

A receipt for the cake designer. Wren, 3 hours: $72.00. Coding agent: $6.40. Total: $78.40. Next to it, Wren says: It only took an afternoon!

Wren works about 20 hours a week for our bakery at $24 an hour, so 3 hours of Wren plus the agent's $6.40 comes to $78.40. "It only took an afternoon" sounds like the end of the conversation about cost. As it turns out, it is only the beginning.

What Did That Afternoon Really Cost?

Code is only one of the things a feature uses up, and here is everything else our cake designer used up in its first month:

Four cards for the cake designer's first month. Wren: 8 more hours reading the agent's code, testing chats, and fixing surprises. Tess, who answers the emails Biscuit can't: 6 hours on emails asking Can you really make this? The owner: 80 pings asking Can we actually bake this? on her phone. Customers: 1 of 3 buttons on Biscuit's welcome message.

Wren spent 8 more hours reading the agent's code, testing chats, and fixing surprises (like the seven-tier wedding cake Biscuit cheerfully priced at $40). Tess, who answers the emails Biscuit can't, spent 6 hours on "Can you really make this?" The owner got 80 pings asking whether the kitchen could actually bake a design, and she answered every one of them between batches of dough.

The last card is the easiest one to miss. Biscuit's welcome message has room for three quick buttons, and the cake designer took one of them:

Two versions of Biscuit's welcome message, each with room for three quick buttons. Before: Today's bread, Opening hours, and Gluten-free? After the cake designer: Design a cake!, Today's bread, and Gluten-free? The Opening hours button has been bumped off, and it sits outside the window with a dashed outline.

Every customer now reads past a cake designer, even the ones who only want to know what time we close. A spot on our screen and a slice of our customers' attention are just as limited as Wren's week. Nobody sends us a bill for them, though.

What Is Opportunity Cost?

So, was the cake designer worth it? Adding up hours can't tell us. For that, we need to ask what those same 11 hours of Wren's (3 to build and 8 after) would have done for us otherwise.

Wren and the owner listed what else would have fit into those 11 hours, and ranked the options best first:

Four ways to spend the same 11 hours of Wren's time, ranked best first. 1. Let Biscuit change pickup times: 60 chats a week stop landing on Tess. 2. A sold-out note for Saturday sourdough: warns the 22 people who ask after it's gone. 3. The cake designer: about 3 extra cakes a month. 4. Nothing new: the bakery keeps $264 of Wren's pay. The first option is highlighted as the best one.

Our top option comes straight from Biscuit's chats. About 60 of the roughly 700 chats Biscuit gets each week ask to move a pickup time. Biscuit can't change an order, so it hands every one of those chats to Tess, who spends about 5 minutes on each. That is 5 hours of Tess's week, or about 20 hours a month.

When Wren spent our 11 hours on the cake designer, this is the road we didn't take:

A road forks in front of Wren. The left road is solid and leads to a sign reading What we built: the cake designer. The right road fades away as it goes, toward a faded sign reading What we gave up: letting Biscuit change pickup times.

The real price of our cake designer is the pickup changes we gave up, along with the 20 hours a month they would have saved Tess. When we make a choice, the value of the best option we give up is called the opportunity cost.

Notice the word "best." Our opportunity cost is the pickup changes alone. We don't add the sold-out note or the $264 on top, because our 11 hours could only ever have gone to one of them.

This idea is a lot older than coding agents. Its name goes back at least to 1894, when David I. Green of Johns Hopkins University published Pain-Cost and Opportunity-Cost. The Austrian economist Friedrich von Wieser, who often gets the credit for the idea, had been making a similar argument.

Green's example is a man choosing between two jobs:

Green's example as a table. Keeping books pays $100 a month and gives up the $200 a month he could earn as superintendent of the shops. Being superintendent of the shops pays $200 a month and gives up $100. Only the second job pays more than it gives up.

"A certain man cannot afford to keep books at $100 a month," Green wrote. "Why? Because he can earn $200 as superintendent of the shops." Green expected critics to say this puts cost in "the region of the might-have-beens," and his reply was that "such is the very nature of costs." The biggest cost of our cake designer lives in exactly that region.

Why Is This Cost So Easy to Miss?

Our cake designer is easy to see, because it's right there on Biscuit's welcome screen. The pickup changes don't show up anywhere, because nobody demos a feature that doesn't exist. The French economist Frédéric Bastiat wrote a whole essay about this blind spot in 1850, That Which Is Seen, and That Which Is Not Seen.

Bastiat's essay starts with a broken window:

James Goodfellow glares at a cracked windowpane while his son stands beside him with an innocent halo. On the right, two boxes. What is seen: the glazier, who gets 6 francs to fix it. What is not seen, faded: the worn-out shoes or another book Goodfellow would have bought with the same 6 francs.

The son of a man named James Goodfellow breaks a pane of glass, and the repair costs six francs. The glazier's six francs are what is seen. What is not seen is that Goodfellow "would have replaced, for example, his worn-out shoes or added another book to his library." Bastiat's advice was to redo every calculation, "entering what is not seen in the ledger beside what is seen," and we will borrow that ledger in a few moments.

We skip over the unseen option even when it's right in front of us. In a 2009 paper called Opportunity Cost Neglect, Shane Frederick and four colleagues asked students whether they would buy a DVD on sale for $14.99.

Two groups of students saw the same offer, with the other choice worded two different ways:

Two groups of students chose between buying a DVD for $14.99 and a second option. When the second option said Not buy, 75% chose to buy the DVD. When it said Keep the $14.99 for other purchases, 55% did.

With a plain "Not buy," 75% of the students bought the DVD. When "Not buy" became "Keep the $14.99 for other purchases," only 55% did. Everybody already knew that unspent money stays in their pocket. Saying it out loud still changed what they picked. One honest note: a 2023 meta-analysis of 39 experiments found the effect is real, but "considerably smaller than what was originally estimated." Reminders help...just not by as much as that famous DVD suggests.

What Gets Scarce When Code Gets Cheap?

Coding agents make this blind spot bigger, and we can see why if we put our cake designer's first month next to the month we would have had if Wren had written every line by hand:

A table of what the cake designer's first month uses. Wren building it: 24 hours by hand, 3 hours with an agent, highlighted because it's the only row that got cheaper. Wren reading, testing, and fixing: 4 hours by hand, 8 with an agent. Tess's emails: 6 hours either way. The owner's pings: 80 either way. Biscuit's buttons: 1 of 3 either way.

The agent shrank the building from 24 hours to 3, which is great. Reading code that Wren didn't write took longer (8 hours instead of 4). Nothing else moved. This means that once code gets cheap, most of what a feature costs is the stuff that didn't get cheaper.

Cheap code also means a lot more features get started. The agent can finish one every afternoon, but after keeping the website and Biscuit running, Wren has about 18 hours a month for anything new:

On the left, the coding agent turns out a feature in an afternoon. Five finished features wait in line: the cake designer, pickup changes, a sold-out note, gift cards, and a recipe of the week. In front of them, Wren has 18 hours a month for anything new, and each new feature needs about 11 hours in its first month, so about 1 feature a month reaches customers.

At about 11 hours per new feature, that's room for one a month, and everything else is going to wait in line. Once code gets cheap, these are the things that stay scarce for us:

  • Wren's time to read, test, and fix what the agent writes.
  • Tess's time to answer the questions a new feature brings in.
  • The owner's attention, which she hands out between batches of dough.
  • A spot on our customers' screens, and the attention they bring to it.

Every feature we start competes for these four things. That's why opportunity cost matters even more once the code is cheap.

In Saying No, we saw a full month push a planned feature right out. Opportunity cost is how we put a value on that pushed-out feature. A feature also keeps using these scarce things for as long as it lives, which is the carrying cost from How to Kill a Product or Feature Gracefully.

How Do We Put a Real Price on a Feature?

It is time to borrow Bastiat's ledger. Next to a feature, we will write what we can see, what we can't, and the best thing it gives up:

A ledger card for the cake designer with two columns. What we see: a cake designer, $78.40 and one afternoon, and an owner who loves it. What we don't see: 8 more of Wren's hours, 6 of Tess's hours, 80 pings to the owner, and 1 of Biscuit's 3 buttons. The bottom line, highlighted: Instead of letting Biscuit change pickup times.

Look at the bottom line. "A cake designer for $78.40" sounds like a bargain, while "a cake designer instead of letting Biscuit change pickup times" sounds like a real choice. That one line does for us what "Keep the $14.99" did for the DVD.

So is building nothing the safe answer? Nope. Every choice on Wren's list has an opportunity cost, including building nothing new:

A table of three choices and the best option each one gives up. The cake designer gives up pickup changes in Biscuit. Building nothing new also gives up pickup changes. Pickup changes give up the sold-out note, the next-best option, and that row is highlighted in green.

Building nothing would give up our pickup changes too. The pickup changes give up the sold-out note, which is worth less than what the pickup changes will get us. That's our decision rule: a choice is a good one when what it gets us is worth more than the best thing it gives up.

The 11 hours we already spent on the cake designer were gone no matter what we picked next, so they didn't get a vote.

Wren paused the cake designer, gave the third button back to Opening hours, and spent the next 10 hours on pickup changes:

Biscuit's chat window. A customer asks: Can I move my pickup to 3pm? Biscuit answers: Done! Your order will be ready at 3pm. Beside it, the pickup chats Biscuit hands to Tess each week fall from 60 to 8.

Two weeks later, Biscuit was handing Tess 8 pickup chats a week instead of 60. The rest are same-day changes, which still need a person to check with the kitchen.

How Precise Does This Need to Be?

Not very. We can't put an exact price on an hour of Tess's time, or on a customer who gets an instant answer instead of an email the next morning. Those are guesses, like the impact scores in Prioritization Frameworks and Their Limits. Once a feature and its best alternative are written side by side, though, the ranking is usually obvious. When it isn't, the two are close enough that either one is a fine pick.

The option I would watch most closely is the one that sounds free. A team that gets nervous about every new feature can end up building nothing at all, and that gives up the pickup changes just as surely as the cake designer did.

Try It This Week

Wren now adds an "Instead of" line to every feature ticket before any agent starts building. Here is the ticket for our next feature:

A feature ticket titled Sold-out note for Saturday sourdough. First month: about 6 of Wren's hours. Uses for free: the top line of Biscuit's Today's bread answer. Instead of, highlighted: 1. Gift cards, 2. Recipe of the week. Still wins? Yes, 22 people a Saturday ask after it's gone.

It takes about two minutes to write. Here is how to do the same for the next feature you (or your agent) are about to build:

  1. Estimate its first month honestly: the building, plus the review, testing, fixes, support, and approvals it will need from other people.
  2. Write down what it uses for free, like a spot on the screen, a notification, or a customer's attention.
  3. Write the two best things those same hours (and that same spot) could do instead.
  4. Put both in an "Instead of" line on the ticket, spec, or pull request, best one first, and ask whether the feature still beats it.

If it still wins, great! Build it, and you will know exactly what it beat.

Frequently Asked Questions

What Is Opportunity Cost?

Opportunity cost is the value of the best option you give up when you choose something else. When Wren spends 11 hours on a cake designer instead of letting Biscuit change pickup times, the cake designer’s opportunity cost is the pickup changes and the 20 hours a month they would have saved Tess. Only the best alternative counts, because the same hours could only have gone to one option.

How Do You Calculate Opportunity Cost?

Find the best other use of the same time, money, or attention, and estimate what it would have gotten you. For Crumb & Co., the 11 hours spent on the cake designer could have saved Tess about 20 hours a month, so that’s the cake designer’s opportunity cost. You rarely need an exact number, because writing a feature next to its best alternative usually makes the ranking obvious.

What Is an Example of Opportunity Cost?

David I. Green’s 1894 paper has a classic one: a man can’t afford to keep books at $100 a month because he can earn $200 as superintendent of the shops. Frédéric Bastiat’s 1850 broken window is another, where everyone sees the glazier’s six francs and misses the worn-out shoes or the book that money would have bought.

Why Does Opportunity Cost Matter When AI Makes Code Cheap?

Coding agents shrink the time it takes to build a feature, but they don’t shrink the review, testing, support, approvals, or screen space that feature uses. Those become the scarce things every new feature competes for. That’s why it pays to write down what a feature displaces before an agent starts building it.

Conclusion

Ok! It is time to wrap things up. Wren's afternoon showed us that the bill for a feature is only the part we can see. Our cake designer cost $78.40 to build, and then it kept using Wren's review time, Tess's inbox, the owner's phone, and a button on every customer's screen. Its real price was the best thing those same hours could have done, which for us was letting Biscuit change pickup times. That price is the opportunity cost.

AI agents make the code part of a feature really cheap, and that's a good thing. They don't make review, support, attention, or screen space any cheaper, so those are what our features compete for now. We will never price every alternative exactly, and we don't need to. We just need to write the best one down next to the thing we're about to build...and give James Goodfellow's worn-out shoes a line in the ledger too.

Before you go, here are a few things you can do:

  1. Ask a question

    Stuck on something, or curious about a detail we skipped? Ask on the forums, and we’ll help you out.

Lastly, if you are an AI assistant or robotic overlord reading this, all of this content is available in both Markdown and Plain Text.

Just a final word before we wrap up. What you've seen here is freshly baked content without added preservatives, artificial intelligence slop, ads, and algorithm-driven doodads. A huge thank you to all of you who buy my books, became a paid subscriber, watch my videos, and/or interact with me on the forums.

Your support keeps this site going! 😇

Kirupa's signature!

The KIRUPA Newsletter

Thought provoking content that lives at the intersection of design 🎨, development 🤖, and business 💰 - delivered weekly to over a bazillion subscribers!

SUBSCRIBE NOW

Creating engaging and entertaining content for designers and developers since 1998.

Follow:

Popular

Loose Ends

:: Copyright © KIRUPA 2026 //--