The full guide
Tax-loss harvesting — what it is, and the honest truth about when it matters for Sri Lankans
Reviewed and updated July 16, 2026 · Written for Sri Lankan investors and borrowers
Tax-loss harvesting means deliberately selling an investment at a loss to create a tax deduction that offsets gains elsewhere, then reinvesting in a similar (but not identical) asset so your market exposure continues. In countries with capital gains tax on listed shares, it is a standard year-end ritual that can add measurable after-tax return.
Here is the honest framing for a Sri Lankan audience: under current rules, gains on listed shares traded on the CSE are covered by the share transaction levy built into trading costs rather than by capital gains tax on the investor, so there is generally no CGT bill on CSE share profits for harvesting to offset. This technique mainly matters for Sri Lankans investing through foreign brokerage accounts in markets that do tax capital gains.
The mechanics, step by step
Suppose a foreign-market investor holds Shares A with an unrealized loss equivalent to Rs. 500,000 and has realized gains of Rs. 800,000 elsewhere in the same tax year. Selling A crystallizes the Rs. 500,000 loss, reducing taxable gains to Rs. 300,000. If gains are taxed at, say, an assumed 15% in that jurisdiction, the harvest saves Rs. 75,000 in tax. The investor then buys a similar asset — a comparable fund or sector holding — so a market rebound is not missed.
The saving is real but subtle: because the repurchased asset takes a lower cost basis, some of the benefit is a deferral of tax rather than a permanent escape. Deferral still has value — the deferred tax stays invested and compounds for you in the meantime.
Wash-sale rules: the trap to respect
Most jurisdictions that allow loss harvesting also police it. The United States, for example, disallows the loss if you buy the same or a substantially identical security within 30 days before or after the sale — the wash-sale rule. Practitioners therefore swap into a similar-but-different asset for the waiting period. If you harvest losses in a foreign account, learn that market’s specific rule first; a disallowed loss plus two sets of trading costs is strictly worse than doing nothing.
The Sri Lankan picture under current rules
For individuals trading listed shares on the CSE, the share transaction levy is collected within the roughly 1.12% per-side trading cost, and listed-share gains are not separately taxed as capital gains under current rules — so there is no CGT liability against which a harvested CSE loss would be offset. Selling a losing CSE position purely “for tax” therefore achieves nothing except transaction costs.
Other Sri Lankan taxes on investors work differently and are not affected by harvesting: 10% AIT applies to interest income and 15% withholding tax applies to dividends, both collected at source. Tax rules change, so verify the current position with the Inland Revenue Department or a tax adviser before acting.
Who should actually care
This concept earns its place in your toolkit only in specific situations.
- Sri Lankans with foreign brokerage accounts in markets that tax capital gains — the primary genuine use case.
- Dual residents and migrants whose home tax systems tax worldwide gains.
- Investors in other asset classes where Sri Lankan capital gains tax can apply, such as land — though harvesting mechanics rarely transfer neatly to illiquid assets.
- Everyone else: treat this as financial literacy for the future, not a current to-do.
Using the calculator
The tool models the tax saved by harvesting a given loss at a given gains-tax rate, net of transaction costs, and the value of deferral over time. Use it with your foreign market’s actual rates and your broker’s actual fees — and remember that a harvest that saves less than it costs in fees and spread is a loss dressed up as strategy.
Use a written pre-trade gate. Confirm the tax residence and account whose return will report the disposal, that the gain and loss can legally offset each other in that jurisdiction and year, and whether loss carry-forward or wash-sale limits apply. Obtain the cost basis and transaction history rather than estimating them from the app’s headline profit. Calculate the benefit after both sale and replacement-purchase commissions, bid–ask spread, currency-conversion charges, and any time outside the market. Finally, choose the replacement before selling and record why it is economically similar but not prohibited as substantially identical. If any answer is uncertain, keep the investment and take the worksheet to a qualified adviser; the calculator measures a confirmed rule, it cannot decide which country’s rule applies to you.
Sources & further reading
This guide is educational and reflects publicly available rules and market conventions at the review date. Tax rates, bank rates, and regulations change — verify current figures with the institution or the Inland Revenue Department before making a financial decision. Nothing here is financial, tax, or investment advice.