LTCG & Gain Harvesting

Cost Basis Reset Through Gain Harvesting – Save Tax for Years

11 min read · Updated 22 February 2026

What Is a Cost Basis Reset?

A cost basis reset occurs when you sell shares and immediately repurchase them at the current market price. The new purchase price becomes your cost of acquisition for future tax calculations. If the market price has risen since your original purchase, the reset lifts your cost basis to the higher current price, which permanently reduces the taxable gain when you eventually sell those shares.

The concept is simple: your taxable capital gain is always calculated as Sale Price minus Cost of Acquisition. If your cost of acquisition is Rs 200 (from an original purchase years ago) and you sell at Rs 1,000, your gain is Rs 800. But if you had reset your cost basis to Rs 600 through a gain harvest two years ago, selling at Rs 1,000 produces a gain of only Rs 400. The Rs 400 difference in gains translates to Rs 50,000 in tax savings per 1,000 shares (at 12.5%).

In India, this strategy is perfectly legal and entirely practical because there is no wash sale rule. You can sell and rebuy the same stock within seconds. The only costs are the transaction fees (brokerage, STT, stamp duty), which are typically a tiny fraction of the tax savings.

The cost basis reset is not a one-time event. You can reset it every year by gain harvesting within the Rs 1,25,000 LTCG exemption. Each annual reset ratchets your cost basis higher, compressing the gap between your cost and the market price. Over a decade or more, this strategy can reduce your eventual taxable gain by 50% to 80% compared to a buy-and-hold approach with no harvesting.

The Mathematics of Cost Basis Reset

Let us trace how cost basis resets accumulate over time with precise numbers.

Assume you buy 1,000 shares of a stock at Rs 100 per share in April 2023. The stock appreciates at 15% per year. You harvest gains up to the Rs 1,25,000 exemption each March.

Year 0 (April 2023): Cost basis = Rs 100. Holdings = 1,000 shares. Total cost = Rs 1,00,000.

Year 1 (March 2024): Share price = Rs 115. Unrealized LTCG = Rs 15,000 (1,000 x Rs 15). You sell and rebuy all 1,000 shares. LTCG booked: Rs 15,000 (within exemption, tax = Rs 0). New cost basis = Rs 115.

Year 2 (March 2025): Share price = Rs 132.25. Unrealized LTCG = Rs 17,250 (1,000 x Rs 17.25, based on the reset cost of Rs 115). You sell and rebuy all 1,000 shares. LTCG booked: Rs 17,250 (within exemption, tax = Rs 0). New cost basis = Rs 132.25.

Year 3 (March 2026): Share price = Rs 152.09. Unrealized LTCG = Rs 19,840 (1,000 x Rs 19.84). Sell and rebuy. LTCG: Rs 19,840 (within exemption). New cost basis = Rs 152.09.

After 3 years of annual resets: - Total LTCG harvested tax-free: Rs 15,000 + Rs 17,250 + Rs 19,840 = Rs 52,090 - Current cost basis: Rs 152.09 (versus original Rs 100) - If you sell at Rs 152.09, your taxable gain is Rs 0 instead of Rs 52,090

The beauty is that each year's harvest was entirely within the Rs 1,25,000 exemption (since the portfolio was only 1,000 shares), so you paid zero tax while permanently eliminating Rs 52,090 in future taxable gains.

Cost Basis Reset with a Larger Portfolio

The previous example used a small portfolio where the entire annual gain was within the exemption. But most investors have larger portfolios where the total unrealized LTCG exceeds Rs 1,25,000. In such cases, you can only reset the cost basis on a portion of your holdings each year.

Example: Amit has 5,000 shares of a stock bought at Rs 200. Current price: Rs 400. Total unrealized LTCG: Rs 10,00,000 (5,000 x Rs 200). He wants to harvest exactly Rs 1,25,000 in LTCG.

LTCG per share: Rs 200 Shares to sell for Rs 1,25,000 LTCG: Rs 1,25,000 / Rs 200 = 625 shares

Amit sells 625 shares at Rs 400 and rebuys at Rs 400. After the harvest: - 625 shares have a new cost basis of Rs 400 (reset from Rs 200) - 4,375 shares still have a cost basis of Rs 200 (unchanged)

The reset eliminated Rs 1,25,000 of future taxable gains permanently. If Amit repeats this every year (assuming the stock price continues to rise), he systematically resets the cost basis on more and more shares.

