Skip to main content
Quant Investing Lab

Index investing

How to Invest in the S&P 500: What You Actually Buy, and What It Costs

You can't buy the S&P 500 itself. How to invest in the S&P 500 through an index fund or ETF, what the expense ratio costs over 30 years, and what you own.

John Bergerat
By John Bergerat, MSc Quantitative Finance·
11 min read
Blue ink illustration: a small figure carries a large sack tagged 500, in which a few enormous boulders sit on top of a dense bed of hundreds of tiny pebbles.

You cannot buy the S&P 500. It is a rulebook, a published list of roughly 500 large US companies plus the formula for weighting them, so the way to invest in the S&P 500 is to buy a fund that holds those companies on your behalf: either an ETF or an index mutual fund, sitting inside a brokerage or retirement account.

That sounds like a technicality. It is where every decision that actually matters lives. Which fund, which share class, which account, and what the fund skims off your return for doing the tracking.

The index, the fund, the share class, the account

Four separate things get compressed into one sentence when someone says "I bought the S&P 500." Pulling them apart is most of the work.

What Sits Between the S&P 500 and Your Money1. THE INDEX2. THE FUND3. THE SHARE CLASS4. THE ACCOUNTS&P 500A published list of~500 companies plusweighting rulesCannot be boughtAn index fundPools your cash andbuys the real sharesin index weightsCharges a fee to do itETF share classTrades all day atthe market priceMutual fund classOne price a day,set at the closeTaxable brokerageNo cap, taxed yearly401(k)Employer plan, cappedIRAYou pick it, cappedYou place an order at stage 3, inside a wrapper you already chose at stage 4.The two are separate decisions: the same fund can sit in any of the three accounts.Structural diagram; no market data
The index is a rulebook. The fund is what holds the shares. The share class is what you place an order for. The account is the tax wrapper it lands in.

S&P Dow Jones Indices publishes the index. It maintains the membership rules, the weights, and the quarterly rebalances. It does not sell you anything. It licenses the index, which is also how products that are not funds come to reference it: an indexed universal life policy credits the index price return subject to a cap and without the dividends, which is a different exposure from owning the shares.

An index fund is a pooled vehicle that takes cash from thousands of investors, buys the underlying shares in index proportions, and issues you a claim on that pool. When the index adds a company, the fund buys it. When a company is dropped, the fund sells. The division of labor is total: the holder owns the fund, and the fund stays glued to the rulebook.

So how do you actually buy the S&P 500?

Mechanically, four steps:

  1. Open an account. A taxable brokerage account, an IRA, or the 401(k) your employer already gave you, an old plan from a former job included, since staying put is one of the four things you can do with a 401(k) after you leave.
  2. Move cash in. Transfer from a bank, or in a 401(k), route a payroll percentage.
  3. Find the fund by its ticker or its fund number. The order screen wants a symbol, not the word "S&P 500."
  4. Place the order. For an ETF, that is a buy order for a number of shares or a dollar amount, depending on whether your broker supports fractional shares. For a mutual fund, it is a dollar amount, and it fills at the next closing price.

There is no fifth step where you pick the 500 companies. That is the point of an index fund.

S&P 500 index fund vs ETF: the differences that are real

Both wrappers can hold the identical portfolio. Some fund families run the ETF as a share class of the same underlying mutual fund, which means the two are literally the same pool of stock with two different ways of getting in and out. Where they diverge is plumbing.

ETFIndex mutual fund
PricingContinuous, all trading dayOne price a day, at the close
Buying by dollar amountDepends on the brokerStandard
Automatic contributionsNot always supportedStandard
Trading frictionBid-ask spread on each tradeNone, fills at NAV
Capital gains distributionsUsually minimalCan be triggered by other shareholders redeeming

The last row is the one people miss. In a mutual fund, when other shareholders sell in size, the fund may have to sell appreciated stock to raise cash, and the resulting gain is distributed to everyone still holding, including you. Standalone ETFs largely sidestep this through in-kind creation and redemption. Where the ETF is instead a share class of the same fund, the distinction collapses: distributions are declared at the fund level and land on every share class, so the in-kind mechanism spares the mutual fund holders too, and a large cash redemption on the mutual fund side can reach the ETF holders. In a 401(k) or an IRA that difference is invisible, because nothing inside those accounts is taxed year to year. In a taxable account it is not invisible.

The intraday pricing of an ETF is neutral for a long-term holder. It matters if you trade. If you buy once a month and hold for twenty years, the fact that you could have sold at 10:42 a.m. is worth nothing to you.

The expense ratio is the one number you fully control

You cannot control what the index returns. You can control what fraction of it the fund keeps.

The expense ratio is an annual percentage skimmed off the fund's assets. It is not billed to you; it is deducted from the return before it ever reaches your statement, which is exactly why it goes unnoticed. On $10,000, a 0.03% fund costs $3 a year and a 0.75% fund costs $75. Both numbers look trivial. Compounded, they are not.

Same Index, Three Fees: $10,000 Over 30 Years$0$25k$50k$75k$100kAccount value051015202530Years invested$99,791 @ 0.03%$91,290 @ 0.35%$81,643 @ 0.75%Cost of the 0.72 pp fee difference over 30 years:$18,148, or 18.2% of the low-cost ending balance0.03% expense ratio0.35% expense ratio0.75% expense ratioAssumes 8.00% nominal gross annual index return, one $10,000 lump sum, no further contributions,no taxes, fee deducted from the gross return each year. Values computed, not observed.
Three funds tracking the same index. The only difference is the fee, and after 30 years the gap is $18,148 on a $10,000 starting balance.

