Sub topic 5
Moat Source: Switching Costs
What this chapter assumes
You should be able to read an income statement and a balance sheet. You should know terms such as revenue, operating margin, and retention. You should also have seen the idea from earlier chapters that a moat shows up as return on invested capital (ROIC) staying above the cost of capital. This chapter covers one of the five moat sources: switching costs.
The core idea
A switching cost is any cost, in money, time, risk, or effort, that a customer pays to move from one supplier to another. When that cost is high enough, the customer stays even if a rival offers a slightly better price or product.
For an investor, the point is what the cost does to the company's economics. A company with real switching costs can:
- keep customers for many years, which makes future revenue more predictable
- raise prices modestly without losing many customers
- spend less on winning back customers it already has
The customer is not trapped by force. The customer stays because leaving costs more than the gain from leaving. This is why a switching-cost moat is rational for the customer and profitable for the company at the same time.
Types of switching costs
Switching costs come in several forms. A single company often has more than one.
| Type | What the customer loses or risks | Typical example |
|---|---|---|
| Financial | Fees, penalties, new equipment, double payments during the move | Early termination fees, hardware purchases |
| Procedural | Time, retraining, rebuilt workflows | Moving a company to a new accounting system |
| Data and integration | Stored history, custom connections to other systems | Years of records in a database or ERP system |
| Risk | The chance that the new system fails at a critical moment | Replacing a payroll or core banking system |
| Relationship and habit | Trust built with a supplier, learned behavior | A long-standing advisor or a familiar tool |
The most durable moats usually rest on procedural, data, and risk costs together. Pure financial costs are weaker, because a rival can offset them. A competitor can pay the termination fee or discount the first year. A rival cannot easily remove the risk of a failed migration.
Why the cost to the customer must be large relative to the benefit
A common mistake is to ask "is it annoying to switch?" The better question is "how large is the cost of switching compared with what the customer spends on the product, and compared with the harm if the switch goes wrong?"
Two patterns matter:
- The product is a small part of the customer's total costs but a critical input. A company may spend very little on its payroll software compared with total wages, yet a payroll error is serious. The customer has little reason to take a risk to save a small amount. The supplier can also raise prices a little without triggering a search for alternatives.
- The product is deeply embedded in daily work. When hundreds of employees use a tool and many other systems connect to it, replacing it is a project with a budget, a schedule, and a chance of failure.
If the product is a large share of the customer's costs, the customer has a strong reason to shop around, and switching costs matter less.
Business-to-business versus consumer
Switching costs are usually stronger in business-to-business (B2B) markets than in consumer markets.
- B2B: Companies buy software, equipment, and services that connect to their operations. Replacement requires a project team, training, and testing. Contracts often run for multiple years.
- Consumer: Most consumer switching is cheap. Changing a toothpaste brand costs nothing. Some consumer cases do have real costs, such as a phone ecosystem with purchased apps, photos, and accessories, or a bank where bills and direct deposits are linked to the account.
Be careful with consumer claims. Habit and preference are not switching costs. If a customer leaves the moment a friend recommends something else, there is no cost holding them.
A diagram of the mechanism
The following diagram shows how switching costs feed a financial result.
Where switching costs appear in the financial statements
A claim about switching costs is a hypothesis. Test it against numbers. The evidence below connects to the financial-evidence chapter, but here it is specific to this moat source.
- Customer retention. Look for gross or net revenue retention, churn rates, or contract renewal rates. Retention above about 90% in business software is often a sign of stickiness, though norms vary by industry, so compare with peers.
- Net revenue retention above 100%. This means existing customers spend more over time, because of price increases or added products. It is a strong sign of both switching costs and pricing power.
- Stable or rising gross margin. If customers could leave easily, price competition would push margins down.
- Falling sales and marketing as a share of revenue. A business that must keep buying customers, spending heavily just to replace those who leave, may lack switching costs.
- Revenue visibility. Large backlogs, multi-year contracts, and a high share of recurring revenue point to costs that keep customers in place.
- ROIC above cost of capital over several years. This is the final test. Switching costs that exist but do not raise returns are not a moat.
The retention test is easy to run. The following code checks a hypothetical company's retention history against a threshold and calculates net revenue retention from a cohort of customers.
def net_revenue_retention(start_revenue, expansion, contraction, churned):
"""Revenue from a starting cohort a year later, as a share of its starting revenue."""
end_revenue = start_revenue + expansion - contraction - churned
return end_revenue / start_revenue
def gross_retention(start_revenue, contraction, churned):
"""Share of starting revenue kept, ignoring any expansion."""
return (start_revenue - contraction - churned) / start_revenue
cohort_start = 100.0 # revenue in millions from customers a year ago
expansion = 14.0 # extra spending by those same customers
contraction = 3.0 # customers who stayed but spent less
churned = 5.0 # revenue lost from customers who left
nrr = net_revenue_retention(cohort_start, expansion, contraction, churned)
grr = gross_retention(cohort_start, contraction, churned)
print(f"Net revenue retention: {nrr:.0%}") # 106%
print(f"Gross revenue retention: {grr:.0%}") # 92%
history = [0.93, 0.92, 0.94, 0.92, 0.93]
years_stable = sum(g >= 0.90 for g in history)
print(years_stable, "of", len(history), "years at or above 90% gross retention") # 5 of 5Gross retention tells you how many customers the switching costs actually hold. Net retention adds the effect of pricing and upselling. A company can show net retention above 100% while gross retention is poor, if a few large customers expand while many small ones leave. Always check both.
Examples of switching-cost moats
- Enterprise software for core operations. Accounting, payroll, and resource-planning systems hold years of company data and connect to many other tools. Replacing them takes months and puts daily operations at risk.
- Financial infrastructure. Banks rarely change the core system that processes their accounts. The cost of a failure is large and the system touches everything.
- Medical and industrial equipment with consumables. Once a hospital or factory has installed a machine and trained staff on it, it tends to buy the compatible supplies and service. The customer also faces regulatory validation if it changes.
- Professional workflow tools. Tools that a profession learns in school and uses every day, and that store the work product, are hard to displace.
In each case, the customer would incur real project cost and real operating risk by leaving.
Edge cases and common mistakes
Switching costs that fade
Costs that protect a company today can shrink. Cloud migration tools, open data standards, and regulation that forces data portability all reduce the cost of moving. When a regulator requires that customers can take their data elsewhere, a data-based moat weakens. Ask whether a new technology or rule could make switching cheap.
Lock-in that breeds resentment
Customers who feel trapped look for a way out. If a supplier raises prices sharply, it can push customers to accept the pain of switching. Pricing power under switching costs is real but limited. A company that overuses it can lose customers when a credible alternative appears.
Switching costs without a good product
A switching-cost moat lets a company keep customers who are only slightly unhappy. It does not protect a company whose product is clearly worse. If the quality gap grows large enough, customers will pay the cost of moving. The moat buys time. It does not remove the need to improve.
Confusing contracts with switching costs
A long contract is not the same as a real switching cost. A contract ends. If the customer would leave at renewal, the contract has only delayed churn. Look at renewal rates, not at the length of the contract.
Mistaking a low price for a switching cost
Low prices attract customers but do not hold them. A competitor can match the price.
Counting the cost from the supplier's side
The question is the customer's cost of leaving, not the supplier's cost of acquiring or serving. A company that spends heavily to set up each new customer does not have a moat on that basis. The customer has to face a cost in leaving.
A checklist for the analyst
- Who is the customer, and how critical is the product to its operations?
- What would a switch require in money, time, retraining, and data migration?
- What is the risk to the customer if the switch fails?
- How large is the product's price compared with the customer's total spending and with the harm of a failure?
- Do retention, net revenue retention, and margins support the claim?
- Is ROIC above the cost of capital across several years?
- Could technology, regulation, or a rival's migration tools lower the cost of switching?
Exercises
Exercise
A company reports gross revenue retention of 91% and net revenue retention of 108%. In a different year, a competitor offers a 15% discount and the company's gross retention stays at 91%. What does this suggest, and what extra evidence would you want before calling it a switching-cost moat?
Show answer
Stable gross retention despite a 15% discount suggests customers stay for reasons beyond price, which supports a switching-cost explanation. Net retention above 100% shows existing customers also spend more over time. Before concluding there is a moat, check that this holds across several years and against peers, look at what migrating would involve for customers (data, integration, risk), confirm that operating margins and ROIC stay above the cost of capital, and ask whether technology or regulation could lower switching costs.
Exercise
A gym chain signs members to 12-month contracts, and 40% of members do not renew. A payroll software provider has no long contracts but retains 97% of customers each year. Which one more likely has a switching-cost moat, and why?
Show answer
The payroll provider. The contract at the gym only delays departure, and the 40% non-renewal shows members leave when they can. Payroll software holds employee data, tax filings, and integrations, and an error in payroll is costly and visible, so customers stay even without a contract. Retention, not contract length, is the better evidence.