Research Here · Trade Anywhere
☰
★ Option Tips Provider · Trading Education

Capital Gains Tax on Stocks: Short-Term vs Long-Term Explained

Capital gains tax on stocks depends mainly on how long you held the shares before selling them. A shorter holding is taxed under one set of rules and a longer holding under another, with different rates and some exemptions. This guide explains the logic, the netting of losses, and the records that make filing straightforward.

In-Depth

Complete Guide

Research-Led

Every Section

Practical

Takeaways

Short answer

Gains from selling shares are classed as short-term or long-term by holding period, and each class has its own rate and treatment. Losses can be set against gains under defined rules. Always confirm current thresholds and rates with official sources or a qualified professional.

TL;DR

  • Holding period decides whether a gain is short-term or long-term.
  • Each class has its own rate, and rules change, so check current ones.
  • Losses of one type can be used against gains under set rules.
  • Trading frequency can change how your income is classified altogether.
  • Clean records make both calculation and filing far easier.

Why the Holding Period Is the Whole Game

Key points

  • Time held decides the class. The gap between purchase and sale date separates short-term from long-term.
  • Each class is taxed differently. Rates and exemptions are not the same, and they have changed over the years.
  • Losses have a role. They can reduce taxable gains, but with restrictions on what offsets what.
  • Classification can shift. Frequent trading may be treated as business income instead.

When you sell shares at a gain, the tax system first asks a simple question: how long did you own them? The answer sorts your gain into one of two boxes. Everything that follows, including the rate, the available relief and how losses are handled, depends on which box applies.

That makes the calendar important. A sale a few days earlier or later can move a gain from one class to the other, and the difference in treatment can be meaningful. Investors who track their purchase dates avoid being surprised by which side of the line a sale lands on.

Why this matters

Tax rules and thresholds are set by law and revised from time to time. Treat this article as an explanation of how the system works, and confirm current numbers with official sources or a qualified tax professional before filing.

Related: Long Call vs Short Put: Same Bullish View, Very Different Risk

Short-Term and Long-Term Side by Side

Seeing the two classes together makes the differences clear. The table compares features rather than numbers, because the numbers are the part that changes.

FeatureShort-term gainLong-term gain
Holding periodBelow the set threshold for listed sharesAt or above that threshold
RateA flat rate set by lawA different flat rate, often with an exemption limit
Typical holderTraders, short-horizon investorsInvestors holding through cycles
Loss treatmentCan be set against either classCan only be set against long-term gains
Carry forwardAllowed for a limited number of yearsAllowed for a limited number of years

Notice the loss row. The ability to use a loss depends on its class, and that asymmetry is one of the most overlooked parts of the system. We return to it below.

Counting Days: How the Holding Period Is Measured

The period runs from the date you acquired the shares to the date you sold them. Delivery-based purchases count from the trade date of the purchase, and the sale date is the trade date of the sale rather than the date the money reaches your bank.

When You Bought in Several Lots

If you added to a position over time, each lot has its own purchase date. When you sell part of the holding, the earliest-purchased shares are generally treated as sold first. This first-in, first-out logic means a single sale can mix short and long classes, depending on how many lots it touches.

Bonus Shares, Splits and Corporate Actions

Corporate actions can change how cost and holding period carry forward. Bonus shares and splits have defined treatment, so check how your depository and statements show them before computing anything yourself.

Worked example

An investor adds to a position in three separate months, then sells part of it a while later. The earliest lot has been held long enough to count as long-term, while the most recent has not. The single sale therefore produces both a long-term and a short-term gain, each taxed under its own rule.

How Losses Offset Gains

Losses are not simply deducted from total gains. The system has an order, and the class of the loss decides where it can go. Getting this wrong is a common reason investors overpay or file incorrectly.

Short-term loss

  • Can reduce short-term gains.
  • Can also reduce long-term gains.
  • Unused portion may be carried forward for a limited period.

Long-term loss

  • Can reduce long-term gains only.
  • Cannot offset short-term gains.
  • Unused portion may be carried forward for a limited period.

