Skip to main content
CodeLint.Dev Dev Tools

Portfolio Allocation & Rebalancing

Current versus target weights across holdings, with the trades needed to rebalance.

Portfolio Allocation Visualizer

Total: 8,500
Total8,500
Asset
Value
Allocation
Equities
5,000
58.8%
Bonds
2,000
23.5%
Real Estate
1,500
17.6%
Total
8,500
100%

Allocation Bars

Equities
58.8%
Bonds
23.5%
Real Estate
17.6%

What rebalancing actually does

Left alone, a portfolio drifts. Whatever performed best grows as a share of the total, so a 60/40 split becomes 70/30 after a strong run in equities — and your risk has increased without any decision being made.

Rebalancing sells some of what has grown and buys what has lagged, restoring the intended weights. It is a risk control first and foremost: it keeps the portfolio matched to the risk you chose rather than the one the market handed you.

It is sometimes also a small return enhancer, by systematically selling high and buying low across uncorrelated assets. The effect is real but modest and depends heavily on the assets involved — do not rebalance expecting extra return.

On frequency: annually, or when a holding drifts more than about five percentage points from target, is the common guidance. More frequent rebalancing adds costs and tax events without improving outcomes. The evidence for any particular schedule being optimal is weak, which is an argument for picking a simple rule and following it rather than optimising.

Rebalancing without unnecessary cost

  • Rebalance with new contributions firstDirect new money into whatever is underweight. This corrects drift with no selling, no transaction cost and no tax event — the cheapest method by a wide margin.
  • Do it in tax-sheltered accountsSelling inside a pension or ISA triggers no capital gains. Where possible, hold the assets you expect to trade most inside the wrapper.
  • Use bands, not a calendarA 5-percentage-point tolerance band means you act when it matters rather than on an arbitrary date. Fewer trades, same risk control.
  • Watch for wash sale rulesSelling at a loss and rebuying the same asset within a set window can disallow the loss for tax purposes. The window and the rules vary by country.
  • Account for everything you holdRebalancing one account in isolation while ignoring a pension elsewhere can leave the overall allocation further from target than before.

About

The Portfolio Allocation Visualizer helps you understand how your wealth is distributed across different asset classes or individual holdings. Enter each asset name and its current value to instantly see its percentage weight in your total portfolio and a colour-coded visual breakdown. Good diversification is a cornerstone of risk management — this tool makes it easy to spot concentration risk and rebalancing opportunities without sharing any data online.

How to use

  1. 1 Click "Add Asset" to add each holding: name and current value.
  2. 2 The pie chart and percentage table update instantly as you type.
  3. 3 Add as many assets as you need — equities, bonds, real estate, crypto, cash.
  4. 4 The total portfolio value is summed automatically.
  5. 5 Use the allocation percentages to identify overweight or underweight positions.
What is asset allocation and why does it matter?
Asset allocation is how your investment portfolio is divided among different asset classes — equities, bonds, real estate, cash, commodities, and alternatives. It is the most important determinant of long-term portfolio risk and return, accounting for over 90% of performance variability according to studies. Different asset classes have low or negative correlations, so diversifying across them reduces overall portfolio volatility.
What is a good portfolio allocation for long-term investing?
A classic starting point is the 60/40 portfolio — 60% equities and 40% bonds. Younger investors with a long horizon and high risk tolerance often go 80–100% equities. As retirement approaches, shifting more to bonds and cash reduces volatility. A popular rule of thumb: hold (100 − your age)% in equities. Use this visualizer to check your current allocation against your target.
How often should I rebalance my portfolio?
Most financial advisors recommend rebalancing once or twice a year, or whenever an asset class drifts more than 5% from its target allocation. For example, if equities have a great year and grow from 60% to 70% of your portfolio, rebalancing means selling some equities and buying bonds to restore the 60/40 target. Rebalancing enforces a buy-low/sell-high discipline automatically.