FinanceCompounding & Growth

How index funds track a market, and where tracking error comes from

The mechanics of index construction and replication: how a fund holding hundreds or thousands of securities mirrors a benchmark, why perfect tracking is impossible, and what fees and sampling methods mean for the gap between fund and index.

SOSade Okafor — Finance & Economics Editor, CFA charterholderPublished 22 September 2025Last reviewed 6 January 20269 min readFoundational1,740 words

Fact-checked by Dr. Rina Halvorsen, Editor-in-Chief (PhD, Cognitive Science) · 4 primary sources cited · how we review

Engraved illustration of a single fund basket containing miniature company buildings of varying sizes

In short

An index fund does not try to pick winning companies. It holds a basket of securities designed to mirror a published index as closely as possible, then lets that basket's return follow the index's return with only small, structural gaps caused by fees, cash drag and the mechanics of replication. Understanding those mechanics — how an index is built, how a fund replicates it, and where the inevitable tracking error comes from — explains what an index fund actually is doing with your money.

An index fund is often described simply as a fund that 'buys the whole market,' which is a useful shorthand but skips over three separate mechanical steps: someone has to define the index, a fund manager has to decide how to replicate it with actual holdings, and the resulting portfolio has to be maintained as the underlying index changes. Each step introduces its own small frictions, and together they explain why even the most efficient index fund never matches its benchmark to the decimal point.

What an index actually is

A market index is a defined, rules-based list of securities and a formula for combining their prices into a single number. It is not a fund, an account or a pool of money — it is closer to a recipe. The S&P 500, for example, is maintained by an index committee that selects roughly 500 large US companies meeting specific criteria for size, liquidity and profitability, then combines their share prices using market capitalisation weighting.

Market capitalisation weighting means each company's influence on the index is proportional to its total market value — share price multiplied by shares outstanding. A company worth 3 trillion has roughly 30 times the weight of one worth 100 billion, which is why a handful of the largest companies can dominate a capitalisation-weighted index's performance even though they are a small fraction of the total number of constituents.

Three ways a fund can replicate an index

Index replication methods
MethodHow it worksBest suited to
Full replicationThe fund buys every constituent of the index in exactly the weights the index specifiesLarge, liquid indices with a manageable number of constituents, such as major national equity indices
Optimised samplingThe fund buys a representative subset of constituents chosen by a model to closely mirror the index's risk and return characteristicsVery broad indices with thousands of constituents, including many small or illiquid ones
Synthetic replicationThe fund holds a basket of assets alongside a derivative contract (a swap) that exchanges the basket's return for the index's returnIndices covering markets that are hard or costly to access directly, such as certain emerging markets

Full replication is conceptually the simplest and, for indices like the S&P 500, is the standard approach among large providers. Optimised sampling exists because owning literally every constituent of an index with several thousand small, thinly traded stocks can be more expensive in trading costs than the tracking benefit is worth. Synthetic replication trades one kind of risk (small tracking differences) for another (counterparty risk on the swap), which regulators require funds to disclose and typically require to be collateralised.

Where tracking error comes from

Tracking error is the difference between a fund's return and its benchmark's return over a period. It is never exactly zero, and it is almost always negative relative to the index, for several structural reasons rather than manager error.

  • Expense ratio: the fund's ongoing management fee is deducted from the fund's assets, but the index itself has no fees, so the fund's return is mechanically lower by roughly the fee each year.
  • Cash drag: funds hold small cash balances to handle investor redemptions and dividend timing, and cash typically earns less than the market is doing, creating a small persistent gap.
  • Rebalancing lag: when an index changes its constituents — a company is added, removed, or its weight adjusted — the fund has to trade to match, and there is a short window where the fund's actual holdings differ from the index's new composition.
  • Trading costs and bid-ask spreads: buying and selling securities to track index changes incurs costs the index itself does not bear.
  • Sampling deviation: funds using optimised sampling rather than full replication carry an additional, usually small, source of divergence from imperfect matching.

Illustrative annual tracking difference for a well-run large-cap equity index fund

Percentage points below benchmark, per year

Stylised example for a low-cost, full-replication fund on a major equity index; actual figures vary by fund, provider and index.

Why fees matter more than they look

An expense ratio of 0.05% sounds negligible next to an expense ratio of 1.00%, and in a single year it is — a 0.95 percentage point difference. Compounded over several decades on a growing balance, however, that difference compounds against the investor every single year, and the gap in final account value becomes far larger than the annual percentage suggests, because the fee is charged on an ever-growing base while the foregone return itself would otherwise have kept compounding.

Illustrative impact of expense ratio on a 10,000 investment growing at 7% gross annual return over 30 years
Annual expense ratioApproximate value after 30 yearsCost of fees over 30 years
0.05%74,900~600
0.25%70,500~5,000
0.75%60,600~14,900
1.50%48,800~26,700

Rebalancing and how indices change over time

Indices are not static. Committees or rules-based processes periodically add companies that newly qualify and remove ones that no longer do, and adjust weights as prices and share counts change. When a change is announced, index funds tracking that benchmark must trade to match, which can itself move the prices of the securities being added or removed, since large, coordinated buying or selling from many index funds at once is a predictable, visible event to other market participants.

Full replication versus optimised sampling

Pros

  • Full replication tracks the index more precisely and is simpler to audit and understand
  • Optimised sampling can reduce trading costs on very broad or illiquid indices, potentially improving net tracking after costs
  • Both approaches, done well, typically track within a small fraction of a percentage point of the benchmark annually for major indices

Cons

  • Full replication can be costly or impractical for indices with thousands of small, illiquid constituents
  • Optimised sampling introduces model risk — the sample may not behave exactly like the full index in unusual market conditions
  • Both are still subject to fee drag and cash drag regardless of method

Key points

  • An index is a defined set of rules for selecting and weighting securities, not a fund itself.
  • Funds replicate an index through full replication, optimised sampling, or synthetic replication using derivatives.
  • Tracking error is structural, arising mainly from fees, cash drag, rebalancing lag and trading costs, not stock-picking skill.
  • Small annual fee differences compound into large differences in final value over multi-decade horizons.
  • Index changes force funds to trade, which can itself move prices of the securities being added or removed.

Sponsored video

Advertisement

Checking for a video ad…

Frequently asked questions

Sources

About the author

Sade Okafor — Finance & Economics Editor

Sade covers personal finance and applied economics for Inquro. Her writing focuses on the arithmetic behind everyday money decisions — compounding, amortisation, inflation adjustment — and on making the assumptions in every model visible to the reader rather than hidden inside a calculator.

Qualifications
  • CFA charterholder — CFA Institute
  • MA, Economics — University of Toronto
Experience
  • Nine years in investment research and portfolio analytics
  • Five years writing consumer-facing financial education
Subject areas:
Personal finance, Macroeconomics, Risk literacy

Reviewed for factual accuracy by Dr. Rina Halvorsen, Editor-in-Chief (PhD, Cognitive Science), on 6 January 2026.

Structure, claim strength and whether an explanation actually answers the question a reader arrived with.

Inquro articles are commissioned, sourced, reviewed and re-checked under a published editorial policy. Corrections are made in place and dated — write to editorial@inquro.example if you find an error.

Related explainers

More from Finance and connected clusters across the full library.

FinanceCredit & Borrowing

How loan amortisation works and where your payment actually goes

The amortisation formula explained in full: how a fixed payment is split between interest and principal, why early payments barely touch the balance, and how extra payments and rate changes reshape the schedule.

Sade OkaforUpdated 30 July 202611 min

Keep reading

Definitions used here

Go deeper