Portfolio management and allocation analytics

Portfolio Rebalancing & Allocation Calculator

Compare your current portfolio with your target allocation, calculate illustrative buy-and-sell adjustments, explore contribution-only rebalancing and understand how costs, unit restrictions and available cash affect the result.

Portfolio tools

How WiT Markets handles figures

Current portfolio value

USD 10,000.00Holdings plus the investable cash field. A cash row is already inside the holdings, so it is not added again.

Target allocation status

100%

Targets are usable when they add up to 100%.

Current portfolio drift

10.00%

Half the sum of absolute weight gaps, before the contribution.

Value after new contributions

USD 10,000.00

Before transaction costs.

Estimated trading costs

USD 0.00

Projected value after costs

USD 10,000.00

Starting value plus the contribution, minus modelled costs.

Residual cash

USD 0.00

Unallocated cash after trades. A cash holding is separate.

Post-rebalance drift

0.00%

A figure of zero is arithmetic. It does not mean the mix is suitable.

Portfolio holdings

Each row keeps its own id, so two holdings can share a name. Current weight uses the holdings plus the cash field, before the contribution. Quantity is value divided by the unit price you type. That price is an assumption, not a live quote.

Editable holdings. Weights and gaps update from these figures.
HoldingAsset classCurrent valueCurrent weightTarget weightUnit priceQuantityDifference from targetDo not sell
70.00%140USD -1,000.00
20.00%100USD 1,000.00
10.00%—USD 0.00
Rebalancing mode

Switching mode keeps the holdings, the cash figures and any manual amounts. Manual mode is a scenario, not an order.

Available capital

Cash available for new purchases before trades, after the reserve: USD 0.00.

Transaction costs
Execution constraints

Unit prices sit on each holding. A missing or zero price does not invent a quantity. In whole-unit mode that row cannot trade.

Advanced settings

A tolerance is a planning rule you enter. It is not a threshold this site recommends for every investor.

Do-not-sell is set on each holding. Those rows are excluded from sales and still count in the portfolio value.

Portfolio allocation — before, target and after

Each holding shows the current weight, the target weight and the proposed weight after feasible trades. The text under each row repeats the values, the proposed holding value and the remaining drift.

Current Target After

  • Shares
    Current value USD 7,000.00, current weight 70.00%. Target 60.00%. Proposed value USD 6,000.00, proposed weight 60.00%. Remaining drift 0 pp.
  • Bonds
    Current value USD 2,000.00, current weight 20.00%. Target 30.00%. Proposed value USD 3,000.00, proposed weight 30.00%. Remaining drift 0 pp.
  • Cash
    Current value USD 1,000.00, current weight 10.00%. Target 10.00%. Proposed value USD 1,000.00, proposed weight 10.00%. Remaining drift 0 pp.

Illustrative portfolio trade plan

The theoretical adjustment is the gap to the target value. The feasible trade is what remains after unit rules, fees, cash and the restrictions you set. They are shown separately. Nothing on this page is sent as an order.

Illustrative trades. Not broker instructions.
HoldingCurrent valueCurrent weightTarget weightActionTheoretical adjustmentFeasible tradeEstimated unitsEstimated feesProposed valueProposed weightRemaining drift
SharesUSD 7,000.0070.00%60.00%SellUSD -1,000.00USD -1,000.00-20USD 0.00USD 6,000.0060.00%0 pp
BondsUSD 2,000.0020.00%30.00%BuyUSD 1,000.00USD 1,000.0050USD 0.00USD 3,000.0030.00%0 pp
CashUSD 1,000.0010.00%10.00%HoldUSD 0.00USD 0.00—USD 0.00USD 1,000.0010.00%0 pp

Cost of rebalancing

Gross purchases
USD 1,000.00
Gross sales
USD 1,000.00
Percentage fees
USD 0.00
Fixed commissions
USD 0.00
Per-unit commission
USD 0.00
Spread allowance
USD 0.00
Total estimated costs
USD 0.00
Costs as a share of the starting value
0.00%
  1. Starting portfolio valueUSD 10,000.00
  2. New contributionUSD 0.00
  3. Modelled transaction costsUSD -0.00
  4. Projected portfolio valueUSD 10,000.00

Moving value between cash and holdings does not create or destroy wealth. The identity used here is starting value plus the external contribution, minus the modelled costs. Purchases and sales are transfers inside that total.

Cash remaining after rebalancing

Opening investable cash
USD 0.00
New contribution
USD 0.00
Proceeds from sales
USD 1,000.00
Cost of purchases
USD 1,000.00
Transaction costs
USD 0.00
Reserve left unspent
USD 0.00
Final unallocated cash
USD 0.00

The cash field is unallocated money. A holding classed as cash stays on its own row and is not this balance. Whole-unit rounding can leave cash uninvested, and that remainder can stop the weights from landing on the targets. The plan does not borrow: a trade set that would make this balance negative is marked infeasible or reduced.

How much closer does rebalancing get you?

