Skip to content
MyStackCost
Leer en español

Build vs. buy software: how to decide with numbers

How to compare the five-year cost of building your own software with a SaaS subscription, with a worked example and the assumptions that change the answer.

Published: Updated: 6 min read

Sooner or later, every company that needs a new internal tool runs into the same question: do we build it ourselves, or pay for a service that already exists? The quick answers are “buying is cheaper” and “building gives us control.” Both can be true, and both can turn into expensive mistakes.

This guide shows how to compare the two options over five years, which assumptions can flip the result and which criteria matter beyond cost. To run the numbers with your own data, use our build vs. buy software calculator.

What you’re comparing

Building has a high upfront cost (the development hours) followed by lower recurring costs: hosting and maintenance. Maintenance is usually estimated as a yearly percentage of the development cost, starting in year two.

Buying has a low upfront cost (implementation) and a recurring cost that grows: the price per user times the number of users, which usually rises over time, just like the vendor’s price.

That’s why buying is almost always cheaper at first. The real question is whether the costs cross, and when.

A complete example

A company needs an internal tool for 40 users.

Build: 600 hours at $40 an hour, or $24,000. Hosting costs $150 a month ($1,800 a year), and maintenance is 20% of the development cost per year: $4,800 a year from year two.

Buy: a subscription at $20 per user per month, plus $2,000 for implementation. Users are expected to grow 15% a year, and the vendor raises the price 5% a year.

Cumulative cost

Year Build Buy Cheaper
1 $25,800 $11,600 Buy
2 $32,400 $23,192 Buy
3 $39,000 $37,216 Buy
4 $45,600 $54,163 Build
5 $52,200 $74,584 Build

Here’s how buying adds up each year (seats are rounded up, because you can’t pay for half a seat):

  • Year 1: 40 users × $20 × 12 = $9,600, plus $2,000 for implementation = $11,600.
  • Year 2: 46 users × $21 × 12 = $11,592.
  • Year 3: 53 users × $22.05 × 12 = $14,023.80.
  • Year 4: 61 users × $23.15 × 12 = $16,947.63.
  • Year 5: 70 users × $24.31 × 12 = $20,420.51.

Per-user prices are shown rounded to the cent, but each step uses the exact value (for example, $23.1525 in year 4).

The costs cross in year 4. Over five years, building saves $22,384. Notice that the yearly subscription payment in year 5 is more than double what it was in year 1, without the company ever switching vendors.

The assumptions that change the answer

Growth and price increases

If, in the same example, users don’t grow and the price stays flat, buying costs $2,000 + $9,600 × 5 = $50,000 over five years, against $52,200 for building. In that case, buying is cheaper every year and the costs never cross.

Changing just two assumptions flips the conclusion. That’s why it’s worth trying several scenarios in the calculator instead of settling on one.

Development that takes longer than planned

Development estimates tend to run short. If the project takes 900 hours instead of 600, development costs $36,000 and maintenance $7,200 a year. The five-year total rises to $73,800, almost the same as buying ($74,584): the advantage of building shrinks from $22,384 to just $783.94, and the crossover moves to year 5.

A reasonable margin of error on development hours is part of an honest comparison.

How to estimate development hours more accurately

Development hours are the input that moves the comparison the most, and also the hardest one to estimate. A few practices reduce the error:

  1. Break the project into small pieces. Estimate each screen, integration and report separately. A single estimate of “about 600 hours” usually hides the parts nobody has thought through yet.
  2. Count the whole cycle, not just coding. Design, testing, code review, deployment and post-launch fixes all take hours too.
  3. Compare with past projects. If your team has built something similar, its actual hours are a better reference than any fresh estimate.
  4. Use a range, not a single number. Calculate an expected scenario and a pessimistic one. If building only wins in the expected scenario, the decision is riskier than it looks.
  5. Ask who will maintain it. The maintenance percentage depends on how much the tool will change and on whether the person who built it will still be on the team.
  6. Factor in time to value. While the team is building, the problem stays unsolved; a subscription can be up and running much sooner.

With a range instead of a single number, the calculator shows you not just which option wins, but how much margin that conclusion has. If the answer flips between the expected and the pessimistic scenario, reduce the uncertainty before deciding, for example with a small prototype.

To get to those hours from the team, use our software development cost calculator: it estimates the hours and cost of each role (development, design, QA and project management) from the project length, with contingency for the unexpected and 3-year maintenance.

Hidden costs of building

  • Opportunity cost: every hour your team spends on this tool is an hour not spent on your core product.
  • Security: an in-house system needs security updates for its entire life, not just at launch.
  • Key-person risk: if the person who built it leaves, the knowledge leaves with them.
  • Documentation and internal support: someone has to explain how it works and answer questions.
  • Compliance: internal tools still have to meet your company’s privacy, accessibility and audit requirements, and keeping up with them takes ongoing effort.

Hidden costs of buying

  • Minimums and plans: some vendors require a minimum number of seats or only offer the features you need on higher tiers.
  • Integration: connecting the service to your other systems can cost as much as the implementation itself.
  • Exit costs: if you ever switch vendors, exporting your data and migrating has a price.
  • Features you pay for and don’t use: a generic product includes plenty your team will never open.
  • Renewal terms: annual contracts are often repriced at renewal. The 5% increase in our example is only an assumption, so check the vendor’s track record and the terms of your contract.

Beyond the numbers

Cost isn’t the only criterion. Before deciding, answer these questions:

Question Favors building if… Favors buying if…
Is it part of what sets you apart? It’s key to how you compete It’s a supporting function
How urgent is it? You can wait months You need it now
Do you have the team? You have developers with time You don’t, or they’re busy
How specific is the need? No product fits A standard product covers the essentials
How much control do you need over the data? You have strict requirements The vendor’s terms are enough

A third option: buy and extend

The decision isn’t always binary. Many companies buy a standard service for the common needs and build only the integrations or features that set them apart. That cuts the upfront cost without giving up what makes them different. If part of the work is connecting systems or moving data, our workflow automation ROI calculator can help you estimate whether that part is worth it.

Conclusion

Buying is usually cheaper at first and building can win in the long run, but where the costs cross depends on assumptions worth testing one by one: user growth, price increases and the real number of development hours. Run several scenarios in the build vs. buy software calculator and decide based on the one you find most realistic, not the most optimistic. Then revisit the decision whenever your user count or the vendor’s pricing changes significantly.

Published:

The true cost of meetings and how to cut it

How to calculate what a meeting really costs with salaries and overhead, weekly and daily examples, hidden costs and concrete changes that save thousands a year.

Published:

When to automate a process (and when not to)

Criteria and worked examples to decide whether automating a process is worth it: frequency, time, stability, exceptions and the costs people forget.

Published:

Why AI agents cost more than you expect

An AI agent can burn dozens of times more tokens than a chatbot. Why accumulated context drives the bill up, with worked examples and ways to bring it down.