Carrying a loss forward usually requires that you filed your return on time and reported the loss. Missing that step can forfeit the benefit, which is a costly mistake for something so easy to avoid.

Common misreading

Many investors assume any loss can cancel any gain. In reality a long-term loss cannot reduce a short-term gain, so selling a long-held loser may not help against gains from recent trades.

Related: Multibagger Stocks: How Long-Term Compounders Are Identified

A Step-by-Step Way to Work Out Your Position

You do not need specialist software to understand where you stand. A methodical walk through your transactions gives you a clear picture before you meet an accountant or open a filing portal.

  1. Gather the contract notes and statements. You need dates, quantities and prices for every purchase and sale.
  2. Match each sale to its purchase. Apply first-in, first-out across lots.
  3. Compute the holding period for each match. Label each as short-term or long-term.
  4. Subtract cost and allowed expenses. Include brokerage and similar charges where permitted.
  5. Net losses against gains using the order rules. Respect the class restrictions.
  6. Apply current rates and exemptions. Confirm them from official sources.

Expenses matter. Charges directly tied to buying and selling may reduce the taxable gain, while other costs may not qualify. Keeping the paperwork tidy, as discussed in our guide to maintaining trading records for tax filing, saves time every year.

Securities Transaction Tax Is a Separate Charge

Do not confuse capital gains tax with the transaction charge levied on trades on the exchange. The transaction charge applies when you transact, whether or not you gained anything. Capital gains tax applies only on gains, and only when you sell.

The two interact in practice. The transaction charge paid is not generally deductible from the gain in the same way as other expenses, so it is worth understanding. Our article on how securities transaction tax affects trades explains what it is and how it appears on your statements.

Related: Long Unwinding vs Short Covering: Reading Futures OI Data

ChargeWhen it appliesDepends on gain?
Securities transaction taxOn the transaction itselfNo
Capital gains taxOn a realised gain at saleYes
Brokerage and feesOn each orderNo, but may reduce taxable gain

Investor or Trader: When the Rules Change

Everything above assumes the gains are treated as capital gains. If your activity is frequent and systematic enough, the income may instead be treated as business income. That brings different calculation rules, different allowable expenses and different filing requirements.

No single test settles this; it depends on the pattern of your activity and how you have treated it in earlier years. Consistency matters, so discuss your classification with a qualified professional rather than guessing. Derivatives trading, for example, is generally handled differently, as explained in our F&O taxation guide.

  • Long holding, infrequent sales. Typically points toward capital gains treatment.
  • Very frequent in-and-out activity. May point toward business income.
  • Mixed behaviour. Some investors keep a separate long-term portfolio alongside active trading.

Watch out

Choosing a classification because it looks cheaper, then switching later, can create problems. Pick the treatment that honestly reflects what you do, and apply it consistently.

Planning Around the Rules Without Distorting Your Decisions

It is tempting to let tax drive every decision, yet a poor investment held only for the tax break remains a poor investment. Use the rules to inform timing at the margin, never to override your reasons for owning something.

Check the Calendar Before Selling

If you are close to the holding-period threshold, note how many days remain. Waiting a short time may change the class of the gain. Whether the wait is worth it depends on how much the price might move meanwhile, which is a market risk, not a tax one.

Review Losses Near the Year End

Some investors look at realised losses before the financial year closes, to see whether they can offset gains already booked. Any such step should rest on a genuine decision about the holding, not a mechanical exercise. Remember also that repurchasing the same shares immediately has its own considerations.

Worked example

An investor holds a stock whose thesis has weakened and sees that a recent sale produced a short-term gain. Because the held stock is a short-term holding, selling it would book a loss that can offset that gain. She sells because the thesis changed, and the tax effect is a welcome side benefit rather than the reason.

Related: Stock Market Tips for Long-Term Wealth Creation That Stick

Mistakes That Create Avoidable Problems at Filing Time

