Tabellab

You are not signed in — the lab works, but your progress is not saved. Sign up

Lesson 1 of 20 is free. Unlock all 20 hands-on labs, the final exam and your certificate.

Buy course — CHF 9.90
Loading the spreadsheet…

Why a portfolio never stays where you put it

Most people who invest for the long term start with a plan for how to split their money: so much in stocks, so much in bonds, a little in real estate funds and some cash. That plan is called an asset allocation, and it is one of the main things that decides how much the portfolio swings up and down. The catch is that the plan only holds on the day you set it. From the next morning on, every holding moves with its own market, and the mix slowly changes by itself.

This lesson is for private investors who manage their own accounts, for people who help family members with theirs, for junior analysts and advisers who need to explain the mechanics to clients, and for finance students who want to see the arithmetic behind a term they keep hearing. The goal is not to tell you what to hold or when to trade. The goal is to give you a clear, repeatable way to measure what has happened to an allocation, so that whatever policy you or your adviser follow is based on correct numbers.

You work with Maya, a fictional investor with a $500,000 portfolio across five asset classes, set exactly to target on 1 January 2026. You apply one year of illustrative returns, calculate the new weights and measure how far each asset class has drifted. The numbers are invented for teaching and are not a forecast or a description of any real market. This course is educational only and is not investment or tax advice.

The core idea: weights, returns and drift

An allocation is a list of target weights that add up to 100%. Maya's are 40% US stocks, 20% international stocks, 30% bonds, 5% REITs (real estate investment trusts) and 5% cash. On a $500,000 portfolio that means $200,000, $100,000, $150,000, $25,000 and $25,000.

Over a year each holding grows or shrinks by its own return: end value = start value × (1 + return). Because the returns differ, the holdings grow at different speeds. The ones that grew faster now make up a larger share of the total, the ones that grew slower or fell make up a smaller share. The new share is the weight now: weight now = end value ÷ total end value.

Drift is the difference between where an asset class is and where it should be: drift = weight now − target weight. It is measured in percentage points, not percent. If US stocks move from 40% to 43.1%, the drift is +3.1 points. Expressed relative to the target it would be +7.8%, which is a different measure that you meet later in the course when you build tolerance bands.

One property of drift surprises many people at first: across all asset classes the drifts always add up to exactly zero. This is not a coincidence of the numbers. The weights now add up to 100% and the targets add up to 100%, so their differences must add up to 0. Whatever one asset class gains in weight, the others must lose. That makes the sum of the drifts a free error check for your sheet.

Why drift matters: risk, not just numbers

Drift is more than bookkeeping. An allocation is usually chosen to match how much risk a person can and wants to carry. Stocks typically swing more than bonds or cash. After a year in which stocks did well, the portfolio holds more stocks than planned, so a later fall in stock prices would hit harder than the original plan intended. After a year in which stocks did badly, the opposite happens and the portfolio is more cautious than planned.

Rebalancing is the practice of bringing the weights back toward their targets, by selling some of what has grown, buying more of what has shrunk, or steering new money into the underweight assets. Investors and institutions handle it in many different ways: on a fixed calendar, only when drift crosses a limit, only with new contributions, or not at all. Each approach has trade-offs in trading costs, taxes and how closely risk stays on plan. This course shows you how to calculate each of them. It does not say which one is right for anyone, because that depends on personal circumstances, costs and tax rules.

Worked example: Maya's portfolio after one year

Here is the full lab table with the results you calculate. Columns A to D are inputs. Column E is the end value, F the weight now and G the drift.

Fictional portfolio, illustrative returns for 2026
Asset (A)Target (B)Start value (C)Return 2026 (D)End value (E)Weight now (F)Drift, points (G)
US stocks40%$200,000+18.5%$237,00043.11%+3.11
Intl stocks20%$100,000+9.0%$109,00019.83%−0.17
Bonds30%$150,000+2.5%$153,75027.96%−2.04
REITs5%$25,000−4.0%$24,0004.37%−0.63
Cash5%$25,000+4.2%$26,0504.74%−0.26
Total100%$500,000$549,800100.00%0.00

