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.
| Factor | Lean build | Lean buy |
|---|---|---|
| Differentiation | Customers choose you for this | Table stakes |
| Fit | No vendor matches the workflow | Several mature options |
| Scale economics | Vendor cost grows faster than revenue | Cost is flat or sub-linear |
| Compliance / data residency | Hard requirements vendors can't meet | Vendor is already certified |
| Team capacity | You have the people and the on-call | Team 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.
- Estimate the build in engineer-weeks and multiply by fully loaded cost.
- Add annual maintenance at 15–25% of build cost, forever.
- Add operations: monitoring, on-call, incident response, upgrades.
- Add the opportunity cost of the roadmap items displaced.
- 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
Code Story episodes where founders work through the same problem in their own words.
Season 12
S12 Bonus: Rickard's Deterministic Return: Converting Scattered Data into Autonomous, Production-Grade Apps with Rickard Hansson, Founder & CEO of Gainable
Using data and moving AI to the most optimal spot in the SDLC
Aug 6, 2026 · 24 min
Season 12 · Episode 30
S12 E30: Wastewater Guardians: Automating Biology to Protect Clean Water with Virginia Szepietowski, Co-Founder of Nyad AI
Building delightful AI for the Guardians of our Water System
Aug 4, 2026 · 28 min
Season 12
S12 Bonus: The App-Aware Illusion: Why Infinite Compute Fails Without Underlying Infrastructure Accountability and the Case for "Boring" IT with Richard Luna, President & Founder of Protected Harbor
Infrastructure that is optimized for your specific SaaS application
Jul 30, 2026 · 32 min
Season 12 · Episode 28
S12 E28: The AI Throughput Illusion: Why Splurging on Expensive Models Fails to Ship Code and How to Measure Real Engineering Output with Emilie Schario, Co-Founder & Head of Product & Engineering at Kilo Code
The Future of AI is multi-model via the best coding harness
Jul 21, 2026 · 24 min
Keep reading
Related guides
How to choose a tech stack for a startup
A decision framework for choosing a startup tech stack: what actually matters, which choices are reversible, and how to avoid the rewrite that eats your Series A.
Technical due diligence checklist for startups
A technical due diligence checklist for founders and investors: what reviewers examine across architecture, security, team and process, and how to prepare before a raise.
Managing technical debt without stopping the roadmap
How to identify, quantify and pay down technical debt at a startup without freezing the roadmap — including how to explain the trade-off to non-technical stakeholders.