AI coding tools have changed one input to the build versus buy decision. Writing the first version of a piece of internal software is faster and cheaper than it used to be, and some teams now ask whether they should replace SaaS tools with software they build themselves.

Sometimes the answer is yes. More often, the cost of writing the code was never what decided the question. Most of the cost of software arrives after the first version: integration, security, maintenance, support and the people who keep it running. AI lowers some of those costs and leaves others untouched.

This piece is part of our guide to how AI is changing software delivery. It sets out a framework for deciding what to build and what to buy, covering differentiation, total cost of ownership, integration and time to value, and what AI actually changes in each.

Start With Differentiation

The oldest test is still the best one. Martin Fowler's distinction between utility and strategic software separates functions every business needs, such as payroll, from functions where "how you do this function is a crucial part of what makes you better than the competition." For utility functions, his advice is to buy a package and adjust your process to fit it. Strategic software should be as good as you can make it, because you don't want the same software as your competitors.

AI doesn't change which functions set your business apart. It changes how cheaply you can build the ones that do, and how tempting it is to build the ones that don't.

One quick test: if a competitor could buy the same tool and lose nothing customers care about, the function is a utility. Buy it.

What AI Changes, and What It Doesn't

Part of the workWhat AI coding tools change
Writing a first versionFaster, especially for well-understood, self-contained features
Integrating with existing systemsHelps with code, but still limited by the systems and APIs you connect to
Testing and reviewMore code to check, so review becomes a larger share of the effort
Security and complianceStill needs expertise, evidence and audits
Maintenance over the yearsStill needed: every line you build is a line you maintain
Operations and supportStill needs people on call and a support process
Product decisionsStill needs someone deciding what to build next

The evidence on speed is also less settled than vendor claims suggest. METR, which runs controlled trials of AI tools with experienced developers, found in early 2025 that developers working on large, mature open-source projects took about 19% longer with AI tools than without. Its February 2026 update leaned toward a speedup with newer tools, but METR called its own data "only very weak evidence," partly because developers increasingly declined to work without AI. Gains are real for some tasks and hard to measure for others, so don't build a business case on an assumed multiple.

Count the Total Cost of Ownership

Compare the full cost over at least three years, not the first build against the first year's subscription.

Cost lineBuildBuy
Initial costDesign, development, testing and infrastructure setupLicenses, implementation and configuration
IntegrationBuilding and maintaining connections to your systemsConfiguring connectors, plus custom work where none exist
Running costsHosting, monitoring, model and API usageSubscription fees, usage charges and increases at renewal
MaintenanceBug fixes, upgrades, security patches and dependency updatesIncluded, on the vendor's schedule
PeopleEngineers and a product owner for the life of the systemAdministrators and vendor management
RiskKey-person dependency and full security responsibilityLock-in, a roadmap you don't control and vendor failure
ExitRetiring or replacing what you builtData migration and retraining when you switch

Two shifts are worth watching. SaaS pricing is moving from seats toward usage and outcomes, as our piece on what SaaS products need to change when agents replace seats explains, so the cost of a bought tool may change as your own use of AI agents grows. And AI-written systems can carry more code than they need, which raises maintenance cost unless review and testing keep pace. Our piece on running QA as a control system covers how to keep that in check.

Check Integration, Time to Value and Control

  • Integration. If the function touches many of your systems, a bought product may need so much integration work that its advantage shrinks. If it sits at the edge of your stack, a product usually wins.
  • Time to value. A mature product can be live in weeks. A custom build still needs design, build, testing and rollout, even with AI help. If the business needs results this quarter, buying often wins even where building is the long-term answer.
  • Data and control. If the function handles sensitive data or encodes rules that change often, owning the code can justify its cost.

A Decision Framework

Look at each factor for the system in question.

FactorPoints to buildPoints to buy
DifferentiationCore to how you competeThe same as everyone else's
FitNo product fits without heavy customizationA product fits with modest configuration
Total cost over three yearsLower to build, including peopleLower to buy, including integration
IntegrationDeeply tied to your own systems and dataSits at the edge of your stack
Time to valueYou can wait for a buildYou need it working now
CapabilityYou can staff it for its whole lifeYou can't, or don't want to

Build when differentiation points to build and at least two other factors agree. Otherwise buy, and spend engineering time where it sets you apart.

A third option often fits best: buy the platform and build the edge. Use a bought system for the standard core, and build the parts that differentiate on top of its APIs.

Avoid the Two Common Mistakes

  • Building utilities because it got cheaper. A team that builds its own expense tool because an AI assistant wrote the first version in a week has signed up to maintain an expense tool for years.
  • Buying strategy off the shelf. If the way you serve customers is what sets you apart, a package your competitors also use will flatten that difference.

Frequently Asked Questions

When Should You Build Custom Software Instead of Buying?

When the function is core to how you compete, no product fits without heavy customization, and you can staff the system for its whole life. Otherwise, buying is usually cheaper and faster.

Does AI Make Custom Software Cheaper Than SaaS?

It makes the first version cheaper to write. It does far less for integration, security, maintenance and support, which continue for as long as the system runs.

How Do You Calculate Total Cost of Ownership for Software?

Add the initial, integration, running, maintenance, people, risk and exit costs for each option over at least three years, using the same assumptions for both.

What Is a Hybrid Build and Buy Approach?

Buying a platform for standard functions and building differentiating features on top of it through APIs. It often combines the speed of buying with the control of building.

Make the Call With the Full Numbers

If you are weighing a build against a renewal, start with a build versus buy review. We score the system against the framework above, model three-year costs for both options, and recommend where engineering time will pay off. Talk to us about a build versus buy review or see how we approach product engineering.