Investing Terminal
Educational content only. Market Navigator is not a licensed financial advisor or tax advisor. Nothing here constitutes financial or tax advice. Always do your own research and consult a professional.
Tax & Accounts
22 min read

Capital Gains Tax on Investments Explained

What capital gains tax is, why holding period matters so much, how the rates work, tax-loss harvesting, and the legal strategies that keep more of your returns in your pocket.

What Is Capital Gains Tax?

Capital gains tax is the tax you pay on the profit you make when you sell an investment for more than you paid for it. The 'gain' is the difference between your sale price and your original purchase price (your cost basis). If you buy a stock for $5,000 and sell it for $8,000, your capital gain is $3,000 — and that profit is generally taxable. Crucially, the tax is only triggered when you sell (or 'realise' the gain). As long as you hold an investment, any increase in its value is an 'unrealised gain' and is not taxed. This single feature — that gains are only taxed on sale — is one of the most powerful advantages long-term investors have, because it lets wealth compound untouched for decades.

Short-Term vs Long-Term Capital Gains

How long you hold an investment before selling has an enormous impact on your tax bill. In the US, gains on assets held for one year or less are 'short-term' and taxed at your ordinary income tax rate — the same rate as your salary, which can be as high as 37%. Gains on assets held for more than one year are 'long-term' and taxed at preferential rates of 0%, 15%, or 20%, depending on your income. This gap is deliberate: the tax code rewards long-term investing and penalises rapid trading. For many middle-income investors, the long-term rate is 15% versus a marginal income rate of 22–24% or higher. Simply holding an investment for 366 days instead of 364 can dramatically reduce the tax you owe on the same profit.

How Capital Gains Tax Rates Work

Long-term capital gains rates are tied to your taxable income. For many taxpayers, lower-income individuals pay 0% on long-term gains, middle-income earners pay 15%, and high earners pay 20%. There can also be an additional net investment income tax for very high earners. Short-term gains, by contrast, are simply stacked onto your ordinary income and taxed at your marginal bracket. Dividends follow similar rules: 'qualified' dividends are taxed at the favourable long-term rates, while 'ordinary' (non-qualified) dividends are taxed as regular income. The practical takeaway is that the structure of the tax system strongly favours patient, buy-and-hold investing in quality assets and qualified-dividend payers over frequent trading.

Advertisement

Tax-Loss Harvesting: Turning Losses into Savings

Not every investment goes up, and the tax code lets you make the best of losses. Tax-loss harvesting is the practice of selling investments that have dropped in value to realise a capital loss, which you can then use to offset capital gains elsewhere in your portfolio — reducing your overall tax bill. If your losses exceed your gains, you can use up to $3,000 per year to offset ordinary income, and carry any remaining losses forward to future years. One important rule: the 'wash sale' rule disallows the loss if you buy back the same or a substantially identical security within 30 days. Used thoughtfully, tax-loss harvesting can meaningfully improve your after-tax returns without changing your overall investment strategy.

Tax-Advantaged Accounts Change Everything

The biggest lever for reducing investment taxes is where you hold your investments. Inside tax-advantaged retirement accounts — a 401(k), traditional IRA, or Roth IRA — capital gains and dividends are not taxed year to year. In a traditional account, you defer all tax until withdrawal; in a Roth, qualified withdrawals are entirely tax-free, meaning you may never pay capital gains tax at all. This is why financial planners emphasise filling up tax-advantaged accounts before investing heavily in a regular taxable brokerage account. A simple rule: hold your most tax-inefficient investments (those generating frequent gains or ordinary dividends) inside tax-sheltered accounts, and your most tax-efficient ones (broad index funds held for the long term) in taxable accounts.

Practical Ways to Minimise Capital Gains Tax

Several legitimate strategies can lower the tax drag on your investments. Hold investments for more than a year to qualify for lower long-term rates. Use tax-advantaged accounts as much as possible. Harvest losses to offset gains. Favour low-turnover index funds, which generate fewer taxable events than actively managed funds. Be mindful of your income in any given year — realising gains in a lower-income year can mean a lower rate or even the 0% bracket. And remember that the goal is to maximise after-tax wealth, not simply to avoid all taxes — sometimes paying some tax to rebalance or exit a poor investment is the right move. As always, tax laws are complex and change over time, so consult a qualified tax professional for your specific situation.

Frequently Asked Questions

How much is capital gains tax?

It depends on how long you held the asset and your income. Long-term gains (assets held over a year) are taxed at 0%, 15%, or 20% in the US depending on your income. Short-term gains (held a year or less) are taxed at your ordinary income rate, which can be much higher — up to 37%.

Do I pay tax on stocks I haven't sold?

No. You only owe capital gains tax when you sell and 'realise' a gain. While you hold an investment, any increase in value is an 'unrealised gain' and is not taxed. This is why long-term holding is so tax-efficient — your money can compound for years untouched by taxes.

What is tax-loss harvesting?

It's selling investments that have lost value to realise a capital loss, which you can use to offset capital gains and reduce your tax bill. Excess losses can offset up to $3,000 of ordinary income per year, with the rest carried forward. Watch the wash-sale rule: you can't rebuy the same security within 30 days and still claim the loss.

How can I avoid capital gains tax legally?

Hold investments over a year for lower long-term rates, use tax-advantaged accounts like a Roth IRA or 401(k) where gains aren't taxed annually, harvest losses to offset gains, and favour low-turnover index funds. Always consult a qualified tax professional for advice specific to your situation.

Advertisement

Practise long-term investing tax-free in the simulator

Build a buy-and-hold portfolio with $100k virtual cash.

Open Simulator