
As a 30+ year member of the AICPA, Nancy has experienced all facets of finance, including tax, auditing, payroll, plan benefits, and small business accounting. Her résumé includes years at KPMG International and McDonald’s Corporation. She now runs her own accounting business, serving several small clients in industries ranging from law and education to the arts.
Jennifer Agee has been editing financial education since 2001, including publications focused on technical analysis, stock and options trading, investing, and personal finance.

Selling an investmentâor even your homeâcan trigger a tax bill. Whether you owe capital gains tax depends on what you sold, how long you owned it, and how much you gained from the sale.
Consider these scenarios:
What tax consequences do you have when you sell those stocks? What about the house? Does it matter how long you owned these assets? And what about all that money you spent improving your home?
Although these situations seem very different, they all involve selling a capital assetâand each sale can result in a capital gain or loss.
Things you own and use for personal or investment reasons are capital assets. Property for personal use includes your home, your car, and your furniture. You might also own investment securities such as stocks and bonds.
In most situations, the basis of an asset is its cost to you. This cost may have been paid in cash, or via services you provided, or maybe you took out a loan to purchase them. Extra costs you paid to buy the asset are added to your basis. Such costs could include sales tax, commissions, or transfer fees.
If you make long-term improvements to your asset, you add the cost of those improvements to its basis. The sum total of the improvements you make (less any depreciation you may have claimed against the asset) becomes your adjusted cost basis.
If you received an asset from another person because of a gift or inheritance, the basis is different. Typically, the basis for inherited property is the fair market value at the date of the ownerâs death. Property received as a gift has a basis of either the donorâs adjusted basis or the fair market value of the property at the time you received it, whichever is smaller (unless you have a gain when you sell the asset; in that case, you get to use the donorâs higher basis).
But what about financial securitiesâstocks, bonds, and exchange-traded funds (ETFs)? For most stocks, bonds, and ETFs, your broker is required to track and report your cost basis to the Internal Revenue Service. But what about securities you bought a long time ago or over time in multiple purchases?
Note: There are special rules for mutual funds that are acquired over time. If you canât determine which exact mutual fund shares were sold, you can choose to use whatâs called the average basis (but you must tell the custodian of your fund that youâre using this method), or the standard cost basis (oldest shares are sold first).
When you sell a capital asset for more than your adjusted basis, you have a capital gain. If you sell your capital asset for less than your adjusted basis, you have a capital loss. Losses from the sale of personal property, such as furniture or your home, arenât tax deductible. But gains and losses from sales of investment securities, such as stocks and bonds, are reflected on your tax return.
Generally, if you owned your capital asset for more than a year, the gain or loss when you sell it is considered long term. If you owned the asset for less than a year, the gain or loss is a short-term capital gain or loss. Other rules apply if you inherited your asset or received it as a gift, or if your assets are futures contracts or certain other derivatives.
Note: There are special rules for the sale of your primary residence, the biggest one being the capital gains exclusion. Assuming youâve lived in your home for two of the last five years, you can exclude up to $250,000 in capital gains if youâre a single filer and up to $500,000 if youâre married and filing jointly. Thatâs why itâs important to track the capital improvements you make to the home.
The totals for long-term and short-term capital gains and losses must be calculated separately. Add together all your short-term capital gains and losses to determine your net short-term capital gain or loss. Then add together all your long-term capital gains and losses to find your net long-term capital gain or loss. Finally, add together your net short-term and long-term capital gains and losses. If you end up with a net gain, that amount will be taxable. If you have a loss, some of the loss will likely be deductible on your tax return.
Generally, the short-term capital gains you report will be taxed at the same rate as your income. The lower capital gains tax rates apply to your long-term capital gains.
Most taxpayers pay a 15% tax rate on long-term capital gains.
| Capital gains tax rate | Single (taxable income) | Married filing jointly (taxable income) | Head of household (taxable income) | Married filing separately (taxable income) | |
|---|---|---|---|---|---|
| 0% | Up to $48,350 | Up to $96,700 | Up to $64,750 | Up to $48,350 | |
| 15% | $48,351 to $533,400 | $96,701 to $600,050 | $64,751 to $566,700 | $48,351 to $300,000 | |
| 20% | Over $533,400 | Over $600,050 | Over $566,700 | Over $300,000 | |
| Note that if your gain is from the sale of collectibles such as art, rugs, stamps, and so on, the tax rate is 28%. | |||||
| Capital gains tax rate | Single (taxable income) | Married filing jointly (taxable income) | Head of household (taxable income) | Married filing separately (taxable income) | |
|---|---|---|---|---|---|
| 0% | Up to $49,450 | Up to $98,900 | Up to $66,200 | Up to $49,450 | |
| 15% | $49,451 to $545,500 | $98,901 to $613,700 | $66,201 to $579,600 | $49,451 to $306,850 | |
| 20% | Over $545,500 | Over $613,700 | Over $579,600 | Over $306,850 | |
| Note that if your gain is from the sale of collectibles such as art, rugs, stamps, and so on, the tax rate is 28%. | |||||
If your capital losses are more than your capital gains, you are allowed to deduct part of that loss on your tax return. The maximum deduction is $3,000 ($1,500 married filing separately), or up to your taxable income, if that is lower than $3,000. You can carry the loss forward to later years if you canât use it all in one year.
You may receive capital gain distributions from mutual funds and, less commonly, ETFs. Distributions of net realized short-term capital gains are included as ordinary dividends on tax documents, rather than as actual capital gains. Capital-gains distributions are generally reported on Schedule D of Form 1040.
Keep good records of what you paid for your investments and other capital assets, as well as any costs that affect their value. Knowing your cost basis and how capital gains and losses are taxed can help you make informed decisions when itâs time to sell. But donât let taxes be the sole reason to buy, hold, or sell an investment. Your financial goals and risk tolerance should come first.