Back to Insights

How to rebalance a portfolio, step by step (free calculator)

Portfolio rebalancing is the process of returning your holdings to their target percentages after market moves push them out of alignment. The mechanics are simple, buy what has underperformed and sell what has overperformed, but the order in which you execute trades and the timing of those trades determine how much you pay in taxes and transaction costs. This guide walks you through both the math and the strategy, with a worked example you can run through a free calculator.

Why Rebalance?

Over time, your portfolio's composition drifts. If you start with a 70% stocks, 30% bonds target and stocks outperform for a year, your portfolio might become 78% stocks and 22% bonds without you doing anything. That shift changes your risk. You're now holding more equity risk than you intended, which means greater volatility and potentially a steeper drawdown in a market crash. Rebalancing brings you back to your plan by systematically selling winners and buying losers, which also embeds a contrarian discipline: you're forced to trim positions that have risen most and add to positions that have lagged. Research on diversified portfolios suggests that regular rebalancing helps keep risk closer to your original target, though it does not guarantee returns.

When to Rebalance: Calendar vs. Threshold

Two main approaches exist, and many investors use a hybrid of both.

Calendar rebalancing means picking a fixed schedule, every January 1, or quarterly, and rebalancing regardless of how much drift has occurred. The advantage is simplicity and discipline; you set it and forget it. The disadvantage is that you might rebalance when drift is tiny (wasting transaction costs) or skip months when drift is large because the date hasn't arrived yet.

Threshold rebalancing means setting a tolerance for drift, typically 5 percentage points, and acting only when any asset class drifts past it. In the 70/30 example, you'd rebalance only when stocks hit 75% or bonds fell to 25%. This approach is more efficient but requires monitoring. A common rule of thumb is the 5/25 rule: act when drift exceeds 5 percentage points in absolute terms, or 25% of the target weight, whichever comes first. For a large 70% equity position, the 5-point rule fires first. For a small 5% position in a specialty asset, 25% relative drift (to 6.25%) might trigger action before 5 absolute points do.

Most investors find a hybrid approach practical: rebalance on a fixed schedule, but perform additional rebalancing if drift exceeds your threshold during the year. Research suggests little return difference between calendar and threshold methods; what matters is that you do it consistently.

A Worked Example: 70/30 Drifted to 78/22

Let's say you started the year with a $100,000 portfolio: $70,000 stocks (70%) and $30,000 bonds (30%). After a strong year for equities, you now have $78,000 stocks and $22,000 bonds, for a $100,000 total. Your actual allocation has drifted to 78% / 22%, a 8-point absolute drift from your 70% / 30% target. This exceeds a typical 5-point threshold, so rebalancing is warranted.

To restore the target:

  1. Your target dollar values are: 70% of $100,000 = $70,000 stocks; 30% of $100,000 = $30,000 bonds.
  2. Current holdings are $78,000 and $22,000, respectively.
  3. Difference: stocks are $8,000 overweight; bonds are $8,000 underweight.
  4. Action: sell $8,000 of stocks and buy $8,000 of bonds.

After this trade, you'd hold $70,000 / $30,000 again, matching your target.

Tax-Aware Rebalancing: The Order That Matters

In a taxable account, the order of operations can save thousands in capital gains taxes over time. The optimal sequence is:

First: Direct new contributions to underweight assets. If you're adding fresh cash, deploy it toward the assets that have fallen behind target. If a contribution is large enough to cover the full rebalancing need, you avoid selling entirely.

Example: You're $8,000 short on bonds but you're adding $10,000 in new savings. Direct the entire $10,000 to bonds. You've now bought $8,000 of bonds (meeting rebalancing targets) plus $2,000 extra, without selling any stocks. That $8,000 in stock sales you would have made represents no capital gains tax whatsoever because you never harvested it.

Second: Rebalance inside tax-advantaged accounts (401k, IRA, pension) first. Trades inside these accounts are tax-free, so sell and buy as needed without friction.

Third: Use dividends and interest to rebalance. Direct dividend and bond interest payouts toward underweight positions rather than reinvesting them proportionally.