Most filing headaches trace back to a small number of habits. None requires expertise to fix, only a little discipline during the year rather than a scramble after it ends.

  • Mixing up trade and settlement dates. The trade date governs the holding period, and statements may show both.
  • Forgetting older lots. Shares bought years ago and transferred between accounts can lose their purchase records.
  • Ignoring small sales. Even a minor sale is a reportable event if it produced a gain or loss.
  • Reporting loss late. Filing after the deadline can forfeit carry-forward.
  • Counting every charge as deductible. Only expenses connected to the transfer generally qualify.

Switching brokers or moving holdings between accounts is a particular risk, because purchase dates and costs can get lost in the transfer. Keep your own copy of the history whenever you shift anything.

Dividends Are Not Capital Gains

Money received as dividends is a separate type of income with its own treatment. It does not form part of your capital gains computation, and it is reported in a different place. Keep dividend receipts apart from sale proceeds in your records, so neither gets double counted.

Rule of thumb

Whenever a statement line confuses you, ask which category it belongs to: sale proceeds, dividends, charges or something else. Sorting each line into one category before calculating prevents most errors.

Thinking About Holding Period as Part of Your Plan

The tax system rewards patience in a general sense, but it should not be your reason to hold. Decide how long you intend to hold based on your goal for the money, then see how the rules fit around it. Our article on goal-based investing shows how to start from the purpose.

Investors with a long horizon tend to meet the long-term class more naturally, with fewer transactions and fewer entries to keep track of. If that describes your approach, the survey of long-term investment opportunities offers context on how longer holdings are usually built.

Short-horizon approach

  • More transactions and more records.
  • Gains usually fall in the short-term class.
  • Needs careful loss tracking.

Long-horizon approach

  • Fewer transactions to track.
  • Gains more often fall in the long-term class.
  • Exemption limits may become relevant.

Neither approach is better in itself; they suit different people and goals. The point is simply that your holding style determines which rules you will meet most often, so learn those first.

Family Holdings and Gifts

Many families hold shares in several names, hoping to spread gains across separate taxpayers. Rules on clubbing income can bring certain gifted holdings back into the giver’s tax computation, so this is not a loophole you can assume.

Our explainer on clubbing provisions in family trading sets out the idea. If shares are held jointly or gifted, document the source of funds and the relationship, and get professional guidance first.

Annual regime choices can also affect the overall picture. Our piece on choosing between the old and new tax regime covers how this decision interacts with trading income.

Related: What Is Long Buildup? Reading Long vs Short Buildup in Open Interest

Frequently Asked Questions

Is tax due on gains I have not sold?

Generally no. Capital gains arise when you sell. A rise in the value of shares you still hold is an unrealised gain and is not taxed until sold.

Can I use a long-term loss against a short-term gain?

No. A long-term loss can only offset long-term gains, while a short-term loss may offset either class. Check current rules before planning any sale around this.

Do I need to report a loss if there is no gain?

Yes, usually. Reporting a loss on time is what allows it to be carried forward. Failing to report can mean losing the benefit in later years.

Which records should I keep?

Keep contract notes, depository statements, purchase and sale dates, and charges paid. A simple sheet linking each sale to its purchase lots makes filing far less stressful.

Risk Disclosure: Trading and investing in equity, futures, options, and commodities involves risk, including the possible loss of principal. Past performance is not indicative of future results. The research, insights, and trading ideas shared on this platform are for educational and informational purposes only and should not be construed as a guarantee of profit. Please assess your own risk appetite, consult a qualified financial advisor where needed, and trade responsibly.
Want Research-Backed Ideas, Not Just Education?

Explore our All Services service or get in touch with our research team.

Risk Disclosure: Trading and investing in equity, derivatives, commodity, and currency markets involves substantial risk of loss and is not suitable for every investor. All content on this website is published for educational and informational purposes only and should not be construed as investment advice or a solicitation to buy or sell any financial instrument. Past performance is not a guarantee of future results. Please evaluate your financial situation and risk tolerance, and consult a qualified financial professional before making trading or investment decisions.
Want research like this, tailored to your segment?
Explore our equity, futures, options and index research services.