An index fund pools money from many investors and uses it to buy the securities listed in a published benchmark, holding each one in roughly the same proportion the benchmark assigns. That is the whole idea behind how index funds work: the fund rises and falls with the market segment it tracks, pays out the dividends and interest those holdings generate, and charges a small annual percentage of assets for running the operation. Understanding the mechanics below is what separates a well-run index fund from a disappointing one.
How the Fund Copies a Benchmark
Every index fund starts with a benchmark, which is just a published list of securities and their weightings. The S&P 500 lists the 500 largest publicly traded U.S. companies. A bond fund might follow the Bloomberg U.S. Aggregate Bond Index. The fund’s job is to mirror that list’s returns, not to beat them.
Managers use one of two approaches. Full replication means buying every security in the index at its exact weight, which works well for concentrated, liquid benchmarks where all the holdings trade actively. Representative sampling means buying a subset chosen to behave like the whole index; it is common for bond and international benchmarks that contain thousands of thinly traded securities. Full replication tracks the index more tightly. Sampling accepts a looser fit in exchange for lower trading costs.
How Holdings Are Weighted
Most index funds use market-capitalization weighting, so companies with higher total market value get a bigger slice of the portfolio. A company worth $3 trillion commands far more of the fund’s assets than one worth $50 billion. Fund performance is naturally dominated by the largest names.
Some funds equal-weight instead, giving every holding the same dollar allocation regardless of company size. Equal-weight funds tilt toward smaller companies and rebalance more often as prices move. Market-cap weighting is still the default for the vast majority of index assets.
Federal law puts guardrails around how these funds are built. The Investment Company Act of 1940 classifies index funds as registered investment companies, subjecting them to SEC oversight.1Office of the Law Revision Counsel. 15 USC 80a-3 – Definition of Investment Company
How the Fund Stays Aligned With the Index
An index is not static. Companies get added, removed, or reclassified, and the fund follows. When the index provider drops a stock and adds a replacement, the fund sells the departing company and buys the new one. The S&P 500 rebalances on the third Friday of March, June, September, and December, with extra changes possible between those dates for mergers, bankruptcies, or delistings.
Even when index membership stays the same, price movements pull the fund away from its target weights. A stock that rallies becomes a larger share of the portfolio than the index prescribes, while a falling stock shrinks below its target. Periodic rebalancing trades correct the drift.
The gap between the fund’s return and the index’s return is called tracking error. For large S&P 500 index funds, that gap historically runs around 2 basis points a year, which is nearly invisible. Funds tracking less liquid benchmarks, like international small-cap or emerging-market indices, show wider gaps because the underlying securities are harder and more expensive to trade.
ETF or Mutual Fund: What You Actually Buy
Index funds come in two wrappers, and both can track the same benchmark using the same strategy. They differ in how you trade them, what minimums apply, and how they handle taxes.
ETFs trade on stock exchanges throughout the day like individual stocks, and you can buy a single share. Many brokerages allow fractional shares, pushing the effective minimum even lower. Traditional mutual fund index funds price once a day after the market closes, and some require initial investments of several thousand dollars.
The bigger structural difference is how each handles redemptions. When mutual fund investors sell, the fund typically sells securities for cash, which can trigger capital gains that get passed through to every remaining shareholder. ETFs avoid this through an in-kind redemption process: large institutional traders exchange ETF shares for baskets of the underlying securities rather than cash. Federal tax law exempts these in-kind redemptions from triggering capital gains distributions to shareholders.2Office of the Law Revision Counsel. 26 USC 852 – Taxation of Regulated Investment Companies and Their Shareholders The practical result is that most broad-market ETFs distribute zero capital gains in a typical year, while comparable mutual funds occasionally distribute gains that create a surprise tax bill even for investors who did not sell anything.
Dividends and Reinvestment
When the stocks or bonds inside the fund pay dividends or interest, the fund collects the income and passes it along to shareholders. Some funds distribute monthly, others quarterly, a few annually. The prospectus lists the schedule.
You have two choices for what happens to those payments. Cash distributions land in your brokerage account as spendable money. Automatic reinvestment uses each distribution to buy additional shares of the fund at the current price, compounding your holdings over time. Reinvestment is the default in most retirement accounts and is generally the better choice for long-term investors who do not need the income now.
Funds are legally required to distribute at least 90% of their investment company taxable income each year to keep their status as a regulated investment company under federal tax law.2Office of the Law Revision Counsel. 26 USC 852 – Taxation of Regulated Investment Companies and Their Shareholders A fund that misses that threshold loses its pass-through tax treatment and gets taxed as a regular corporation, which would devastate shareholder returns. That is why distributions go out on schedule even when the fund would prefer to retain earnings.
A Wash-Sale Trap With Reinvested Dividends
Automatic reinvestment can catch people during tax-loss harvesting. If you sell index fund shares at a loss and a reinvested dividend purchases the same fund within 30 days before or after that sale, the IRS treats it as a wash sale and disallows the loss deduction.3Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities The disallowed loss gets added to the cost basis of the new shares, so it is not permanently lost, only delayed. If you plan to harvest losses near a dividend date, turn off automatic reinvestment first or move the proceeds into a different (not substantially identical) index fund.
What You Owe in Taxes
In a regular brokerage account, an index fund generates two kinds of taxable events: the distributions you receive while holding it, and the capital gains when you sell.
Dividends
Most dividends from a broad U.S. stock index fund qualify for the lower qualified dividend rates, provided the fund held the underlying stock for at least 61 days during the 121-day period surrounding the ex-dividend date.4Internal Revenue Service. Instructions for Form 1099-DIV For a large buy-and-hold index fund, that condition is almost always met. Qualified dividends are taxed at the same rates as long-term capital gains rather than at ordinary income rates.
Capital Gains When You Sell
When you sell shares you have held for more than a year, the profit is taxed at long-term capital gains rates. For 2026, the federal rates are:
- 0% on taxable income up to $49,450 for single filers, $98,900 for married couples filing jointly, or $66,200 for heads of household.
- 15% on taxable income above those thresholds up to $545,500 (single), $613,700 (joint), or $579,600 (head of household).
- 20% on taxable income above those upper limits.
Those brackets come from IRS Revenue Procedure 2025-32 and apply to tax years beginning in 2026.5Internal Revenue Service. Revenue Procedure 2025-32 Shares held for one year or less are taxed as short-term capital gains at your ordinary income rate, which is nearly always higher. For a buy-and-hold investor, short-term gains rarely come up.
State income tax adds another layer. Most states tax dividends and capital gains as ordinary income at their own rates.
What the Fund Charges
The headline cost of an index fund is its expense ratio: the percentage of total assets deducted annually to cover portfolio management, compliance, and custody. The fund does not send you a bill. The management company subtracts fees from the fund’s net asset value each day, so they are already baked into the share price you see.
A fund with an expense ratio of 0.05% charges about $5 a year on every $10,000 invested. That is close to the asset-weighted average for large index equity mutual funds as of 2024. Index ETFs run slightly higher in aggregate, around 0.10% to 0.14%, partly because the average includes more specialized products. Either way, index fund fees are a fraction of what actively managed funds charge. SEC rules require every shareholder report to include a table showing the dollar cost of a hypothetical $10,000 investment alongside the expense ratio percentage.6U.S. Securities and Exchange Commission. Tailored Shareholder Reports for Mutual Funds and Exchange-Traded Funds – Fee Information in Investment Company Advertisements
Costs the Expense Ratio Does Not Show
The expense ratio tells you what the management company charges. It does not capture the trading friction the fund incurs when it buys and sells securities. Every rebalancing trade and reconstitution adjustment costs money in bid-ask spreads and market impact. When a fund needs to buy a newly added stock alongside every other fund tracking the same index, it often pays a slightly inflated price. When it sells a removed stock into a crowd of sellers, it accepts a slightly depressed price. Those costs never appear in the expense ratio, but they show up in tracking error. For large, liquid benchmarks like the S&P 500, the drag is tiny. For funds tracking small-cap or international indices with less liquid holdings, it can be meaningfully larger. Checking a fund’s tracking difference against its benchmark over several years gives you a more honest picture of total cost than the expense ratio alone.