Tracking Error Calculator
- The excess return of each period is the portfolio return minus the benchmark return: 2, -1, 2, 1, -1, 1, 1, 1 — tracking error measures how widely those gaps swing, not how big they average.
- The mean excess return (the tracking difference) is 0.75% — the average gap, which can be small even when the swings around it are large.
- Squared deviations from that mean sum to 9.5000; dividing by 7 (the sample divisor) gives a variance of 1.3571.
- Tracking error = sqrt(1.3571) = 1.16% per period — the standard deviation of the excess returns, computed the way index-fund reports compute it.
- The portfolio beat its benchmark in 6 of 8 periods. A passive fund hugs its index with a tracking error near zero; an active manager is paid to run one well above it, and investors judge whether the excess return was worth the swing.
This tracking error calculator measures how closely a portfolio follows its benchmark. Tracking error is the standard deviation of the excess returns — the portfolio's return minus the benchmark's return in each period — computed with the sample divisor n-1. Enter your periodic excess returns and the calculator returns the tracking error as a percentage. As a worked check, excess returns of 2, -1, 2, 1, -1, 1, 1, 1 percent give a tracking error of 1.16%. Note that tracking difference is the mean excess return, while tracking error is the variability of that gap; the two answer different questions. A passive index fund's tracking error sits near zero, while an active fund's is materially higher by design. To annualise, multiply a periodic tracking error by the square root of the number of periods in a year.
The sample standard deviation of excess returns is the accepted standard for this calculation, so the result matches what analysts and fund reports mean by tracking error. This page shows the formula, step-by-step workings, worked examples and sources, so you can follow every number rather than trust a black box. Whether you are comparing a passive index fund's near-zero figure with an active fund's materially higher one, or annualising a periodic result by the square root of the number of periods in a year, the method stays the same. You also get a clear reminder of what the output does not tell you: tracking error measures the variability of the gap, not its direction, which is tracking difference — the mean excess return. Read on for the full derivation and examples.
Worked examples
Primary result: 1.16%
Primary result: 1.16% — A fund glued to its index: small steady gaps, so the tracking error is barely above 1%. (8 periods · 8 · -4 · 12 · 6 · -2 · 9 · 3 · 7 · 6 · -3 · 10 · 5 · -1 · 8 · 2 · 6)
| Tracking error | 1.16% |
| Mean excess return (tracking difference) | 0.75% |
| Mean portfolio return | 4.88% |
| Mean benchmark return | 4.13% |
| Periods beating the benchmark | 6 of 8 |
Primary result: 3.96%
Primary result: 3.96% — Big wins and big misses around the benchmark average out to a wide 3.96% tracking error. (5 periods · 15 · -10 · 20 · 5 · 0 · 0 · 0 · 0 · 12 · -6 · 14 · 4 · 2 · 0 · 0 · 0)
| Tracking error | 3.96% |
| Mean excess return (tracking difference) | 0.80% |
| Mean portfolio return | 6.00% |
| Mean benchmark return | 5.20% |
| Periods beating the benchmark | 3 of 5 |
Primary result: 0.10%
Primary result: 0.10% — Gaps of a tenth or two either way — the signature of a well-run tracker. (6 periods · 4 · 4.5 · 3.5 · 5 · 4.2 · 3.8 · 0 · 0 · 4.1 · 4.4 · 3.6 · 4.9 · 4.2 · 3.9 · 0 · 0)
| Tracking error | 0.10% |
| Mean excess return (tracking difference) | -0.02% |
| Mean portfolio return | 4.17% |
| Mean benchmark return | 4.18% |
| Periods beating the benchmark | 2 of 6 |
What tracking error measures
Tracking error is the standard deviation of a portfolio's excess returns — that is, of the series you get by subtracting the benchmark's return from the portfolio's return period by period. It is computed with the sample divisor n-1. Because it is a standard deviation, it describes spread rather than direction: it tells you how widely the gap between portfolio and benchmark has swung around, not whether the portfolio is ahead or behind. A tracking error calculator takes your list of excess returns, applies that formula, and reports a single number in percentage points.
The distinction that trips people up is between tracking error and tracking difference. Tracking difference is simply the mean excess return — the average gap over the period. Tracking error is the variability of that gap. The two answer different questions: one says how far apart the portfolio and benchmark ended up on average, the other says how much that distance wobbled along the way. A fund can have a small average gap and a large tracking error, or a noticeable average gap with a tight, consistent one. Neither number substitutes for the other.
A worked check makes the calculation concrete. Take excess returns of 2, -1, 2, 1, -1, 1, 1, 1 percent. Run through the standard deviation with the n-1 divisor, that series gives a tracking error of 1.16%. Notice how the sign changes — the portfolio falls behind in two periods and leads in the rest — feed into the measure as dispersion, not as a penalty. The result is a volatility figure for the active gap, expressed in the same percentage units as the returns themselves.
Context matters when reading the output. A passive index fund's tracking error sits near zero, since the whole point of the mandate is to hug the benchmark. An active fund's is materially higher by design, because the manager is deliberately holding weights that diverge. That means a tracking error figure is only meaningful next to the strategy it belongs to: the same number can signal tight discipline in one context and loose replication in another. Comparisons are most useful between funds pursuing similar objectives over the same measurement window.
If you need a figure comparable across reporting periods, annualise it: multiply a periodic tracking error by the square root of the number of periods in a year. For example, a monthly tracking error is scaled by the square root of 12. Keep the period basis consistent throughout — mixing monthly excess returns with an annualised figure, or comparing a fund measured monthly against one measured daily, will make the numbers look different for reasons that have nothing to do with the portfolios.
- Fund selectors screen candidates on tracking error to judge how far a manager strays from the stated benchmark.
- Index providers and product teams monitor it to confirm that passive funds are replicating as intended.
- Risk teams use it to quantify benchmark-relative risk and to set limits on allowed deviation.
How to calculate tracking error
Tracking error is the standard deviation of the excess returns — the portfolio's return minus the benchmark's return in each period — and it is computed with the sample divisor n-1. That single definition drives the whole calculation, so a tracking error calculator really just runs one sequence of steps. Start by collecting the portfolio return and the benchmark return for every period in your sample, then subtract the benchmark figure from the portfolio figure in each one. Those differences are your excess returns, and everything else is built on them.
Next, average the excess returns. That mean is the tracking difference, which answers a different question from tracking error: tracking difference tells you how far the portfolio drifted from the benchmark on average, while tracking error tells you how much that gap bounced around. To get the variability, take each excess return, subtract the mean from it, and square the result. Add up those squared deviations, divide the total by n-1, where n is the number of periods, and take the square root. The result is the tracking error for that periodic frequency.
A worked check makes the arithmetic concrete. Suppose the excess returns are 2, -1, 2, 1, -1, 1, 1, and 1 percent across eight periods. Run them through the steps above — subtract the mean from each, square, sum, divide by n-1, and take the root — and you get a tracking error of 1.16%. If you want to verify a tracking error calculator, this set of inputs is a clean test: any correct tool should return 1.16% for it.
One more step matters if your periods are not annual. To annualise, multiply a periodic tracking error by the square root of the number of periods in a year. So a monthly figure is scaled by the square root of 12, and a weekly figure by the square root of 52. Keep the period count consistent with the data you entered, since mixing monthly returns with an annual scaling factor will overstate the result.
- Subtract the benchmark return from the portfolio return in each period to get the excess returns.
- Average the excess returns; that mean is the tracking difference.
- Subtract the mean from each excess return and square the result.
- Sum the squared deviations and divide by n-1, the sample divisor.
- Take the square root of that quotient to get the tracking error.
- Worked check: excess returns of 2, -1, 2, 1, -1, 1, 1, 1 percent give a tracking error of 1.16%.
- To annualise, multiply the periodic tracking error by the square root of the number of periods in a year.
Tracking error vs tracking difference
Tracking difference and tracking error are often spoken of as if they were the same thing, but they answer different questions. Tracking difference is the mean excess return — the average of portfolio return minus benchmark return over a period. Tracking error is the standard deviation of those same excess returns, computed with the sample divisor n-1. Put simply, tracking difference tells you how far a fund drifted from its benchmark on average, while tracking error tells you how much that gap bounced around from period to period. A tracking error calculator reports the second number; the first is a separate statistic you should look at alongside it.
Because one measures the average and the other measures variability, the two can move independently. A fund can have a tracking difference near zero and still show a large tracking error: its excess returns might swing from plus two percent to minus two percent and back, averaging out to roughly nothing while the spread stays wide. The reverse is equally possible — a steady difference with tiny error. Imagine a fund that trails its benchmark by a consistent small amount every period; the mean excess return is clearly negative, but because the gap barely varies, the tracking error is small. Neither pattern is automatically better. The first describes an inconsistent gap, the second a consistent one.
A worked check makes the distinction concrete. Take excess returns of 2, -1, 2, 1, -1, 1, 1, and 1 percent. Their mean is positive, so the tracking difference is not zero, yet the deviations around that mean produce a tracking error of 1.16%. The single figure of 1.16% says nothing about whether the fund beat or lagged its benchmark on average — that is the tracking difference's job. This is why reading one number without the other can mislead: a low tracking error does not mean a fund matched its benchmark, only that it missed (or beat) it by a similar amount each time.
Which number matters depends on what you are trying to learn. If you want to know how closely a fund hugs its benchmark, tracking error is the relevant measure of consistency, while tracking difference tells you the direction and size of the average gap. A passive index fund's tracking error sits near zero; an active fund's is materially higher by design, because its holdings deliberately diverge from the benchmark. For an investor judging a passive fund, a small tracking error combined with a small tracking difference is the closest thing to a clean match. For an active fund, a higher tracking error is expected, and the more useful question is whether the average gap — the tracking difference — has been positive after costs.
One practical note: tracking error is usually computed over a stated period, such as monthly or daily excess returns. To annualise, multiply a periodic tracking error by the square root of the number of periods in a year — for example, the square root of 12 for monthly data. Compare funds only when both the tracking difference and the tracking error are measured over the same period and frequency.
- Tracking difference = mean excess return (average gap to the benchmark).
- Tracking error = standard deviation of excess returns, using the sample divisor n-1.
- Near-zero difference with large error: the gap averages out but swings widely.
- Steady difference with tiny error: a consistent gap that barely varies.
- Passive index funds: tracking error near zero. Active funds: materially higher by design.
- Annualise by multiplying periodic tracking error by the square root of periods per year.
What is a good tracking error?
There is no single number that separates a good tracking error from a bad one, because the right level depends on what the fund is trying to do. A passive index fund's tracking error sits near zero, since its job is to mirror the benchmark as closely as possible. An active fund's tracking error is materially higher by design: the manager is deliberately deviating from the index, and that deviation is where the attempt to add value comes from. So the first question a tracking error calculator helps you answer is not "is this number low?" but "is this number consistent with the mandate?"
It also helps to keep two related measures apart. Tracking difference is the mean excess return — the average gap between portfolio and benchmark. Tracking error is the variability of that gap. The two answer different questions: one tells you how far off the fund landed on average, the other tells you how erratic the journey was. A fund can have a small average gap and still swing widely around it, or a steady gap with little variability. Reading only one of the two can mislead you about how the fund actually behaves.
A quick worked check shows the arithmetic in action. Using the sample divisor n-1, excess returns of 2, -1, 2, 1, -1, 1, 1 and 1 percent produce a tracking error of 1.16%. That figure is a periodic tracking error, measured over whatever interval the returns were recorded in — daily, weekly or monthly. To annualise, multiply a periodic tracking error by the square root of the number of periods in a year. Annualising matters because a monthly figure and a daily figure are not comparable until they are put on the same footing, and comparing a fund's stated tracking error against your own calculation without matching the period is an easy way to draw the wrong conclusion.
When a tracking error comes in higher than you expected, it is worth knowing where the gap can come from. Costs are a common source, since fees and trading expenses pull returns away from the benchmark. Cash drag is another: a fund holding cash rather than fully invested will not move in step with the index. Sampling — holding a representative subset of securities rather than the full index — introduces its own divergence. Securities lending can also affect returns relative to the benchmark. None of these is automatically a flaw, but each helps explain why a fund's excess returns vary rather than sitting flat at zero.
Used well, a tracking error calculator is a diagnostic rather than a scorecard. Compare the result with the fund's stated objective, check that both figures cover the same period, and look at tracking difference alongside tracking error before forming a view.
FAQs
What is a good tracking error for an index fund?
As close to zero as possible. An index fund's whole job is to mirror its benchmark, so any deviation is unwanted. Well-run index funds and ETFs typically report tracking error well under 0.5% a year. If a fund you're considering shows a figure well above that, compare it against peers and check what's driving the gap, such as fees or fund structure.
What is the difference between tracking error and tracking difference?
They measure different things. Tracking difference is the mean gap between fund and benchmark returns — how far the fund lags or beats the index on average. Tracking error is the standard deviation of that gap — how consistently the fund follows the index period to period. A fund can have a small tracking error but a steady, persistent tracking difference.
Can tracking error be negative?
No. Tracking error is a standard deviation, so it is always zero or positive — a standard deviation can never come out below zero. The figure that can be negative is the tracking difference, which tells you whether the fund ended up behind or ahead of its benchmark over the period you measured.
How do you annualise tracking error?
Multiply the periodic figure by the square root of the number of periods per year. If your tracking error is calculated from monthly returns, multiply by sqrt(12); if it comes from weekly returns, multiply by sqrt(52). This scaling converts a per-period volatility figure into an annualized one so you can compare funds measured on different schedules.
Why is my ETF's tracking error not zero?
No real fund can match an index perfectly. Fees drag on returns, cash held for redemptions isn't invested in the index, index sampling means the fund holds a subset of securities, and dividend timing and rebalancing lags create temporary mismatches. Together, these forces make a real fund wobble slightly around its index rather than track it exactly.
Does a high tracking error mean a bad fund?
Not necessarily, and certainly not for an active fund. There, tracking error is the deliberate price of deviating from the index — the manager is supposed to look different. Judge it against the excess return it produced: a high tracking error that came with strong outperformance did its job, while the same figure with weak returns did not.