Guide

Build vs buy: a decision framework for technical leaders

Build what customers pay you for; buy everything else. If a capability is not part of your differentiation, the total cost of owning it — maintenance, on-call, security and opportunity cost — will almost always exceed the licence fee.

6 min read · Updated 2026-08-06

When should you build software instead of buying it?

Build when the capability is a source of competitive advantage, when no vendor fits your workflow without contorting it, or when the vendor economics break at your scale. Otherwise buy, and spend the saved time on the part customers actually pay for.

FactorLean buildLean buy
DifferentiationCustomers choose you for thisTable stakes
FitNo vendor matches the workflowSeveral mature options
Scale economicsVendor cost grows faster than revenueCost is flat or sub-linear
Compliance / data residencyHard requirements vendors can't meetVendor is already certified
Team capacityYou have the people and the on-callTeam is already the bottleneck

What is the true cost of building software in-house?

Take your engineering estimate and add ongoing maintenance at roughly 15–25% of the build cost per year, plus on-call, security patching, documentation and the features you did not ship instead. That last item is usually the largest and the least counted.

  1. Estimate the build in engineer-weeks and multiply by fully loaded cost.
  2. Add annual maintenance at 15–25% of build cost, forever.
  3. Add operations: monitoring, on-call, incident response, upgrades.
  4. Add the opportunity cost of the roadmap items displaced.
  5. Compare that five-year total against the vendor's five-year price with growth assumptions.

How do you reduce vendor lock-in when you buy?

Isolate the vendor behind your own interface and keep a copy of your data. Lock-in is rarely about the contract; it is about how many places in your codebase know the vendor's name.

  • Wrap the vendor in an internal adapter with your own domain language.
  • Export your data on a schedule and verify the export is restorable.
  • Avoid proprietary data formats for anything you must keep.
  • Negotiate price protection and an exit assistance clause up front.

What should you almost never build yourself?

Authentication, payments, email delivery, observability, and anything cryptographic. These are solved, heavily attacked problems where a mature vendor is safer and cheaper than your own second-best implementation.

Frequently asked questions

Is buying software always faster than building it?
Not always — integration and data migration can take longer than a naive build. But the vendor's timeline is bounded, whereas a build has an unbounded maintenance tail.
When does it make sense to replace a vendor with in-house software?
When the vendor's cost is growing faster than the revenue it supports, when their roadmap has diverged from your needs, or when the capability has become part of your differentiation.
How do you justify a build vs buy decision to a board?
Present a five-year total cost of ownership for both paths, the differentiation argument, and the risk of each. Boards accept 'we build what we sell and buy the rest' quickly when the numbers are attached.

From the podcast

Founders who lived this

Keep reading

Related guides