Portfolio Rebalancing Calculator

Enter what each holding is worth today and the percentage it should be. Get the exact trades that restore your target mix, and a buy-only plan that places new cash where it corrects the most drift without selling anything.

Last Updated:

Drift is a decision you did not make

Nobody chooses an 80% stock portfolio by accident in a single day. They choose 60%, markets move, and a few years later the portfolio they actually own is a different, riskier one than the portfolio they picked. Investor.gov, the SEC's investor site, uses almost exactly that example: a stock allocation set at 60% can reach 80% after a strong market run, at which point the investor is carrying equity risk they never signed up for, and a market fall lands on a much larger share of their savings than planned. Rebalancing is the correction: returning each category to its target share, on purpose, before the drift makes the decision for you.

The arithmetic is simple enough that the real questions are procedural. Should you sell the overweight holding, or steer new money to the underweight ones? How far out of line justifies acting at all, given that trading can cost fees and, in a taxable account, realize capital gains? This calculator answers the arithmetic half completely: the exact trades for a full rebalance, and the exact placement of any new cash for the no-sale route, including an honest statement of how far the no-sale route gets when the cash is not enough to finish the job.

The Rebalancing Formulas

The trade list is measured against today's total, so the buys and sells sum to zero. The buy-only plan measures shortfalls against the total after the new cash arrives, because that is the portfolio the cash joins. If the new cash cannot cover every shortfall, it is split in proportion to them, so each underweight holding closes the same fraction of its gap. If the cash more than covers the shortfalls, the remainder is spread by target percentage. Targets must add to 100%, because each one is a share of the same whole.

Target Value = Portfolio Total x Target %; Trade = Target Value - Current Value (positive: buy, negative: sell); Buy-only Shortfall = max(0, (Total + New Cash) x Target % - Current Value), with new cash spread in proportion to shortfalls
Current %A holding's value divided by the portfolio total, as it stands today
Target ValueWhat the holding would be worth at exactly its target share
TradeTarget value minus current value; the buy or sell that restores the mix
ShortfallHow far a holding sits below its target once new cash is counted in the total

Worked Example: A $100,000 Portfolio That Drifted to 52% Stocks

The calculator's default inputs. Four holdings worth $100,000 in total, against targets of 50% US stocks, 30% bonds, 10% international stocks, and 10% cash, with $12,000 of new cash available. Every figure is simple arithmetic on those inputs, reproducible on the tool above.

1
The drift, measured
Nothing here is extreme, which is the point: a portfolio two to four points out of line in every category is carrying a noticeably different risk mix than its owner chose.
US stocks 52.0% vs a 50% target; bonds 26.0% vs 30%; international 13.0% vs 10%; cash 9.0% vs 10%
2
Trades for a full rebalance
Target values on $100,000 are $50,000, $30,000, $10,000, and $10,000. Each trade is the gap between the target value and today's value, and the buys and sells cancel to zero.
Sell $2,000 of US stocks and $3,000 of international stocks; buy $4,000 of bonds and $1,000 of cash
3
Buy-only: shortfalls after the new cash
Measured against the new $112,000 total, the targets become $56,000, $33,600, $11,200, and $11,200. US stocks are short $4,000, bonds $7,600, cash $2,200; international is overweight and gets nothing. The shortfalls total more than the cash, so the cash is spread in proportion.
$13,800 of shortfall against $12,000 of cash
4
Where the $12,000 lands
Each underweight holding receives the same fraction, about 87%, of its shortfall. No holding is sold and no capital gain is realized.
US stocks $3,478.26; bonds $6,608.70; cash $1,913.04; international $0
5
The honest residue
Buying cannot shrink a holding. After the cash is placed, the mix reads 49.53% / 29.11% / 11.61% / 9.74%: closer everywhere, exact nowhere. Finishing the job takes about $1,800 more in contributions aimed the same way, a sale, or a decision to accept the remaining drift.
International stocks end at 11.61% against a 10% target

Three ways back to target