Deviation before
10.00%
Deviation after
0.00%
Reduction
100.00%
Largest remaining overweight
None above half a percentage point
Largest remaining underweight
None below half a percentage point

Drift for a holding is its weight minus its target, in percentage points. Total deviation is half the sum of the absolute differences, including unallocated cash when that cash has no target row. Percentage points are not a percent change in price.

Drift before trades

  • Shares
    Above target, +10 pp
  • Bonds
    Below target, -10 pp
  • Cash
    Matches target, 0 pp

Drift after feasible trades

  • Shares
    Matches target, 0 pp
  • Bonds
    Matches target, 0 pp
  • Cash
    Matches target, 0 pp

Compare rebalancing approaches

All four use the holdings and targets currently in the table. A card states when its trading rule differs. Applying a card changes the mode or the unit rule. It does not overwrite holdings or manual amounts. The figures show a cost and precision trade-off. They do not rank one approach as suitable for every investor.

Buys and sells

Fractional units. Same holdings, targets, cash and costs.

Value after contribution and costs
USD 10,000.00
Trades
2
Purchases
USD 1,000.00
Sales
USD 1,000.00
Costs
USD 0.00
Residual cash
USD 0.00
Deviation after
0.00%
Reduction
100.00%

Contributions only

No sales. Same holdings, targets, cash and costs.

Value after contribution and costs
USD 10,000.00
Trades
0
Purchases
USD 0.00
Sales
USD 0.00
Costs
USD 0.00
Residual cash
USD 0.00
Deviation after
10.00%
Reduction
0.00%

Whole units

Buys and sells, rounded toward zero. Same cash and costs.

Value after contribution and costs
USD 10,000.00
Trades
2
Purchases
USD 1,000.00
Sales
USD 1,000.00
Costs
USD 0.00
Residual cash
USD 0.00
Deviation after
0.00%
Reduction
100.00%

Manual what-if

Uses the trade amounts typed for manual mode.

Value after contribution and costs
USD 10,000.00
Trades
0
Purchases
USD 0.00
Sales
USD 0.00
Costs
USD 0.00
Residual cash
USD 0.00
Deviation after
10.00%
Reduction
0.00%
Same starting holdings and targets. Constraints differ where the card says so.
ApproachValueTradesPurchasesSalesCostsResidual cashDeviation afterReduction
Buys and sellsUSD 10,000.002USD 1,000.00USD 1,000.00USD 0.00USD 0.000.00%100.00%
Contributions onlyUSD 10,000.000USD 0.00USD 0.00USD 0.00USD 0.0010.00%0.00%
Whole unitsUSD 10,000.002USD 1,000.00USD 1,000.00USD 0.00USD 0.000.00%100.00%
Manual what-ifUSD 10,000.000USD 0.00USD 0.00USD 0.00USD 0.0010.00%0.00%

Understanding your rebalancing plan

  • Under your entered assumptions, Shares is the most overweight holding before trades, by +10 pp.
  • Under your entered assumptions, Bonds is the most underweight holding before trades, by -10 pp.
  • Under your entered assumptions, the allocation deviation after the trades is zero. That is an arithmetic result. It does not establish that the mix is suitable or low risk.

Import, export and saved scenarios

Saved scenarios stay in this browser only. Clearing site data removes them. Holdings are not placed in the page address and are not sent to WiT Markets. A broker export will not match this template unless its columns use these names.

No scenario is saved in this browser yet.

How portfolio rebalancing works

A current weight is a holding’s value divided by the portfolio total. A target weight is the share you type. The gap is the target value minus the current value. In the buy-and-sell mode, a positive gap is a purchase and a negative gap is a sale. The working total includes the new contribution, so the targets are applied to the portfolio after that money arrives, not only to the original total.

Selling and buying to rebalance

With no costs and fractional units, each holding is moved to its target value and the sales fund the purchases. Cash listed as a holding is one of those rows. The separate cash field is extra money that is not already in a row. Using both counts both. A reserve entered against that cash field is left unspent.

Contribution-only rebalancing

Contribution-only mode does not sell. It measures underweight gaps on the portfolio value after the contribution, then funds those gaps in proportion to their size, up to the cash that can be spent. If the cash is too small, the remaining gaps stay. The rule is proportional. It is not a claim that no other set of purchases could leave a smaller deviation.

Whole shares and fractional shares

When a unit price is present, quantity is the trade value divided by that price. Whole-unit mode rounds toward zero to the increment you set before the fees, the cash and the new weight are calculated. A missing or zero price does not produce a quantity. The monetary gap is still shown, and the feasible trade for that row is zero. Prices on this page are figures you type, not live quotes.

Trading fees and costs

A percentage fee, a fixed fee, a per-unit commission and a spread allowance are added as separate costs. The spread is not also included in the percentage fee. Purchases are reduced when paying those costs would require borrowing. The portfolio value after the trades is the starting value plus the external contribution, minus those costs. Transfers between holdings do not change the total on their own.

Rebalancing tolerance

