# Portfolio rebalancing calculator: what to buy and sell

> Free portfolio rebalancing calculator. Enter what you hold and your target mix to see what to buy or sell, with or without selling, and if it is time.

Written by [Tactfolio Research Lab](https://tactfolio.com/about/editorial-policy.md), published 2026-11-11, updated 2026-11-11.

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.

## How to use the rebalancing calculator

1. 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%.
2. Type any money you are adding. If you are taking money out, put a minus sign in front, like -5000.
3. 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.
4. 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.

```text
total = value of every holding + money added
target value = target share × total
trade = target value - value now
drift = share now - target share
```

A 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 |

![Two stacked bars. Now: US stocks $70,000 (70%), world stocks $15,000 (15%) and bonds $15,000 (15%). Target: $60,000 (60%), $20,000 (20%) and $20,000 (20%). Between them, the trades: sell $10,000 of US stocks, buy $5,000 of world stocks and buy $5,000 of bonds.](https://tactfolio.com/images/figures/portfolio-rebalancing-worked-example.svg)

*Each holding goes back to its target share. Selling the one that ran ahead pays for buying the two that fell behind.*

1. The total is $100,000, and no money is added.
2. US stocks should be 60% × $100,000 = $60,000. You hold $70,000, so you sell $10,000.
3. World stocks should be 20% × $100,000 = $20,000. You hold $15,000, so you buy $5,000.
4. 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](https://www.finra.org/investors/investing/investing-basics/asset-allocation-diversification) says a yearly review of your investments is a good time to rebalance. [Investor.gov](https://www.investor.gov/additional-resources/general-resources/publications-research/info-sheets/beginners-guide-asset) 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](https://tactfolio.com/learn/portfolio-rebalancing.md) 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](https://www.irs.gov/taxtopics/tc409)). 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](https://tactfolio.com/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](https://tactfolio.com/bots/rebalancing-bot.md) 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](https://tactfolio.com/trading-tools/backtest-portfolio.md). Not sure what your targets should be? The [asset allocation calculator](https://tactfolio.com/trading-tools/asset-allocation-calculator.md) suggests a stock and bond mix for your age. Every tool is on the [free trading calculators](https://tactfolio.com/trading-tools.md) 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.

## Understand the numbers

- [Three-Fund Portfolio (Taylor Larimore, Bogleheads)](https://tactfolio.com/strategies/three-fund-portfolio.md): Taylor Larimore’s Three-Fund Portfolio: US stocks, world stocks, and bonds in three index funds.
- [Tactical asset allocation](https://tactfolio.com/learn/tactical-asset-allocation.md): How tactical asset allocation differs from strategic, how its rules work, and how three famous tactical rules did against a 60/40 mix from 2008 to 2026.
- [VTI vs VXUS](https://tactfolio.com/etf-comparisons/VTI-vs-VXUS.md): VTI vs VXUS: what each ETF holds, what it costs, and how both did over the same dates, with yearly returns and worst drops.

## Sources

- [Rebalancing](https://www.investor.gov/introduction-investing/investing-basics/glossary/rebalancing), Investor.gov, U.S. Securities and Exchange Commission, accessed 2026-10-16
- [Beginners' Guide to Asset Allocation, Diversification, and Rebalancing](https://www.investor.gov/additional-resources/general-resources/publications-research/info-sheets/beginners-guide-asset), Investor.gov, U.S. Securities and Exchange Commission, accessed 2026-10-16
- [Asset Allocation and Diversification](https://www.finra.org/investors/investing/investing-basics/asset-allocation-diversification), FINRA, accessed 2026-11-11
- [Topic no. 409, Capital gains and losses](https://www.irs.gov/taxtopics/tc409), Internal Revenue Service, accessed 2026-11-11
