WhitmanTrading

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.

Flow diagram of the calendar as a tax decision: find the gain, check how long it was held, see how far from the threshold, wait if only weeks short.
A diagram of this page's holding-period point as steps, where 350 on a 5,000 gain can depend entirely on a date.

Losses

Realized losses reduce realized 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.

How this connects

The wash sale rule is the formal name for the repurchase restriction, and in the United States it also catches buying the same holding back inside a retirement account.

A Roth IRA is the clearest example of a shelter, because qualifying withdrawals of the gains are not taxed at all.

A taxable account is where every rule here applies, which is why the holdings expected to grow the most are often placed in sheltered accounts instead.

Dividend tax runs alongside it. Qualified dividends in the United States are taxed at the same lower long-term rates that apply to gains.

Rebalancing in a taxable account creates gains, so directing new money to the underweight holding often reaches the same mix without a sale.

An index fund trades rarely inside itself, so it passes fewer gains on to its holders each year than an actively traded fund does.

Real estate brings rules of its own: a main home often qualifies for an exclusion, while investment property adds depreciation recapture to the calculation.

And bitcoin is treated as property rather than currency in the United States, so every sale, swap or purchase paid for with it is a disposal that can create a gain.

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 24,971 trading and investing videos in this site’s corpus, 2 have “capital gains” in the title at a median of 117,150 views across 2 channels. “Tax” more broadly returns 85 at a median of 23,940 across 68 channels, “trader tax” returns 4 at a median of 44,521, and “crypto tax” returns 8 at a median of 34,984. Any video returned by several of these tax searches still counts once toward the totals above.

Two videos at a median of 117,150 views against 85 general tax videos at 23,940 is a five-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.

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 practical check

Check the holding period before any sale you do not have to make. A position a few weeks short of the lower rate can be worth waiting on, and the saving comes from doing nothing at all.

— Michael Whitman

This page is educational, not financial advice. Test every idea on your own charts before risking money.