Investor.gov lists three ways to rebalance, and the right one is usually decided by cost rather than by math, since all three aim at the same target mix. Sell and buy: sell the overweight categories and use the proceeds to buy the underweight ones. This finishes the job in one step, at any drift size, and is the only route that can. Its costs are transaction fees where they apply and, in a taxable account, capital gains realized on the sales. Buy with new money: direct savings, dividends, or a windfall at the underweight side, as the buy-only plan on this page lays out. No sales, no realized gains, but the correction is limited by how much cash is arriving relative to the drift. Redirect contributions: if you invest every month, point the whole contribution at the underweight holdings until the mix restores itself. The slowest route, and for a portfolio with regular contributions often the only one ever needed, because the drift of a few points is smaller than a year of contributions aimed deliberately.

Whichever route you use, Investor.gov's caution applies before the trade, not after: check whether the method you chose triggers fees or tax consequences, and weigh them against the size of the drift you are correcting. Rebalancing a portfolio that is one point out of line, at the cost of a taxable sale, is precision purchased too dearly. A portfolio ten points out of line is a different risk position than the one you chose, and correcting it is worth a modest cost.

How to use this calculator well

Aggregate before you enter. The four rows are categories, not individual funds: if three accounts each hold a US stock fund, their combined value is the US stocks row, because the allocation you chose describes the whole portfolio, not each account separately. Work out where rebalancing is cheapest first: sales inside tax-advantaged accounts realize no tax, so a portfolio can often be corrected almost entirely inside one account while the others are left untouched. Set your rule in advance, on the calendar or on a drift threshold such as five percentage points, and then let the rule, not the headlines, tell you when to open this page.

Frequently Asked Questions

What is rebalancing?
Bringing a portfolio back to the asset allocation you originally chose. Investor.gov, the SEC's investor education site, defines it exactly that way: over time some investments grow faster than others, the mix drifts away from your goals, and rebalancing restores it so the portfolio does not overemphasize one category and carries the level of risk you intended. If stocks were supposed to be 60% of your portfolio and a strong run takes them to 80%, rebalancing means selling some stocks or buying the underweight categories until 60% is restored.
How often should I rebalance?
On a schedule or on a threshold, and in either case relatively infrequently. Investor.gov notes the two common approaches: many investors rebalance at regular intervals such as every six or twelve months, while others rebalance only when a holding's share of the portfolio has moved by more than a preset percentage, such as five points. What the guidance warns against is constant tinkering. Drift of a point or two is noise; the rebalance is for drift that has changed the risk you are carrying.
What is buy-only rebalancing?
Restoring the mix with new money instead of trades: contributions and other new cash are aimed at the underweight holdings until they catch up, and nothing is sold. Its limits are arithmetic. New cash can only add; it cannot shrink an overweight holding, it can only dilute it. If a holding is overweight by more than the new cash can dilute, buy-only gets part of the way there, as the worked example on this page shows: $12,000 of new cash takes international stocks from 13% toward their 10% target only as far as 11.61%. The rest of the correction waits for more contributions, a redirect of future ones, or a sale.
Does rebalancing increase returns?
That is not its purpose, and no honest calculator should promise it. Rebalancing controls risk: it stops a winning category from quietly becoming most of your portfolio, which is risk you never chose. Investor.gov frames the side effect as a discipline, noting that rebalancing means shifting money away from what has done well toward what has lagged, which forces a buy-low, sell-high pattern. Whether that adds return over any given period depends on what markets do next; the risk correction happens either way.
What does rebalancing cost?
Potentially two things, both worth checking before you trade: transaction fees, and tax. Investor.gov specifically advises considering whether your method of rebalancing will trigger fees or tax consequences. In a taxable account, selling an overweight holding that has gained value realizes a capital gain in that tax year. That is the practical argument for the buy-only route, or for rebalancing inside tax-advantaged accounts first, whenever new money is arriving anyway.
Why must my targets add to 100%?
Because a target is a share of one whole portfolio. Four targets of 50, 30, 10, and 10 describe every dollar exactly once. Targets that add to 90 leave a tenth of the portfolio unassigned; targets that add to 110 promise the same dollars to two categories. The calculator refuses both, because a trade list built on targets that do not sum to the whole cannot balance, and quietly rescaling your numbers would change the allocation you actually chose.
Live Math Engine
Verified 2026 Standards
Your data stays private - we don't store your calculations
Last Updated:

The Mechanics of Digital Tools

