Capital Gains Tax: Rates, Cost Basis, and Exemptions

Capital gains tax rules and rates work off two questions: did you sell the asset, and how long did you own it before you did. The federal government taxes the profit as income when you sell, exchange, or otherwise dispose of a capital asset, and for 2026 long-term gains are taxed at 0%, 15%, or 20%, while short-term gains are taxed at ordinary income rates up to 37%.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses

Short-Term Versus Long-Term Holding

The single biggest variable in your tax bill is the holding period. Hold the asset more than one year and the profit is a long-term capital gain, eligible for the preferential 0/15/20% rates. Hold it one year or less and the profit is a short-term gain, taxed at the same rate as your wages.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses

The clock starts the day after you acquire the asset and includes the day you sell. Buy stock on March 1, 2025, and you need to sell on March 2, 2026, or later to qualify for long-term treatment.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses One day short pulls the entire gain into the short-term bracket.

2026 Long-Term Capital Gains Rates

Three federal rates apply to long-term gains, and which one you pay depends on your taxable income and filing status. For 2026:1Internal Revenue Service. Topic No. 409, Capital Gains and Losses

  • 0% rate on taxable income up to $49,450 single, $98,900 married filing jointly, or $66,200 head of household.
  • 15% rate on taxable income from $49,451 to $545,500 single, $98,901 to $613,700 married filing jointly, or $66,201 to $579,600 head of household.
  • 20% rate on taxable income above $545,500 single, $613,700 married filing jointly, or $579,600 head of household.

Short-term gains get no preferential rate. They ride the ordinary income brackets, which run from 10% to 37% for 2026.2Internal Revenue Service. Federal Income Tax Rates and Brackets

Collectibles and Depreciated Real Estate

Some long-term gains don’t get the 0/15/20% rates. Gains on collectibles like coins, art, antiques, and precious metals top out at 28%. If you sell a rental property, the portion of the gain that reflects depreciation you claimed is taxed at up to 25% as unrecaptured Section 1250 gain, and only the remainder qualifies for the standard long-term rates.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses

Net Investment Income Tax

Higher earners owe an additional 3.8% surtax on net investment income, which includes capital gains. It applies to the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds $200,000 single or $250,000 married filing jointly.3Office of the Law Revision Counsel. 26 U.S. Code 1411 – Imposition of Tax These thresholds are not indexed to inflation. A single filer with $300,000 of income and $50,000 of capital gains would owe an extra $1,900.

The Kiddie Tax

Dependents with unearned income above $2,700 in 2026 are taxed on the excess at the parent’s marginal rate rather than the child’s own bracket.4Internal Revenue Service. Topic No. 553, Tax on a Child’s Investment and Other Unearned Income Custodial accounts don’t provide the tax arbitrage they might appear to.

When the Tax Is Triggered

You don’t owe capital gains tax because an investment went up. The tax applies when you sell, exchange, or otherwise dispose of the asset. Unrealized gains sitting in an account are not taxable until you close the position.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses

This covers a wide range of property: stocks, bonds, real estate, cryptocurrency, and collectibles. The IRS treats virtual currency as property, so every crypto sale or exchange is a taxable event on the same footing as a stock sale.5Internal Revenue Service. Frequently Asked Questions on Virtual Currency Transactions

If a sale pays you across multiple years, the installment method on Form 6252 lets you recognize the gain proportionally as payments arrive. Each payment splits into interest income, a tax-free return of basis, and taxable gain.6Internal Revenue Service. Publication 537, Installment Sales The installment method is not available for sales of publicly traded stocks or securities, and it cannot be used to report a loss.

Figuring Your Cost Basis

Your cost basis is what you subtract from the sale price to find the gain. At its simplest it is what you paid, but the IRS lets you add certain acquisition costs. For stocks and bonds, commissions and transfer fees are added to the purchase price.7Internal Revenue Service. Topic No. 703, Basis of Assets For real estate, add settlement fees, closing costs, and permanent improvements like a new roof or an addition.8Internal Revenue Service. Publication 551, Basis of Assets

Ownership events adjust that number over time. Improvements push it up; depreciation and casualty insurance reimbursements push it down. The result is your adjusted basis, and the gap between adjusted basis and sale proceeds is your taxable gain or deductible loss.7Internal Revenue Service. Topic No. 703, Basis of Assets

Inherited Property

