Capital Gains Tax: Nothing Until You Sell
Capital gains tax applies to the profit on an investment rather than to the amount it sold for, and it is only owed once the sale happens. Most systems tax gains on assets held longer at a lower rate, which makes the holding period worth checking before selling.
How it works
The tax applies to the profit. Sell for fifteen thousand something that cost ten and the taxable amount is five thousand, not fifteen.
Nothing is owed while you hold. A position up substantially creates no liability at all until it is sold, which is the deferral that makes long holding periods valuable independently of any rate.
The cost basis includes the buying costs. Purchase price plus commission and any charges — a small adjustment that reduces the taxable gain and that a surprising number of people leave out.
The holding period
Most systems tax long-held gains at a lower rate. The threshold and the rates differ by country and are revised, and the structure — a lower rate for longer holdings — is close to universal.
Which turns the calendar into a decision. In the illustration the difference is 350 on a 5,000 gain, and it depends entirely on a date. A position a few weeks short of the threshold is worth waiting on, unless the reason for selling cannot wait.
Losses
Realised losses reduce realised gains. Only the net figure is taxed, which means the timing of a loss matters as much as the timing of a gain.
Unused losses usually carry forward. They are not wasted, and in many systems an annual amount can also be set against ordinary income with the rest held over.
Repurchasing too quickly disallows the loss. Most systems have a rule preventing a sale and immediate repurchase from generating a deduction, and the window is measured in weeks. Selling and buying back the next day achieves nothing except a fee.
In practice
Deferral is worth something on its own. The tax you have not paid is still invested and earning, which is a quiet argument for a low-turnover approach that has nothing to do with rates.
Inside a tax shelter none of it applies. Gains in a retirement or tax-free account are not capital gains events at all, which is why account placement matters before any question of timing.
An unprovable basis is treated as zero. Which means the whole proceeds become the gain — the single most expensive administrative failure available in this area, and it is entirely avoidable.
One check before any sale you choose to make. How long you have held it, and how far from the threshold that is. It takes seconds and it is the only piece of tax planning most people ever need.
When you hold several lots of the same investment bought at different prices, which lot you sold matters and it is usually your choice. Selling the highest-cost shares first produces the smallest gain and the smallest bill; selling the oldest first may qualify for the lower long-term rate. Most brokers default to one method and allow another to be specified.
That instruction has to be given at the time of the sale. Retrospectively reassigning which shares were sold is generally not permitted, so the decision is made in the order ticket or not at all. Find out what your broker’s default is — for anybody who has accumulated a position over years, the difference between methods can be substantial.
A related point concerns inherited holdings. In several systems the cost basis resets to the value at the date of death, which erases the accumulated gain entirely for the person inheriting. That single rule changes the calculation on whether to sell a long-held appreciated position or hold it.
It is also why the answer differs by age and circumstance rather than by investment. A position with a large embedded gain is a different proposition for somebody with decades ahead than for somebody planning an estate. The tax question and the investment question are separate, and only one of them is about the company.
What capital gains tax is not
It is not tax on the sale price. Only on the profit.
It is not owed while holding. Nothing is due until a sale.
It is not one rate. The holding period usually changes it.
And it does not apply inside a shelter. Different rules entirely.
When it fails to be the right consideration
Tax should not decide an investment. Holding something you would otherwise sell purely to reach a lower rate is a real risk taken to save a percentage, and the position can fall by more than the tax saved.
A second failure is harvesting losses mechanically. Selling to book a loss and repurchasing after the window means being out of the market during it, which has its own cost.
A third is ignoring the shelter question. Placing the right holdings in the right accounts is worth more than any timing decision.
A fourth is losing the records. An unprovable basis converts a modest gain into a large one.
And a fifth is assuming your country’s rules resemble another’s. Rates, thresholds, allowances and repurchase windows all differ substantially.
The original data
Of the 31,760 trading and investing videos in this site’s corpus, 2 have “capital gains” in the title at a
median of 233,662 views across 2 channels. “Tax” more broadly returns 52 at a median of 14,808 across 37
channels, “trader tax” returns 4 at a median of 82,291, and “crypto tax” returns 6 at a median of 20,778.
The counts are in research/corpus-coverage.json, produced by site/measure_corpus.py.
Two videos at a median of 233,662 views against fifty-two general tax videos at 14,808 is a sixteen-fold gap in audience per video. The specific question people have is barely covered while the general one is covered constantly. Rates, thresholds and repurchase windows on this page all vary by country and change regularly — verify against current official guidance for your jurisdiction, and treat the structure rather than the numbers as what transfers.
Related
Taxes on trading covers how an active approach interacts with this. Trader tax status is the business treatment and what it changes. And buy and hold is the approach the deferral rewards.
The habit that has saved me the most is checking the holding period before any sale I do not have to make. Twice I have found a position twenty days short of the lower rate, waited, and kept several hundred pounds for doing nothing at all.
— Michael Whitman
This page is educational, not financial advice. Test every idea on your own charts before risking money.