Qualitative Analysis · Lesson 11 · 14 min read

Economic moats

An economic moat is a competitive advantage that keeps rivals from eroding a company’s profits for years.

Written by the StockEducation Editorial Team · Reviewed by Associate Professor Charles Lo, CPA, PhD · Updated · How we check lessons

Quick answer

What is an economic moat?

An economic moat is a durable competitive advantage that protects a company’s profits from competitors. Common moats include strong brands, network effects, high switching costs, economies of scale and valuable patents or other intangible assets. A genuine moat should support high returns on invested capital over many years, but investors must still watch for signs that the advantage is weakening.

Key takeaways

  1. An economic moat is a sustainable competitive advantage that protects long term profits from competitor attack.
  2. There are five moat types: brand, network effects, switching costs, economies of scale and intangible assets such as patents.
  3. The strongest moats combine several sources, as Apple pairs a powerful brand with high switching costs across its devices and services; its net margin stayed above 20 percent every year from fiscal 2017 to 2025.
  4. Returns on invested capital that stay well above the cost of capital for many years are the financial sign of a real moat: $1 reinvested at 18 percent for 20 years becomes about $27, at 6 percent about $3.
  5. Moats can erode, as Kodak, Nokia, Sears and Blockbuster showed, so early warning signs matter.
  6. Even a company with a wide moat can be a poor investment at too high a price.
The original economic-moat illustration: an advantage must protect the business from competition.
The original economic-moat illustration: an advantage must protect the business from competition.

Start the lessonTake the quick checkRead the FAQSee the sources

All 5 parts of this lesson

Part 1 of 5 · How moats work

What is an economic moat?

One of Warren Buffett’s best known metaphors is the economic moat. Picture a company as a medieval castle with its profits inside.1 Outside, competitors keep attacking: launching cheaper products, copying the business model, stealing customers. The moat is whatever makes that attack hard. A wide, deep moat keeps rivals out and profits in; a narrow or shrinking one leaves the castle exposed.

“A truly great business must have an enduring ‘moat’ that protects excellent returns on invested capital.”

Warren Buffett, 2007 letter to Berkshire Hathaway shareholders

Many of Buffett’s best known long term holdings are businesses he has described as having lasting advantages: Coca-Cola’s brand, American Express’s network, the habitual loyalty to See’s Candies and Apple’s ecosystem.2 A moat protects more than today’s profit. It protects the company’s ability to keep earning for decades, which makes it more reasonable to estimate its cash flows years ahead.

Without a moat, high profits attract competitors who chip away at margins. Nokia, BlackBerry and Motorola led the phone market in 2007, yet within a decade each had lost most of its handset business as smartphones built around software ecosystems took over. Apple’s iPhone, launched in 2007, built an ecosystem that has helped it keep high profits for nearly two decades despite many rival devices.

Coca-Cola’s brand, first served1886
Apple’s net profit margin, fiscal 2025About 27%
Active Apple devices, January 20262.5 billion+

Coca-Cola was first served in 1886.3 Apple earned $112,010 million of net income on $416,161 million of revenue in fiscal 2025, a margin of about 27 percent,4,5 and reported more than 2.5 billion active devices in January 2026.6

Worked example (hypothetical companies)

Two companies each earn a 20 percent operating margin on $1 billion of sales, or $200 million. Rivals enter both markets. The one with high switching costs keeps its margin near 20 percent. The one without a moat cuts prices until its margin falls to 8 percent, or $80 million. Same sales, less than half the profit.

Same $1 billion of sales, different profit (hypothetical)

The company without a moat kept its sales but lost 60 percent of its profit. Operating profit = $1 billion × margin: 20 percent gives $200 million, 8 percent gives $80 million.
The castle-and-moat metaphor illustrates a competitive barrier; it is not evidence that an advantage will last.
The castle-and-moat metaphor illustrates a competitive barrier; it is not evidence that an advantage will last.

The common mistake is calling a company a moat business just because it is popular today. Popularity is not a mechanism.

The rule

A moat is a mechanism that stops rivals copying a business, and popularity is not a mechanism.

Marks Part 1 done

Part 2 of 5 · Five moat types

What are the five types of moat?

Lasting competitive advantages fall into five broad types. Some companies have one; the best stack several.

1. Brand power

Customers prefer the product even at a higher price. Coca-Cola sells flavored soft drinks at premium prices largely on the strength of its brand. Tiffany charges a multiple of comparable jewelers for the blue box, and Hermès charges well above most leather goods makers because customers want the name itself.

The test: could a competitor with the same product and no brand match the price? If not, there is a brand moat. Brand moats decay slowly but can be badly damaged by a single scandal, as Volkswagen found in 2015 and Wells Fargo in 2016.