Year 2: Stock price Rs 500. The 625 shares with Rs 400 basis have Rs 100 gain per share. The 4,375 shares with Rs 200 basis have Rs 300 gain per share. Under FIFO, selling 625 shares triggers the Rs 200-basis lot first (LTCG = 625 x Rs 300 = Rs 1,87,500, which exceeds the exemption). So Amit should sell only 417 shares (417 x Rs 300 = Rs 1,25,100). He resets those 417 shares from Rs 200 to Rs 500.

This year-by-year chipping away at the old cost basis eventually converts the entire portfolio to a high cost basis, dramatically reducing the tax when the shares are finally sold.

TaxHarvestLab performs these FIFO-aware calculations automatically, telling you exactly how many shares to sell for optimal cost basis reset.

The Compounding Tax Benefit Over 10 and 20 Years

The real power of cost basis resets becomes visible over long time horizons. Let us compare two investors with identical portfolios, one who does annual gain harvesting and one who does not.

Both invest Rs 10,00,000 in a diversified equity portfolio that grows at 12% annually. After 20 years, the portfolio is worth Rs 96,46,293.

Investor A (No gain harvesting): Sells the entire portfolio after 20 years. - LTCG: Rs 96,46,293 - Rs 10,00,000 = Rs 86,46,293 - Exemption: Rs 1,25,000 (only Year 20's exemption) - Taxable LTCG: Rs 85,21,293 - Tax at 12.5%: Rs 10,65,162 - Cess at 4%: Rs 42,607 - Total tax: Rs 11,07,769

Investor B (Annual gain harvesting of Rs 1,25,000): Has harvested Rs 1,25,000 in LTCG every year for 20 years, tax-free. - Total gains harvested tax-free: Rs 25,00,000 (20 years x Rs 1,25,000) - Remaining LTCG in Year 20: Rs 86,46,293 - Rs 25,00,000 = Rs 61,46,293 (approximately, actual varies due to compounding effects) - Exemption in Year 20: Rs 1,25,000 - Taxable LTCG: Rs 60,21,293 - Tax at 12.5%: Rs 7,52,662 - Cess at 4%: Rs 30,106 - Total tax: Rs 7,82,768

Tax saved by Investor B: Rs 11,07,769 - Rs 7,82,768 = Rs 3,25,001

Transaction costs over 20 years: approximately Rs 10,000 (Rs 500 per year)

Net benefit of annual gain harvesting: Rs 3,15,001

That is over Rs 3 lakh saved by a simple annual routine of selling and rebuying shares before March 31. The cost is negligible (Rs 10,000 in transaction fees over 20 years). The benefit is enormous.

When Cost Basis Reset Does Not Help

While cost basis reset through gain harvesting is powerful, there are situations where it provides limited or no benefit.

Situation 1: No unrealized LTCG. If your portfolio is at break-even or showing losses, there is no gain to harvest and no cost basis to reset upward. In this case, consider tax loss harvesting instead.

Situation 2: All holdings are short-term. Cost basis reset via gain harvesting only works with long-term holdings (held >12 months) because short-term gains do not benefit from the Rs 1,25,000 exemption. Selling short-term holdings to reset the cost basis triggers STCG taxed at 20%, which defeats the purpose.

Situation 3: Very small unrealized gains. If your total unrealized LTCG across all holdings is only Rs 5,000-10,000, the tax saving from resetting the cost basis is Rs 625-1,250. After transaction costs, the net benefit is minimal. You would still be utilizing the exemption (which is good), but the cost basis reset benefit is small.

Situation 4: You plan to hold forever. If you intend to pass shares to your heirs and never sell, the cost basis reset is irrelevant because the taxable event (sale) never occurs. However, note that when heirs inherit shares, the cost of acquisition for the heir is the cost at which the deceased acquired them. So the accumulated gain is not eliminated by inheritance.

Situation 5: Frequent trading. If you are actively trading and holding stocks for only a few months, most gains are short-term. The cost basis reset strategy requires a 12-month holding period for each cycle, which does not align with frequent trading styles.

Cost Basis Reset and the Grandfathering Clause

Investors holding pre-February 1, 2018 shares have an additional consideration. The grandfathering clause already provides a higher cost basis (the FMV on January 31, 2018) for these old holdings. If you have not yet sold these shares, your cost basis is already elevated compared to the original purchase price.

However, the grandfathering clause does not protect gains accrued after January 31, 2018. If you bought a stock at Rs 200 in 2015, the FMV on January 31, 2018 was Rs 500, and the current price is Rs 1,000, your LTCG is Rs 500 per share (Rs 1,000 minus the grandfathered cost of Rs 500). The grandfathering protected the Rs 300 gain that accrued before 2018, but the Rs 500 gain since then is taxable.

This is exactly where annual cost basis resets shine. If you had been harvesting Rs 1,25,000 in gains each year since 2018, you would have systematically reset the cost basis from Rs 500 to higher levels each year. After 7 years of annual harvesting, the cost basis might be Rs 800 or Rs 900 instead of Rs 500, dramatically reducing the taxable gain when you sell.

For investors who still hold large pre-2018 positions with significant post-2018 appreciation, starting a gain harvesting program now is especially valuable. The grandfathering gave you a head start by setting your cost to the 2018 FMV. Annual gain harvesting continues that cost basis escalation, keeping the gap between your cost and the market price as narrow as possible.

TaxHarvestLab identifies pre-2018 holdings in your portfolio, applies the grandfathering clause correctly, and calculates the post-2018 unrealized LTCG that is available for gain harvesting. This ensures you are not over-harvesting or under-harvesting these legacy positions.

Implementing Annual Cost Basis Resets: A Checklist

To make cost basis resets a regular part of your investment routine, follow this annual checklist every February-March.

  1. Pull your current portfolio with lot-level details. Export your holdings from your broker or import them into TaxHarvestLab. Ensure the data includes purchase dates, quantities, and cost per share for every lot.
  1. Apply FIFO to identify lot order. For each stock, sort lots by purchase date (oldest first). The FIFO order determines which lots are sold first when you execute the harvest.
  1. Calculate year-to-date realized LTCG. Sum up all LTCG from equity sales earlier in the financial year. Subtract from Rs 1,25,000 to get the remaining exemption.
  1. Identify harvest candidates. Find long-term lots with unrealized gains. Prioritize lots with the lowest cost basis (highest gain per share) because resetting these provides the largest reduction in future taxable gains.
  1. Calculate shares to sell. Divide the remaining exemption by the LTCG per share for the chosen stock. This gives you the exact number of shares to sell.
  1. Execute before March 25. Place the sell order. Immediately after execution, place the buy order for the same quantity. Use limit orders close to the current market price for both trades.
  1. Record the new cost basis. Update your records with the rebuy price as the new cost of acquisition. Note the rebuy date as the new holding period start date.
  1. Verify settlement before March 31. Confirm that both the sell and buy transactions have settled within the financial year.

TaxHarvestLab automates steps 1 through 5 and provides specific trade recommendations. You only need to execute steps 6 through 8 in your broker account.

See how this applies to your portfolio

Upload your Zerodha or Groww reports and get personalized recommendations in under 2 minutes.

Analyze My Portfolio Free

Frequently Asked Questions

Does selling and rebuying to reset cost basis really save tax?

Yes. When you sell and rebuy, your new cost of acquisition is the current market price. All gains up to the current price have been 'locked in' (either tax-free within the exemption or at the current tax rate). Future taxable gains start from the higher cost basis, reducing the tax when you eventually sell. Over multiple years, this compounding effect saves significant tax.

What happens to the holding period when I reset cost basis?

The holding period restarts from the rebuy date. This means you need to hold the repurchased shares for at least 12 months before the next gain harvest to ensure the gain qualifies as LTCG. Annual harvesting (once per year before March 31) naturally satisfies this 12-month requirement since the rebuy in March Year 1 is over 12 months before the next harvest in March Year 2.

Can I reset cost basis on mutual fund units?

Yes. Redeem equity mutual fund units to book LTCG within the exemption, then reinvest. The new units are purchased at the current NAV, which becomes your cost basis. The process is identical to stocks, but with a T+3 settlement gap during which you are not invested in the fund.

Is there a limit to how many times I can reset cost basis?

No. There is no legal limit on the number of times you can sell and rebuy shares. You can do it every year. However, practically, you can only harvest Rs 1,25,000 in tax-free LTCG per year (the Section 112A exemption). Harvesting more means paying 12.5% tax on the excess, which may still be worthwhile for cost basis reset purposes depending on your long-term tax outlook.

🤝

Support Our Mission

TaxHarvestLab is free and always will be. Help us keep it that way for 10,000+ Indian investors.

10K+
Active Users
₹0
Ads • Ever
Contribute Now

One-time or monthly, your choice

Ready to optimize your capital gains tax?

TaxHarvestLab analyzes your actual broker data and shows you exactly what to sell — and what to hold — before March 31.

Analyze My Portfolio Free

Free forever. Works with Zerodha and Groww. Takes under 2 minutes.