Portfolio rebalancing formula: how much to buy or sell

PublishedToolPortfolio Rebalancing Calculator

Contents
  1. Drifting weights are normal
  2. How to calculate it yourself without a tool
  3. Common points of confusion
  4. Recap
  5. Frequently asked questions

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:

  1. List your current assets and their values. Write down the name and current value of each asset you hold.
  2. 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.
  3. Set your target weights and check the total. Set a target weight (%) for each asset, then make sure they add up to 100%.
  4. Calculate the target amount. Target amount per asset = total assets × target weight (%).
  5. 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.

AssetCurrent valueCurrent weightTarget weightTarget amountAdjustment
Stock ETF6,800,000 won68%60%6,000,000 won−800,000 won (sell)
Bond ETF2,400,000 won24%30%3,000,000 won+600,000 won (buy)
Cash equivalents800,000 won8%10%1,000,000 won+200,000 won (buy)
Total10,000,000 won100%100%10,000,000 won0 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.

Portfolio Rebalancing Calculator

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 confusionWhat 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 reallocateIf you put new money into the underweight assets first, you can reduce or eliminate selling
The adjustment amount includes taxes and feesThe 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.
Portfolio Rebalancing Calculator

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

Related articles

  1. Early/Late Installment Savings Calculator: 6-1-5 Rule DatesSee how the 6-1-5 (and 1-11) rule turns each installment's early or late payment days into a real maturity date, plus pre-tax and after-tax interest.
  2. Pregnancy Week Calculator: How the Due Date Math WorksSee the exact due date and week-count math behind a pregnancy calculator: the 280-day rule, the divide-by-7 step, and how to check your results.
  3. Pregnancy Weeks From Last Period: Why 4 Weeks Is Really 2Pregnancy weeks count from your last period: at 4 weeks the embryo is about 2 weeks old. How the 280-day due date is set and why ultrasound dating differs.
  4. 32 psi to bar: Tire Pressure Unit Conversion (psi, bar, kPa)32 psi is about 2.2 bar or 220 kPa. Get a psi-bar-kPa chart, learn what to do when your door sticker and gauge use different units, and avoid gauge-pressure mix-ups.
  5. Primality Test: Why You Only Check to the Square RootLearn the step-by-step primality test: why 1 is excluded, why 2 and 3 come first, and why dividing up to the square root is enough.
  6. Promissory Note Discount Calculator: Net Proceeds MathWork through the discount fee formula with real numbers, then see how the 365- vs 360-day basis and your choice of start date change what you actually receive.

Related tools