Switching Costs: Why They Are Software's Strongest Moat

Short answer

A switching cost is the money, time and risk a customer takes on by leaving one product for another. Software has high switching costs because data, workflows and integrations pile up inside one system. The moat is real only if it shows up in retention numbers, not just in a high P/E.

Live numbers from Cluenex data

Technology median P/E
33.0xas of Oct 14, 2026
Consumer Defensive median P/E
22.7xas of Oct 14, 2026
all-sector median P/E
22.2xas of Oct 14, 2026

Key takeaways

  • A switching cost is everything painful, expensive or risky about leaving a product: retraining, data migration, integration work and the chance something breaks.
  • Switching costs are one of the moat types Morningstar recognizes, alongside network effects, cost advantage, intangible assets and efficient scale.
  • The proof is in retention: net revenue retention and gross retention, which many software companies disclose in filings, test whether stickiness is real.
  • A high P/E alone does not prove a moat. Sector P/E medians differ widely: Technology is [[stat:sector-benchmarks.pe.Technology|Technology median P/E]] versus [[stat:sector-benchmarks.pe.all|all-sector median P/E]] for all sectors.
  • Moats can erode when a rival makes migration easy, when a product stops improving or when regulators force data portability.

What is a switching cost?

A switching cost is the total price a customer pays to move from one product to another, counting more than the sticker price. It includes cash, staff time, lost productivity and the risk of errors during the move.

Warren Buffett popularized the phrase "economic moat" for any lasting advantage that protects a company's profits from competitors. A moat works like the water around a castle: it makes attacking the business costly. Switching costs are one way to build one.

Why is enterprise software so sticky?

Enterprise software (tools businesses use to run themselves, as opposed to consumer apps) becomes embedded in daily work. Employees build habits around it, other systems connect to it and years of records live inside it.

Compare that with buying groceries. Shoppers can change stores tomorrow at almost no cost. Replacing a company's accounting or customer records system is closer to rewiring a building while the lights stay on: possible, but few try unless something is badly wrong.

What are the main types of switching costs?

Switching costs come in several forms, and the more of them a product has, the stronger the moat.

Type What the customer faces Example
Data and records Moving years of history, risk of loss or errors Financial history in an accounting system
Retraining Staff must learn new tools A workforce used to one office suite
Integration Other systems are wired to the product Payroll connected to finance and HR
Contract Penalties or long terms Multi-year enterprise agreements
Risk Downtime during the move Systems that run daily operations

Microsoft is a well-known illustration of the concept: when email, documents, calls and messaging all run on one suite, leaving means changing many habits at once. This is an example of the idea, not a view on the stock.

How do switching costs show up in a stock's numbers?

Switching costs show up as customers who stay and spend more over time, which makes revenue easier to forecast. They should appear as steady or rising retention, solid margins and low spending needed to keep customers.

Two retention measures matter most:

  • Gross retention: the share of last year's customer revenue still there this year, ignoring upsells. 95% means 5% was lost.
  • Net revenue retention: the same group's revenue this year divided by last year, including upsells. Above 100% means existing customers are spending more even after some leave.

Worked example: a company had $100 million of revenue from customers a year ago. Those same customers now pay $108 million after $6 million of cancellations and $14 million of expansion. Net revenue retention is 108 / 100 = 108%. Gross retention is (100 - 6) / 100 = 94%.

Not every company reports these, and definitions differ between companies. Read the definition in the annual report (10-K) or investor presentation before comparing two firms. The 10-K guide shows where to look.

Does a moat justify a high P/E ratio?

A durable moat can justify a higher price-to-earnings (P/E) ratio, which is the share price divided by annual earnings per share. More predictable profits are worth more to investors than uncertain ones.

Still, the multiple alone proves nothing. Cluenex Data shows sector medians that vary widely: Technology sits at 33.0x and Consumer Defensive (which includes grocers) at 22.7x, against 22.2x for all sectors. Sector differences also reflect growth, margins and interest rates, not switching costs alone. See P/E ratio explained for how to read the number.

