• Capital gains are profits derived from selling an asset: financial investments, real estate, personal property, or collectibles.
  • Short-term gains (assets held under a year) are taxed like normal income while long-term gains (held for a year or longer) are taxed at lower rates.
  • If you end up with a net loss at the end of the year, you can deduct $3,000 of your losses from your income tax.
  •  

Whether you have a well-maintained brokerage account or a scrappy, do-it-yourself Robinhood portfolio, the tax man comes for us all. The IRS treats investments differently based on what type they are, how long you’ve held them, and how much you make in taxable income.

While it’s important to understand how your investments are taxed come Tax Day, it’s also important to take these rules into consideration while you’re making investment decisions throughout the year. 

What are capital gains?

Your capital gains are the profits you make from selling capital assets.  

The IRS considers almost everything you own, except for property used in a business, to be a capital asset. That can include:

  • Stocks, bonds, and other investments like cryptocurrency
  • Your home or a vacation property
  • Personal-use items, such as clothing, household furnishings, and jewelry
  • Collectibles such as coins, stamps, antiques, NFTs, and artwork
  • Cars, motorcycles, boats, and other vehicles

Every capital asset has a cost basis, which is typically what you paid for the asset, plus any money you invested towards improving it.

When you sell a capital asset, the difference between the sales price and your cost basis is either a capital gain (if the sales price is higher than your basis) or a capital loss (if the sales price is lower than your basis).

For example, say you purchase 100 shares of a stock for $120 per share. Your basis in the stock is $12,000. You later sell all 100 shares for $145 per share, or $14,500. Your capital gain would be $2,500.

Capital gains tax basics

When you sell a capital asset, the gain (or the loss) is classified as either short-term or long-term, depending on how long you owned the asset prior to the sale date. 

If you own an asset for more than one year before selling, it’s generally a long-term capital gain or loss. If you own it for one year or less, the gain or loss is short-term.

Why is this significant? Because how long you hold the asset determines the tax rate you pay on your profit — the capital gain.

Short-term capital gains tax rate

Short-term capital gains are taxed at the same rate as ordinary taxable income. Your short-term capital gain tax rate corresponds to ordinary income tax brackets, which range from 10% up to 37%.

2022 Tax Brackets

Filed in 2023

Long-term capital gains tax rate

With long-term capital gains, things get more interesting. They qualify for special tax rates. And in most cases, these are lower than the tax bite incurred by your ordinary income and short-term gains. 

There are three basic tax rates: 0%, 15%, and 20%. These brackets are applied based on your total taxable income — not on the size of the capital gain itself. For 2022 and 2021, the long-term capital gains rates are as follows:

Long-term capital gains tax rates by income

Special capital gains tax rules

The tax rates in the tables above apply to most assets, including most investments. But you should be aware of a few rules and exceptions. 

  • Long-term capital gains on collectibles (such as antiques, coins, stamps, or artwork) are taxed at a rate of 28%.
  • Capital losses from the sale of personal property aren’t deductible. So if you sell your home or vehicle for less than you paid for it, you cannot claim a deduction.
  • While they pay 20% in capital gains tax, high-income investors may also owe the Net Investment Income Tax. A separate tariff, it applies an additional 3.8% tax on all investment income, including capital gains. NIIT affects single taxpayers with modified adjusted gross income over $200,000 or married couples filing jointly with modified adjusted gross income over $250,000.
  • If you inherited a capital asset, your holding period is automatically long-term, no matter when the person who left it to you purchased it.
  • When you sell your home, you don’t have to pay tax on the first $250,000 of gain from the sale. That exclusion is doubled to $500,000 for married couples filing a joint return. To qualify, you must have owned and used the home as your primary residence for at least two of the last five years.

Calculating capital gains: an example

The


capital gains tax

rate doesn’t apply on an item-by-item basis but to your overall net capital gains.

Say you are a single taxpayer with the following stock transactions in 2020:

  • Stock A: long-term capital loss of $4,000
  • Stock B: long-term capital gain of $7,000
  • Stock C: short-term capital loss of $5,000
  • Stock D: short-term capital loss of $3,000

To calculate your net gain or loss, you first need to calculate your long-term and short-term sales, to come up with a net result.

  • Long-term: ($4,000) + $7,000 = $3,000 gain
  • Short-term: ($5,000) + $3,000 = $2,000 loss

With a net long-term gain of $3,000 and a net short-term loss of $2,000, you have a net capital gain of $1,000.

Now, let’s assume that your total taxable income for 2020 was $50,000. Using the long-term capital gains tax brackets above, you see that you’ll only pay 15% on that gain. 

Since your ordinary


income tax

bracket is 22%, by taking advantage of the lower capital gains tax rates, you saved $70 in taxes ($150 versus $220 on a $1,000 capital gain).

On the other hand, if you had a long-term gain on stocks A and B and a short-term gain on stocks C and D, the long-term rate would apply to the long-term gain, and your ordinary tax rate would apply to the short-term gain. 

Tax-loss harvesting

Maybe the market had a rough year and you end up realizing a net loss on your investments. You can offset ordinary income tax by $3,000 as a single filer or filing jointly. If you’re married filing separately, you can offset $1,500. If you lost more than that, your net losses roll over to the next year.

Investors who are trying to offset capital gains with their losses used to be able to sell their investments at a loss and then immediately rebuy them, which is known as a wash sale. They could capture that loss without any actual damage to their portfolio, until the IRS implemented the wash sale rule, which requires that you wait 30 days before rebuying to realize those losses. 

Though this rule applies to most securities, the rule hasn’t been applied to cryptocurrency yet, which means a cryptocurrency wash sale is still possible.  

The bottom line

Tax planning should never be the sole factor driving an investment strategy,but it can be a factor. If possible, holding onto your investments for more than a year before you even think of selling them can be a big advantage when it comes to paying taxes on your capital gains. 

If you need to cash in some investments — for an IRA distribution or just because you need income — capital gains’ special tax treatment can also help you determine which particular holdings to sell, and when. Obviously, you’d sell those that qualify as a long-term gain, for the lower tax rate. 

But whether you sell your assets after a few months or a few years, be sure to keep good records of what you bought and sold, when the transaction took place, and how much you paid or received for it. That way, you’ll have all of the information you need to calculate and report your capital gains and losses properly on your tax return.