The formulas are short. In E2 type =C2*(1+D2) and fill down to E6. In E7 add them up with =SUM(E2:E6), which gives $549,800. In F2 type =E2/$E$7, with the dollar signs so the total stays fixed when you copy down. In G2 type =F2-B2. Finally, in C9 find the largest drift in absolute terms with =MAX(ABS(G2:G6)), which returns 3.11%, displayed as a percentage because the cell is formatted that way, but meaning 3.11 percentage points.

Target weight vs weight after one yearTargetWeight now (31 Dec)0%10%20%30%40%50%US stocks40% → 43.1%Intl stocks20% → 19.8%Bonds30% → 28.0%REITs5% → 4.4%Cash5% → 4.7%
US stocks grew fastest in this illustrative year and now take up 43.1% instead of 40%. Bonds fell behind and sit at 28.0% instead of 30%.

Read the result row by row. US stocks returned +18.5% in the example, far more than anything else, so their weight rose from 40% to 43.11%, a drift of +3.11 points. Bonds returned +2.5%, less than the portfolio as a whole (+9.96%), so their weight fell to 27.96%. REITs lost 4% and drifted down by 0.63 points. International stocks returned +9%, a little less than the portfolio, and drifted down by only 0.17 points even though they gained money. That last point is worth remembering: an asset class can grow in dollars and still lose weight, because what matters is how it grew compared with the whole portfolio.

Drift = weight now − target, in percentage points-4-20+2+4Percentage points (illustrative returns)US stocks+3.11Intl stocks−0.17Bonds−2.04REITs−0.63Cash−0.26
Drift per asset class. The positive and negative bars always balance out to zero. US stocks are the largest drift at +3.11 points.

The portfolio return of +9.96% is itself a useful check: =E7/C7-1. It is the weighted average of the five returns, with the start weights as weights, which you can also calculate with =SUMPRODUCT(B2:B6,D2:D6). A simple AVERAGE(D2:D6) gives 6.04%, which is wrong for this purpose because it treats the small cash holding as if it were as large as US stocks.

How much drift is a lot?

Once you can measure drift, the obvious next question is when it becomes large enough to matter. There is no universal answer, but the way you look at it makes a big difference. A drift of 0.63 points sounds tiny. For REITs, whose target is only 5%, it means the holding is about 12.7% below its planned size: =G5/B5. A drift of 2.04 points in bonds, on a 30% target, is only about 6.8% in relative terms. The same number of points means very different things for a large and a small asset class.

That is why many written investment policies combine both views. A commonly cited rule of thumb, the 5/25 rule, allows an asset class to drift by 5 percentage points or by 25% of its target, whichever is smaller, before it is flagged. Under that rule a 40% target gets a band of ±5 points, while a 5% target gets a band of only ±1.25 points. It is one convention among several, not a standard that anyone has to follow, and lesson 4 shows how to build it in Excel with MIN, ABS and conditional formatting.

It also helps to look at drift over time rather than in a single snapshot. One strong year moves weights a little. Several years in a row in the same direction can move them a lot, because the faster-growing holding keeps compounding on a larger base. Lesson 3 makes this visible by running an illustrative 60/40 portfolio through ten years with and without yearly rebalancing, so you can see how far the stock weight can wander when nobody touches the portfolio.