Example: should a customer leave for a cheaper rival?

Suppose a company pays $1 million a year for software and a rival offers the same for 30% less, or $700,000. Saving $300,000 a year sounds attractive.

Now add the move. Retraining 200 employees at 10 hours each and $50 per hour costs 200 x 10 x 50 = $100,000. Data migration and integration work might cost $600,000, and six to nine months of parallel running adds more. If total one-time costs reach $900,000, payback takes 900,000 / 300,000 = 3 years, before counting disruption risk.

The figures are hypothetical, but the logic is real: the incumbent does not need to match the rival's price, because the cost of leaving is what decides the choice.

Where does the switching-cost moat fail?

The moat fails when leaving becomes cheap or staying becomes unattractive. Common causes:

  • A product that stops improving. Customers tolerate friction only while the product is good enough.
  • Easier migration. Rivals that offer import tools, or new technology that automates data conversion, shrink the barrier.
  • Regulation. Rules requiring data portability, as in some banking and cloud markets, lower costs by design.
  • Pricing backlash. Large price rises can push customers to pay the cost of leaving.
  • Platform shifts. A new way of working can make the old system irrelevant instead of hard to leave.

A frequent mistake is confusing loyalty with switching costs. Loyalty is a preference that can change with a better offer. A switching cost is a structural barrier that holds even when customers are unhappy. Another mistake is assuming only software has them: banks, cloud infrastructure and specialized industrial equipment have them too.

For other moat types and how to compare them, see how to evaluate a company's moat and why software switching costs matter for churn.

What this means for you

You can test a switching-cost claim in about 15 minutes with a company's latest annual report.

  1. Ask what leaving would involve. Look for concrete answers (data, training, integration), not "customers love it."
  2. Find retention data. Search the 10-K or earnings materials for net revenue retention, gross retention or churn, and note the definition.
  3. Check the trend. Falling retention over several years is a warning, even if revenue still grows.
  4. Compare margins and growth with peers. Cluenex Data on sector benchmarks gives a baseline.
  5. Re-check yearly. A moat that looked wide can narrow, so revisit it when new filings arrive.

Cluenex scores business quality from 0 to 10 against a company's own industry, including a moat check, and shows it on each free stock page at cluenex.com/stocks/ followed by the lowercase ticker. Treat it as one input beside your own reading of the filings.

Questions people ask

What is a switching cost in investing?

A switching cost is the time, money and risk a customer takes on to replace one product with another. In software it includes retraining staff, migrating data and rebuilding integrations.

Why do software companies often have higher P/E ratios?

Investors tend to pay more for earnings they see as predictable, and sticky customers make revenue easier to forecast. Growth rates and margins also play a large part, so a high P/E alone does not prove a moat.

How is a switching-cost moat different from a brand moat?

A brand moat depends on customer preference, which can shift. A switching-cost moat is a structural barrier that holds even if customers are unhappy with the product.

Can a switching-cost moat disappear?

Yes. A product that stops improving, a rival with easy migration tools, new technology that automates conversion or data-portability rules can all lower the barrier.

What are the other types of economic moat?

Morningstar lists network effects, cost advantage, intangible assets (such as brands and patents) and efficient scale alongside switching costs.

What numbers show a company has real switching costs?

Look for high and stable gross retention, net revenue retention above 100%, low churn and healthy margins. Check how the company defines each measure, since definitions differ.

Sources

  1. Berkshire Hathaway shareholder letters (1986 letter, economic franchise discussion), Berkshire Hathaway
  2. Morningstar Economic Moat Rating methodology, Morningstar
  3. Price-Earnings Ratio, SEC Office of Investor Education and Advocacy
What changed on this page
  • : Rewritten and fact-checked: clearer short answer, primary sources added, outdated details removed.
  • : Imported from learn.cluenex.com
Use it on a real stock

See this for any of 1,000 US stocks

Cluenex explains every number on a stock page in plain words, with the price that would change our view and a sealed record of past calls.

Start free

Education, not investment advice. Examples are illustrations, not recommendations to buy or sell.