Portfolio rebalancing calculator: what to buy and sell
A portfolio rebalancing calculator shows the trades that bring your investments back to the mix you want. Type what each holding is worth now and the share you want it to be. The calculator shows how much to buy or sell of each one. It also tells you if your mix has drifted far enough to bother.
- To rebalance, you sell some of what grew past its target and buy what fell behind.
- The trade for each holding is its target share of the total, minus what it is worth now.
- In a $100,000 portfolio, $70,000 in stocks with a 60% target means selling $10,000 of stocks.
- New money can fix drift without selling, which can save taxes and trading costs.
- Many investors check once a year and trade only when a holding is 5 or more points off target.
Next step
See what rebalancing did over the yearsNow see what a yearly reset did
Backtest the example mix, 60% US stocks, 20% world stocks and 20% bonds, put back on target once a year. Then let a bot keep yours there.
Included in the Free plan, free for good. Plus and Pro start with a 7-day free trial.
How to use the rebalancing calculator#
- Type each holding on its own row: a name or ticker, what it is worth today, and the share you want it to be. The targets must add up to 100%.
- Type any money you are adding. If you are taking money out, put a minus sign in front, like -5000.
- Pick how to rebalance. Buy and sell puts every holding back on target. Only move the money going in or out never sells one holding to buy another. It sends new money to what is furthest under target, and takes withdrawals from what is furthest over.
- Set a drift limit. The calculator says whether any holding has strayed past it.
The table shows each holding’s share now, its target, how far it has drifted, the trade, and its share after the trade. Your numbers stay in your browser. Nothing is saved or sent.
How do you calculate a rebalance?#
Add up what everything is worth, plus any new money. Each holding’s target value is its target share of that total. The trade is the gap between the target value and what you hold now.
total = value of every holding + money added
target value = target share × total
trade = target value - value now
drift = share now - target shareA trade above zero is a buy. A trade below zero is a sell. Drift is in percentage points. A holding with a 60% target that is now 66% has drifted 6 points.
A worked example#
Say you have $100,000 in three funds: US stocks, world stocks (companies outside the US) and bonds. US stocks had a great run, so your mix is now off.
| Holding | Value now | Share now | Target | Drift | Trade |
|---|---|---|---|---|---|
| US stocks | $70,000 | 70% | 60% | +10 points | Sell $10,000 |
| World stocks | $15,000 | 15% | 20% | -5 points | Buy $5,000 |
| Bonds | $15,000 | 15% | 20% | -5 points | Buy $5,000 |
- The total is $100,000, and no money is added.
- US stocks should be 60% × $100,000 = $60,000. You hold $70,000, so you sell $10,000.
- World stocks should be 20% × $100,000 = $20,000. You hold $15,000, so you buy $5,000.
- Bonds work the same way. You buy $5,000.
The sells and the buys are both $10,000, so the total stays $100,000. These are the numbers the calculator starts with.
How to rebalance without selling#
Selling can mean taxes and fees, so new money is often the better fix. Pick Only move the money going in or out. The calculator then puts new money into whatever is furthest below its target first.
Take the same portfolio and add $10,000.
- The calculator splits it: $5,000 to world stocks and $5,000 to bonds. US stocks get nothing.
- After the buys, US stocks are 63.6% of $110,000. That is still over 60%, but much closer, and you sold nothing.
- Add $20,000 instead, and new money alone gets you all the way back. You buy $2,000 of US stocks, $9,000 of world stocks and $9,000 of bonds.
Taking money out works the other way. The calculator takes it from whatever is furthest over its target first. That is a quiet way to rebalance when you live off your savings.
When should you rebalance?#
There are two common ways to decide, and many people use both.
- On a calendar. You check on a set date. FINRA says a yearly review of your investments is a good time to rebalance. Investor.gov says many experts suggest every 6 or 12 months.
- When drift passes a limit. You trade only when a holding is a set number of points off target. A 5-point limit lets a 60% target move between 55% and 65% before you act.
A small holding needs a smaller limit. A 5-point limit on a 10% target lets it grow to 15%, half again its size. For a small target, try a limit of about a quarter of it, such as 2.5 points on a 10% target.
Our guide to portfolio rebalancing compares the methods in more depth.
What the calculator leaves out#
- Taxes. Selling at a gain in a regular brokerage account can mean a tax bill. The IRS taxes gains on things you held for more than a year at lower, long-term rates (IRS Topic 409). Trades inside a 401(k) or IRA do not create a tax bill when you make them.
- Costs. Some trades cost a commission or a spread. A very small trade may not be worth making.
- Shares. The trades are in money. To get shares, divide a trade by the price of one share. If your broker sells only whole shares, round down.
- Funds that mix stocks and bonds. A balanced fund or a target-date fund holds both. Split its value by its own mix before you type it in.
- More than one account. Treat all your accounts as one portfolio. Then make the trades where they cost the least, such as inside a retirement account.
Common mistakes#
- Typing what you paid. Use what each holding is worth today, not what it cost.
- Targets that don’t add up. They must total 100%. The line under the rows shows the sum as you type.
- Forgetting cash. If you want cash in your mix, give it its own row and target. If not, type it as money to add.
- Trading every small move. Tiny trades add costs and taxes without lowering your risk much.
- Changing the targets after a scary month. That is market timing, not rebalancing.
Try it on Tactfolio#
The calculator gives you today’s trades. A backtest shows what rebalancing did over many years. In the Tactfolio strategy builder you can set target shares for a few funds and pick when to reset them: on a schedule, such as once a year, or When a holding drifts, which trades only past a limit, like this calculator’s drift check. The rebalancing bot can then keep a mix on target for you, on paper or in your own Alpaca account. To test a mix in one click, backtest a portfolio. Not sure what your targets should be? The asset allocation calculator suggests a stock and bond mix for your age. Every tool is on the free trading calculators page.
Common questions#
How do I calculate how much to rebalance?#
Multiply each holding’s target share by the total value of your portfolio. Then subtract what the holding is worth now. A positive answer is how much to buy. A negative answer is how much to sell.
What is the 5% rule for rebalancing?#
It means you rebalance when any holding drifts 5 percentage points or more from its target. A 60/40 portfolio would be due once it reaches 65/35 or 55/45.
Can I rebalance without selling?#
Yes. Send new money to whatever is below its target. Pick “Only move the money going in or out” in the calculator to see how far your new money gets you. When you take money out, take it from what is over target.
How often should I rebalance my portfolio?#
Once a year works for many people. FINRA points to a yearly review, and Investor.gov mentions every 6 or 12 months. A drift limit, such as 5 points, can cut trades that do little.
Should I rebalance in a 401(k) or a taxable account?#
If you can, rebalance inside a 401(k) or IRA first. Trades there do not create a tax bill when you make them. In a taxable account, try new money or withdrawals before you sell.
Does rebalancing improve returns?#
Not reliably. Its main job is to keep your risk where you chose it. In a long rally, rebalancing can lower returns, because it keeps selling what is rising.
Sources
- Rebalancing, Investor.gov, U.S. Securities and Exchange Commission, accessed October 16, 2026
- Beginners' Guide to Asset Allocation, Diversification, and Rebalancing, Investor.gov, U.S. Securities and Exchange Commission, accessed October 16, 2026
- Asset Allocation and Diversification, FINRA, accessed November 11, 2026
- Topic no. 409, Capital gains and losses, Internal Revenue Service, accessed November 11, 2026
More in Trading tools
- Asset allocation calculator: stocks and bonds by age
- Monte Carlo simulation: will your money last?
- Backtest a portfolio: free portfolio backtesting tool
- Options profit calculator for calls and puts
- Pip calculator: what one pip is worth in any forex pair
- Stock average calculator: your average price per share