How to do it in Excel, step by step

  1. Set up the headers in row 1 and the five asset classes in A2:A6. Enter targets in B2:B6, start values in C2:C6 and the returns in D2:D6.
  2. Format B and D as percentages with Ctrl+Shift+%, then add decimals with Home › Number › Increase Decimal. Format C and E as currency with Ctrl+Shift+$.
  3. Add totals in row 7: =SUM(B2:B6) should show 100%. If it does not, fix the targets before anything else. A quick way to insert a SUM is Alt+= (AutoSum).
  4. In E2 type =C2*(1+D2). Select E2:E6 and press Ctrl+D. In E7 press Alt+= to sum the column.
  5. In F2 type =E2/E7, then put the cursor on E7 in the formula bar and press F4 to turn it into $E$7. Fill down to F6.
  6. In G2 type =F2-B2 and fill down. Add =SUM(G2:G6) in G7 as a check: it must show 0.00%.
  7. In C9 type =MAX(ABS(G2:G6)). In Excel 365 and Excel 2021 it works as typed. In older versions confirm it with Ctrl+Shift+Enter as an array formula.
  8. Optional: to see which asset class has the largest drift, use =INDEX(A2:A6,MATCH(C9,ABS(G2:G6),0)), also confirmed with Ctrl+Shift+Enter in older versions.
  9. Optional: highlight drifts with Home › Conditional Formatting › Data Bars on G2:G6. Positive and negative bars appear on either side of a midline, just like the chart above.
Keep inputs and formulas visually separate. Many modellers colour input cells (targets, values, returns) in one fill colour and leave formula cells white, so it is obvious which cells may be typed over.

Balance scale with portfolio slices and a spreadsheet of target weights and drift
An allocation is a plan. Drift measures how far a year of returns has moved the portfolio away from it.

Common mistakes and how to spot them

  • Dividing by the start total. =E2/C7 divides by $500,000 instead of $549,800, so the weights add up to about 110%. Always check that F7 shows 100%.
  • Forgetting the dollar signs. =E2/E7 copied down becomes =E3/E8, which divides by an empty cell and returns #DIV/0!. Press F4 to lock the total.
  • Averaging returns without weights. A simple average of the five returns ignores how much money is in each asset class. Grow each row first, then add them up.
  • Reversing the drift. =B2-F2 gives the opposite sign, so an overweight asset class looks underweight. Agree on weight now minus target and label the column.
  • Confusing points with percent. A move from 40% to 43.11% is +3.11 percentage points but +7.8% relative to the target. Both are valid measures, but mixing them in one table leads to wrong trades.
  • Using SUM or MAX without ABS. =SUM(G2:G6) is always zero, and =MAX(G2:G6) ignores large negative drifts. Use =MAX(ABS(G2:G6)) to find the largest move in either direction.

Quick reference: functions and shortcuts in this lesson

Function or shortcutWhat it doesExample
SUMAdds a range=SUM(E2:E6)
SUMPRODUCTMultiplies ranges pairwise and adds the results=SUMPRODUCT(B2:B6,D2:D6)
ABSAbsolute value, removes the sign=ABS(G2)
MAXLargest value in a range=MAX(ABS(G2:G6))
INDEX + MATCHReturns the name next to a matching value=INDEX(A2:A6,MATCH(C9,ABS(G2:G6),0))
Alt+=AutoSumTotal in E7
F4Makes a reference absoluteE7 → $E$7
Ctrl+DFill downSelect E2:E6, press Ctrl+D
Ctrl+Shift+%Percent formatWeights and drift

Real-world uses

  • A yearly portfolio review. Once a year, paste the current values of each holding into column E and the sheet tells you instantly how far the allocation has moved from its plan.
  • Combining several accounts. Many households hold the same asset classes across a workplace plan, a personal account and a savings account. Adding them up by asset class shows the real household allocation, which no single account statement shows.
  • Preparing for a meeting with an adviser. A clear drift table makes it easier to ask good questions about the rebalancing policy, costs and taxes.
  • Checking an investment policy statement. Many organisations, foundations and pension committees set target weights and permitted ranges in writing. Drift is the number they monitor against those ranges.
  • Teaching and training. The table is a compact way to show students why the weights change even when nobody trades.

What you will build in the rest of this course

This first lesson is free. The lessons that follow are part of the paid course, a one-time $9.90, and they keep working with Maya's portfolio and illustrative returns.

Trades Needed to Return to Target. You calculate the target value of each asset class, the buy and sell amounts that would bring the portfolio back to target, whole units to trade and the turnover.