2. Network effects

Each new user makes the product more valuable to existing users. Visa and Mastercard are worth more to merchants the more customers carry their cards, and more to customers the more merchants accept them. Once a network reaches critical mass, rivals face a chicken and egg problem: they cannot attract users without a network, or build a network without users. Other examples include eBay, Airbnb, LinkedIn, Microsoft Office file formats and Google Search.

3. Switching costs

Leaving is expensive, painful or both. Enterprise software from Oracle and SAP can keep customers for many years because moving systems is costly and risky. Apple’s ecosystem creates personal switching costs: leaving means abandoning years of purchases, photos, contacts and habits.

High switching costs bring what Buffett calls pricing power: the ability to raise prices steadily without losing customers. The tell is a business whose customers complain about prices but rarely leave.

4. Economies of scale

When fixed costs are spread over huge volumes, the biggest player has a lower cost per unit than anyone else. Amazon’s distribution network, Walmart’s purchasing power and Costco’s bulk buying each create a cost edge smaller rivals cannot copy without matching the scale. Scale moats compound: lower costs allow lower prices, which bring more customers and more scale. Walmart’s scale helped it outcompete many regional discount chains over several decades.

5. Intangible assets and patents

A U.S. patent generally lasts 20 years from its filing date and is the foundation of drug makers’ profits. Licenses in banking, telecommunications and broadcasting create barriers rivals cannot legally cross. Trade secrets, such as Coca-Cola’s recipe, add durable but informal protection.

Patent moats expire on a schedule. When a blockbuster drug loses patent protection, sales often fall sharply, as with Pfizer’s Lipitor and Roche’s Avastin. The date the protection ends, and whether newer products can take over, decide how much the moat is worth.

Five categories of competitive advantage with illustrative company examples. Examples are starting points for investigation, not recommendations.
Five categories of competitive advantage with illustrative company examples. Examples are starting points for investigation, not recommendations.
The rule

Every lasting advantage is one of five mechanisms: brand, network, switching costs, scale or intangibles.

Marks Part 2 done

Part 3 of 5 · Stacked moats

How does Apple stack several moats at once?

The most powerful businesses have several moats reinforcing one another. Apple is a common example.

  • Brand. Loyal customers pay premium prices for devices with similar specifications.
  • Network. iMessage and other services work best between Apple devices, which adds social pressure to stay.
  • Switching costs. Photos, contacts, app purchases and watch pairing make leaving painful.
  • Scale. Apple is one of the world’s largest buyers of semiconductors and designs its own chips, spreading their cost over very large volumes.
  • Intangibles. Thousands of design patents, decades of software and control of app distribution on iOS.

The evidence is in the filings. Apple’s net margin, net income divided by revenue, has stayed above 20 percent in every fiscal year from 2017 to 2025, and climbed from about 21 percent to about 27 percent, even as revenue grew from $229 billion to $416 billion.4,5 Many rival phone makers earn far less on similar devices. You can check any company the same way on the SEC’s EDGAR system.7

Apple: revenue and net income, fiscal 2017 versus fiscal 2025

$0B$200B$400B$600B$229.2B$48.4BFY2017$416.2B$112BFY2025

Revenue Net income

Revenue rose 82 percent and net income 132 percent, so profit grew faster than sales: the signature of pricing power and scale working together. Figures in billions from Apple’s SEC filings. Source: SEC XBRL data for Apple.

Apple’s net profit margin, fiscal 2017 to 2025

20%22%24%26%28%FY2017FY2019FY2021FY2023FY2025
Margin stayed above the dashed 20 percent line every year and ended near 27 percent while revenue rose from $229 billion to $416 billion. Computed as net income ÷ revenue from Apple’s 10-K data filed with the SEC. Source: SEC XBRL data for Apple: net income and revenue.

Berkshire Hathaway began buying Apple shares in 2016, and Apple later became one of its largest holdings.

“The key to investing is … determining the competitive advantage of any given company and, above all, the durability of that advantage.”

Warren Buffett with Carol Loomis, Mr. Buffett on the Stock Market, Fortune, November 22, 1999

Note the last words: durability. A stacked moat matters because no single weakness, a weaker product year or a new rival, is enough to sink the business.

The rule

Apple’s net margin stayed above 20 percent in every fiscal year from 2017 to 2025 while revenue nearly doubled.

Marks Part 3 done

Part 4 of 5 · Five step check

