Plain-English investing notes, one idea at a time — every number checked against a primary source.

StocksExplainer

What is a stock market index, and how is one calculated?

A stock market index tracks a basket of stocks. Learn how the S&P 500 and the Dow are built, why weighting matters, and why you can't buy an index directly.

An antique brass stock ticker machine under a museum light
“Edison Stock Telegraph Ticker” by H. Zimmer — CC BY 3.0 (edited: cropped, recolored)

Quick answer

A stock market index tracks the performance of a chosen basket of stocks meant to represent a market or sector. The S&P 500 and the Dow Jones Industrial Average are examples. You cannot invest in an index directly, but index funds try to match one.

Key points

  • An index measures a basket of securities chosen to represent a market, a sector or an economy.
  • Most broad indexes weight companies by market value, so the biggest companies move the index most.
  • The Dow Jones Industrial Average is price-weighted: a stock's share price, not its size, sets its weight.
  • You cannot buy an index itself; index funds aim to match one before fees and may still trail it.
  • An index is a yardstick, not a forecast — it tells you what a group of stocks did, not what they will do.

What does a stock market index measure?#

The SEC's investor site describes a market index as something that measures the performance of a "basket" of securities meant to represent a sector of a stock market, or of an economy[1]. In plain terms, an index is a scoreboard. It picks a group of stocks, applies a set of rules, and turns their prices into a single number that can be tracked day by day.

When a news anchor says "the market fell 1% today", they almost always mean an index fell 1%. Different indexes answer different questions. The Investor.gov glossary gives three U.S. examples: the Dow Jones Industrial Average, an index of 30 "blue chip" stocks; the S&P 500; and the Wilshire 5000, which includes most publicly traded U.S. stocks[2].

Which indexes do beginners hear about most?#

Three widely quoted U.S. stock indexes
IndexWhat it coversHow companies are weighted
S&P 500500 leading U.S. companies, about 80% of available market capitalizationFloat-adjusted market capitalization
Dow Jones Industrial Average30 U.S. blue-chip companiesShare price
Wilshire 5000Most publicly traded U.S. stocksInvestor.gov lists it as a broad index; check the provider for its method

S&P 500 and Dow details from S&P Dow Jones Indices[3][4][5]; Wilshire 5000 description from Investor.gov[2].

S&P Dow Jones Indices, the company that runs the S&P 500, describes it as covering 500 leading companies and approximately 80% of available market capitalization[3]. Its methodology says the S&P U.S. indices are weighted by float-adjusted market capitalization[5]. The same provider describes the Dow as a price-weighted measure of 30 U.S. blue-chip companies[4]. Two indexes, two very different formulas.

Other indexes cover smaller companies (Investor.gov mentions the Russell 2000[1]), single sectors, other countries, or bonds. Rules differ by provider and by country, so it is worth reading what an index actually holds before comparing your results to it.

How does weighting change what an index tells you?#

Market capitalization is the share price times the number of shares — a measure of a company's total market value; see the market capitalization entry. In a market-cap-weighted index, companies with a higher market capitalization make up a greater share of the index[1]. In a price-weighted index such as the Dow, the price per share determines a stock's weight[1].

The difference sounds technical, but it changes which stocks drive the headline number. A small company with a high share price can matter more in a price-weighted index than a giant company with a low share price.

Worked example

Same three stocks, two weighting rules

Imagine an index of three hypothetical stocks. A trades at $200 with 50 million shares ($10 billion market cap). B trades at $50 with 600 million shares ($30 billion). C trades at $20 with 500 million shares ($10 billion). Here is each stock's weight, and how much the index moves if that one stock rises 10% while the others stay flat.

StockCap weightPrice weightIndex move if it rises 10%: cap-weightedIndex move if it rises 10%: price-weighted
Stock A ($200, $10B)20.0%74.1%+2.00%+7.41%
Stock B ($50, $30B)60.0%18.5%+6.00%+1.85%
Stock C ($20, $10B)20.0%7.4%+2.00%+0.74%

Figures computed in code from the stated inputs; rounded to the nearest cent or tenth.

Weight of stock B under each rule