Inherited assets do not carry the decedent’s basis. The basis resets to the fair market value on the date of death, which erases any built-up gain from the decedent’s lifetime.9Office of the Law Revision Counsel. 26 U.S. Code 1014 – Basis of Property Acquired From a Decedent

Gifted Property

Gifts follow a dual-basis rule. Your basis for calculating a gain is generally the donor’s adjusted basis. If the fair market value at the time of the gift was lower than the donor’s basis, you use that lower value when calculating a loss.10Office of the Law Revision Counsel. 26 U.S. Code 1015 – Basis of Property Acquired by Gifts and Transfers in Trust Ask the donor for their purchase records at the time of the gift.

Capital Losses

Losses first offset gains. If your capital losses exceed your capital gains, you can deduct up to $3,000 of the net loss against ordinary income ($1,500 if married filing separately), and the rest carries forward indefinitely.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses A carried loss keeps its character: long-term losses stay long-term and offset long-term gains first the next year.11Internal Revenue Service. Publication 550, Investment Income and Expenses

The Wash Sale Rule

Sell a security at a loss and buy the same or a substantially identical security within 30 days before or after the sale, and the IRS disallows the loss under the wash sale rule.12Office of the Law Revision Counsel. 26 U.S. Code 1091 – Loss From Wash Sales of Stock or Securities The disallowed loss is added to the basis of the replacement shares, so it survives, but it cannot offset gains in the current year. The full window is 61 days: 30 before the sale, the sale day, and 30 after.

Selling Your Primary Home

Sale of a principal residence is one of the largest tax breaks in the code. You can exclude up to $250,000 of gain if you file single, or $500,000 if married filing jointly, with the excess taxed at the standard long-term rates.13Office of the Law Revision Counsel. 26 U.S. Code 121 – Exclusion of Gain From Sale of Principal Residence

Two tests apply within the five years ending on the sale date. You must have owned the home for at least two of those years, and used it as your principal residence for at least two of those years. The two years do not need to be consecutive. You generally cannot claim the exclusion more than once every two years.14Internal Revenue Service. Topic No. 701, Sale of Your Home

For the $500,000 joint exclusion, both spouses must meet the use test and at least one must meet the ownership test. If only one spouse qualifies, the limit is $250,000.13Office of the Law Revision Counsel. 26 U.S. Code 121 – Exclusion of Gain From Sale of Principal Residence Members of the uniformed services or Foreign Service on qualified extended duty can suspend the five-year test period for up to 10 years.15eCFR. 26 CFR 1.121-5 – Suspension of 5-Year Period for Certain Members of the Uniformed Services and Foreign Service

Deferring Gain With a 1031 Exchange

Real property held for business or investment can be swapped for other like-kind real property, deferring the entire capital gain. Since the Tax Cuts and Jobs Act, 1031 exchanges are limited to real property; equipment, vehicles, and other personal property no longer qualify.16Internal Revenue Service. Like-Kind Exchanges – Real Estate Tax Tips

The deadlines are strict. You must identify replacement property within 45 days of selling the original, and close on the replacement within 180 days.17Office of the Law Revision Counsel. 26 U.S. Code 1031 – Exchange of Real Property Held for Productive Use in a Trade or Business or for Investment Miss either date and the exchange fails; the gain becomes fully taxable in the year of the original sale.

Reporting on Your Tax Return

Capital gains and losses go on two forms attached to Form 1040. Form 8949 lists each transaction with the property description, purchase and sale dates, proceeds, and cost basis.18Internal Revenue Service. Form 8949 – Sales and Other Dispositions of Capital Assets Totals from Form 8949 carry to Schedule D, which summarizes the year.19Internal Revenue Service. Schedule D (Form 1040) – Capital Gains and Losses

Your broker sends Form 1099-B by mid-February reporting gross proceeds. For covered securities purchased after certain cutoff dates, the broker also reports cost basis to you and the IRS.20Internal Revenue Service. Instructions for Form 1099-B Check the basis figures against your own records; transferred shares, splits, and corporate actions are common sources of error. If the 1099-B basis is wrong, report the correct number on Form 8949 with an adjustment code.

Cryptocurrency uses the same forms. Every sale or exchange goes on Form 8949 with the holding period, proceeds, and cost basis, whether or not you received a 1099.5Internal Revenue Service. Frequently Asked Questions on Virtual Currency Transactions Older transactions often lack formal broker documentation, so keep your own records of dates, prices, and wallet transfers.