In the modern web ecosystem, digital utilities rely on client-side JavaScript execution to deliver immediate results without requiring a server round-trip. This means the calculations happen directly within your browser, ensuring maximum privacy and zero latency. The architecture of this tool is built on strict type-checking and robust error handling to guarantee the integrity of the output.

Ensuring Data Accuracy and Privacy

When utilizing online tools, data privacy is paramount. Because this calculation is processed entirely on your local device, none of the inputs you provide are stored, transmitted, or analyzed by third-party servers. You can use this utility with the confidence that your personal data remains strictly confidential.

The Evolution of Utility Applications

Here is the thing: the internet has democratized access to complex problem-solving. Tasks that once required specialized software or tedious manual reference charts can now be accomplished instantly through streamlined web interfaces. This tool represents a commitment to providing high-quality, accessible utilities that solve specific problems efficiently.

Best Practices for Utilizing This Tool

To get the most accurate result, ensure that all input parameters are entered correctly and in the requested format. Pay attention to the units of measurement required by the fields. If you are using this output for professional or official purposes, it is always recommended to verify the result through a secondary method.

Frequently Asked Questions

How accurate is the Portfolio Rebalancing Calculator?
The calculator applies the displayed formula to the values you enter. Rounding and assumptions can affect the result, so verify it against an authoritative source before using it for an official or legal purpose.
Is my data stored or tracked?
No. This tool processes all mathematical operations strictly within your local browser environment. No personal data or inputs are transmitted to or stored on our servers.
How frequently is this tool updated?
All mathematical logic, constants, and tax brackets are audited annually to ensure compliance with the latest 2026 global standards.

Sources & Citations

  • Standard Mathematical Algorithms - IEEE Computation Standards
  • Data Integrity & Local Processing Guidelines - W3C
  • General Mathematical Verification - National Institute of Standards and Technology (NIST)

Finance Editorial Desk

Financial Calculator Research | Formula review, Public-source data checks

“The finance desk maintains mortgage, tax, retirement, loan, and investment calculators using documented formulas, public agency references, and repeatable test cases. These tools provide educational estimates, not personalized financial advice.”

Deep Dive: Understanding the Portfolio Rebalancing Calculator

Enter current holding values and target percentages to get exact buy and sell amounts, plus a buy-only plan for placing new cash without selling. Here is how it works and why this specific computation is critical for your larger goals.

The Mechanics of Digital Tools

In the modern web ecosystem, digital utilities rely on client-side JavaScript execution to deliver immediate results without requiring a server round-trip. This means the calculations happen directly within your browser, ensuring maximum privacy and zero latency. The architecture of this tool is built on strict type-checking and robust error handling to guarantee the integrity of the output.

Ensuring Data Accuracy and Privacy

When utilizing online tools, data privacy is paramount. Because this calculation is processed entirely on your local device, none of the inputs you provide are stored, transmitted, or analyzed by third-party servers. You can use this utility with the confidence that your personal data remains strictly confidential.

The Evolution of Utility Applications

Here is the thing: the internet has democratized access to complex problem-solving. Tasks that once required specialized software or tedious manual reference charts can now be accomplished instantly through streamlined web interfaces. This tool represents a commitment to providing high-quality, accessible utilities that solve specific problems efficiently.

Best Practices for Utilizing This Tool

To get the most accurate result, ensure that all input parameters are entered correctly and in the requested format. Pay attention to the units of measurement required by the fields. If you are using this output for professional or official purposes, it is always recommended to verify the result through a secondary method.

Method and Limitations

This tool applies the formula and assumptions shown on the page to the values you enter. Rounding, changing rates, local rules, and incomplete inputs can all affect the result. Use the output as an educational estimate and verify important financial, health, tax, legal, or engineering decisions with an appropriate qualified professional.

More Investment Calculators

Calculator methods and editorial structure reviewed July 11, 2026. Results are estimates; verify regulated rates, eligibility rules, and professional decisions with the cited primary source.

Important: Educational Purposes OnlyThe calculators, estimates, and financial formulas provided on CalculatorVillage.com are for informational and educational purposes only. They are not intended as certified financial planning, tax, legal, or investment advice. Actual rates, terms, and returns will vary. Always consult with a qualified professional before making significant financial decisions.