⚡ Rebalance Action Plan

Drift-Triggered Rebalancing with STCG Warnings — Three Modes, Zero Guesswork

Published: March 21, 2026 | Last Updated: March 21, 2026 | Finmagine Research Team
Rebalance tab in Finmagine Portfolio Manager — showing action plan table with BUY/SELL badges, drift %, and STCG warnings

📚 Multimedia Learning Hub

Learn through multiple formats — read, watch, listen, and test yourself

What You'll Master in This Guide

⚡ Three Rebalancing Modes

Deploy Cash, Sell to Buy, and Both — each designed for a different situation. Know which to pick and why.

📐 The Drift Maths

Exactly how current weight, target weight, drift, BUY qty, and SELL qty are calculated — step by step.

⚠️ STCG Tax Warnings

How the STCG badge works, what it means for your tax bill, and how to act on it before placing orders.

🎯 Custom Target Weights

How the Edit Targets modal works, manual overrides, equal weight reset, and how settings persist across sessions.

📋 What You'll Learn:

  • Why drift-triggered rebalancing beats calendar rebalancing for most Indian equity investors
  • The exact formula for allocating new cash proportionally to underweight stocks
  • How sell proceeds are redistributed — and why all underweight stocks get a fill (not just threshold-breakers)
  • What the ⚠ STCG badge means and how to use it to defer tax-costly sells
  • How to set per-stock target weights and what happens to unassigned stocks
  • Why the tab doesn't execute trades — and exactly what to do after you get the action plan
  • When to run the Backtest tab instead of (or before) rebalancing
🎬

Video Guide — Coming Soon

A full walkthrough video of the Rebalance tab is in production. Subscribe to the Finmagine YouTube channel to be notified when it drops.

🎧

Audio Deep Dive — Coming Soon

An audio commentary walking through the rebalancing logic, mode selection, and tax implications is coming soon.

🎯 25 Flashcards — Test Your Knowledge

Click any card to reveal the answer. Click again to flip back.

