Sub topic 4
What it really costs to build
This chapter assumes you know the build, partner and buy routes from chapter 1 and the core versus non-core distinction. It also assumes you can read a short Python script. The goal is to produce a build cost estimate that holds up when someone challenges it. The next chapter handles time and the cost of delay, and the NPV chapter turns these costs into a comparison with buying.
Why build estimates come in low
A typical build estimate is the engineering team's salaries multiplied by the planned duration. That number leaves out most of what the project costs. Three biases push it lower still:
- The planning fallacy. Teams plan for the case where nothing goes wrong. Delays, rework and scope growth are normal, so the plan is a best case.
- Invisible costs. Recruiting, management time, tooling and ramp-up do not show up on the project's line item, so nobody adds them.
- Advocacy. The people who want to build usually write the estimate.
A defensible estimate lists every cost layer, adjusts for overruns using evidence, and includes the years after launch.
The cost layers
| Layer | What it covers | Common mistake |
|---|---|---|
| Direct labor | Salaries of everyone who works on the project | Using base salary instead of fully loaded cost |
| Load | Benefits, payroll taxes, equipment, office space | Leaving it out, which understates labor by about 25 to 40 percent |
| Hiring | Recruiter fees, interview time, signing bonuses | Assuming the team already exists |
| Ramp-up | Months before new hires are fully productive | Assuming day-one productivity |
| Infrastructure and tools | Cloud, licenses, data, test environments, certifications | Counting only development, not production-grade operation |
| Management and coordination | Product, program and executive time | Treating it as free overhead |
| Overrun allowance | Delay, rework and scope growth | Using a flat 10 percent with no evidence |
| Maintenance | Bug fixes, upgrades, support, security after launch | Stopping the estimate at launch |
Opportunity cost sits outside this table. If the engineers come from other teams, the project costs whatever they would have produced elsewhere. If you fund it with new hires, the cost shows up as hiring and ramp-up. Either way, the build is not free just because the people are already on payroll.
A worked estimate in Python
The script below builds an estimate layer by layer. It takes the overrun factor from the organization's own project history rather than from a guess. For each past project, divide actual cost by estimated cost and take the median.
from dataclasses import dataclass
from statistics import median
@dataclass
class Role:
name: str
headcount: int
salary: float # annual base salary per person, $
months: int # months the role is staffed
LOAD = 1.3 # benefits, payroll tax, equipment, space
RECRUIT_FEE = 0.20 # share of first-year salary, all roles assumed externally hired
RAMP_MONTHS = 3 # months until a new hire is fully productive
MAINT_RATE = 0.20 # yearly maintenance as a share of base build cost
MAINT_YEARS = 3
def labor(roles):
return sum(r.headcount * r.salary * LOAD * r.months / 12 for r in roles)
def recruiting(roles):
return sum(r.headcount * r.salary * RECRUIT_FEE for r in roles)
def ramp_up(roles):
# Average productivity during ramp-up is assumed to be 50 percent.
return sum(r.headcount * r.salary * LOAD * (RAMP_MONTHS / 12) * 0.5 for r in roles)
# (estimated $M, actual $M) for past internal projects of similar size
history = [(2.0, 2.6), (1.5, 2.1), (3.0, 3.6), (1.0, 1.9), (4.0, 5.6)]
overrun = median(actual / est for est, actual in history)
roles = [
Role("Engineers", 6, 180_000, 18),
Role("Product manager", 1, 160_000, 18),
Role("Data scientists", 2, 200_000, 12),
]
infrastructure = 400_000
base = labor(roles) + recruiting(roles) + ramp_up(roles) + infrastructure
at_launch = base * overrun
maintenance = base * MAINT_RATE * MAINT_YEARS
print(f"Labor (loaded): {labor(roles):>12,.0f}")
print(f"Recruiting: {recruiting(roles):>12,.0f}")
print(f"Ramp-up: {ramp_up(roles):>12,.0f}")
print(f"Infrastructure: {infrastructure:>12,.0f}")
print(f"Base estimate: {base:>12,.0f}")
print(f"Overrun factor: {overrun:>12.2f}")
print(f"Build cost at launch: {at_launch:>12,.0f}")
print(f"{MAINT_YEARS}-year maintenance: {maintenance:>12,.0f}")
print(f"Lifetime build cost: {at_launch + maintenance:>12,.0f}")Running it prints:
Labor (loaded): 2,938,000
Recruiting: 328,000
Ramp-up: 266,500
Infrastructure: 400,000
Base estimate: 3,932,500
Overrun factor: 1.40
Build cost at launch: 5,505,500
3-year maintenance: 2,359,500
Lifetime build cost: 7,865,000A naive estimate that multiplies salaries by duration gives about $2.3 million (the unloaded labor, 2,260,000 dollars). The layered estimate is more than three times that. Most of the gap comes from the load factor, the overrun and the maintenance years.
Choosing an overrun factor
Use evidence, in this order of preference:
- Your own history. Compare actual and estimated cost for past projects. This method is called reference class forecasting. It corrects for the biases your organization actually has.
- Industry data for similar projects. Large software and integration projects overrun often and by a lot. Use published figures as a sanity check, not as a substitute for your own record.
- A judgment range. If you have neither, use a range such as 1.2 to 2.0 and show how the decision changes across it. Do not pick a single number.
Keep the factor higher when the capability is new to your company. A team extending a product it already runs will overrun less than a team entering a domain where nobody has shipped before.
Edge cases that change the estimate
- Scarce talent. If the skill is rare, such as specialized machine learning or regulated-device engineering, hiring can take six months or more and salaries can sit well above your bands. Increase both the recruiting and ramp-up inputs, and add the delay to the schedule.
- More people does not mean faster. Adding engineers late to a delayed project often slows it down, because new people need onboarding from the people already working. Do not assume you can buy back time with headcount.
- Non-labor gates. Regulatory approval, security certification, data acquisition and customer pilots cost money and calendar time that no amount of engineering effort shortens.
- Maintenance is not optional. A capability you build is a capability you keep running. The 20 percent rate in the script is an assumption. Check it against what your own systems cost to maintain, and use a longer horizon if the capability will live for a decade.
- Failure. The estimate covers a build that works. The risk chapter handles the chance that it does not.
What to carry forward
The output of this chapter is a year-by-year cash flow for the build option: spending in the build years and maintenance afterward. The next chapter adds the timing, meaning when benefits begin and what each month of delay costs. The NPV chapter then discounts both options onto one footing.
Exercise
A team of 4 engineers earns $150,000 each in base salary and works on a project for 12 months. The load factor is 1.3. Your history shows a median overrun factor of 1.5, and it was measured on labor cost. What is the labor cost with overrun applied?
Show answer
Loaded labor is 4 × 150,000 × 1.3 × 12/12 = $780,000. Applying the 1.5 overrun factor gives $1,170,000. Hiring, ramp-up and infrastructure would be added separately, and the overrun would apply to them only if your history measured them too.
Exercise
A colleague's build estimate multiplies salaries by project duration and stops at launch. Name three cost layers the estimate omits and say how each would change the number.
Show answer
Any three of these: the load factor (benefits, taxes, equipment) raises labor by roughly 25 to 40 percent; recruiting and ramp-up add cost when the team must be hired; infrastructure and tools add non-labor spend; management time adds coordination cost; an evidence-based overrun factor raises the total by the historical overrun; maintenance after launch adds a yearly cost for as long as the capability is used.