Sub topic 2
How market-cap weighting decides what you own
This chapter assumes you know what a stock and a share are, can read a percentage return, and know that index funds and ETFs exist. It also assumes you have read the previous chapter on what an index is. Here you will learn how the most common weighting rule works, what it does to your portfolio over time, and where it goes wrong.
The rule in one sentence
In a market-capitalization-weighted index, each company's weight is its market value divided by the combined market value of every company in the index.
Market capitalization (market cap) is the share price multiplied by the number of shares outstanding. A company with 2 billion shares trading at 50 currency units has a market cap of 100 billion.
The S&P 500, MSCI World, and FTSE All-World all use this rule, with one refinement called free-float adjustment. That refinement is covered in the next chapter. This chapter uses full market cap so the core mechanism is easier to see.
A worked example
Take four made-up companies.
| Company | Market cap (billions) | Weight |
|---|---|---|
| AlphaCorp | 900 | 50.0% |
| BetaBank | 450 | 25.0% |
| GammaEnergy | 270 | 15.0% |
| DeltaRetail | 180 | 10.0% |
| Total | 1,800 | 100% |
AlphaCorp's weight is 900 / 1,800 = 50%. If you put 1,000 into a fund that tracks this index, about 500 goes into AlphaCorp, 250 into BetaBank, 150 into GammaEnergy, and 100 into DeltaRetail.
You did not pick those amounts. The rule picked them. The weights are simply a snapshot of how the market currently values each company.
What the weights mean in practice
Market-cap weighting has a useful property. The index holds each company in proportion to its share of the total market. This is the same as owning a thin slice of every company, with the same percentage of each one's shares.
In the example, each company has some number of shares. A fund that owns 0.1% of every company's shares ends up with exactly the weights in the table. It owns 0.1% of AlphaCorp's 900 billion, 0.1% of BetaBank's 450 billion, and so on.
This leads to the main argument for the method. The index is the average holding of all investors. Anyone who holds a different mix is, taken together with everyone else, balanced by someone holding the opposite. That makes cap weighting a useful default. It is not a claim that it is the best possible mix.
Computing weights in code
The following script computes weights from market caps. It uses the same four companies as the table, and it also applies a free-float fraction. Set every fraction to 1.00 to get the plain market-cap weights from the table above. The fractions are explained in the next chapter.
# Hypothetical companies: (total market cap in billions, free-float fraction)
companies = {
"AlphaCorp": (900, 1.00),
"BetaBank": (400, 0.80),
"GammaEnergy": (300, 0.50),
"DeltaRetail": (200, 1.00),
}
float_caps = {name: cap * ff for name, (cap, ff) in companies.items()}
total = sum(float_caps.values())
weights = {name: fc / total for name, fc in float_caps.items()}
for name, w in sorted(weights.items(), key=lambda kv: -kv[1]):
print(f"{name}: {w:.1%}")Notice that BetaBank has a market cap of 400 but a smaller index weight than 400 would suggest. The reason is the free-float fraction, not the weighting rule itself.
Prices move the weights, not trades
An index with cap weighting rebalances itself as prices change. Suppose AlphaCorp rises 20% and the other three stay flat.
| Company | New market cap | New weight |
|---|---|---|
| AlphaCorp | 1,080 | 54.5% |
| BetaBank | 450 | 22.7% |
| GammaEnergy | 270 | 13.6% |
| DeltaRetail | 180 | 9.1% |
| Total | 1,980 | 100% |
A fund that holds the original number of shares in each company now holds exactly these new weights. It did not buy or sell anything. This is why cap-weighted funds have low turnover (the share of holdings traded in a year). Low turnover means lower trading costs and, in taxable accounts, fewer taxable events.
Real indices still change. Companies join and leave, and share counts change when firms issue or buy back shares. The index provider updates the list at scheduled reviews, usually quarterly, and applies extra changes for events such as mergers.
The consequence: winners get bigger
Because weights follow prices, a company whose price rises gets a larger weight. A company whose price falls gets a smaller one. You never decide to buy more of a winner. The index does it by construction.
This has two effects that you should keep in mind.
- Momentum is built in. If a few large companies rise faster than the rest, the index becomes more concentrated in them. Concentration is the share of the index held by its largest names or its largest country. Later chapters measure it.
- Overvaluation is not filtered. The rule uses price only. If a company's price rises far above what its profits justify, the index holds more of it. A cap-weighted index does not check whether a price is reasonable.
If you want a number for this, the effective number of holdings is useful. It is 1 divided by the sum of the squared weights. It tells you how many equally weighted holdings would give the same level of concentration.
def effective_holdings(weights):
"""Inverse of the sum of squared weights (1 / Herfindahl index)."""
return 1 / sum(w ** 2 for w in weights)
equal_weights = [0.25, 0.25, 0.25, 0.25]
cap_weights = [0.50, 0.25, 0.15, 0.10]
print(round(effective_holdings(equal_weights), 2)) # 4.0
print(round(effective_holdings(cap_weights), 2)) # 2.9Four holdings with cap weights behave like fewer than three equal holdings. A real index with 500 or 1,500 companies has the same effect at a larger scale. The count of holdings overstates how spread out you are.
Alternatives, briefly
Cap weighting is one rule among several. Knowing the others helps you see what cap weighting does and does not do.
| Method | How weights are set | Main trade-off |
|---|---|---|
| Market-cap weighting | Proportional to market value | Concentrates in the largest companies |
| Equal weighting | Same weight for each company | Needs regular trading, and tilts toward small companies |
| Fundamental weighting | Based on sales, profits, or dividends | Departs from the market and depends on chosen measures |
| Price weighting | Proportional to share price | Share price says little about company size |
Price weighting is a historical quirk. Some well-known indices use it. It means a company with a high share price counts for more, even if the company is small. The three indices in this tutorial do not use it.
Edge cases and common errors
Confusing a large company with a large weight in a global index. The weight depends on the size of the whole index. A company with 1,000 billion in market cap has a smaller weight in a global index than in a one-country index, because the denominator is larger.
Assuming the weights are fixed. Weights drift every day with prices. Any figure you read about the top holding or the top ten is a snapshot. Treat it as dated information.
Assuming more holdings means more diversification. An index with 1,500 companies can still depend heavily on its top ten. Use the effective number of holdings or the top-ten weight to judge it.
Mixing up the index and the fund. The index sets the target weights. A fund tracks them with some cost and error. A later chapter on tracking funds covers that gap.
Treating cap weighting as a view. It is a rule, not a forecast. It does not say big companies will do better. It says you hold the market as it is priced.
What this means for the three indices
All three indices in this tutorial weight by market value, adjusted for free float. That shared rule explains why they overlap so heavily. Large US companies are large in all three. They differ in which companies are eligible, not in how weights are assigned.
- The S&P 500 applies the rule to about 500 large US companies.
- MSCI World applies it to large and mid-sized companies in developed markets.
- FTSE All-World applies it to developed and emerging markets.
The difference in coverage changes the denominator. A bigger universe gives each US company a smaller weight. The next chapters build on this.
Exercise
An index has three companies with market caps of 600, 300, and 100 (in billions). The price of the 100 company doubles and the other two do not change. What are the new weights, to the nearest percent, and did a fund tracking the index need to trade to follow them?
Show answer
The new market caps are 600, 300, and 200, which total 1,100. The weights are 600/1,100 = 55%, 300/1,100 = 27%, and 200/1,100 = 18%. The fund did not need to trade. Holding the original number of shares in each company already gives these weights, because the weights change with prices.
Exercise
Four holdings have weights of 40%, 30%, 20%, and 10%. Calculate the effective number of holdings and explain what the result tells you.
Show answer
The sum of squared weights is 0.16 + 0.09 + 0.04 + 0.01 = 0.30. The effective number of holdings is 1 / 0.30, which is about 3.33. The portfolio is as concentrated as 3.33 equally weighted holdings, so it is less spread out than its four holdings suggest.