Sub topic 4
Calendar rebalancing: rebalance on a schedule
Calendar rebalancing returns a portfolio to its target weights at fixed dates, such as every January or every quarter. This chapter covers how to pick the interval and the review date, how to code the schedule, and where the rule goes wrong.
You should already know what a target allocation is and how to compute current weights and drift. Both were covered in earlier chapters. The code uses basic Python (dictionaries, functions, datetime.date).
The working model
A calendar rule has three parts:
- An interval. How often you act: monthly, quarterly, semiannually, or annually.
- An anchor. The date the schedule counts from, such as the first trading day of the month.
- A trade method. What you do on the date. In this chapter, trade every asset class back to its target weight.
On each review date you measure weights, compute trades, and execute them. You do not look at how large the drift is when deciding whether to act. That is the defining feature of the rule, and it causes both its strengths and its weaknesses.
Take a 60/40 portfolio of stocks and bonds that starts at 60,000 and 40,000. Over a year, stocks rise 20% and bonds fall 5%.
- Stocks: 60,000 × 1.20 = 72,000
- Bonds: 40,000 × 0.95 = 38,000
- Total: 110,000, so stocks are 65.5% of the portfolio
On the annual review date the target stock value is 0.60 × 110,000 = 66,000. You sell 6,000 of stocks and buy 6,000 of bonds. The weights are back to 60/40.
Choosing an interval
The interval trades off two costs. A short interval keeps weights close to target but causes more trades. A long interval saves trading costs but lets drift build up between reviews.
| Interval | Reviews per year | Typical drift allowed to build | Trading cost and effort |
|---|---|---|---|
| Monthly | 12 | Small | Highest. Many reviews end in tiny trades. |
| Quarterly | 4 | Moderate | Moderate |
| Semiannual | 2 | Larger | Low |
| Annual | 1 | Largest | Lowest |
Two points help you choose.
- Drift scales with volatility and time. A portfolio with a high stock share, or one holding volatile assets like small-cap or emerging-market funds, drifts faster than a conservative one. It needs shorter intervals for the same tolerance.
- The risk benefit of very frequent rebalancing is small. Published comparisons of rebalancing frequencies generally find that annual or semiannual schedules control risk about as well as monthly ones, with fewer trades. Check this against your own situation, since results depend on the assets, period, and costs.
For most individual investors, annual or semiannual is a sensible default. Quarterly makes sense when the portfolio is volatile and trades are cheap.
Counting months in code
The spine's schedule check counts calendar months between the last rebalance and today.
from datetime import date
def calendar_due(last_rebalance: date, today: date, interval_months: int) -> bool:
elapsed = (today.year - last_rebalance.year) * 12 + (today.month - last_rebalance.month)
return elapsed >= interval_months
last = date(2026, 1, 15)
for today in [date(2026, 3, 31), date(2026, 4, 1), date(2026, 4, 30)]:
print(today, calendar_due(last, today, 3))This prints False for March 31, then True for April 1 and April 30. The function compares month numbers, not days. A rebalance on January 15 is due on April 1, which is 76 days later. A rebalance on January 31 is due on April 1 as well, only 61 days later.
That is usually acceptable, because a calendar rule only needs to be consistent. But decide on purpose whether you want "three months of 30 days" or "the first review date in the third month after". If you want the second, this function fits.
Fixed anchor or rolling anchor
There are two ways to define the schedule.
- Rolling anchor. The next review is one interval after the last actual rebalance. If you rebalanced late, every later date shifts.
- Fixed anchor. Reviews fall on set dates, for example the first day of January and July, whatever happened last time.
A fixed anchor is easier to follow and automate, and a late review does not move later ones. The following function generates fixed-anchor review dates on the first day of each month.
from datetime import date
def review_dates(start: date, interval_months: int, count: int) -> list[date]:
dates = []
for k in range(1, count + 1):
months = start.month - 1 + k * interval_months
year = start.year + months // 12
month = months % 12 + 1
dates.append(date(year, month, 1))
return dates
print(review_dates(date(2026, 1, 1), 6, 3))The output lists July 1, 2026, January 1, 2027, and July 1, 2027. Using day 1 avoids invalid dates such as February 30.
The "minimum size" check in the diagram is a practical addition. A strict calendar rule trades every time, even when drift is 0.1 percentage points and the trade is smaller than the fee. A small floor, such as skipping trades under a stated amount, removes pointless activity. It is also the first step toward the threshold rules in the next chapters.
Simulating the effect
This script compares letting a portfolio drift against rebalancing annually, using four made-up years of returns. It prints the stock weight before each year-end rebalance.
targets = {"stocks": 0.60, "bonds": 0.40}
returns = [
{"stocks": 0.20, "bonds": -0.05},
{"stocks": 0.15, "bonds": 0.02},
{"stocks": -0.25, "bonds": 0.06},
{"stocks": 0.12, "bonds": 0.03},
]
def run(rebalance_every_years):
values = {"stocks": 60000.0, "bonds": 40000.0}
for year, r in enumerate(returns, start=1):
values = {a: values[a] * (1 + r[a]) for a in values}
total = sum(values.values())
print(f" year {year}: stocks {values['stocks'] / total:.1%} before any trade")
if rebalance_every_years and year % rebalance_every_years == 0:
values = {a: targets[a] * total for a in targets}
return sum(values.values())
print("No rebalancing")
end_none = run(None)
print("Annual rebalancing")
end_annual = run(1)
print(f"Ending value: none {end_none:,.0f}, annual {end_annual:,.0f}")Read the output for the stock weights, not only the final value. Without rebalancing, the stock weight climbs well above 60% during the good years, so the portfolio takes more equity risk than planned just before the loss in year 3. With rebalancing, each year starts at 60%. The ending values may be higher or lower for either approach, depending on the return path. Rebalancing is a risk-control tool, not a way to raise returns.
Choosing the review date
The interval gets most of the attention, but the date matters too.
- Use the same date each cycle. A fixed rule removes the temptation to delay a rebalance because markets feel uncertain. Delaying is market timing by another name.
- Avoid dates with known disruptions. The last trading day of a quarter or year can have wide spreads and heavy volume. The first week of a month is often calmer.
- Consider taxes. In a taxable account, a date just before a holding crosses from short-term to long-term status can change the tax on a sale. The details depend on your jurisdiction, so treat this as something to check, not a fixed rule.
- Align with other events. Many people review at the start of the year, when they also update contributions and check goals.
Strengths and weaknesses
The strengths follow from the rule being simple.
- It is easy to write down, follow, and automate.
- It needs no monitoring between dates, so it suits people who do not want to watch the market.
- It is predictable. You know in advance when trades may happen, which helps with cash planning and tax records.
The weaknesses follow from the same fact: the rule ignores how big the drift is.
- It can trade for nothing. If weights are within a point of target, a scheduled rebalance mostly produces fees.
- It can wait too long. If stocks fall 30% in the first month after a review, the portfolio stays far from target until the next date.
- It treats all asset classes alike. A 2-point drift in a 5% position is minor in dollar terms, while a 2-point drift in a 60% position matters more, yet the rule treats both identically.
Common errors
- Rebalancing on the wrong total. Compute target values from the total after any contribution or withdrawal, not before.
- Forgetting accounts. Weights should be measured across all accounts that belong to one plan. Rebalancing each account to the target separately may cost more in taxes than doing it across accounts.
- Skipping reviews after bad returns. Rebalancing after a fall means buying the asset that dropped. This is uncomfortable but is what the rule requires. Skipping the review means the rule is no longer being followed.
- Mixing up the interval and the anchor. Writing "rebalance every six months" without a start date leads to drift in the schedule itself. State the actual dates.
- Ignoring trade rounding. Funds trade in dollar or share amounts, so a trade may not land exactly on target. Small leftovers are normal and should not trigger another trade.
Exercise
A portfolio has a 70/30 target for stocks and bonds. Its current values are stocks 84,000 and bonds 26,000, and today is a scheduled review date. Calculate the buy and sell amounts needed to return to target.
Show answer
The total is 110,000. The target stock value is 0.70 × 110,000 = 77,000, so sell 7,000 of stocks (84,000 − 77,000). The target bond value is 0.30 × 110,000 = 33,000, so buy 7,000 of bonds (33,000 − 26,000). The trades sum to zero.
Exercise
Using calendar_due with a 6-month interval, a rebalance was done on 2026-02-28. On what is the earliest date value the function returns True, and why might that be earlier than six full months?
Show answer
The function counts month numbers, so it returns True on 2026-08-01, the first day of the sixth month after February. That is only about five months and three days after February 28. The function ignores the day of the month, so it measures calendar months, not elapsed days.