Portfolio rebalancing calculator: what to buy and sell
Last reviewed:
Enter what you hold in US stocks, international stocks and bonds, and your target stock share. You get how far you have drifted and the trades that bring you back, with an option to use only new money.
Calculator
Turn on JavaScript to see your rebalancing trades.
| Holding | Value | Now | Target | Trade | After |
|---|
What mix should you hold? A quick risk guide
Your stock share is the main choice. More stocks mean more growth over decades and deeper falls along the way; in 2008 a mostly-stock portfolio lost about half its value before recovering.
| When you need the money | If a 30% fall would make you sell | If you would hold | If you would buy more |
|---|---|---|---|
| Under 3 years | 0 to 20% stocks | 20 to 30% | 30 to 40% |
| 3 to 10 years | 30 to 40% | 50 to 60% | 60 to 70% |
| 10 to 20 years | 50 to 60% | 70 to 80% | 80 to 90% |
| Over 20 years | 60 to 70% | 80 to 90% | 90 to 100% |
Pick the mix you would stick with in a crash; selling after a fall locks in the loss. Money you need within a few years belongs in cash or short-term bonds, not stocks.
How and when to rebalance
- Once a year, or when a holding drifts 5 points or more from its target. Checking more often adds trading and tax without much benefit.
- Use new money first: direct contributions and dividends to whatever is underweight, so you sell less.
- Rebalance inside tax-advantaged accounts: trades in a 401(k) or IRA owe no tax. In a taxable account, selling winners can trigger capital gains tax.
- Look at all your accounts together: one target across your 401(k), IRA and taxable accounts, not a separate mix in each.
Questions people ask
How do I rebalance my portfolio?
Work out each holding’s share of the total, compare it with your target, then buy what is underweight and sell what is overweight until the shares match. New contributions can do most of the work without selling.
How often should I rebalance?
Once a year, or whenever a holding is more than about 5 percentage points away from its target. More often rarely helps.
Does rebalancing trigger taxes?
Not inside a 401(k), IRA or other tax-advantaged account. In a taxable account, selling at a gain is taxed, so rebalance with new money or inside retirement accounts where you can.
What is a good asset allocation for my age?
A common rule of thumb is 110 minus your age in stocks, so 75% stocks at 35. Your time horizon and how you would react to a crash matter more than age alone.
Should I rebalance during a market crash?
Rebalancing after a fall means buying stocks while they are cheap, which helps over time. It only works if you follow your plan rather than reacting to the news.
Your next decision
- Index funds or a target-date fund?Let a fund rebalance for you.
- What do my fund fees cost?Lifetime cost of fees.
- What tax will I owe on gains?Federal and state capital gains.
Related: Index vs target-date · Expense ratio · Compound growth · Retirement · All investing and retirement decisions
Sources
- U.S. Securities and Exchange Commission (Investor.gov), How fees and expenses affect your investment portfolio. As of November 26, 2026.
Written by Abiot Y. Derbie, PhD. Trades are worked out exactly from your holdings and targets and are tested against hand-worked cases; the risk guide is a rule of thumb, not a profile. Our editorial policy explains how we source numbers and correct mistakes. This calculator is for education and is not investment advice. It does not account for taxes, trading costs or fund minimums.