Capital Gains Tax: A Complete Guide to Rates, Rules & Strategies

Introduction

You sell your home for $400,000 after buying it for $180,000 fifteen years ago. Congratulations — that's a $220,000 gain. Then your accountant mentions capital gains tax, and suddenly that profit looks different.

This scenario plays out constantly for ordinary homeowners, stock investors, and small business owners. Capital gains tax isn't reserved for Wall Street — it touches anyone who sells an asset at a profit, from a rental property in Chicago to shares in a mutual fund.

This guide covers exactly what you need to know: how capital gains tax works, what rates apply to your situation, which exceptions might eliminate your tax bill entirely, and proven strategies — from tax-loss harvesting to the home sale exclusion — to reduce what you owe.


Key Takeaways

  • Capital gains tax applies to the profit from selling assets — not the total sale price
  • Holding period determines your rate: short-term gains (≤1 year) are taxed as ordinary income up to 37%; long-term gains (>1 year) qualify for 0%, 15%, or 20%
  • The primary residence exclusion can shield up to $500,000 in gains for married couples
  • Inherited assets receive a stepped-up basis, potentially eliminating tax on years of appreciation
  • Legal strategies like tax-loss harvesting, retirement accounts, and charitable giving can significantly cut your tax bill

What Is Capital Gains Tax and Who Owes It?

Capital gains tax is the federal tax on profit from selling a capital asset. The key word is profit — you're taxed on the gain (sale price minus your cost basis), not the full amount you receive.

Gains stay "unrealized" — and untaxed — until you actually sell. The moment you close the sale, the gain becomes taxable income.

Assets subject to capital gains tax include:

  • Stocks, bonds, mutual funds, and ETFs
  • Investment real estate
  • Collectibles (art, coins, antiques, precious metals)
  • Cryptocurrency and other digital assets
  • Personal property sold at a profit (valuable artwork, for example)

According to IRS Publication 544, almost everything owned for personal use or investment qualifies as a capital asset. That broad definition means capital gains tax can apply even when you're not a professional investor.

One important distinction: if you regularly buy and sell assets as a business (say, as an inventory dealer or a developer selling property to customers), those profits are typically taxed as ordinary business income, not capital gains.

Individual investors buying and selling securities for their own account still generate capital gains, not ordinary income — unless they make a specific IRS election under Section 475(f).


Short-Term vs. Long-Term Capital Gains: Rates and Brackets

The single most important factor in your capital gains tax bill is how long you held the asset before selling.

  • Short-term gains (held one year or less) — taxed at ordinary income rates, currently 10%–37%
  • Long-term gains (held more than one year) — taxed at preferential rates of 0%, 15%, or 20%

2025 Long-Term Capital Gains Rate Brackets

These brackets are based on taxable income, not the gain alone. Source: IRS Rev. Proc. 2024-40.

Filing Status 0% 15% 20%
Single Up to $48,350 $48,351–$533,400 $533,401+
Married Filing Jointly Up to $96,700 $96,701–$600,050 $600,051+
Married Filing Separately Up to $48,350 $48,351–$300,000 $300,001+
Head of Household Up to $64,750 $64,751–$566,700 $566,701+

2025 Ordinary Income Brackets (Applicable to Short-Term Gains)

Rate Single Married Filing Jointly
10% Up to $11,925 Up to $23,850
12% $11,926–$48,475 $23,851–$96,950
22% $48,476–$103,350 $96,951–$206,700
24% $103,351–$197,300 $206,701–$394,600
32% $197,301–$250,525 $394,601–$501,050
35% $250,526–$626,350 $501,051–$751,600
37% $626,351+ $751,601+

The Net Investment Income Tax (NIIT)

High-income earners face an additional 3.8% surtax on investment income — including capital gains — once modified adjusted gross income (MAGI) exceeds:

  • $200,000 for single filers and heads of household
  • $250,000 for married filing jointly
  • $125,000 for married filing separately

This surtax stacks on top of regular capital gains rates. A high-income single filer could pay 20% + 3.8% = 23.8% on long-term gains. These NIIT thresholds are not adjusted for inflation — meaning more earners get pulled in each year.

Short-term versus long-term capital gains tax rates comparison including NIIT surcharge