Card 1 of 25
What does the Rebalance tab do?
It computes an exact buy/sell action plan to bring your Indian equity portfolio back to your target allocation weights. It tells you which stocks to buy, which to sell, how many shares, and flags STCG tax risk — but does not execute trades.
Card 2 of 25
What are the three rebalancing modes?
1. Deploy Cash — invest new money into underweight stocks only. 2. Sell to Buy — sell overweight stocks and redistribute proceeds to underweight stocks. Zero new cash needed. 3. Both — deploy new cash first, then sell overweights to fill remaining gaps.
Card 3 of 25
In Deploy Cash mode, which stocks receive new cash?
Only stocks whose current weight is more than Threshold % BELOW their target weight. If your threshold is 5% and a stock's target is 8%, it must have drifted below 3% current weight to receive an allocation. Stocks within threshold are not touched.
Card 4 of 25
In Sell to Buy mode, how are sell proceeds distributed?
Proceeds are distributed to ALL underweight stocks (any stock with drift < 0), not just those that breached the threshold. This gives smaller, nudging top-ups to every laggard — proportional to their deficit — while the threshold governs only the SELL trigger.
Card 5 of 25
What does the Threshold % control?
It sets the minimum drift (in percentage points) before an action is triggered. A stock must be >Threshold% ABOVE target to be sold, or >Threshold% BELOW target to receive new cash. Default is 5%. It does not affect how proceeds are redistributed after a sell.
Card 6 of 25
What does the Drift column show?
Drift = Current Weight % − Target Weight %. A positive drift (shown in red) means the stock has grown more than the rest and is overweight. A negative drift (shown in blue) means it is underweight. The Action Plan table is sorted by absolute drift, largest first.
Card 7 of 25
How is a stock's Current % calculated?
Current % = (stock's current market value ÷ total portfolio value) × 100. Market value = LTP × quantity held. Total portfolio value = sum of market values of all holdings with a live price.
Card 8 of 25
How is the cash allocation per stock calculated in Deploy Cash mode?
Allocated cash = Total cash × (stock's deficit ÷ total deficit of all threshold-underweight stocks). A stock 8pp below target gets a larger slice than one 5.5pp below. The allocation is proportional to how underweight each stock is.
Card 9 of 25
Does BUY qty round up or down? What about SELL qty?
BUY: Math.ceil (rounds up) — always buy at least enough shares to cover the deficit, even if it slightly over-spends. SELL: Math.floor (rounds down) — never sell more shares than necessary to eliminate the excess, avoiding over-selling.
Card 10 of 25
What does the ⚠ STCG badge mean?
Short-Term Capital Gains warning. It appears next to a SELL action when the stock's earliest recorded purchase date is less than 1 year ago. Selling within 1 year triggers STCG tax (20% on gains for Indian equities post Budget 2024) instead of the more favourable LTCG rate.
Card 11 of 25
Is the STCG flag 100% accurate for your tax liability?
No — it is indicative. It uses the earliest purchase date for each ticker, not FIFO lot-by-lot calculation. Your actual STCG tax depends on which specific lots are sold, exact holding periods per lot, and prevailing tax rates. Consult a tax professional before acting.
Card 12 of 25
What is the STCG tax rate for Indian equities (post Budget 2024)?
20% on short-term capital gains for equity shares and equity-oriented mutual funds held for less than 12 months. LTCG (held ≥ 12 months) is taxed at 12.5% above the ₹1.25 lakh annual exemption. (Rates as of Budget 2024-25; verify current rates before trading.)
Card 13 of 25
What does the ↺ Equal Weight button do in the Edit Targets modal?
It instantly sets each holding's target weight to 100 ÷ N, where N is the number of holdings. For a 10-stock portfolio, every stock gets a 10% target. It clears all manual overrides and distributes weight perfectly equally. The Total counter resets to 100.0%.
Card 14 of 25
How do manual target weight overrides work for unassigned stocks?
If you manually set targets for some stocks (e.g. HDFC 15%, Titan 12%), the remaining percentage (100 − 27 = 73%) is distributed equally among all stocks that do NOT have a manual override. This lets you tilt towards conviction positions while the rest fill in proportionally.
Card 15 of 25
What must the Total: counter show before you can save target weights?
100.0%. The modal live-updates the total as you edit weights. If it reads anything other than 100.0%, the allocation doesn't make mathematical sense and Save is disabled. Adjust your weights until the counter shows exactly 100.0%.
Card 16 of 25
What does the Summary row below the Action Plan table show?
A one-line snapshot: Buys — number of stocks to buy and total amount; Sells — number of stocks to sell and total amount; and if applicable, a ⚠ STCG warning showing how many sell actions trigger short-term capital gains tax.
Card 17 of 25
Does the Rebalance tab execute trades automatically?
No. It generates an action plan — a list of what to buy and sell with quantities and amounts. You must place orders manually in your broker app (Zerodha, Upstox, Groww, etc.). The tab has no broker integration and cannot place orders on your behalf.
Card 18 of 25
What asset classes does the Rebalance tab support?
Indian Equities (IN_EQ) only — NSE and BSE listed shares. It does not support Mutual Funds, Global Equities, or Global Funds/ETFs. Mutual fund rebalancing requires NAV-based calculation which differs significantly from equity weight mechanics.
Card 19 of 25
When should you choose Deploy Cash over Sell to Buy?
Choose Deploy Cash when: (1) you have fresh savings to invest, (2) you want to avoid any selling (and thus any capital gains tax), or (3) some of your holdings are STCG-flagged and you want to wait before selling them. Deploy Cash is the most tax-efficient rebalancing mode.
Card 20 of 25
What is the risk of setting a very low threshold (e.g. 1%)?
You'll trigger rebalancing actions very frequently — even for tiny drifts that markets naturally correct on their own. This creates unnecessary transaction costs (brokerage, STT, exchange fees) and may generate frequent taxable events. A 3–5% threshold is typically optimal for most portfolios.
Card 21 of 25
A stock has target 8%, current 14%. Is it overweight or underweight? What's the drift?
Overweight. Drift = 14% − 8% = +6%. If your threshold is 5%, a SELL is triggered (6% > 5%). The sell quantity = Math.floor((6/100 × total_portfolio_value) ÷ LTP). Shown in red in the Drift column.
Card 22 of 25
Why does "Both" mode give better rebalancing than either mode alone?
Deploy Cash alone can't fully correct a large overweight. Sell to Buy alone requires selling (tax event). "Both" first uses new cash to reduce the required selling, then sells only the remaining overweight. Result: fewer sells, lower tax, and a more completely rebalanced portfolio.
Card 23 of 25
Are the quantities in the Action Plan exact — should you place them as-is?
They are approximate. The tab uses the live LTP at the time of computation. By the time you place the order, the price may have moved. The disclaimer below the table says: "Quantities are approximate (whole shares, using live price). Verify before placing orders."
Card 24 of 25
Are target weight settings saved across sessions?
Yes. Target weights and the rebalancing configuration (mode, threshold, cash amount) are persisted in your Portfolio Manager settings and synced to the cloud via portfolio-sync. They are restored automatically the next time you open the Rebalance tab.
Card 25 of 25
What tab should you use to test if rebalancing actually improves your returns?
The Backtest tab. It runs four parallel scenarios on your real trade history: Buy-and-Hold vs Threshold Rebalance (gross) vs Threshold Rebalance (net of tax) vs Calendar Rebalance (net of tax). It shows whether disciplined rebalancing beats inertia after paying LTCG and STCG taxes.

⚖️ What Is Portfolio Rebalancing — and Why Does It Matter?

You build a portfolio with intention. HDFC Bank at 10%, Titan at 8%, Bajaj Finance at 7%. Six months later, one of your picks has run up 60% while two others have barely moved. Your 7% Bajaj Finance position is now 12% of the portfolio. You're now running a concentrated bet you never consciously made.

This is portfolio drift — and it happens to every investor, automatically, as markets move. Left unchecked, drift means your winners keep getting bigger (concentration risk) and your laggards keep getting smaller (missing the recovery). Rebalancing is the disciplined act of correcting drift back to your intended weights.

The Core Insight: Rebalancing enforces sell-high-buy-low discipline automatically. You sell shares from stocks that have appreciated beyond their target and buy shares in stocks that have lagged — without needing to make an active call on which is better. It's mechanical mean-reversion applied to your own portfolio.

The Rebalance tab in Finmagine Portfolio Manager makes this concrete: it reads your live holdings, computes the drift for every stock, and outputs an exact action plan — with share quantities, rupee amounts, and tax warnings — so you know exactly what to do today.

⚠️ Rebalancing is not always return-maximising. In a sustained bull run, selling winners to buy laggards can cost you returns. That's why the Backtest tab exists — run it on your portfolio first to see whether rebalancing has historically beaten buy-and-hold in your specific situation, after taxes.

📋 The Action Plan Table — Column by Column

After clicking ⚡ Compute Rebalance, the results table appears with one row per holding. Rows are sorted by absolute drift — the stocks that have drifted furthest from target (in either direction) appear first.

Stock Current Value Current % Target % Drift Action Qty Amount
BAJAJFINSV ₹2.05L 14.2% 8.3% +5.9% SELL ⚠ STCG 5 ₹8,550
DMART ₹1.73L 12.0% 8.3% +3.7%
PGEL ₹50.6K 3.5% 8.3% −4.8% BUY 18 ₹9,216
HDFC ₹45.2K 3.1% 8.3% −5.2% BUY 3 ₹4,110
Summary Row: Below the table, a one-line summary shows total buys (N stocks · ₹X) and total sells (N stocks · ₹X), plus a count of STCG-flagged sells if any. This gives you the cashflow picture at a glance before you go to your broker.

⚡ Three Rebalancing Modes

The most important decision before clicking Compute is choosing the right mode for your situation. Each mode has a distinct use case:

💰

Deploy Cash

You enter a cash amount (e.g. ₹50,000 from your monthly savings). The tab allocates it to stocks that are more than Threshold % below their target weight, proportional to how underweight they are. No selling happens. Zero capital gains tax. Best when: adding fresh savings, or when many holdings are STCG-flagged and you want to defer selling.

🔄

Sell to Buy

No new cash. Stocks more than Threshold % above target are sold; proceeds are redistributed to all underweight stocks (not just threshold-breakers). A complete internal rebalance. Best when: no fresh capital is available, or when your portfolio is significantly skewed and needs surgical correction.

Both

First deploys your cash to threshold-underweight stocks. Then sells overweight stocks and uses proceeds to fill any remaining deficit across all underweight stocks. The most complete rebalancing — minimises required selling by using cash first. Best when: you have fresh capital AND meaningful drift in the portfolio.

Key Rule: In all three modes, the Threshold % only governs what triggers a SELL action and which stocks receive new cash. Once sells happen, their proceeds are always distributed to all underweight stocks (any stock below its target), not just those that breached the threshold. This gives broader coverage of underweight positions.

📐 The Maths — Exactly How It's Calculated

Understanding the underlying maths helps you predict the output before running it — and spot if something looks wrong.

Portfolio Weights

Total Portfolio Value = Σ (LTP × qty) for each holding with a live price
Current Weight % = (stock's market value ÷ Total Portfolio Value) × 100
Drift = Current Weight % − Target Weight %

Overweight → Drift > 0 → potential SELL
Underweight → Drift < 0 → potential BUY

Deploy Cash — BUY Allocation

Eligible stocks = stocks where Drift < −Threshold %
Total deficit = Σ |Drift| for all eligible stocks
Stock allocation = Cash × (|stock drift| ÷ Total deficit)
BUY qty = Math.ceil(allocation ÷ LTP) ← always rounds UP

Example: ₹50,000 to deploy. Two eligible stocks — Stock A is 8pp below target, Stock B is 4pp below. Total deficit = 12pp. Stock A gets ₹50,000 × (8/12) = ₹33,333; Stock B gets ₹50,000 × (4/12) = ₹16,667.

Sell to Buy — SELL Calculation

Eligible stocks = stocks where Drift > +Threshold %
Excess value = (Drift / 100) × Total Portfolio Value
SELL qty = Math.floor(Excess value ÷ LTP) ← always rounds DOWN
Sell proceeds = SELL qty × LTP

Proceeds distributed to: ALL stocks where Drift < 0
(proportional to each stock's deficit vs total deficit of underweight stocks)
Why floor for SELL and ceil for BUY? For sells, you don't want to over-sell — removing too many shares could swing a stock from overweight to underweight. Floor ensures you never sell more than necessary. For buys, you want to at least cover the deficit — ceiling ensures you don't under-buy due to fractional share rounding.

Both Mode

Step 1: Deploy cash to threshold-underweight stocks (same as Deploy Cash mode)
Step 2: Sell overweight stocks (same formula as Sell to Buy)
Step 3: Distribute sell proceeds to ALL underweight stocks,
but only to fill the GAP remaining after Step 1 allocations

Gap = max(0, deficit_value − already_buying_amount)

🎚️ Setting the Right Threshold %

The Threshold % (default: 5) is the most important tuning parameter. It directly controls how often you rebalance and how large the corrective trades are.

Effect of Different Threshold Values

Practical Rule of Thumb: If you have 10–15 stocks in equal weight (~7–10% target each), a 5% threshold works well — it fires when any stock grows to 1.5× its target weight. If you have 20–30 stocks (~3–5% each), consider a 2–3% threshold so meaningful concentrations still trigger action.

🎯 Custom Target Weights — Edit Targets Modal

By default, the Rebalance tab assumes an equal-weight portfolio — every holding gets 100 ÷ N % as its target. For most investors this is a fine starting point. But if you have strong convictions about specific positions, you can set custom targets.

Click ⚙ Edit Targets to open the modal. It shows every holding with its current % and an editable target % field.

How Overrides Work

You don't need to set targets for every stock. The system handles partial overrides intelligently:

Manual targets sum = Σ of weights you've explicitly set
Remaining weight = 100% − Manual targets sum
Auto-equal per stock = Remaining weight ÷ count of stocks WITHOUT a manual target

Example: 12-stock portfolio. You set HDFC at 15% and Titan at 12%. Manual sum = 27%. Remaining = 73%. The other 10 stocks each get 73 ÷ 10 = 7.3% as their auto-target.

Live Total Counter: The modal shows "Total: X%" which updates in real time as you adjust weights. It must read exactly 100.0% before the Save button becomes active. If your manual targets sum to more than 100%, the auto-equal weight becomes negative — the system caps at 0%, so the Total will exceed 100% and Save stays disabled.

↺ Equal Weight Reset

The Equal Weight button instantly sets every stock to 100/N % and clears all manual overrides. Useful when you want to start fresh or quickly check what equal-weight rebalancing would look like.

Settings Persistence

Your target weights, mode, threshold, and cash amount are saved to your Portfolio Manager settings and cloud-synced. The next time you open the Rebalance tab — even on a different device — your configuration is restored automatically.

⚠️ The STCG Tax Warning — Understanding It and Acting on It

One of the most practically useful features of the Rebalance tab is the STCG badge. Indian equity investors face two different capital gains tax regimes depending on holding period:

The 20% vs 12.5% difference is significant. On a ₹50,000 gain from selling a stock held only 9 months, you pay ₹10,000 in STCG tax. Had you waited 3 more months to cross the 1-year mark, you'd pay ₹6,250 (LTCG, assuming you're above the ₹1.25L exemption). A 3-month wait saves ₹3,750 in this example.

How the Tab Detects STCG Risk

The tab uses the earliest purchase date for each ticker across all your recorded trades. If any trade for that stock is less than 1 year old, the ⚠ STCG badge appears when that stock is flagged for selling.

What to Do When You See a STCG Badge

  1. Check how far away the 1-year mark is. If it's 1–3 months away, consider waiting — the tax saving may be worth more than the rebalancing correction.
  2. Use Deploy Cash mode instead — invest new money into underweight stocks without selling the STCG-flagged position.
  3. Accept the STCG if the overweight position is causing meaningful concentration risk that outweighs the tax cost.
  4. Always consult a chartered accountant or tax professional before making decisions based on tax implications.
Limitation: The flag is based on your earliest trade date for each ticker, not FIFO lot-by-lot analysis. If you have 5 lots of HDFC — 2 bought 2 years ago and 3 bought 6 months ago — the tab will NOT show a STCG badge (oldest lot is >1 year). But FIFO means you'd first sell from the 2-year-old lot, which is LTCG. The indicative flag may therefore be over-cautious in some cases.

🗺️ Step-by-Step Rebalancing Workflow

  1. Open the Rebalance tab — available at finmagine.com/portfolio/ for Premium subscribers. Ensure your trades are up to date and LTPs have been refreshed (hit ⟳ if needed).
  2. Choose your Mode — Deploy Cash if you have new savings, Sell to Buy if you're working within the existing portfolio, Both for the most complete rebalance.
  3. Set Cash to Deploy (Deploy Cash / Both modes only) — enter your available investment amount. The tab uses this exact figure.
  4. Set Threshold % — start with the default of 5%. Lower it if you have a large concentrated portfolio that needs more frequent nudging; raise it if you prefer a light-touch approach.
  5. Edit Targets (optional) — click ⚙ Edit Targets if you want custom weights. Use ↺ Equal Weight to reset to equal distribution. Ensure Total reads 100.0% before saving.
  6. Click ⚡ Compute Rebalance — the Action Plan table appears instantly.
  7. Review the Drift column — stocks sorted by absolute drift. The largest drifts are at the top. Confirm the direction (over vs under) makes intuitive sense given recent market moves.
  8. Check the Summary row — total buys and sells at a glance. Verify the total buy amount is within your cash budget (Deploy Cash mode) or covered by sell proceeds (Sell to Buy mode).
  9. Review STCG badges — for each ⚠ STCG sell, decide: wait for the 1-year mark, accept the tax, or use Deploy Cash instead.
  10. Place orders manually in your broker app — use the Qty and Amount columns as your reference. Note that prices may have moved since computation; verify before placing.
Pro Tip: Run the Backtest tab first if you haven't already. If threshold rebalancing net of tax has historically underperformed buy-and-hold on your specific portfolio, the mathematically correct decision may be to not rebalance at all — or to only use Deploy Cash (no selling) to nudge weights over time.

🚫 Important Limitations

Being clear about what the Rebalance tab does not do is as important as understanding what it does:

⚡ Ready to Rebalance?

Open the Portfolio Manager web app, head to the Rebalance tab, and compute your action plan in seconds.

Open Rebalance Tab →