A tolerance is a number of percentage points you choose. While it is on, a holding already inside that band is left unchanged. That can avoid a small trade, and it can also leave the mix away from the targets. No single band is presented here as appropriate for every investor.

Rebalancing and taxes

A sale can be a taxable event. Whether it is, and at what rate, depends on the account, the holding period and the jurisdiction. This page does not estimate a tax. It does not store a tax rate.

Common mistakes

  • Ignoring transaction costs, then treating the frictionless gap as the trade that will be filled.
  • Counting the same cash both as a holding and in the cash field.
  • Reading the current value as if it were already the target value.
  • Forgetting that a contribution changes the total the targets are applied to.
  • Typing a unit price that is no longer the price you could deal at. This page does not refresh prices.
  • Assuming the targets can be hit exactly once units, fees or a no-sale rule apply.
  • Overlooking a whole-share rule that leaves cash uninvested.
  • Treating a completed rebalance as evidence that future returns will be better.
  • Ignoring that a sale may have tax consequences this page does not calculate.

Worked example

The desk opens with shares at 7,000, bonds at 2,000 and a cash holding at 1,000. Targets are 60, 30 and 10 percent. The separate cash field, the contribution and the costs are zero, and fractional units are allowed. The portfolio value is 10,000. Under those assumptions the plan sells 1,000 of shares and buys 1,000 of bonds. The cash holding stays at 1,000. Unallocated cash is 0. The value after the trades is 10,000, the weights are 60, 30 and 10 percent, and the allocation deviation is 0 percent of the portfolio. These figures are the same calculation the desk uses.

Assumptions and limitations

The desk compares the values and target weights you type. Buy-and-sell mode can sell an overweight holding and buy an underweight one. Contribution-only mode spends available cash and does not sell. A manual mode applies trade amounts you enter. Cash already listed as a holding is not added a second time through the cash field. The amounts are a calculation. They are not orders.

How the calculation works

The starting value is the sum of the holdings plus investable cash that is not already a row. The pre-trade value adds the contribution. Each target value is that pre-trade total times the target percent. In buy-and-sell mode the theoretical trade is target value minus current value. Contribution-only mode keeps only the underweight gaps and funds them in proportion to those gaps, up to cash that remains after the reserve, the minimum balance and the modelled costs. Whole units round toward zero using the unit price before fees and weights are calculated. A percentage fee, a fixed fee, a per-unit commission and a spread allowance are separate costs. Ending unallocated cash is opening cash plus the contribution plus sale proceeds, minus purchases and costs. Allocation deviation is half the sum of absolute differences between decimal weights. The final portfolio value is the starting value plus the contribution, minus the modelled costs.

Assumptions

  • Target weights add up to 100 percent before a plan is treated as usable.
  • A cash holding and the cash field are different. Entering both counts both.
  • Whole-unit mode needs a unit price above zero. A missing price leaves that row untraded and still shows the monetary gap.
  • The reserve cannot exceed the cash plus the contribution, and it is not spent.
  • The plan does not borrow. A manual trade set that needs more cash is marked infeasible.
  • Short sales and liabilities are not modelled.

A worked example

Shares worth 7,000, bonds worth 2,000 and a cash holding of 1,000, with targets of 60, 30 and 10 percent. The separate cash field, the contribution and every cost are zero, and fractional units are allowed. The plan sells 1,000 of shares and buys 1,000 of bonds. The cash holding stays at 1,000. Unallocated cash is 0. The portfolio remains 10,000 and the weights are 60, 30 and 10 percent, so the allocation deviation after the trades is 0. That zero is arithmetic. It is not a statement that the mix is suitable.

Limitations

Exact targets are not always reachable once units, fees, a reserve or a no-sale rule apply. Contribution-only funding is proportional to the underweight gaps. It is not a proof that the deviation is the smallest possible. Prices can move before a trade is filled. Tax on a sale is not estimated. The amounts are illustrative calculations, not instructions, and the page does not connect to a brokerage account.

Change one input at a time if a result looks surprising. The arithmetic is only as careful as the numbers you type, and it does not know your broker’s contract size.

Portfolio Rebalancing & Allocation Calculator recalculates as you type. Reset restores the starting figures on that page. Those figures are an illustration of the arithmetic, not a market observation and not a record of anyone’s account. Copy and export repeat the same rounded results. Cash amounts on screen are shown to two decimal places. A conversion, a margin schedule, or a programme rule that you leave blank is not invented. A zero divisor, a stop on the wrong side of an entry, or a target-weight total other than 100 percent produces a written explanation instead of a blank or infinite number.

Explore professional portfolio tracking software. The calculators on this site stay free.

Sources and review

Written by: WiT Markets Editorial. Writes and structures WiT Markets pages. Separates a sourced fact from a cell that is Not confirmed.

Review: Editorially reviewed. This is not a qualified specialist review and it is not a legal sign-off.

Last reviewed: . Next review due . The date is an editorial pass. It is not a live check of every third-party fee.

Regulatory and official sources

Methodology. Editorial policy. Corrections. Report an error.

Portfolio rebalancing and allocation calculator | WiT Markets