Why Timing Your Sale Matters

Those rate differences make the when of selling just as important as the what. Consider a single filer with $80,000 in taxable income and a $20,000 stock gain.

  • Sell after 11 months (short-term): $20,000 taxed at 22% ordinary income rate = $4,400 owed
  • Sell after 13 months (long-term): $20,000 taxed at 15% long-term rate = $3,000 owed

Waiting two months saves $1,400. No additional risk, no additional capital — just a better-timed decision.


How to Calculate Your Capital Gains Tax

The Core Formula

Capital Gain = Sale Price − Cost Basis

Cost basis is what you originally paid, adjusted for certain items:

  • Purchase commissions and acquisition fees increase basis
  • Home improvements increase basis for real estate
  • Depreciation reduces basis (on rental property, for example)
  • Reinvested mutual fund distributions increase basis in additional shares

A Practical Example

You buy stock for $10,000 (including commissions) and sell it two years later for $18,000.

  1. Calculate the gain: $18,000 − $10,000 = $8,000 long-term gain
  2. Determine your bracket: If your taxable income falls in the 15% long-term bracket, you owe $1,200
  3. Check for NIIT: If your MAGI is below $200,000, no additional surtax applies

Netting Gains and Losses

You don't calculate each position in isolation. The IRS requires a specific netting sequence:

  1. Net all short-term gains and losses together
  2. Net all long-term gains and losses together
  3. Combine the two net results

If your total capital losses exceed your gains, you can deduct up to $3,000 of the excess against ordinary income per year ($1,500 if married filing separately). Losses beyond that limit carry forward indefinitely — retaining their short-term or long-term character — making them a useful planning asset in future tax years.

Three-step IRS capital gains and losses netting sequence process flow diagram

Reporting Requirements

Once you've calculated and netted your gains, they get reported on Form 8949 and summarized on Schedule D of your Form 1040.

If you realize a substantial gain mid-year, you may need to make estimated quarterly tax payments to avoid underpayment penalties. For 2025, the safe harbor requires payments covering the lesser of 90% of your 2025 tax or 100% of your 2024 tax — rising to 110% if your 2024 AGI exceeded $150,000.


Special Rules, Exceptions, and Asset-Specific Rates

Not all capital gains are created equal. Several assets face different rates — and some gains can be excluded entirely.

Primary Residence Exclusion

Homeowners can exclude gains from capital gains tax if they:

  • Owned the property for at least 2 of the past 5 years, and
  • Used it as a primary residence for at least 2 of the past 5 years

Exclusion amounts:

  • Single filers: up to $250,000
  • Married filing jointly: up to $500,000

This exclusion cannot be used more than once every two years, and it does not apply to investment or rental properties that never satisfied the primary residence test. Gains above the exclusion threshold remain taxable.

Asset-Specific Higher Rates

Some long-term gains don't qualify for the standard 0%/15%/20% structure:

Asset Type Maximum Rate
Collectibles (art, antiques, coins, precious metals) 28%
Unrecaptured Section 1250 gain (real estate depreciation) 25%
Section 1202 qualified small business stock (taxable portion) 28%

Capital gains tax rates by asset type collectibles real estate crypto comparison chart

Section 1202 stock acquired after September 27, 2010 can qualify for a 100% gain exclusion if held more than 5 years — but detailed issuer, asset limit, and other tests apply.

Inherited Assets and Step-Up in Basis

When you inherit an asset, your cost basis is "stepped up" to the fair market value on the date of the original owner's death. This means all appreciation that occurred during the decedent's lifetime is erased for capital gains purposes.

If you inherit stock worth $150,000 that your parent bought for $20,000, your basis is $150,000 — not $20,000. Sell it promptly after inheriting, and you owe little or nothing in capital gains tax.

Step-up in basis is one of the most underutilized estate planning tools available. F.I.C.'s probate and estate/gift tax planning team works with clients regularly on inherited assets — making sure the basis is correctly established before any sale decisions are made.

Cryptocurrency

The IRS treats digital currencies as property, not currency. Every sale, trade, or use of crypto to buy goods or services is a taxable event subject to the same short- and long-term capital gains rules as other assets.