How do you identify a moat in five steps?

  1. Check return on invested capital over ten years. Return on invested capital (ROIC) is operating profit after tax divided by the debt and equity used in the business. Persistently high ROIC, often above 15 percent, is treated as the financial fingerprint of a moat; without one, competition pushes it down over time.
  2. Name the moat type. Match the advantage to one of the five types. If you cannot describe specifically why competitors fail to catch up, you have found a temporarily lucky business, not a moat.
  3. Estimate how long it will last. Coca-Cola’s brand has lasted about 140 years.3 Tech moats sometimes last only a decade, and drug patents expire on a fixed date. The longer the moat should last, the more the business is worth today.
  4. Watch for erosion. Falling market share, shrinking margins and new entrants gaining ground are early signs. Sears, Kodak, Nokia, BlackBerry and Blockbuster all showed them years before their declines were obvious.
  5. Weigh the price. Great moats are widely recognized and often expensive. Buffett’s edge is the patience to wait for panics, recessions or scandals, when even great businesses trade at reasonable prices.

Why does ROIC matter so much? A business that earns a high return on capital and can reinvest at that rate compounds far faster than one earning a low return.

“If a business earns 18% on capital over 20 or 30 years, even if you pay an expensive looking price, you’ll end up with a fine result. So the trick is getting into better businesses.”

Charlie Munger, A Lesson on Elementary, Worldly Wisdom, USC Business School, 1994

Worked example (hypothetical)

Take $1 of capital that is reinvested every year at the same return for 20 years. At 18 percent it grows to about $27.39. At 6 percent it grows to about $3.21. The moat business ends up more than eight times larger, which is why a higher price can be justified, but only if those returns really last.8

$1 of capital reinvested for 20 years (hypothetical)

$0$10$20$30$27.39$3.21Year 0Year 10Year 20

18% a year 6% a year

A high return on capital compounds into a far bigger business: 1.18 to the 20th power is $27.39, 1.06 to the 20th power is $3.21, assuming every dollar earned is reinvested at the same return.

“It’s far better to buy a wonderful company at a fair price than a fair company at a wonderful price.”

Warren Buffett, 1989 letter to Berkshire Hathaway shareholders

Business quality comes first, then price; a low price on a weak business can be a value trap.9

The rule

A dollar reinvested at 18 percent for 20 years becomes about $27; at 6 percent it becomes about $3.

Marks Part 4 done

Part 5 of 5 · Moat erosion

Where do moats fail, and why?

Even the deepest moat can dry up, and spotting erosion before the market does is one of the most valuable skills in investing.

Technological disruption. A Kodak engineer built the first digital camera in 1975, yet the company was slow to embrace digital, partly to protect film sales, and filed for bankruptcy in 2012.10 Film’s moat of chemistry, distribution and brand was irrelevant in a world of digital sensors. Any moat that depends on one technology can be erased by the next.

Regulatory shifts. Big banks’ advantages were partly regulatory, and stricter capital rules after the 2008 financial crisis reduced the returns they could earn. AT&T’s long run as a regulated telephone monopoly ended when a 1982 antitrust settlement led to the breakup of the Bell System in 1984.

Management complacency. Sears had huge brand recognition and scale in the 1980s, and Walmart passed it as the largest U.S. retailer around 1990. Decades of missteps and a slow response to Walmart and Amazon ended in a Chapter 11 filing in October 2018. Moats do not deepen themselves; leaders must keep reinvesting. Andy Grove, Intel’s former chief, titled his 1996 book Only the Paranoid Survive, and how management talks about rivals is worth noticing: dismissing new competitors can be a warning sign.

Moats that failed

  1. 1984
    AT&TRegulated monopoly broken up under a 1982 antitrust settlement.
  2. 2010
    BlockbusterRetail scale and locations, beaten by streaming; files for bankruptcy.
  3. 2012
    KodakFilm chemistry and brand, beaten by digital sensors; files for bankruptcy.
  4. 2014
    NokiaManufacturing scale, beaten by the iPhone ecosystem; handset business sold to Microsoft.
  5. 2018
    SearsRetail scale and catalog, beaten by online shopping and neglect; files for Chapter 11.
Each company once had a real advantage. Year shown is the breakup, bankruptcy filing or sale that marked the end.

Antitrust action. Standard Oil, by a 1911 Supreme Court ruling, and AT&T, under the 1982 settlement with the Justice Department, were broken up under U.S. antitrust law, which targets companies that gain or keep monopoly power through improper conduct.11 Google, Meta, Amazon and Apple face growing antitrust scrutiny today. A moat that is too wide can attract the forces that drain it.

“Business history is filled with ‘Roman Candles,’ companies whose moats proved illusory and were soon crossed.”

Warren Buffett, 2007 letter to Berkshire Hathaway shareholders

So the moat gets rechecked whenever new results arrive. Buffett has written that managers should widen the moat every year, and if it is narrowing, the estimate of value falls with it.2,12

The rule

