Business Quality & Moats

Switching Costs as a Moat

Switching costs are the money, time and risk a customer faces to change supplier. Learn how this quiet moat protects pricing power and how to spot it.

Switching Costs as a Moat
Quick answer

Switching costs are the money, time, effort and risk a customer must accept to move from one product to a rival. When they are high, a company can raise prices and keep its customers, so returns on capital stay high for years. It is one of the most durable and most underrated moats.

Switching costs are the money, time, effort and risk a customer must accept to move from one product to a rival. When they are high, a company can raise prices and keep its customers, so returns on capital stay high for years. It is one of the most durable and most underrated moats.

Most investors look for exciting moats: a famous brand, a booming network. Switching costs are quieter. They rarely make headlines, yet they produce some of the steadiest returns on capital you will ever find, because they turn a one-off sale into a relationship that is painful to end.

Where this fits: this is a deep dive on one of Pat Dorsey’s five moat sources for Criterion 2, “Does it have a durable moat?” Start with our moat hub for the full picture, and see how it supports high return on invested capital in the Five Criteria framework.

What Are Switching Costs?

A switching cost is everything a customer gives up when moving from one supplier to another. It is rarely just the price of the new product. It is the retraining, the data migration, the risk that something breaks during the change, and the hours spent managing it all.

Pat Dorsey, who built the moat framework at Morningstar, describes switching costs as one of the five structural sources of a durable advantage. The logic is simple. If leaving costs a customer more than staying, the customer stays, even when a rival is a little cheaper or a little better.

The crucial word is a little. A switching-cost moat does not require the incumbent to be the best. It only requires that a rival is not so dramatically better that the customer will accept the pain of moving.

The four kinds of switching cost

Switching costs come in several forms, and most strong examples combine more than one.

  • Financial: money spent on hardware, installation, integration or breakage fees that would be lost on leaving.
  • Procedural: the time and effort of learning a new system, migrating data and rebuilding settings.
  • Relational: the trust, history and personal relationships built up with a supplier.
  • Risk: the fear that a switch goes wrong, with real consequences such as payroll failing or a production line stopping.

The last one is often the most powerful. When the product is a small part of the customer’s total costs but a large part of their risk, the customer rarely shops around.

Why Switching Costs Protect Returns

High returns on capital attract competitors. Something has to stop rivals copying a business and competing its profits away, and switching costs do exactly that by making the incumbent’s existing customers expensive to win.

The result is pricing power. A company whose customers cannot easily leave can pass on cost inflation, and often add a little more, without losing accounts. That shows up directly in a stable or rising gross margin, the clearest financial fingerprint of a moat at work.

It also shows up as low customer churn. Each year the company keeps most of what it had and adds new customers on top, so revenue compounds quietly. Low churn is worth a great deal, because winning a customer usually costs far more than keeping one.

The best switching costs feel like convenience

A trap breeds resentment, and resentful customers leave the moment they can. The most durable switching-cost businesses are ones where staying genuinely is the easier, better choice.

Think of a system that holds years of a customer’s work, integrates with everything else they use, and is understood by every member of their team. The customer is not trapped so much as settled. That is the version that lasts.

Where to Find Switching-Cost Moats

Switching costs are not spread evenly. They cluster in particular kinds of business, and knowing where to look saves time.

SettingWhy switching is hardWhat to check
Enterprise softwareData, workflows, training and integrations built around itNet revenue retention, renewal rates
Core bankingDirect debits, salary, history tied to the accountPrimary-account share, attrition rate
Specialist equipmentLong service contracts and tied consumablesInstalled base, consumable revenue mix
Outsourced payroll and dataErrors carry legal and operational riskClient retention, contract length
Medical and scientific toolsStaff trained on one platform; validation costsRecurring consumable and service revenue

The strongest cases pair an upfront commitment with ongoing, embedded use. A piece of equipment that is cheap to buy but relies on the maker’s consumables, or software that becomes the backbone of a company’s daily operations, both lock in years of future revenue.

A note on banking

Current accounts are a classic quiet switching-cost business. A salary lands there, a dozen direct debits run from it, and years of transaction history sit inside it. Surveys regularly find that people change their main bank far less often than they change far more expensive things, which tells you the barrier is effort and risk, not money.

How to Test a Switching-Cost Moat with Numbers

A story about switching costs is a hypothesis. The accounts are where you test it.

Test 1: retention and churn

Many subscription and software businesses disclose retention. Look for gross retention (how much revenue you keep before upselling) and net revenue retention (after existing customers spend more). Net retention above 100% means the base grows even if the company adds no new customers at all.

Test 2: pricing power in the gross margin

If a company has raised prices through a decade of cost inflation while keeping its gross margin stable or rising, its customers are not shopping around. A sliding gross margin is the opposite signal and often the first sign a moat is weakening.

Test 3: price rises without volume loss

Read how revenue grew. Growth driven by higher prices with steady volumes points to pricing power. Growth propped up by discounts and promotions points to the absence of it.

Test 4: the downturn test

Anyone keeps customers in a boom. The real question is what happened in the worst recent year for that industry. If retention and margins held through a downturn, customers had few acceptable alternatives when money was tight. That is the strongest possible evidence, and it is central to confirming any moat in the Five Criteria framework.