The arithmetic is simple enough to check by hand. Assume the index compounds at 8% before fees. The 0.03% fund nets 7.97%, so $10,000 becomes $10,000 × 1.0797³⁰ = $99,791. The 0.75% fund nets 7.25%, so the same $10,000 becomes $81,643. The fee difference is 0.72 percentage points a year. The outcome difference is 18.2% of the final balance.

Tracking difference is not tracking error

Two terms get used interchangeably and mean different things.

Tracking difference is the level: fund return minus index return over a period. It is usually negative, and its floor is roughly the expense ratio. A fund charging 0.03% that lagged the index by 0.03% did its job perfectly.

Tracking error is the volatility of that difference: how much the gap bounces around from month to month. A fund can have a small tracking difference and a large tracking error if it uses sampling, holds cash, or is sloppy about rebalancing. For a large S&P 500 fund holding all 500 names outright, both numbers are typically tiny.

"500 stocks" is not 500 equal bets

The S&P 500 is capitalization-weighted. Each company's weight is its float-adjusted market value divided by the total for the index. A company worth ten times another gets ten times the weight. Nobody rebalances toward equality; the winners' weights grow simply because they won.

The consequence is that "500 companies" describes the membership list, not the exposure.

Where $10,000Actually Goes in a “500 Stock” Fund10 largest holdingsRemaining 490 holdingsCap-weighted S&P 500 fund$3,700 into the 10 largest · $13 on average into each of the other 490Top 10 — 37%Other 490 — 63%Equal-weighted version of the same 500 companies$200 into the 10 largest · $20 on average into each of the other 490Top 10 — 2.0%Other 490 — 98%0%25%50%75%100%Share of the fund’s portfolioAssumption: aggregate top-10 weight set at 37%. The published figure moves every month.Equal-weight side is arithmetic (10 ÷ 500 = 2.0%). Dollar figures computed from the weights.
Under cap weighting, ten companies absorb a large share of every dollar. Under equal weighting, the same ten would take 2.0%.

Run the numbers on a $10,000 position. If the ten largest holdings carry a combined weight around 37%, roughly $3,700 of your money sits in ten companies and the remaining $6,300 is spread across 490, averaging about $13 each. An equal-weighted version of the identical 500 names would put $20 in every single one, and $200 in that same top ten.

Neither structure is broken. They are different bets. Cap weighting means your returns are driven disproportionately by whatever is currently largest, and it tends to be concentrated in whichever sector the market has most recently repriced upward. It also means the fund almost never trades: weights update themselves as prices move, which is a large part of why these funds are so cheap to run.

Equal-weight S&P 500 funds exist and hold the same companies. Because each name is pinned at 0.2%, the fund has to sell what rose and buy what fell at every rebalance, which produces more turnover, a higher expense ratio, and a materially different return path. The tilt is toward the smaller members of the index. These are two structurally different exposures wearing near-identical names, and the ticker is what tells them apart.

The account wrapper changes the tax bill, not the fund

The fund does not know or care what account holds it. The wrapper decides how the output is taxed.

In a taxable brokerage account there is no contribution limit. Dividends are taxed in the year they are paid, and gains are taxed when you sell. Any capital gains distribution the fund makes is a taxable event even if you reinvested it.

In a 401(k), contributions come out of payroll, the 2026 elective deferral limit is $24,500, and nothing inside is taxed until withdrawal. The catch is menu-driven: you can only buy the funds the plan offers, and plan-level administrative fees stack on top of the fund's expense ratio. The all-in cost of an S&P 500 fund inside a plan is the fund's expense ratio plus whatever the recordkeeper charges — and recordkeeping is one of several cost layers that never appear on a statement.

In an IRA, the 2026 limit is $7,500, you choose the custodian, and you can buy essentially any ETF or fund on the market. That limit belongs to you rather than to the account, which is why opening a second Roth IRA does not create a second limit. Traditional and Roth differ on when the tax is applied, not on what the fund does.

An HSA can hold the same fund as well, once the custodian's cash floor is cleared, and it is the only wrapper in the code that goes untaxed at contribution, growth and qualified withdrawal alike. The contribution ceiling is a fraction of the other three.

Mechanically, the same S&P 500 fund produces the same gross return in all of them. The differences are the contribution ceiling, when the tax lands, and what the wrapper adds in fees.

What the "best way" question actually reduces to

Once you strip out the marketing, choosing how to invest in the S&P 500 comes down to a short list of decisions with checkable answers.

  • Does the fund track the S&P 500 itself, or something adjacent like an equal-weight or ESG-screened variant? The name will not always tell you. The prospectus will.
  • What is the expense ratio, and what does the plan or custodian add to it? A 0.72 percentage point difference compounded across 30 years is 18% of the ending balance.
  • Does the fund hold all 500 names or a sample? Full replication has less tracking error.
  • ETF or mutual fund? Scheduled dollar-amount contributions are standard in a mutual fund and broker-dependent in an ETF. In a taxable account, the in-kind creation and redemption mechanism is what holds distributed gains down.
  • Which wrapper? That is a question about contribution limits and tax timing, and it is separate from the fund choice.

Everything else, the intraday price, the ticker, the brand on the fund, changes the answer far less than the fee and the concentration you are quietly agreeing to. You are not buying 500 equal bets on America. You are buying a rules-based, self-rebalancing, top-heavy portfolio, minus a fee you can look up in thirty seconds.