B, cap-weighted60.0%B, price-weighted18.5%B, cap-weighted60.0%B, price-weighted18.5%
Stock B is the biggest company in the example, but the price-weighted index gives it under a fifth of the weight.

Can you invest in an index?#

Not directly. The SEC is explicit: you cannot invest directly in a market index, but index funds track one and so provide an indirect option[1]. An index fund may hold every stock in the index or only a representative sample[1]. Our note on index funds covers how they work and what they cost.

A fund will not match its index perfectly. The SEC lists the reasons: an index fund may underperform its index because of fees and expenses, trading costs and tracking error[1]. So when you compare a fund with its benchmark, expect a small gap — and check that the gap is not large. Small yearly costs add up over time, as our note on investment fees shows.

  1. Read what the index holds

    Large U.S. companies, small companies, one sector, another country? The name does not always tell you.

  2. Check the weighting rule

    Market-cap weighting lets the biggest companies dominate; price weighting lets high-priced shares dominate.

  3. Compare like with like

    Judge a U.S. large-company fund against a U.S. large-company index, not against a global or bond index.

  4. Look at the fund's costs

    The gap between a fund and its index is mostly costs and tracking error over time.

What can an index not tell you?#

An index reports what a basket of stocks did. It does not predict what the basket will do, and it does not describe any single stock in it. On a day when the S&P 500 rises, many of its members may fall. Because the largest companies carry the most weight in a market-cap-weighted index, a handful of big names can move the whole number.

An index that tracks only share prices leaves out dividends. FINRA notes that dividend yield is added to capital gains or losses to determine the total return of a stock or fund[6], so a price-only figure understates what holders actually received. When you compare a fund with an index, check whether the index figure is labelled "price return" or "total return".

What mistakes do beginners make?#

  1. Treating "the market" and one index as the same thing

    The Dow holds 30 stocks; the S&P 500 holds 500; broader indexes hold thousands. They can move quite differently on the same day.

  2. Reading index points as dollars

    An index level is just a number built from a formula. A 300-point move means very different things at different index levels — look at the percentage change.

  3. Expecting a fund to match its index exactly

    Fees, trading costs and tracking error mean a fund usually lags its index a little. A large or growing gap is worth questioning.

  4. Assuming an index is diversified enough on its own

    A market-cap-weighted index can become concentrated in a few large companies or one sector. Look at the top holdings, not just the name.

What else do beginners ask?#

Is the S&P 500 the whole U.S. stock market?

No. It covers 500 leading companies and approximately 80% of available market capitalization, according to its provider[3]. Broader indexes include thousands of smaller companies.

Why is the Dow called price-weighted?

Because a stock's share price, not its company size, decides its weight in the average[4]. A high-priced share moves the Dow more than a low-priced one.

Can I buy shares of an index?

No. You cannot invest directly in a market index; index funds try to track one instead[1].

Do index figures include dividends?

Not always. A price-only index leaves dividends out, while total return counts them alongside price changes[6]. Check which version a figure uses before comparing.

What is the bottom line?#

A stock market index turns a basket of stocks into one number using a published rule. Which stocks are in the basket and how they are weighted decide what that number means. You cannot buy an index, but you can buy a fund that tracks one — and judge it by how closely, and how cheaply, it does so.

Sources

Numbers in brackets in the text point here. Grade A = primary source (regulator, statistics agency, law or official document).

  1. 1
    Index FundsU.S. SEC — Investor.gov (n.d.) · Grade A
  2. 2
    Market Indices (glossary)U.S. SEC — Investor.gov (n.d.) · Grade A
  3. 3
    S&P 500 (index overview)S&P Dow Jones Indices (n.d.) · Grade A
  4. 4
    Dow Jones Industrial Average (index overview)S&P Dow Jones Indices (n.d.) · Grade A
  5. 5
    S&P U.S. Indices Methodology (overview page)S&P Dow Jones Indices (n.d.) · Grade A
  6. 6

How we checked this note

Every number, date and rule above links to its source. This note cites 6 sources, 6 of them primary (Grade A). Worked examples were calculated in code, and a second editor compared each figure with its source before publishing. Spotted an error? Tell us — corrections are listed on the note. Read our editorial policy.