The best companies don’t just make money today; they have a castle surrounded by water and crocodiles to keep the competition from stealing their customers. Sounds like a medieval movie, right? But this analogy is exactly the one Warren Buffett, one of the most successful investors in history, uses to explain why some companies dominate their market for decades while others vanish in just a few years.
This concept is known as the economic moat, and understanding it can completely change the way you analyze a company before investing in it. The best part: you don’t need to be a financial expert to grasp it. You just need to think about castles, crocodiles, and a bit of common sense.
What is an economic moat?
Picture a medieval castle. Inside the castle are a company’s profits: its customers, its products, and its money. Now imagine a deep moat filled with water surrounding that castle. That moat is what keeps competitors from getting in and taking the business away.
In the world of investing, an economic moat is any competitive advantage that protects a company from its rivals in a sustainable way. We’re not talking about a temporary edge, like a product that’s trendy for a couple of months. We’re talking about real, lasting barriers that make it extremely difficult for another company to steal customers or profits.
Warren Buffett puts it this way: “What I’m looking for in a business is an economic castle protected by an unbreachable moat.” And the key to his strategy has been investing precisely in companies with wide, deep moats that are hard to cross.
Why does this matter to you as an investor? Because a company with a strong moat can maintain its profit margins even when competition attacks, the economy stumbles, or technology changes the rules of the game. These are the companies that survive crises and keep generating value year after year.
The 4 main sources of an economic moat
Not all moats are created equal. Company analysis experts have identified four main types of competitive advantages that create lasting moats. Let’s look at each one with examples you’ll probably recognize.
1. The network effect: the more users, the better the service

The network effect happens when a product or service becomes more valuable as more people use it. It’s like a party: the more friends who show up, the more attractive it becomes, and the more people want to go.
Think about WhatsApp. Why do you use it? Because that’s where all your contacts are. If a technically superior messaging app launched tomorrow, would you switch? Most likely not, because your friends, your family, and your groups are still on WhatsApp. That’s the network effect in action.
Another classic example is Visa or Mastercard. The more stores accept their cards, the more people want to use them. And the more people use them, the more stores want to accept them. This virtuous cycle creates a moat that’s nearly impossible for a new competitor to break.
2. Cost advantages: producing cheaper than everyone else
Some companies have the ability to manufacture or deliver their products at a significantly lower cost than their competitors. This allows them to offer lower prices without sacrificing profits, or maintain similar prices while keeping wider margins.
Costco is a perfect example. By purchasing in massive volumes and operating with minimal margins, it offers prices few competitors can match. Its membership model guarantees steady revenue, and its operational efficiency gives it an advantage that’s hard to replicate.
Amazon is another case. Its massive logistics infrastructure and scale of operations allow it to deliver products faster and cheaper than most. A new competitor would have to invest billions just to come close.
When a company can produce cheaper than everyone else, it has a natural wall against competition.
3. Intangible assets: brands, patents, and licenses

Intangible assets are things you can’t touch but that hold enormous value. We’re talking about powerful brands, patents that protect exclusive technologies, and regulatory licenses that limit competition.
Think about Coca-Cola. Its secret formula is famous, yes, but its real moat isn’t in the recipe: it’s in the brand. Coca-Cola has spent over a century building an emotional connection with billions of people worldwide. If someone created a drink that tasted exactly the same tomorrow, could they sell as much? Probably not. The Coca-Cola brand is a moat that’s nearly impossible to replicate.
In the pharmaceutical world, patents are critical moats. When a company like Pfizer or Johnson & Johnson develops a new drug, it obtains a patent that prevents others from manufacturing that same product for years. This guarantees them massive revenue without direct competition during the protection period.
Regulatory licenses also create moats. Think about telecommunications or energy companies: to operate in certain markets, you need government permits that are extremely difficult to obtain. If you already have them, you’re protected.
4. High switching costs: when changing providers hurts too much
The last type of moat is based on how difficult and expensive it is for customers to stop using a product or service and switch to a competitor.
Microsoft is the king of switching costs. If your company uses Microsoft Office, Outlook, Teams, and the entire Microsoft 365 ecosystem, switching to another provider would mean retraining hundreds of employees, migrating millions of files, reconfiguring systems, and risking lost productivity for weeks or months. Most companies simply renew their subscription because switching is too expensive, complex, and risky.
Apple uses a similar strategy with its ecosystem. If you have an iPhone, a MacBook, an Apple Watch, and use iCloud, switching to Android would mean losing the seamless integration between all your devices. The more Apple products you own, the more “locked in” you are to its ecosystem. And for Apple, that’s exactly the point.
Enterprise resource planning (ERP) systems like SAP or Oracle also create enormous switching costs. Implementing an ERP can take years and cost millions. Once installed, companies use it for decades simply because the cost of switching is prohibitive.
How to identify companies with economic moats