Kodak, Blockbuster, Nokia and Sears each had a real moat, and each lost it to technology, neglect or both.

Marks Part 5 done

Quick check

Quick quiz: test what you just read

Pick an answer to see why it is right. 5 questions, no account needed.

0 of 5 answered

1. What is an economic moat?

Answer: A.Like a moat around a castle, a lasting competitive advantage makes it hard for rivals to copy the business and compete away its profits. It is a judgment to test over time, not a guaranteed return.

2. Does a large market share alone prove that an advantage will last?

Answer: C.Nokia, BlackBerry and Motorola led the phone market in 2007, yet lost their positions within a decade. Durability depends on a mechanism that stops rivals, not on today’s share alone.

3. Visa becomes more useful to merchants as more people carry its cards, and more useful to cardholders as more merchants accept it. Which moat type is that?

Answer: B.Each new user adds value for existing users, and a rival cannot attract users without a network or build a network without users.

4. In the worked example, $1 reinvested at 18 percent a year for 20 years grows to about $27. At 6 percent it grows to about $3. What does this illustrate?

Answer: B.This is Munger’s point: a business that keeps earning high returns on reinvested capital ends up many times larger, which is why durability of the advantage matters so much.

5. Which is an early sign that a moat is eroding?

Answer: C.Falling market share, shrinking margins and new entrants gaining ground showed up at Sears, Kodak, Nokia and Blockbuster years before their declines were obvious.

Questions people ask

Economic moats FAQ

Who came up with the idea of an economic moat?

Warren Buffett popularized the metaphor, comparing a business to a castle whose profits are protected by a moat that keeps competitors out. Morningstar later built the idea into its stock research, rating companies as having a wide, narrow or no moat. Pat Dorsey, a former Morningstar director of equity research, has also written widely on how to identify moats.

How can you tell if a company has a moat?

Start with the numbers: persistently high return on invested capital, often above 15% over many years, is a common fingerprint of a moat. Then name the source, such as brand, network effects, switching costs, scale or intangible assets, and explain specifically why rivals cannot catch up. Finally, judge how long the advantage is likely to last and watch for signs of erosion.

Can a company lose its moat?

Yes. Moats erode when technology changes, regulation shifts or management grows complacent. Kodak’s film business lost its relevance in the digital era, and Sears faded under failed strategies and stronger rivals. Antitrust action can also break up dominant firms. Early warning signs include falling market share, shrinking margins and new competitors gaining traction, and a weakening moat rarely repairs itself.

Is a company with a wide moat always a good investment?

No. Great moats are widely recognized, so their shares are often expensive, and paying too much can produce poor returns even from an excellent business. The moat lesson pairs quality with price discipline: identify durable advantages first, then wait for a reasonable price, which sometimes appears during panics, recessions or company specific scandals. A moat also needs ongoing reinvestment to stay wide.

What is the strongest type of economic moat?

There is no single winner, but network effects are often seen as the strongest moat of the digital age, because each new user makes the product more valuable to everyone else and rivals struggle to attract users without a network. In practice, the most durable businesses often stack several moats, such as a brand, switching costs and scale, so one weakness does not sink them.

Next steps

You finished this lesson.

You now have the main ideas from this lesson. Next, practice where mistakes cost nothing: a free account saves your progress and unlocks the practice simulator with virtual money.

Free, no card. Lessons stay free to read without an account.

Your notes on one card, and what comes next
  1. Step 1 · DoneEconomic moats
    See your notes on one card
    1. An economic moat is a sustainable competitive advantage that protects long term profits from competitor attack.
    2. There are five moat types: brand, network effects, switching costs, economies of scale and intangible assets such as patents.
    3. The strongest moats combine several sources, as Apple pairs a powerful brand with high switching costs across its devices and services; its net margin stayed above 20 percent every year from fiscal 2017 to 2025.
    4. Returns on invested capital that stay well above the cost of capital for many years are the financial sign of a real moat: $1 reinvested at 18 percent for 20 years becomes about $27, at 6 percent about $3.
    5. Moats can erode, as Kodak, Nokia, Sears and Blockbuster showed, so early warning signs matter.
    6. Even a company with a wide moat can be a poor investment at too high a price.
  2. 2
    Step 2 · NowSave your progress with a free account

    Keep your course progress and practice on real U.S. stocks with virtual cash.

    Create your free account No card needed. Lessons stay free to read.
  3. 3
    Step 3Follow the learning path
    The learning pathFree

    Learn the rest in the right order

    Ten modules of lessons, videos, tools and quizzes, ordered so each step builds on the last, from market basics to company analysis and risk.

    Start the learning path

Want the full sequence? See the course outline →

Up nextPart 1 · What is an economic moat?
Next ↓