Chapter 04

Build or Buy?

Vendors, libraries, in-house — the economics and lock-in tradeoffs.

⏱ 14 min read 🧭 Decision

"Build or buy?" looks like a binary. It isn't.

Picture this: a vendor demo, slide 4. On the left, a $48k/year contract. On the right, a back-of-envelope: "two engineers, six weeks, call it $80k." Building wins on the slide. Six months later, the team is still maintaining it, one of those engineers has rotated off, and nobody can find the original spec.

The slide almost always understates the cost of building and overstates the cost of buying — because both options have a long tail of expense that doesn't show up at the moment of decision.

The actual question isn't "what costs less to start?" It's where does this capability live in three years, and who's still paying to keep it alive? That framing changes most build-vs-buy debates from a debate about price tags into a debate about ownership.

PM Insight

The vendor's price is in the contract. The cost of building is mostly in the next three years of your roadmap. Both are real. Only one is on the slide.


The true cost of each option

What "build" actually costs

Build looks cheap because the only line item you see is the initial development. The hidden costs that follow:

What "buy" actually costs

Buy looks predictable because the price is in the contract. What's not in the contract:


The differentiation test

The single most useful rule in this space: build the things that make you you, buy the things that are table stakes.

Stripe, Auth0, Datadog, SendGrid, Twilio — these companies exist because hundreds of others decided that payments, auth, monitoring, email, and SMS are table stakes (meaning capabilities everyone needs but nobody competes on). None of those buying companies became great because their auth flow was uniquely good. They became great by being free to spend their engineers on the thing customers were paying them for.

The mirror-image mistake is just as common: buying the thing that's actually your differentiator. If your product's value depends on a custom recommendation engine, and you outsource the recommendation engine to a vendor, you've handed your moat to a third party. Renewal time will not feel good.

Two questions that clarify almost any debate

The differentiation test

Build the things that make you you. Buy the things that are table stakes. Confuse the two and you'll either hand your moat to a vendor or burn quarters on infrastructure no customer will ever notice.


Try it: Build vs Buy simulator

Start with stage and scenario. The verdict updates first; the detailed assumptions are there when you need them.

Company stage
Scenario
Strategic importance

Would users notice if we did this exceptionally well?

Would it kill us if we did this badly?

What this scenario suggests

Adjust the inputs above

The recommendation will update as you choose a stage and scenario.

Strategic signal

Waiting for scenario.

Cost signal

Waiting for assumptions.

Tune the assumptions

Illustrative scenarios — adjust the sliders to model your own situation.


The vendor questions PMs forget to ask

Vendor demos are optimized to show the price-on-day-one and the feature-on-day-one. The interesting questions are about year three and incident two. Bring these into the procurement conversation:

1. "What does this cost at 10× our current usage?"

Per-seat and volume-based pricing curves often surprise. Get the actual price at projected scale before you sign — not the price on the marketing page.

2. "What does data export look like?"

Can you get your data out in a format you can use? In what timeframe? What does the vendor charge to do it? "We can export" is a different answer from "you'll get a 14-day window and a CSV per table."

3. "What's their incident history?"

A vendor with no public status page is itself an answer. Look for honest postmortems, not just uptime numbers. A vendor that publishes blameless incident write-ups is one that takes reliability seriously.

4. "What's the contract minimum and the auto-renew clause?"

Multi-year lock-in with auto-renewal is the most common quiet trap in vendor contracts. Read it before you sign, not when you're trying to leave.

5. "Who else is on this — and what do they say when something goes wrong?"

A reference call with a current customer is the single best signal you can get. Ask specifically about their last incident with the vendor — what happened, how the vendor responded, how long resolution took.

PM Insight

Vendors love the questions about today's features. They get awkward fast on questions about year three. The discomfort is the signal — keep going.


The middle option: libraries and open source

"Build vs buy" hides a third option that often wins: using an open-source library or framework. You don't write the thing from scratch, but you also don't depend on a vendor — you take someone else's code and run it yourself.

The trade is that you swap vendor risk (they raise the price, they discontinue the product) for maintenance risk (the library goes unmaintained, a CVE drops, a breaking upgrade lands at the worst time). For mature, widely-used libraries, this is usually a great deal. For a single-maintainer project that's slowing down, it can quietly become a long-term liability.

The "what if it goes unmaintained?" diagnostic

Before adopting an open-source library, ask: if this project went unmaintained tomorrow, what would we do? If the answer is "fork it and pay someone to keep it alive," budget for that as a real possibility. If the answer is "we'd be in serious trouble" — treat the choice with the same skepticism you'd bring to a small, fragile vendor.


What changes when AI is in the loop

The question: When does "build with AI" beat both?

What's changed. There is a real third option on the table now, sitting between "build it from scratch" and "buy a vendor": build it ourselves, but with AI doing the rote parts. That shifts the math in a few specific directions:

What hasn't changed. The differentiation test from Section 3 is almost completely unaffected:

What to watch for. The cheap-build era has a specific set of failure modes that PMs are well-positioned to catch.

1. The "we could just AI it" trap

Every team in 2026 thinks they can build their own version of the SaaS tool they currently pay for. Most shouldn't — not because they can't write the initial version, but because the cost moves from "build the thing" to "run and own the thing forever," and that ownership cost looks roughly the same as it always did.

2. Vibe-coded sprawl

When custom tools are cheap to build, they multiply. Without discipline on what graduates from "demo" to "production and supported," you accumulate a long tail of half-owned internal apps that somebody, eventually, has to keep alive.

3. Vendor evaluation has a new question

Add to your vendor diligence: is this vendor using AI to do something we couldn't reproduce? If yes — proprietary models, fine-tuned on data they have and you don't — they're pulling further ahead, and "we'll just build it" is more wishful than it sounds.

4. Open-source AI tooling churns fast

A library you adopt today may be obsolete in six months as the ecosystem moves. A vendor whose roadmap absorbs that churn may be worth more than they used to be, not less.

5. The new buy-build matrix has a third axis: data

Whoever has the data gets the best AI-assisted product. If the vendor has more relevant data than you do, buying gets you their model's intelligence. If you have the data, building gets you an asset they can't match. Notice which side you're actually on before deciding.

The honest read: AI lowers the cost of writing custom code, which makes the build side more attractive on the margin — especially for internal and long-tail use cases. It does not change the cost of operating, maintaining, or specializing in a domain, which is most of why anybody bought from vendors in the first place. Use the new capability where it changes the answer; don't let it tempt you into rebuilding things you were rightly buying before.


PM Playbook — Questions to ask

The next time the team debates build vs buy, try these:

These eight questions alone will keep your team out of the two most expensive mistakes — buying your moat and building your table stakes.


4 questions