Portfolio Allocation Calculator
✦ Finance & MoneyUse this free portfolio allocation calculator to see how your holdings compare to your target percentages — and get the exact buy/sell amounts needed to rebalance, including a cash-only option that directs new investment toward underweight positions without selling.
- ✓ Calculated in your browser
- ✓ Nothing you type is stored
- ✓ No sign-up required
- ✓ Formula and sources shown
The formula
Portfolio allocation, drift and rebalancing
Total portfolio value V = Σ currentValue_i
Current allocation (%) currentPct_i = currentValue_i / V x 100
Drift (pp) drift_i = currentPct_i - targetPct_i
Buy/sell amount amount_i = (targetPct_i / 100 x V) - currentValue_i
Cash-only shortfall short_i = max(0, targetPct_i / 100 x (V + newCash) - currentValue_i)
Full rebalance sells overweight holdings and buys underweight holdings so every position hits its target at once. Cash-only rebalance never sells: it ranks holdings by their shortfall against the new total and fills the largest shortfall first, then the next, until the new cash runs out — so a small contribution may all go to one holding. Transaction costs and taxes are not modelled; they can materially affect which approach is better in a taxable account.
Calculating it by hand
- Enter a name, current dollar value and target percentage for each holding.
- Add or remove rows until your full portfolio is entered (minimum 2, maximum 8 holdings).
- Confirm the target percentages sum to exactly 100% — the running total below the rows shows where you are.
- Read the drift: a positive drift means you are overweight (above target); negative means underweight (below target).
- The headline is the amount to move in a full rebalance; each row shows the exact buy or sell to reach its target.
- To rebalance using only new cash — without selling — open Advanced and enter the amount you plan to invest; it goes to the most underweight holdings first.
Worked examples
Rebalancing after a stock rally — the sample 60/30/10 portfolio
Portfolio: US Stocks $68,000 (target 60%), US Bonds $25,000 (target 30%), Cash / MMF $7,000 (target 10%).Total = $68,000 + $25,000 + $7,000 = $100,000. Current split: 68% / 25% / 7%.Drift: stocks +8.0 points (overweight), bonds −5.0 points, cash −3.0 points (underweight).Target values: stocks $60,000, bonds $30,000, cash $10,000.Rebalance: SELL $8,000 of stocks; BUY $5,000 of bonds and $3,000 of cash.
Amount to rebalance: $8,000 — sell $8,000 of US Stocks; buy $5,000 of US Bonds and $3,000 of Cash / MMF. Largest drift 8.0 percentage points.
Two-class portfolio — overweight stocks, underweight bonds
Portfolio: Stocks $70,000 (target 50%), Bonds $30,000 (target 50%).Total = $100,000. Current split: 70% / 30%.Drift: stocks +20.0 points (overweight), bonds −20.0 points (underweight).Target values: stocks $50,000, bonds $50,000.Rebalance: SELL $20,000 of stocks; BUY $20,000 of bonds.
Amount to rebalance: $20,000 — sell $20,000 of stocks and buy $20,000 of bonds.
Cash-only rebalance — deploying $5,000 of new cash without selling
Portfolio: Stocks $60,000 (target 70%), Bonds $30,000 (target 20%), Cash / MMF $10,000 (target 10%), plus $5,000 of new cash.New total after the cash = $105,000; target values = stocks $73,500, bonds $21,000, cash $10,500.Shortfalls: stocks $13,500, cash $500; bonds none (already $9,000 above target).The largest shortfall is filled first: all $5,000 goes to stocks, leaving nothing for cash. Nothing is sold.After the cash: stocks $65,000 (61.9%), bonds $30,000 (28.6%), cash $10,000 (9.5%) — the drift narrows but closes fully only with a sale of bonds.
BUY $5,000 of stocks, no selling; portfolio value after the cash $105,000.
Methodology
Why allocation drifts and how to fix it
Most people know their target mix but are surprised how far they've drifted after a year of market movement. The percentage-point gap between where you are and where you want to be is the only number that tells you whether you actually need to act.
Read sources and limitsWhat is portfolio drift and why does it matter?
Portfolio drift is the gap, in percentage points, between your current allocation and your target. If you planned 60% stocks and a rally has pushed that to 68% — the page's sample portfolio — you carry 8 points of stock exposure you did not choose. Drift is simply what different returns do to a fixed mix.
It matters because of risk. A mix that drifts toward stocks also drifts toward volatility: after a long stock rally, the bonds that cushioned a 60/40 portfolio are a smaller share of it, so the next fall in stocks hurts more in dollars than it would have at the start. Watching drift keeps you aware of the risk you actually hold.
Should you do a full rebalance or a cash-only rebalance?
A full rebalance sells what is overweight and buys what is underweight, bringing every holding to target at once. Inside an IRA or 401(k) selling has no tax consequence, so it is the quickest fix there. In a taxable account, selling an appreciated holding realises a capital gain, a cost these buy and sell amounts do not include.
A cash-only rebalance uses new money — a contribution, a bonus, dividends — to buy what is underweight, with no sales. It suits taxable accounts when the drift does not justify the tax cost of selling, but it needs new cash and may take several contributions to close a large gap. Enter or clear the new-cash amount under Advanced to switch between the two.
How do you read the buy and sell amounts?
Each holding shows its current value and share, its target, its drift and the dollar buy or sell needed to reach target. In a full rebalance the sells always equal the buys — money moves from overweight to underweight positions — and the headline shows that amount.
A holding more than 5 percentage points from target is highlighted. That is a commonly used review threshold, not a rule: some investors use 10 points, others rebalance on a calendar whatever the drift. The calculator does not tell you when to rebalance; it shows what a rebalance would involve so you can judge whether the drift justifies it.
How often should you rebalance your portfolio?
There is no single correct frequency. The two common approaches are calendar rebalancing, on a fixed schedule such as once a year, and threshold rebalancing, whenever a holding drifts a set distance such as 5 points from target. Calendar rebalancing is simpler; threshold rebalancing responds to markets. Many investors combine them: check yearly, act only past the threshold.
Costs push toward rebalancing less often. A commission or spread that is negligible on a $500,000 portfolio is a bigger share of a $20,000 one, and in a taxable account each sale of an appreciated holding can create a taxable gain. Weigh those costs against the benefit of keeping the risk you intended, and use the dollar amounts here before you decide.
What does this portfolio allocation calculator not model?
It is a snapshot at the values you enter. It does not know your purchase prices, tax lots or account types, so it cannot tell whether a sale realises a gain or a loss; commissions, spreads and redemption fees are taken as zero, and wash-sale rules are not checked. Enter current market values, not what you paid.
This calculator provides educational estimates based solely on the assumptions you enter. It is not investment, tax, legal or financial advice. Investing involves risk, including possible loss of principal; actual results will differ.
Portfolio Allocation questions
How do I calculate my portfolio allocation percentage?
Divide each holding's current value by the total portfolio value and multiply by 100: $68,000 of stocks in a $100,000 portfolio is a 68% allocation. The calculator does this for every holding at once and shows the result beside your target, so you can see the gap — 8 points over a 60% target in that case.
What does portfolio drift mean?
Drift is the gap in percentage points between your current allocation and your target. If your target is 60% stocks and stocks have grown to 68% of the portfolio, you have drifted 8 points overweight. Drift builds naturally because assets grow at different rates; it is not a problem in itself, but it means your actual risk has moved away from what you intended.
How often should I rebalance my portfolio?
There is no single correct answer. The main approaches are calendar rebalancing, on a fixed schedule such as yearly, and threshold rebalancing, whenever a holding drifts a set distance such as 5 points. In a tax-advantaged account rebalancing has no tax cost; in a taxable account, selling appreciated holdings realises gains. Many investors check yearly and rebalance only if a threshold has been crossed.
How do I rebalance my portfolio without selling?
Direct new money — contributions, bonuses, dividends — to the underweight holdings. Buying more of them raises their share without selling the overweight ones and realising gains. Enter the amount under Advanced and the calculator sends it to the most underweight holding first, then the next: $5,000 into a portfolio short $13,500 of stocks all goes to stocks.
What is target asset allocation?
Target asset allocation is the share of your portfolio you intend to hold in each asset class — for example 60% stocks, 30% bonds and 10% cash. The right target depends on your goals, time horizon and risk tolerance. This calculator does not suggest one; it takes the targets you enter and shows how your holdings compare. The SEC's Investor.gov explains how allocation, diversification and rebalancing fit together.
Does rebalancing a portfolio improve returns?
Not reliably — its main job is controlling risk. Rebalancing stops one asset class from growing to dominate the portfolio. Its effect on returns depends on how markets move: when assets swing back and forth it can help by buying after falls, and in a long one-way trend it lags by trimming the winner. Judge it by whether it keeps the risk you chose, not by return.
What is a 60/40 portfolio?
A 60/40 portfolio holds 60% stocks and 40% bonds, a common moderate-risk benchmark that combines growth from stocks with steadier bond income. Model it with two holdings at 60% and 40% targets and your current values. The calculator makes no recommendation about whether 60/40 suits you; it shows how far your mix has drifted from whatever target you set.
Can this calculator handle more than 8 holdings?
The limit is 8. For a larger portfolio, group holdings by asset class — add all U.S. stock funds into one "US stocks" row, all bond funds into "Bonds", and so on. That gives an accurate picture at the asset-class level, which is usually where rebalancing decisions are made; within a class you can then decide which fund to buy or sell.
Does rebalancing trigger capital gains tax?
Only when you sell an appreciated holding in a taxable account; rebalancing inside a 401(k), IRA, HSA or 529 has no tax effect. Selling a fund bought for $40,000 and now worth $60,000 realises a $20,000 gain, taxed at the long-term rates of 0%, 15% or 20% if held more than a year, or at ordinary rates if not (IRS Topic 409). Directing new money to underweight assets avoids the sale.
What is threshold rebalancing, and what is the 5/25 rule?
Threshold rebalancing acts on drift, not the calendar. The 5/25 rule of thumb rebalances a holding when it drifts 5 percentage points in absolute terms or 25% of its target, whichever comes first. A 60% stock target triggers at 55% or 65%; a 10% target triggers at 7.5% or 12.5%, because 25% of 10 is 2.5 points — so small positions are not ignored.
How do I calculate how much to buy or sell to rebalance?
Multiply each target percentage by the total portfolio value for its target amount, then subtract the current value: positive is a buy, negative a sell. A $100,000 portfolio with a 60% stock target should hold $60,000; at $68,000, sell $8,000 and move it to the holdings below target. In a full rebalance the buys and sells net to zero.
Should I rebalance my 401(k)?
Yes, on the same schedule as the rest of your portfolio, and it is easier there because trades inside a 401(k) create no taxable gains. Many plans offer automatic rebalancing, and target-date funds rebalance internally. If you hold a 401(k), an IRA and a taxable account, treat them as one portfolio and make the tax-free trades in the retirement accounts, so the taxable account rarely needs a sale.
Source notes
Method, sources & limitations
Every figure on this page comes from the formula above applied to the values you enter. Nothing is estimated from market data, and no result is a forecast. These are the sources behind the method and any fixed figures it uses:
- U.S. Securities and Exchange Commission (Investor.gov) — Asset allocation, diversification and rebalancing
- FINRA — Asset allocation and diversification
- IRS Topic No. 409 — Capital gains and losses
- IRS Publication 550 — Investment Income and Expenses (sales and trades of investment property)
Educational information only. Results are estimates produced from the assumptions you enter, and are not financial, tax, legal or medical advice. Check anything that matters against a qualified professional and the cited sources.