Portfolio rebalancing formula: how much to buy or sell

Contents
Here's how to calculate how much of each asset to buy or sell to get back to your target allocation when the mix of stocks, bonds, cash, and other assets you hold has drifted from the targets you originally set.
Even with just three or four assets, hand calculations go wrong often. It's also common to start the math without checking that your target weights add up to 100%, which throws off every result.
This post walks through the formula for the adjustment amount, then how to factor in new money you plan to add.
Summary ① The adjustment amount for each asset is (total assets × target weight) − current value. ② If your target weights don't add up to 100%, every result is distorted. ③ If you have new money to add, add it to total assets first, then apply the same formula.
Drifting weights are normal
Say you started out with 60% in a stock ETF, 30% in a bond ETF, and 10% in cash equivalents.
Over time, if your stock holdings grow more than your bonds, the actual weights shift—say to 68% stocks, 24% bonds, and 8% cash—even though the split of your original contributions hasn't changed.
You can sense from your account screen that the weights have drifted, but it's hard to guess "so how much do I sell and how much do I buy to get back to target?" With three assets you might do it in your head. With five or six, mistakes come easily without a calculator.
Starting the math without checking that your target weights add up to 100% is another common mistake. If you set targets of 30/30/30/20 across four assets, that adds up to 110%, and every adjustment amount you calculate from that is wrong from the start.
How to calculate it yourself without a tool
The math itself is just arithmetic. Here's the order:
- List your current assets and their values. Write down the name and current value of each asset you hold.
- Find your total assets. Add up the value of all assets. If you have new money to add, add it to total assets at this step.
- Set your target weights and check the total. Set a target weight (%) for each asset, then make sure they add up to 100%.
- Calculate the target amount. Target amount per asset = total assets × target weight (%).
- Find the adjustment amount. Adjustment amount = target amount − current value. A positive number is how much to buy; a negative number is how much to sell.
Working through the earlier example by hand looks like this. Total assets are 10,000,000 won, and the targets stay at 60% stocks, 30% bonds, and 10% cash.
| Asset | Current value | Current weight | Target weight | Target amount | Adjustment |
|---|---|---|---|---|---|
| Stock ETF | 6,800,000 won | 68% | 60% | 6,000,000 won | −800,000 won (sell) |
| Bond ETF | 2,400,000 won | 24% | 30% | 3,000,000 won | +600,000 won (buy) |
| Cash equivalents | 800,000 won | 8% | 10% | 1,000,000 won | +200,000 won (buy) |
| Total | 10,000,000 won | 100% | 100% | 10,000,000 won | 0 won |
If you have new money to add, the order changes slightly. Add the new money to total assets first, then recalculate the target amounts based on the larger total.
That way, sometimes you can hit your targets with new money alone without selling anything, and if new money isn't enough, you'll still need to sell some of the rest.
Check it with our tool.
Enter each asset's value and target weight to get the buy and sell amounts right away. Your inputs are calculated in the browser only and are never sent to a server.

Common points of confusion
The math is simple, but once you start building the table, a few spots tend to trip people up.
| Point of confusion | What actually happens |
|---|---|
| The calculation stops if the target weights don't add up to 100% | The calculation still runs. But if the total isn't 100%, every adjustment amount is distorted, so fix it first |
| If you have new money, you have to sell everything and reallocate | If you put new money into the underweight assets first, you can reduce or eliminate selling |
| The adjustment amount includes taxes and fees | The adjustment amount is based purely on asset value. Taxes, fees, exchange rates, and similar costs of trading are separate items to consider |
The third one is especially easy to miss. The adjustment amount the formula gives you is a pure calculation: "buy or sell this much to hit your target weights." It does not tell you how much you'll actually have left after you make the trade.
Recap
- The adjustment amount comes from one formula: (total assets × target weight) − current value.
- Check first that your target weights add up to 100%, or your results will be distorted.
- Add new money to total assets first, then apply the same formula.
- The results are based purely on asset value and don't include taxes or fees.
- The more assets you have, the fewer errors you'll make laying it out in a table than doing it by hand.
Enter each asset's value and target weight to get the buy and sell amounts right away. Your inputs are calculated in the browser only and are never sent to a server.
Frequently asked questions
What happens if my target weights don't add up to 100%?
A warning appears, but the calculation still runs. However, if the total is over or under 100%, each asset's target amount won't line up with your actual total assets, so set it to 100% for accurate results.
How is new money factored in?
Target amounts are calculated based on your current total assets plus the new money you plan to add. As a result, sometimes allocating just the new money gets you closer to your target weights without selling anything, and if the new money isn't enough, only the remaining gap is calculated as a sell.
Is there a set rebalancing schedule?
There's no single standard. Two commonly mentioned approaches are checking on a fixed schedule, like every year or every quarter, and only adjusting when a weight drifts beyond a certain band (for example, ±5 percentage points).
Which one you use depends on trading costs and how often you want to check. This calculator doesn't recommend a specific schedule—it only calculates the adjustment amounts as of the moment you enter your numbers.
Is the asset information I enter saved or sent anywhere?
No. All calculations happen inside your browser, and nothing is sent to a server or stored.
This article was adapted from our Korean original. Read the Korean original