What is a stock market index and how is it built?

A stock market index is a calculated number that tracks the combined performance of a chosen group of stocks. Instead of watching hundreds of prices, you watch one figure that rises when the group rises overall and falls when it falls. Indexes act as scoreboards for the market, as benchmarks for fund managers and as the blueprints for many index funds, so knowing how they are built helps you read headlines correctly.
What an index is, and what it is not
An index is a rulebook plus a calculation. The rulebook says which stocks are included, how much weight each one gets and when the list is updated. The calculation turns the prices of those stocks into one level.
The level itself has no meaning in dollars. An index starts at an arbitrary base value, such as 100, on a base date. A level of 5,000 does not mean anything is "expensive" by itself. What matters is the percentage change over time.
You cannot buy an index directly, because it is only a number. You can buy a fund, such as an ETF, that holds the same stocks and aims to match the index's results, less costs.
The main weighting methods
How much each stock counts is the most important design choice.
Market-capitalization weighting. Each stock's weight is proportional to its market capitalization, meaning price times shares. Bigger companies move the index more. Most major indexes use this approach, usually adjusted for free float, which counts only the shares available for public trading and excludes shares held by insiders or governments. The S&P 500 works this way.
Price weighting. Each stock's weight is proportional to its share price. A stock priced at $300 counts three times as much as a stock priced at $100, whatever the companies' sizes. The Dow Jones Industrial Average is the best-known example. The index level is the sum of prices divided by a divisor, which is adjusted for splits and other changes so the level does not jump artificially.
Equal weighting. Every stock gets the same weight, such as 0.2% each in a 500-stock index, and the index is periodically reset to restore those weights. This gives smaller companies more influence than they have in a cap-weighted index.
Example (illustrative numbers)
Take a tiny market-cap-weighted index of three companies with base level 100:
| Company | Market cap | Weight |
|---|---|---|
| A | $500 billion | 50% |
| B | $300 billion | 30% |
| C | $200 billion | 20% |
On the next day, A rises 2%, B falls 1% and C is unchanged. The index change is the weighted sum:
0.50 x (+2%) + 0.30 x (-1%) + 0.20 x (0%) = +1.0% - 0.3% + 0% = +0.7%
The index goes from 100 to 100.7. Company C, despite not moving, still held a 20% weight, and A's 2% rise mattered most simply because A is the largest.
Now consider a price-weighted index of two stocks priced at $300 and $100. The average is $200. If the $300 stock rises 10% to $330, the average becomes $215, up 7.5%. If instead the $100 stock rises 10% to $110, the average becomes $205, up 2.5%. Same percentage move, three times the effect, purely because of the higher price.
Price return vs total return
Most headline index levels are price returns, which track only price changes. A total return version assumes dividends are reinvested. Over long periods, the gap can be large, because dividends are a significant part of long-run stock returns. When comparing a fund with an index, check which version is being used.
Maintenance: additions and rebalancing
Indexes are not static. Companies are added or removed when they merge, shrink, grow or no longer meet the rules, and index providers publish the criteria. Weights are updated as prices move for cap-weighted indexes without any trading needed, while equal-weighted indexes must be rebalanced to restore equal weights. The provider handles these changes, and funds that track the index trade to match. Some index rules rely on a committee's judgment, while others are fully rules-based.
Common mistakes and limits
- Treating an index as "the market." Every index covers only a slice. The Dow Jones holds 30 companies, and the S&P 500 holds roughly 500 large ones. Smaller companies and many other assets are outside both.
- Ignoring concentration. In a cap-weighted index, a few very large companies can drive a big share of the result, so owning an index does not automatically mean even exposure to every company.
- Comparing levels instead of returns. An index at 40,000 is not "higher" than one at 5,000 in any useful sense.
- Forgetting survivorship. Indexes drop companies that shrink or fail and add ones that have grown, so an index's long-run record is not the same as the record of any single stock held through good times and bad.
Where to see it on StocksXray
StocksXray's research universe is the S&P 500, and the S&P 500 page lists its members.
Key takeaways
- An index is a rulebook and a formula that summarize a group of stocks in one number.
- The weighting method (market cap, price or equal) decides which stocks matter most.
- The level is arbitrary; percentage change is what carries information.
- You invest through funds that track an index, not in the index itself.
- Every index covers only part of the market and may be concentrated in a few names.
This article is educational and is not investment advice.
Related reading
Educational only, not financial advice. Examples use illustrative numbers.