The rival does the sums for getting in, not your profit sums
Whether a rival comes depends on how long the profit it takes from you needs to pay back what it spends catching up. If getting in costs C yuan and, once in, it makes g yuan more a year, the number of years the rival needs to pay back is
t=gC
The depth of the moat is the length of that payback: the more it costs to get in and the less a rival can take, the deeper the moat. Imagine an industry where you must spend 600 million yuan to build sales channels, and once in you make 30 million more a year. It takes twenty years to pay back, and most boards would not approve it. Bring the investment down to 60 million and it pays back in two years, so high profits soon draw people in. Four kinds of things commonly make a rival's sums fail. One is the habits customers have settled into, like the See's candy box. Another is the trouble of switching, like a customer having to explain their haircut all over again to a new barber. A third is lower costs, like a parts factory that turns out less scrap than others. The last is resources rivals can't get, like licenses and pipe networks already in the ground.
The moat is deep enough only if customers stay after a price rise
Imagine a product that sells for 100 yuan and costs 60, a gross profit of 40 yuan on each. Raise the price 10% and each one makes 10 yuan more, a gross profit of 50. Eighty percent of 50 is exactly 40, so sales have to fall by a fifth before total gross profit is back where it was. See's is the most extreme case: in four years its revenue rose by more than half, while the weight of candy it sold barely changed. Orders still coming in the month of a price rise don't count. The moat is deep only if customers still pay that price once contracts come up for renewal, shortages are over, and they can compare prices again.
What the moat guards is the money left after the cost of capital
Money put into a business has a cost: the people who supplied it could have put it somewhere else and earned a return. A rival doing its sums for getting in has to subtract that cost, and so do you when you size up your own moat. Put in 100 yuan with investors asking for 8% a year, and the business must first earn 8 yuan. After the costs of running the business and keeping up its advantage, its after-tax operating profit is 15 yuan. Pay the investors their 8 first, and the 7 left over is the money rivals envy and the moat has to guard. A business that earns only its 8 yuan leaves a rival nothing to share if it comes in, and it needs no moat.
The model works best for businesses whose customers buy again and again and that rivals need years to catch up with. High profits don't always mean a moat. Imagine that for six months after a bridge collapses, ferry fares double. That profit comes from a gap: once new boats arrive and the bridge is repaired, it goes away. Mistaking size or fame for a moat is another misreading; the question is whether a rival trying to catch up can make the sums work. The price-rise test can fool you too. When a whole industry raises prices along with the cost of raw materials and customers keep buying, the costs have only been passed on, and the moat is no deeper.