Last: Sell overweight positions in taxable accounts only if necessary. If you must sell, prefer trimming lots with the smallest gains, or harvest tax losses if available.

The tax saving is concrete. If stocks carry a 30% unrealized gain, selling $8,000 involves roughly $2,400 in taxable gain. At a 20% long-term capital gains rate, that's a $480 tax bill. If contribution-first logic lets you avoid that sale entirely, you save $480 on a single rebalancing event. Over decades, this compounds significantly.

Using the MinMaxDoc Calculator

MinMaxDoc's free portfolio rebalancing calculator automates the math. Here's how to use it:

  1. Enter your current holdings: in the example, $78,000 stocks and $22,000 bonds.
  2. Enter your target percentages: 70% stocks and 30% bonds.
  3. If you have new cash to invest, enter it in the "New cash to invest" field. The calculator will direct this toward underweight assets first.
  4. The calculator shows the exact buy and sell amounts needed. In the 78/22 example with no new cash, it returns: sell $8,000 stocks, buy $8,000 bonds.
  5. If you add, say, $5,000 of new cash, the calculator directs all $5,000 to bonds (the underweight asset), reducing the required stock sale from $8,000 to $3,000.

The tool runs entirely in your browser; nothing you enter is stored or transmitted. It's a pure math engine, it doesn't account for taxes, trading costs, or wash-sale rules, but it gives you the dollar amounts you need to know, leaving the tax and trading decisions to you and your circumstances.

Key Takeaway for MinMaxDoc Users

Rebalancing is straightforward in concept but nuanced in execution. The most important lever you control is the order of operations: direct new money first, tax-sheltered accounts second, taxable sales last. Use the MinMaxDoc calculator to see the exact numbers, but apply the tax-aware ordering based on your own account structure and gains position. Consistency matters more than perfection; whether you rebalance on a calendar schedule or when drift hits a threshold, the act of returning to your target allocation is what preserves the risk profile you chose.


FAQ

How often should I rebalance?

There's no one-size-fits-all answer. Calendar rebalancing (annually or quarterly) is simple and suitable for most investors. Threshold rebalancing (when drift exceeds 5%) is more tax-efficient but requires monitoring. A hybrid approach, rebalance on a schedule, but act if drift exceeds threshold, combines both benefits. Research suggests no significant return difference between methods; consistency is what counts.

Can I rebalance without selling?

Yes. If you have new contributions or reinvested dividends, direct them to underweight assets instead of selling overweight ones. This eliminates or reduces the need to sell, which avoids capital gains taxes in taxable accounts.

Should I rebalance my 401k and brokerage differently?

Yes. Rebalance your tax-advantaged accounts (401k, IRA) first, since trades there are tax-free. In taxable accounts, use new contributions and dividends to rebalance before resorting to sales. This minimizes capital gains tax.

What happens if I don't rebalance?

Without rebalancing, your portfolio's risk profile drifts over time. Winners grow larger; losers shrink. You end up holding more risk than you planned for, which could mean unexpected losses in a market downturn or more volatility than you're prepared for. Rebalancing is about keeping your risk, not your returns, in line with your goal.


Disclaimer: This content is for educational and informational purposes only and does not constitute financial, investment, or tax advice. The information presented reflects the author's opinions and analysis at the time of writing and may not be suitable for your individual circumstances. Always consult with a qualified financial advisor before making investment decisions. Past performance is not indicative of future results. MinMaxDoc and its authors are not registered investment advisors.

Get a free second opinion on your portfolio

See tax-aware buy & sell recommendations tailored to your actual holdings — completely free, no credit card required.

Get my free second opinion →

MinMaxDoc Weekly

Market insights & portfolio education in your inbox. No account needed.

Double opt-in — we'll email you to confirm. Unsubscribe anytime. We never share your address.

MinMaxDoc Editorial Team
Published by

How we research, write, and review the MinMaxDoc Insights you read.

Comments (0)

No comments yet. Be the first to comment!

Join the conversation

You need to be logged in to comment on this article.

Log in to comment Create an account