Index funds: what they are, how they work and how to invest in them
Reviewed by a licensed financial advisor
An index fund buys every stock or bond in a market index and holds it, at very low cost. That simple approach has become the core of millions of retirement portfolios. This guide explains how index funds work, what they cost, the main types and how to build a portfolio with them.

In this guide
An index fund is a mutual fund or exchange-traded fund that aims to match the return of a market index, such as the S&P 500, by holding the securities in that index. Because no one is paid to pick stocks, costs are very low, and low cost is the main reason index funds have outperformed most actively managed funds over long periods. They still rise and fall with the market, so they suit money you can leave invested for years.
What an index fund is
A market index is a list of securities that represents a market or a part of one. The S&P 500 tracks about 500 large U.S. companies. Other indexes track the entire U.S. stock market, small companies, international stocks or the bond market. You cannot invest in an index directly. An index fund solves that by buying the securities in the index, in the same proportions, and passing the results on to its investors.
The idea is to own the whole market instead of trying to find the winners in it. When you buy one share of a total stock market index fund, you own a small slice of thousands of companies at once.
How index funds work
Most stock indexes are weighted by market value, so larger companies make up a bigger share of the index and of the fund. When a company’s stock price rises, its weight in the fund rises automatically, without any trading. The fund manager’s job is mechanical: keep the holdings in line with the index, reinvest dividends and handle money flowing in and out. The fund buys or sells only when the index itself changes, for example when a company is added or removed.
The measure of how well a fund does this job is tracking error, the gap between the fund’s return and the index’s return. A good index fund trails its index by roughly the amount of its fees and little more.
Why low cost matters
Every fund charges an expense ratio, a yearly fee taken as a percentage of your balance. Broad index funds commonly charge well under 0.10% a year. Actively managed stock funds often charge 0.50% to 1.00% or more. The difference looks small and compounds into a large sum.
| Expense ratio | $100,000 after 30 years at a 7% gross return | Lost to fees |
|---|---|---|
| 0.05% | about $750,600 | about $10,600 |
| 0.50% | about $661,400 | about $99,800 |
| 1.00% | about $574,300 | about $186,900 |
With no fees at all, $100,000 at 7% would grow to about $761,200. A 1% fee consumes almost a quarter of the final balance. Costs are one of the few things about investing you can control, which is why they deserve attention. The investment calculator lets you test the effect of fees on your own numbers.
Types of index funds
| Type | What it holds | Role in a portfolio |
|---|---|---|
| Total U.S. stock market | Nearly all publicly traded U.S. companies | Core stock holding |
| S&P 500 | About 500 large U.S. companies | Core stock holding, large companies only |
| International stock | Companies outside the United States | Geographic diversification |
| Total bond market | Government and high-quality corporate bonds | Stability and income |
| Small-cap or mid-cap | Smaller companies | A tilt, if you want one |
| Sector or thematic | One industry or theme | Concentrated bets, with more risk |
| Target-date | A mix of index funds that shifts toward bonds over time | A complete portfolio in one fund |
Talk to an advisor about a portfolio that fits your goals and timeline.
Index funds vs actively managed funds
An active fund employs managers who try to beat an index by choosing which securities to own. Some succeed in any given year. Over long periods, studies of fund performance have consistently found that most active funds trail their index after costs, and that past winners are hard to identify in advance. The reason is arithmetic more than skill. Before costs, investors as a group earn the market return. After costs, the average actively managed dollar must earn less than the average indexed dollar, because it pays more in fees and trading.
This does not mean active management has no place. It does mean that an index fund gives you a very high chance of earning close to the market’s return, which is more than most investors achieve.
Index mutual fund or index ETF
Index funds come in two wrappers. An index mutual fund is bought and sold once a day at its closing value, usually directly through a fund company or your retirement plan, and it handles automatic investments in exact dollar amounts easily. An index exchange-traded fund, or ETF, trades on an exchange throughout the day like a stock and tends to be slightly more tax-efficient in a taxable account. For a long-term investor, both do the same job. Our comparison of ETFs and mutual funds goes through the differences.
Building a portfolio with index funds
A complete, diversified portfolio can be built from two to four funds. A common approach uses three.
- A U.S. total stock market fund for growth.
- An international stock fund for diversification outside the United States.
- A total bond market fund to reduce swings and provide income.
The split between stocks and bonds, called asset allocation, matters more than which specific funds you choose. More stocks mean higher expected long-term returns and deeper declines along the way. Someone decades from retirement might hold mostly stocks. Someone about to retire often holds a larger share of bonds and cash, so that a market drop does not force them to sell stocks at low prices. If you would prefer not to manage the mix yourself, a target-date index fund sets and adjusts it for you based on a retirement year. Our investing basics guide covers risk and diversification in more depth.
How to start
- Choose the account. Use tax-advantaged accounts first: a 401(k) up to the employer match, then an IRA. See 401(k) vs IRA. A taxable brokerage account works for money beyond those limits.
- Check the menu. In a 401(k), look for funds with index in the name and the lowest expense ratios.
- Decide your stock and bond mix based on your timeline and tolerance for swings.
- Compare expense ratios between similar funds and choose the cheaper one.
- Automate contributions. Investing a fixed amount every month, known as dollar-cost averaging, removes the temptation to time the market.
- Rebalance once a year to bring the mix back to your targets.
- Stay invested. The largest cost for many investors is selling after a decline and missing the recovery.
Risks and limits
- Market risk. An index fund falls as far as its market does. Broad U.S. stock indexes have lost a third to a half of their value in the worst bear markets before recovering.
- No downside protection. There is no manager to move to cash.
- Concentration. Because indexes are weighted by size, a handful of the largest companies can make up a large share of an S&P 500 fund.
- Narrow indexes. A fund that tracks one sector or country is far riskier than a broad fund, even though it is technically an index fund.
- Average returns by design. You will never beat the market, only match it less costs.
Taxes
Inside a 401(k) or IRA, index fund returns are not taxed until withdrawal, or not at all in a Roth account. In a taxable account you owe tax each year on dividends and on any capital gains the fund distributes, and on your own gain when you sell. Broad index funds tend to distribute few capital gains because they trade so little, which makes them tax-efficient. Qualified dividends and long-term gains are taxed at the lower capital gains tax rates. Bond index funds pay interest taxed as ordinary income, so many investors hold them in retirement accounts.
This guide is general education, not a recommendation to buy any security. All investing involves risk, including loss of principal. If you want help choosing a mix of investments for your retirement and other goals, talk to an advisor. Request a free call with the form on this page and a licensed advisor will reach out by phone or video, with no obligation.
Local advisor pages near you
Where you live can change the practical side of this topic, from state taxes to local costs and rules. Browse advisor pages by state, or start with Washington financial advisors, Wyoming financial advisors, Delaware financial advisors and South Dakota financial advisors. City pages include Financial advisors in Houston, Financial advisors in Dallas and Financial advisors in Austin, and county pages include Advisors in Maricopa County and Advisors in Miami-Dade County. Ready to talk it through? Talk to an advisor: a licensed advisor will reach out by phone or video, free and with no obligation.
Related reading
- Investing basics
- ETF vs mutual fund
- Mutual funds guide
- Diversification and risk
- Investment calculator
- Compound interest calculator
Frequently asked questions
What is an index fund?
It is a mutual fund or ETF that holds the securities in a market index and aims to match that index’s return at low cost.
Are index funds a good investment?
For long-term goals, broad index funds offer diversification and low costs, and have beaten most actively managed funds over long periods. They can lose value in the short term.
How do I invest in index funds?
Open a 401(k), IRA or brokerage account, choose low-cost index funds that match your stock and bond mix, and contribute regularly.
What is the difference between an index fund and an ETF?
An ETF is a wrapper that trades on an exchange during the day. Many ETFs are index funds. Index mutual funds trade once a day at the closing price.
Can you lose money in an index fund?
Yes. An index fund falls when its market falls. The risk of loss shrinks, but does not disappear, over longer holding periods.
Sources and further reading
- Investor.gov: index funds
- Investor.gov: understanding fees
- SEC: asset allocation, diversification and rebalancing
See our editorial standards for how we research and review our guides.
Want help with your investment plan?
Talk to an advisor by phone or video call. Free and with no obligation.
Latest money guides and ideas
- States With Inheritance Tax: Rates and Who Pays in 2026Five states with inheritance tax remain: Kentucky, Maryland, Nebraska, New Jersey and Pennsylvania. See each state’s rates, who is exempt and worked examples.
- Treasury Bills: How to Buy T-Bills and How They Are TaxedTreasury bills are short-term U.S. government debt sold at a discount. Learn how T-bills pay interest, two ways to buy them, and how the interest is taxed.
- Is Long-Term Care Insurance Worth It? Cost and CoverageIs long-term care insurance worth it? See what a policy covers, what drives the premium, when to buy, who should skip it and the 2027 tax limits.
- Mega Backdoor Roth: How It Works and 2027 LimitsA mega backdoor Roth moves after-tax 401(k) contributions into a Roth account. See the 2027 limits, what your plan has to allow, worked examples and the steps.
- Saver’s Match 2027: Who Qualifies and How to Claim ItThe Saver’s Match starts with 2027 contributions: a federal deposit of up to $1,000 a year into your retirement account. See the income limits, what counts and how to claim it.
- How to Avoid Capital Gains Tax on Real Estate: 7 WaysSeven legal ways to reduce or avoid capital gains tax on real estate, from the $250,000 and $500,000 home sale exclusion to 1031 exchanges, with worked examples for a home and a rental.
- Medicare Supplement Plans Comparison Chart for 2027Compare all 10 Medicare supplement plans side by side for 2027: what Plans A through N cover, the new deductibles and out-of-pocket limits, and a worked example of what each would leave you to pay.
- FERS Supplement: Who Gets It, How Much, When It StopsThe FERS supplement pays eligible federal retirees an extra monthly amount until age 62. See who qualifies, how it is calculated and how the earnings test can reduce it.
- 403(b) vs 401(k): Key Differences and 2027 LimitsA 403(b) and a 401(k) share the same 2027 contribution limits, but they differ in who offers them, what you can invest in and one extra catch-up for long-serving employees.