Crypto-to-crypto swaps count too. Exchanging one cryptocurrency for another triggers a taxable event — the gain or loss equals the fair market value of what you received minus your adjusted basis in what you gave up.

When multiple asset types, depreciation recapture, inherited estates, or cross-border investments are involved, capital gains calculations compound fast. F.I.C. handles these situations regularly — from standard tax preparation to complex probate and IRS resolution matters — so clients have accurate numbers and a clear plan before filing.


Strategies to Minimize Your Capital Gains Tax Bill

Tax-Loss Harvesting

Sell underperforming investments to realize losses that offset your realized gains. If you have a $15,000 gain in one position and a $10,000 loss in another, harvesting that loss reduces your taxable gain to $5,000.

Watch the wash-sale rule: If you repurchase the same or a substantially identical investment within 30 days before or after the sale, the IRS disallows the loss. The disallowed amount adjusts your replacement investment's basis instead. Note that as of 2025, the statutory wash-sale rule applies to stock and securities — cryptocurrency held as property outside that category has generally not been covered by this rule, though this remains an evolving area.

Extend Your Holding Period

If you're approaching the one-year mark on a profitable position, consider waiting. Converting a short-term gain taxed at 22% or higher into a long-term gain taxed at 15% can save thousands on a single trade — with no additional cost beyond patience.

Use Tax-Advantaged Retirement Accounts

Investments inside a 401(k), traditional IRA, or Roth IRA are not subject to capital gains taxes when bought or sold within the account. A Roth IRA is particularly powerful: qualified distributions after age 59½ (and after a 5-year holding period) are entirely tax-free, meaning decades of gains can be withdrawn with zero capital gains exposure. To qualify, Roth distributions must meet two conditions:

  • Account holder is age 59½ or older
  • The account has been open for at least 5 years

Donate Appreciated Assets to Charity

Instead of selling a stock and donating the cash, donate the shares directly to a qualified charity. You avoid recognizing the capital gain entirely, and you can still claim a charitable deduction for the full fair market value of the asset — subject to AGI limits (generally 30% of AGI for long-term capital gain property donated to public charities).

This works especially well for highly appreciated positions where the embedded gain would otherwise trigger a significant tax bill. The higher the gain, the more meaningful the combined benefit: no capital gains recognized, plus a deduction for the full current value.

These four strategies rarely work in isolation. Most investors benefit most by combining them — harvesting losses in a taxable account, holding long-term positions past the one-year threshold, and sheltering future growth inside tax-advantaged accounts. A tax advisor can help identify which combination fits your situation and timeline.


Four capital gains tax minimization strategies overview infographic with key benefits

Frequently Asked Questions

How much tax on capital gains in the US?

The rate depends on how long you held the asset and your income level. Long-term rates range from 0% to 20%, with a potential additional 3.8% NIIT for high earners. Short-term gains are taxed at ordinary income rates of 10%–37%.

How much capital gains tax will I pay on $300,000?

It depends on your filing status, total income, and whether the gain is short- or long-term. A married couple selling their primary residence might owe nothing under the home sale exclusion. Consult a tax professional for a calculation specific to your situation.

What is the 6-year rule for capital gains tax?

The "6-year rule" is an Australian tax concept — it does not exist under U.S. federal law. In the U.S., the relevant rule for homeowners is the 2-of-5-year primary residence test, which allows exclusion of up to $250,000 or $500,000 in gains.

Do I pay capital gains tax if I reinvest the proceeds from a sale?

Yes — reinvesting proceeds doesn't defer or eliminate the tax. The taxable event is the sale itself, not what you do with the money afterward. Tax deferral is only available through specific mechanisms like a 1031 exchange for real estate or within qualified retirement accounts.

Can I use capital losses to offset capital gains?

Yes. Capital losses offset capital gains dollar-for-dollar. If losses exceed gains, up to $3,000 of the excess can be deducted against ordinary income per year, and remaining losses carry forward to future tax years.

How does the primary residence exclusion work for capital gains?

If you've owned and lived in the home as your primary residence for at least two of the past five years, you can exclude up to $250,000 in gains (single filers) or $500,000 (married filing jointly). Any gains above those limits are taxed at standard capital gains rates.