Index replication: full replication, optimized sampling and swaps
An index fund can replicate its index in three ways: buy all the securities, hold a well-chosen selection, or obtain the index return from a bank via a swap. The type of index replication determines costs, tracking error, transparency and risks. Here you will see why a fund tracking an index with thousands of securities does not need all of them, how much tracking error the last securities actually save, and what lies behind a swap ETF.
Three methods at a glance
With full replication, the fund holds every index constituent at its index weight. With optimized sampling, it holds only some of the securities, chosen and weighted so that countries, sectors, size and other characteristics match the index. With synthetic replication, it enters into a total return swap: a bank pays it the index return, and it pays the return of its own basket of securities or hands over the cash. The first two together are called physical replication; the article ETF basics gives an overview for choosing an ETF.
Schematic; the area of each circle represents the index weight. Shown is the unfunded swap with a substitute basket; with a funded swap, the fund hands the cash to the bank and receives collateral.
Full replication
Full replication is worthwhile when the index is manageable and liquid, for example a few hundred large stocks. The fund then tracks the index exactly, apart from costs, cash and taxes. It gets expensive at the margins: at every index rebalancing, the fund has to trade all the changes, including tiny positions in thin markets, and incoming dividends sit briefly as cash. For indices with thousands of small securities or tens of thousands of bonds, full replication is hardly practicable: many bonds trade rarely, and minimum denominations prevent exact weights.
Optimized sampling: stratify and optimize
Sampling usually begins with stratification: the index is divided into cells by country, sector and size, or for bonds by currency, duration, rating and issuer group. In each cell, the fund holds a few representative securities and weights them so that the cell receives its index weight. A rulebook might, for example, require that no sector and no country deviates from the index by more than ±10 basis points. That is an example, not an industry standard.
The second stage is optimization with a risk model. It looks for the weights with the smallest expected tracking error, subject to constraints such as a maximum number of securities, a minimum position size and turnover. A factor model splits the deviation into a part arising from different factor exposures and a specific part (Grinold and Kahn 2000):
TE² = (w − b)ᵀ Σ (w − b), Σ = B F Bᵀ + D
TE² = xᵀ F x + Σᵢ (wᵢ − bᵢ)² σᵢ², x = Bᵀ (w − b)- w, b
- weights in the fund and in the index
- B, F
- factor exposures of the securities and covariance matrix of the factors
- D
- diagonal matrix of the specific variances σᵢ²
- x
- active factor exposures; as close to zero as possible when sampling
If the fund matches the index's factor exposures (x ≈ 0), only the specific part remains. It answers the central question: how many securities do you need?
How many securities do you need? Diminishing marginal benefit
TE² ≈ Σᵢ (Δwᵢ)² × σᵢ² (with equal factor exposures)
cell of n equally weighted securities, k of them held: TE = σ × W × √(1/k − 1/n)- Δwᵢ
- deviation of the weight of security i from the index
- σᵢ
- specific risk of security i: the volatility that the factors do not explain
- W, n, k
- weight of the cell in the index, number of its securities, number of securities held
Because the deviations enter squared, a security's weight counts disproportionately. A large security that you leave out costs a lot of tracking error; hundreds of small securities together cost little. A comparison with an assumed specific risk of 25% a year:
For an entire index, a simplified model shows the diminishing marginal benefit. Assumptions: 1,250 securities whose weights fall with rank as 1/(rank + 1.5)^0.98. The largest security then weighs 5.85% and the ten largest 26.4%. This is similar to the MSCI World with 1,249 securities, 5.81% for the largest and 27.85% for the ten largest (MSCI World Factsheet (CAD) 2026). The fund holds the 250 largest securities (73.9% of the index) in full. It divides the rest into eight size classes of 125 securities each, holds the largest k in each class and scales them up to the weight of the class. Specific risk: 25% for all securities.
| Securities held | Weight of securities left out | Tracking error (model) |
|---|---|---|
| 330 (k = 10) | 23.8% | 76.3 bp |
| 450 (k = 25) | 20.4% | 44.2 bp |
| 650 (k = 50) | 14.9% | 26.3 bp |
| 850 (k = 75) | 9.7% | 17.1 bp |
| 1,050 (k = 100) | 4.8% | 10.2 bp |
| 1,170 (k = 115) | 1.9% | 5.9 bp |
From 330 to 650 securities, the tracking error falls to about a third; the next 400 securities up to 1,050 reduce it by only 16.1 basis points. The model is optimistic: it assumes exactly matched factor exposures and independent specific returns. In reality, small securities in the same industry move together, the risk model is estimated, and costs, cash and taxes come on top. For an index like the MSCI World, the model gives no reason to expect a tracking error of a few basis points with only 200 to 300 securities: holding only the 250 largest would leave out 26.1% of the index weight and would not even match the size structure.
Model from the section above: 1,250 securities, the 250 largest in full, the largest k securities in each of the eight size classes, specific risk 25%. Up to about 650 securities, the tracking error falls steeply, and only slowly after that; it reaches zero only with all 1,250 securities.
What funds actually hold
| Fund (as of September 30, 2026) | Index | Securities in the fund | Securities in the index | Share | Fund versus index |
|---|---|---|---|---|---|
| SPDR MSCI ACWI IMI UCITS ETF | MSCI ACWI IMI | 5,990 | 8,027 | 74.6% | tracking error 0.36% over three years |
| Vanguard Total World Stock ETF | FTSE Global All Cap | 10,185 | 10,221 | 99.6% | ten years: 12.32% vs 12.40% p.a. |
| Vanguard Total Bond Market ETF | Bloomberg US Aggregate Float Adjusted | 11,434 | 14,254 | 80.2% | ten years: 1.13% vs 1.17% p.a. |
| Vanguard Total International Bond ETF | Bloomberg Global Aggregate ex-USD Float Adjusted (hedged) | 6,837 | 14,644 | 46.7% | ten years: 1.30% vs 1.42% p.a. |
Sources: providers' factsheets (SPDR ACWI IMI Factsheet (Dist) 2026; SPDR ACWI IMI Factsheet (Acc) 2026; Vanguard VT Factsheet 2026; Vanguard BND Factsheet 2026; Vanguard BNDX Factsheet 2026). The tracking error comes from the factsheet of the accumulating share class (as of summer 2026); returns: fund NAV versus index, average per year. All four funds state sampling as their method.
Two patterns stand out. According to its factsheet, Vanguard's large global equity fund uses sampling and yet holds almost all the securities. Here, sampling probably serves mainly to leave out tiny or hard-to-trade positions. With bonds, the difference is larger: the international bond fund holds less than half of the bonds in its index and lagged the index by 0.12 percentage points a year over ten years, with ongoing charges of 0.07% (Vanguard BNDX Factsheet 2026).
Synthetic replication via swaps
A swap ETF does not buy the index constituents but enters into a total return swap with one or more banks. Ramaswamy (2011) distinguishes two structures (funded and unfunded). With an unfunded swap, the fund buys its own basket of securities, the substitute basket, and exchanges its return for the index return. With a funded swap, it hands the cash to the bank and receives collateral in a segregated account; it is not the owner of this collateral, which can delay its realization in the event of a default. The basket and the collateral can look quite different from the index.
The risk lies with the counterparty (counterparty risk): if the bank defaults, the fund loses the value of the swap to the extent that the basket or collateral does not cover it. For European funds, the EU's UCITS Directive limits counterparty risk from derivatives to 10% of fund assets if the counterparty is a credit institution, and to 5% otherwise (UCITS Directive 2009). Since the amendment by Directive (EU) 2024/2994, which had to be transposed by June 25, 2026, this limit applies explicitly to derivatives that are not cleared through an authorized central counterparty (Directive (EU) 2024/2994 2024). Invesco explains that for its swap ETFs, the value of the swap is reset to zero as soon as it exceeds a threshold or shares are issued or redeemed, and that up to six banks act as counterparties (Mellor 2022). How such a risk can be valued is explained in the article CVA and issuer risk.
The swap costs a fee that fluctuates over time and can even be negative in some markets (Mellor 2022). For funds domiciled outside the US, one tax difference concerns US equities: physical Irish ETFs pay 15% withholding tax on US dividends (Crowley 2023). Under the US rules on dividend equivalents (Section 871(m)), by contrast, a broad, qualified index is treated as a single security that is not an underlying security (US Section 871(m) Rules 2015); swaps on such indices therefore do not trigger withholding tax, and the swap can deliver the gross return (Mellor 2022). Whether the advantage persists depends on legislation and swap costs. When looking inside the fund, bear in mind that the holdings list of a swap ETF shows the basket, not the economic exposure (see look-through).
Pros and cons compared
| Criterion | Full | Optimized sampling | Swap |
|---|---|---|---|
| Costs | high with many small or illiquid securities | lower: fewer securities, less trading on index changes | swap fee; the basket can be cheap and liquid |
| Tracking error | low, mainly from costs, cash and taxes | plus the specific error of the selection | low, as long as the swap delivers the index return |
| Securities lending | possible; income can reduce costs | possible | possible for the basket; income depends on the contract |
| Transparency | holdings = index | holdings similar to the index | holdings = basket, index only via the swap |
| Counterparty risk | only from securities lending | only from securities lending | from the swap, limited to 10% per bank for UCITS |
| Taxes | withholding tax under the treaties of the fund's domicile | as for full replication | for US equities, no withholding tax on swaps on qualified indices |
Advanced: optimization in practice
- Checking the formula: for a cell of n equally weighted securities, TE = σ W √(1/k − 1/n) follows directly from the sum: k securities deviate by W/k − W/n, n − k securities by −W/n, giving Σ Δw² = W² (1/k − 1/n) in total.
- Integer constraints: an upper limit on the number of securities turns the optimization into a combinatorial problem. Methods range from heuristics (Beasley et al. 2003) to mixed-integer optimization (Canakgoz and Beasley 2009).
- Estimation error: the risk model is estimated, and optimizers exploit precisely its errors. Out-of-sample tests are a must; Meyer-Bullerdiek (2022) found for portfolios of ten stocks from Germany's DAX index that simple equal weighting performed best out of sample.
- Tracking error is not efficiency: Roll (1992) showed that portfolios with minimum tracking error are not efficient in the Markowitz sense. For an index fund this is intended, because its goal is the index, not the efficient frontier.
- Bonds: sampling is done by risk contributions rather than by name: duration per maturity bucket, spread duration per sector and rating, share per issuer. Because bonds from the same issuer are closely related, one bond is often replaced by another from the same issuer with a similar maturity.
What the research shows
Frino and Gallagher (2001) document that even S&P 500 index funds cannot track their index at no cost because of market frictions, but that on average they performed better than active funds after costs. For US equity index funds from 2010 to 2020, Dyer and Guest (2022) compare the two physical methods: funds using sampling traded three to four times as much, had 30 to 50% higher costs and fees and returned 50 to 70 basis points less a year, and not only because of costs but also because of poor security selection. The authors' conclusion:
“representative sampling is detrimental to index investors”The study is a working paper, and most of the indices examined have fewer than 1,000 securities; for very broad indices, the authors see the point at which sampling can pay off somewhere between 1,000 and 3,000 securities. Jansen and van Dijk (2002) and Montfort et al. (2008) show that optimization can track an index closely with relatively few securities; in a test with the MSCI Europe, the optimized portfolio behaved similarly to the index. A comparison with Statman (1987) shows that tracking error requires more securities than diversifying total risk does: according to that study, 30 to 40 stocks are enough for a well-diversified portfolio of randomly chosen stocks. For a gap of a few basis points to an index with thousands of securities, that is nowhere near enough. On swap ETFs, Ramaswamy (2011) warns that long chains of derivatives obscure risks and that baskets with little relation to the index can lead to sales in periods of high counterparty risk.
Limitations and common mistakes
- Overrating the replication method: for most investors, the index and costs matter more than the question of physical or synthetic; the tracking difference over the years shows what actually reaches you.
- Number of holdings as a quality mark: more securities does not automatically mean less deviation; what matters are the weights and factor exposures of the missing securities.
- Confusing model and measurement: the tracking error from the risk model is an estimate; the factsheet shows measured values, which also include costs, taxes and valuation times (see index providers and valuation).
- Leaving collateral unchecked: with swap ETFs, it pays to look at the reports: which banks, how much collateral, how often is the swap reset?
- Assuming tax rules are fixed: advantages such as those on US dividends depend on laws that can change. This is not tax advice.
How Portfolio Lab calculates
Portfolio Lab does not replicate indices and does not optimize sampling portfolios. Under Securities, you can see the replication method of ETFs and filter by it. In the Look-through, the holdings data table shows for each fund how many positions the provider's list contains, where it comes from and what share it covers. This lets you see whether a fund uses sampling; for swap ETFs, the basket appears. How closely a fund follows its index can be measured in the Backtest with a benchmark, or in Assets with tracking error, beta and R² against a comparison fund. The prices are exchange prices, not NAVs; the tracking error from monthly returns is therefore more meaningful than that from daily returns.
Frequently asked questions
Which is better: physical or synthetic replication?
Neither is better in principle. Physical ETFs are more transparent; swap ETFs deliver the index return through a contract and, for funds domiciled outside the US, can be more tax-efficient for US equities, but in return they carry a limited counterparty risk.
How many stocks does an ETF need to track the MSCI World?
At the end of September 2026, the index had 1,249 constituents. In a simplified model, the tracking error from the selection would be about 26 basis points with 650 securities and about 10 with 1,050. Leaving securities out pays off mainly for very small, hard-to-trade ones.
What is optimized sampling?
The fund holds only some of the index constituents and weights them so that countries, sectors, size and factor exposures match the index; a risk model minimizes the expected tracking error.
How high is the counterparty risk of swap ETFs?
For European UCITS funds, it is limited to 10% of fund assets per bank for derivatives that are not centrally cleared, and providers reset the swap regularly. How high it actually is can be seen in the fund's reports.
Why does a bond ETF hold far fewer bonds than its index?
Many bonds trade rarely and can hardly be bought in small lots. The fund replicates duration, rating, sector and issuers. At the end of September 2026, a fund tracking an international bond index held 6,837 of 14,644 bonds.
Literature
- Beasley, J. E.; Meade, N.; Chang, T.-J. (2003): An evolutionary heuristic for the index tracking problem. European Journal of Operational Research 148 (3), pp. 621–643. doi:10.1016/s0377-2217(02)00425-3
- Canakgoz, N. A.; Beasley, J. E. (2009): Mixed-integer programming approaches for index tracking and enhanced indexation. European Journal of Operational Research 196 (1), pp. 384–399. doi:10.1016/j.ejor.2008.03.015
- Crowley, John (2023): Luxembourg in catch-up mode as Ireland leads in ETFs. Investment Officer, 8.6.2023; abgerufen am 25.10.2026. Source
- Dyer, Travis; Guest, Nicholas (2022): A Tale of Two Index Funds: Full Replication vs. Representative Sampling. SSRN Working Paper (Fassung Juli 2022). doi:10.2139/ssrn.4057537
- Europäisches Parlament; Rat der Europäischen Union (2009): Richtlinie 2009/65/EG vom 13. Juli 2009 zur Koordinierung der Rechts- und Verwaltungsvorschriften betreffend bestimmte Organismen für gemeinsame Anlagen in Wertpapieren (OGAW), Artikel 52. Amtsblatt der Europäischen Union L 302 vom 17.11.2009; Wortlaut von Artikel 52 abgerufen am 25.10.2026 über legislation.gov.uk. Source
- Europäisches Parlament; Rat der Europäischen Union (2024): Directive (EU) 2024/2994 of 27 November 2024 amending Directives 2009/65/EC, 2013/36/EU and (EU) 2019/2034 as regards the treatment of concentration risk arising from exposures towards central counterparties and of counterparty risk in centrally cleared derivative transactions. Amtsblatt der Europäischen Union; abgerufen am 25.10.2026. Source
- Frino, Alex; Gallagher, David R. (2001): Tracking S&P 500 Index Funds. The Journal of Portfolio Management 28 (1), pp. 44–55. doi:10.3905/jpm.2001.319822
- Grinold, Richard C.; Kahn, Ronald N. (2000): Active Portfolio Management. McGraw-Hill, 2nd edition.
- Jansen, Roel; van Dijk, Ronald (2002): Optimal Benchmark Tracking with Small Portfolios. The Journal of Portfolio Management 28 (2), pp. 33–39. doi:10.3905/jpm.2002.319830
- Mellor, Chris (2022): Does synthetic replication offer an advantage?. Invesco, ohne Datum (Daten Stand 31.10.2022); abgerufen am 25.10.2026. Source
- Meyer-Bullerdiek, Frieder (2022): Selected Methods of optimized Sampling for Index Tracking – Evidence from German Stocks. Journal of Applied Finance & Banking, pp. 151–173. doi:10.47260/jafb/1268
- Montfort, Kees van; Visser, Elout; van Draat, Laurens Fijn (2008): Index Tracking by Means of Optimized Sampling. The Journal of Portfolio Management 34 (2), pp. 143–152. doi:10.3905/jpm.2008.701625
- MSCI Inc. (2026): MSCI World Index (CAD), Factsheet, Stand 30. September 2026. MSCI; abgerufen am 25.10.2026. Source
- Ramaswamy, Srichander (2011): Market structures and systemic risks of exchange-traded funds. Bank for International Settlements, BIS Working Paper 343, April 2011. Source
- Roll, Richard (1992): A Mean/Variance Analysis of Tracking Error. The Journal of Portfolio Management 18 (4), pp. 13–22. doi:10.3905/jpm.1992.701922
- State Street Global Advisors (2026): SPDR MSCI All Country World Investable Market UCITS ETF (Dist), Factsheet, Stand 30. September 2026. State Street Global Advisors; abgerufen am 25.10.2026. Source
- State Street Global Advisors (2026): SPDR MSCI All Country World Investable Market UCITS ETF (Acc), Factsheet, Stand Sommer 2026. State Street Global Advisors, Factsheet mit den Datumsangaben 31.7. und 31.8.2026; abgerufen am 25.10.2026. Source
- Statman, Meir (1987): How Many Stocks Make a Diversified Portfolio?. The Journal of Financial and Quantitative Analysis 22 (3). doi:10.2307/2330969
- The Vanguard Group (2026): Vanguard Total World Stock ETF (VT), Factsheet, Stand 30. September 2026. Vanguard; abgerufen am 25.10.2026. Source
- The Vanguard Group (2026): Vanguard Total Bond Market ETF (BND), Factsheet, Stand 30. September 2026. Vanguard; abgerufen am 25.10.2026. Source
- The Vanguard Group (2026): Vanguard Total International Bond ETF (BNDX), Factsheet, Stand 30. September 2026. Vanguard; abgerufen am 25.10.2026. Source
- U.S. Department of the Treasury; Internal Revenue Service (2015): 26 CFR § 1.871-15 – Treatment of dividend equivalents. Code of Federal Regulations, Fassung beim Legal Information Institute der Cornell University; abgerufen am 25.10.2026. Source
This article explains a method; it is not investment or tax advice. Worked examples are simplified and rounded. All terms in the glossary.