Now that you understand the four types of moats, the next question is: how do you identify whether a company actually has one? This is where the numbers come into play, but don’t worry, it’s simpler than it seems.
Stable and high profit margins
If a company maintains consistently high profit margins over many years, that’s a strong signal it has a moat. Why? Because if it didn’t, competition would have pressured it to lower prices and its margins would have eroded.
Imagine two restaurants. One can charge premium prices year after year without losing customers. The other has to constantly offer discounts to compete. The first one probably has a moat (maybe a unique location, an exceptional reputation, or an exclusive recipe). The second one doesn’t.
High return on equity (ROE)
ROE (Return on Equity) measures how much money a company generates relative to the capital shareholders have invested. A consistently high ROE (say, above 15-20% over several years) usually indicates the company has a competitive advantage that allows it to generate above-average profits.
If a company without a moat tried to achieve those same returns, competitors would quickly enter the market, increase supply, and reduce profits for everyone. The fact that a company maintains a high ROE over long periods suggests something is protecting its profits: a moat.
Where can you check this data?
In Stockerowl’s interactive reports, you can look up profit margins, ROE, and other key financial metrics for thousands of companies, organized visually and in an easy-to-understand format. This allows you to quickly compare companies and spot which ones show signs of strong economic moats, without needing to read pages and pages of complicated financial reports.
Does a moat guarantee investment success?
It’s important to be honest: having a moat doesn’t mean a company is automatically a perfect investment. There are two additional things you should consider:
Price matters. An incredible company bought at an excessive price can be a bad investment. Even the most imposing castle can be a bad deal if you overpay for it. Warren Buffett himself has said he prefers “buying a wonderful company at a fair price, over a mediocre company at a wonderful price.”
Moats can weaken. Technology, regulatory changes, or management mistakes can erode a moat over time. Kodak had a massive moat in the analog photography business but failed to adapt to digital photography. Blockbuster dominated movie rentals, but Netflix destroyed its moat. That’s why it’s essential to periodically review whether a company’s competitive advantages are still intact.
Building your investor mindset
Thinking about economic moats forces you to look beyond the numbers of the moment and ask yourself: Will this company still be winning 10 or 20 years from now? What protects it? Is its advantage getting stronger or weaker?
This approach is at the heart of Value Investing, the investment philosophy that has guided Warren Buffett for over half a century. It’s not about chasing the stock of the moment or betting on passing trends. It’s about finding exceptional businesses with lasting advantages and buying them at reasonable prices.
Conclusion
The economic moat is one of the most powerful and practical concepts you can incorporate into your analysis process as an investor. It helps you separate companies that have real, sustainable advantages from those that are simply having a good temporary run.
The next time you analyze a company, ask yourself these questions:
- Does it have a network effect that makes it stronger with each new user?
- Does it produce at lower costs than its competitors?
- Does it own a brand, patent, or license that protects it?
- Do its customers face high costs to switch to a competitor?
If the answer to one or more of these questions is yes, and the numbers confirm it with stable margins and a high ROE, you’re probably looking at a company with a solid economic moat.
And remember: you don’t need a finance degree to think like Warren Buffett. You just need to observe the world with curiosity, ask yourself why certain companies dominate for decades, and verify that the numbers support what you see. That’s the first step to investing with intelligence and a long-term vision.