Calendar Rebalancing vs Never Rebalancing over 10 Years. You run a 60/40 portfolio through ten illustrative years twice, left alone and rebalanced every year end, and chart how far the two paths and their stock weights move apart.

Tolerance Bands: Absolute, Relative & the 5/25 Rule. You give each asset class its own band, flag the ones outside it with a formula and colour those rows with conditional formatting.

Rebalancing with New Contributions Only (No Sells). You steer $30,000 of new money into the underweight assets and see how close that gets the portfolio to target without selling anything.

Transaction Costs & Minimum Trade Size. You skip trades that are too small, price the rest with a fixed fee and a spread and express the total cost in basis points.

Tax-Aware Rebalancing: Realised Gains, FIFO vs HIFO. You work out which tax lots are sold under two lot-selection methods and how much the choice changes the realised gain in the example.

Rebalancing Bonus, Volatility Pumping & Risk. You compare buy-and-hold with yearly rebalancing for two volatile illustrative funds and measure growth, CAGR, maximum drawdown and volatility, including the conditions under which the effect appears and when it does not.

Summary

Every allocation drifts, because each holding grows at its own rate. You measure it in three steps: grow each start value by its return, divide each end value by the new total to get the weight now, and subtract the target to get the drift in percentage points. In Maya's illustrative year, US stocks drifted +3.11 points while bonds fell 2.04 points behind, and the drifts add up to zero as they always must. Now scroll up to the lab and build the four formulas yourself: the Coach checks every one and explains what went wrong if a number does not match.

Frequently asked questions

What is portfolio drift?

Drift is the difference between an asset class's current weight in a portfolio and its target weight. It happens because different holdings earn different returns, so their shares of the total change over time.

How do you calculate portfolio weights in Excel?

Divide each holding's current value by the total portfolio value, for example =E2/$E$7, and copy down. The weights should add up to 100%.

Why do the drifts always add up to zero?

Both the current weights and the target weights add up to 100%, so their differences add up to 0. What one asset class gains in weight, the others lose.

What is the difference between percentage points and percent drift?

Absolute drift in percentage points is weight now minus target, for example 43.1% − 40% = 3.1 points. Relative drift divides that by the target, giving about 7.8%.

How do I find the largest drift in Excel?

Use =MAX(ABS(G2:G6)) on the drift column. In older Excel versions confirm it with Ctrl+Shift+Enter because it is an array formula.

Does this lesson tell me when to rebalance?

No. It shows how to measure drift correctly. When or whether to rebalance depends on personal circumstances, costs and taxes, which this course leaves to you and your adviser.

Keep going: Portfolio Rebalancing: Drift, Bands, Cash-Flow & Tax-Aware Rebalancing

This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time CHF 9.90.

  1. Trades Needed to Return to Target
  2. Calendar Rebalancing vs Never Rebalancing over 10 Years
  3. Tolerance Bands: Absolute, Relative & the 5/25 Rule
  4. Rebalancing with New Contributions Only (No Sells)
  5. Transaction Costs & Minimum Trade Size
  6. Tax-Aware Rebalancing: Realised Gains, FIFO vs HIFO
  7. Rebalancing Bonus, Volatility Pumping & Risk
  8. Two-Level Targets: Asset Classes and Sub-Classes
  9. Partial Rebalancing: Trading Back to the Band Edge instead of the Target
  10. Funding a Withdrawal by Selling Overweights First
  11. Whole Shares: Rounding Trades to Units & the Leftover Cash
  12. Pre-Trade Checks: Catching Errors in a Trade List
  13. Quarterly vs Yearly Rebalancing: Value and Amount Traded
  14. Choosing a Band Width: Trading Cost vs Drift
  15. Rebalancing under a Realised-Gain Budget
  16. The Denominator Effect: Rebalancing around an Illiquid Holding
  17. Glide Paths: Rebalancing to a Target That Moves Every Year
  18. Risk Drift: Volatility and Stress Loss of a Drifting Mix
  19. Final Project: Household Rebalancing Dashboard

Buy course — CHF 9.90 See the full course