Worked Example: Two Software Companies

Imagine two hypothetical software firms, Company A and Company B. Both sell at similar prices and both looked healthy before a recession hit in Year 3. The numbers below are illustrative, not real.

YearCompany A net retentionCompany A gross marginCompany B net retentionCompany B gross margin
Year 1112%80%104%72%
Year 2114%81%101%71%
Year 3 (recession)108%80%92%66%
Year 4113%81%95%67%
Year 5116%82%98%68%

Company A’s customers kept spending more each year, even in the downturn, and its margin never wobbled. That is what deep switching costs look like in data: the product is woven into how customers operate, so leaving is unthinkable even when budgets are cut.

Company B lost ground in the bad year and had to work to win it back. Its customers could pause or trim spending without much disruption, which suggests the product sits at the edge of the workflow rather than the centre. Company A passes Criterion 2 on this evidence; Company B does not clearly pass.

When Switching Costs Fail

Switching costs are durable, but they are not permanent. They erode when something lowers the barrier to leaving.

  • A new standard: when data becomes portable or systems become interoperable by law or convention, moving gets easier.
  • A new technology: a cloud rival can sometimes remove the migration pain that protected an incumbent built on older technology.
  • Abuse: a company that leans too hard on trapped, unhappy customers invites both competitors and regulators.
  • Bundling by a larger rival: a competitor who already sits inside the customer’s business can absorb the switching cost by doing the migration for free.

Watch for rising spending just to keep customers, falling retention, or repeated management talk of “investing to defend our position” without a clear reason. These sit on our full list of warning signs every investor must know.

How This Fits the Five Criteria

Criterion 2 asks what stops competitors eroding a company’s returns. A switching-cost moat passes when you can do two things: name the specific cost a customer faces to leave and explain it in a sentence or two, and show evidence in the numbers that it holds, through high retention, pricing power and resilience in a downturn.

If you can describe the switching cost but the numbers never prove it, treat the moat as unconfirmed and demand a larger margin of safety on price at Criterion 5. Having spent years in investor relations, I have heard many companies describe “sticky” customers. Only some could point to a downturn where retention and margins proved it.

Frequently Asked Questions

What is the difference between switching costs and a network effect?

Switching costs make it painful for an existing customer to leave. A network effect makes the product more valuable as more people use it. A business can have one, both or neither. Microsoft Office historically had both: files were hard to move and almost everyone else used it too.

Are high switching costs always good for investors?

They are good when a quality business uses them to earn high returns without abusing customers. They become a risk when a company relies on trapping unhappy customers, because resentment invites disruption and regulation. The best switching-cost businesses keep customers who would stay anyway.

How can I see switching costs in a company’s accounts?

Look for disclosed retention or renewal rates, net revenue retention above 100%, long average contract lengths, and a history of raising prices while keeping volumes steady. A stable or rising gross margin across a decade is strong supporting evidence.

Which industries tend to have the strongest switching costs?

Enterprise software, core banking, medical and scientific equipment tied to consumables, outsourced payroll and data processing, and anything deeply embedded in a customer’s daily workflow or regulatory compliance.

Can a switching-cost moat get wider over time?

Yes. Every year a customer adds more data, more integrations and more trained staff, the cost of leaving rises. A moat that deepens with use is exactly the kind to look for, as covered in our guide to spotting a widening moat.

Your Next Step

Pick one company you own or follow and try to name, in two sentences, exactly what a customer would lose by leaving. Then check its retention and gross-margin trend over five years. See how this moat fits the other four tests in the Five Criteria framework, compare it with the other sources in our moat hub, and record your answers with the Five Criteria Checklist.


About the author: Cameron Hayes is a senior investor relations and finance professional who has worked in IR at Nasdaq Copenhagen-listed companies including Nilfisk and Maersk Drilling. He holds an MSc from Copenhagen Business School and a BCom from the University of Ottawa, and founded Gingernomics to teach individual investors the Five Criteria framework. More about Gingernomics.

The content on Gingernomics is for educational and informational purposes only and does not constitute financial advice. Always do your own research and consult a licensed financial advisor before making any investment decisions. Past performance is not indicative of future results.

Frequently asked questions

What is the difference between switching costs and a network effect?

Switching costs make it painful for an existing customer to leave. A network effect makes the product more valuable as more people use it. A business can have one, both or neither. Microsoft Office historically had both: files were hard to move and almost everyone else used it too.

Are high switching costs always good for investors?

They are good when a quality business uses them to earn high returns without abusing customers. They become a risk when a company relies on trapping unhappy customers, because resentment invites disruption and regulation. The best switching-cost businesses keep customers who would stay anyway.

How can I see switching costs in a company's accounts?

Look for disclosed retention or renewal rates, net revenue retention above 100%, long average contract lengths, and a history of raising prices while keeping volumes steady. A stable or rising gross margin across a decade is strong supporting evidence.

Which industries tend to have the strongest switching costs?

Enterprise software, core banking, medical and scientific equipment tied to consumables, outsourced payroll and data processing, and anything deeply embedded in a customer's daily workflow or regulatory compliance.

Put this into practice

Get the Five Criteria framework and the free valuation checklist to analyze your next stock.

Explore the tools