If you've sold stocks, real estate, cryptocurrency, or any other investment asset in the United States, you need to understand United States capital gains tax. The tax you owe on your investment profits can vary dramatically — from 0% to over 37% — depending on how long you held the asset, your total income, and your filing status.
In this complete guide, we break down everything you need to know about capital gains tax in the United States for the 2025/2026 tax year, including current rates, exemptions, common mistakes, and actionable strategies to legally minimize your tax liability. Whether you're a U.S. resident, an expat, or a non-resident investor, this guide has you covered.
Use our United States Capital Gains Tax Calculator to quickly estimate how much you'll owe on your investment gains.
What Is Capital Gains Tax in the United States?
Capital gains tax is a federal tax imposed on the profit you make when you sell a capital asset for more than you paid for it. Capital assets include:
- Stocks and bonds
- Real estate (including your home, rental properties, and land)
- Cryptocurrency (Bitcoin, Ethereum, etc.)
- Collectibles (art, antiques, precious metals)
- Business interests and partnerships
- Mutual funds and ETFs
The capital gain is calculated as the difference between the sale price (also called the amount realized) and the cost basis (the original purchase price plus certain adjustments like improvements, commissions, and fees).
Example: If you purchased shares of a stock for $10,000 and sold them for $15,000, your capital gain is $5,000.
Conversely, if you sell an asset for less than your cost basis, you have a capital loss, which can be used to offset capital gains and even reduce your ordinary income by up to $3,000 per year.
Short-Term vs. Long-Term Capital Gains: Understanding the Difference
The United States tax system distinguishes between two types of capital gains based on your holding period — the length of time you owned the asset before selling it. This distinction is critical because it determines which tax rates apply.
Short-Term Capital Gains
Assets held for one year or less before being sold are subject to short-term capital gains tax. Short-term gains are taxed at your ordinary income tax rates, which can be significantly higher than long-term rates.
For the 2025 tax year, the federal ordinary income tax brackets are:
| Tax Rate | Single Filers | Married Filing Jointly | Head of Household |
|---|---|---|---|
| 10% | Up to $11,925 | Up to $23,850 | Up to $17,000 |
| 12% | $11,926 – $48,475 | $23,851 – $96,950 | $17,001 – $64,850 |
| 22% | $48,476 – $103,350 | $96,951 – $206,700 | $64,851 – $103,350 |
| 24% | $103,351 – $197,300 | $206,701 – $394,600 | $103,351 – $197,300 |
| 32% | $197,301 – $250,525 | $394,601 – $501,050 | $197,301 – $250,500 |
| 35% | $250,526 – $626,350 | $501,051 – $751,600 | $250,501 – $626,350 |
| 37% | Over $626,350 | Over $751,600 | Over $626,350 |
As you can see, short-term capital gains can be taxed at rates as high as 37%. This is why the holding period matters so much.
Long-Term Capital Gains
Assets held for more than one year qualify for preferential long-term capital gains tax rates, which are substantially lower than ordinary income rates. For the 2025 tax year, the long-term capital gains rates are:
| Tax Rate | Single Filers | Married Filing Jointly | Head of Household |
|---|---|---|---|
| 0% | Up to $48,350 | Up to $96,700 | Up to $64,750 |
| 15% | $48,351 – $533,400 | $96,701 – $600,050 | $64,751 – $566,700 |
| 20% | Over $533,400 | Over $600,050 | Over $566,700 |
These thresholds are based on your taxable income, which includes your capital gains. The 0% rate is particularly valuable for taxpayers in lower income brackets — it means you could potentially pay zero federal tax on your investment profits.
Practical Example: Sarah is a single filer with $40,000 in wage income and $10,000 in long-term capital gains in 2025. Her total taxable income is $50,000. Her first $48,350 of gains-eligible income is taxed at 0%, and only the remaining $1,650 of her long-term gains is taxed at 15%. Her total capital gains tax is just $247.50 — far less than if those gains were short-term.
Special Rate for Collectibles
Long-term gains on collectibles — such as art, coins, precious metals, stamps, and antiques — are taxed at a maximum rate of 28%, which is higher than the standard long-term rates. This is an often-overlooked rule.
Unrecaptured Section 1250 Gain
If you sell depreciated real estate at a gain, the portion of the gain attributable to depreciation deductions you previously claimed is taxed at a maximum rate of 25%. This is known as unrecaptured Section 1250 gain.
The Net Investment Income Tax (NIIT): An Additional 3.8%
In addition to the standard capital gains rates, high-income taxpayers may owe the Net Investment Income Tax (NIIT) of 3.8%. This surtax applies to the lesser of your net investment income or the amount by which your modified adjusted gross income (MAGI) exceeds the following thresholds:
- Single filers: $200,000
- Married filing jointly: $250,000
- Married filing separately: $125,000
This means that a high-income single filer could face a combined federal long-term capital gains rate of 23.8% (20% + 3.8%) — and short-term gains could be taxed at up to 40.8% (37% + 3.8%).
Example: Mark and Lisa are married filing jointly with a MAGI of $350,000, which includes $80,000 in long-term capital gains. Their MAGI exceeds the $250,000 threshold by $100,000. The NIIT applies to the lesser of their net investment income ($80,000) or the excess MAGI ($100,000). They owe an additional $3,040 (3.8% × $80,000) in NIIT on top of their regular capital gains tax.
Use our United States Income Tax Calculator to see how your total income — including capital gains — affects your overall federal tax liability.
Key Exemptions and Deductions for Capital Gains
The U.S. tax code provides several important exemptions and deductions that can significantly reduce or eliminate your capital gains tax liability.
Primary Residence Exclusion (Section 121)
One of the most valuable tax breaks available is the home sale exclusion. If you sell your primary residence, you can exclude up to:
- $250,000 in capital gains for single filers
- $500,000 in capital gains for married couples filing jointly
To qualify, you must meet the ownership and use tests:
- You owned the home for at least 2 of the last 5 years before the sale.
- You used the home as your primary residence for at least 2 of the last 5 years before the sale.
- You haven't excluded gain from another home sale in the last 2 years.
These two years don't need to be consecutive. Partial exclusions may be available if you fail to meet the full requirements due to a change in employment, health, or unforeseen circumstances.
Tax-Loss Harvesting
Tax-loss harvesting is a strategy where you sell losing investments to offset capital gains. Here's how it works:
- Capital losses first offset capital gains of the same type (short-term losses offset short-term gains; long-term losses offset long-term gains).
- Excess losses can offset the other type of gain.
- Up to $3,000 of net capital losses can be deducted against ordinary income per year ($1,500 for married filing separately).
- Unused losses carry forward to future tax years indefinitely.
Watch out for the wash-sale rule: If you sell a security at a loss and buy a "substantially identical" security within 30 days before or after the sale, the loss is disallowed. This rule currently applies to stocks and securities but may also apply to cryptocurrency depending on evolving IRS guidance.
Qualified Opportunity Zones (QOZ)
Investors can defer and potentially reduce capital gains by reinvesting them into Qualified Opportunity Zone Funds. While the original tax benefits for basis step-ups have largely expired for new investments, gains on QOZ investments held for at least 10 years can be permanently excluded from capital gains tax.
1031 Like-Kind Exchanges
Real estate investors can defer capital gains tax by exchanging one investment property for another of "like kind" under Section 1031. Key rules include:
- Both properties must be held for investment or business use (not personal residences).
- The replacement property must be identified within 45 days and the exchange must be completed within 180 days.
- The exchange must be facilitated by a qualified intermediary.
- Since the Tax Cuts and Jobs Act of 2017, 1031 exchanges only apply to real property — not personal property, art, or other assets.
Capital Gains Tax for Non-Residents and Foreign Investors
If you're a non-resident alien investing in U.S. assets, the capital gains tax rules differ significantly.
General Rule: No U.S. Tax on Most Capital Gains
Non-resident aliens are generally not subject to U.S. capital gains tax on the sale of stocks, bonds, and most other securities, provided:
- They were not physically present in the U.S. for 183 days or more during the tax year.
- The gains are not effectively connected with a U.S. trade or business.
FIRPTA: Real Estate Is Different
The Foreign Investment in Real Property Tax Act (FIRPTA) is a major exception. If a non-resident sells U.S. real property interests (including real estate and shares in "U.S. real property holding corporations"), the gain is treated as effectively connected income and taxed at regular U.S. capital gains rates.
The buyer is generally required to withhold 15% of the gross sale price at closing and remit it to the IRS. The non-resident seller can then file a U.S. tax return to claim a refund if the actual tax liability is lower than the amount withheld.
Tax Treaties
The United States has tax treaties with dozens of countries that may affect how capital gains are taxed. Many treaties provide:
- Reduced withholding rates on certain types of income.
- Rules for determining which country has primary taxing rights on capital gains.
- Provisions to prevent double taxation, usually through foreign tax credits.
Common treaty partners include the United Kingdom, Canada, Germany, Japan, Australia, India, and France. Always check the specific treaty provisions for your country of residence.
Common Mistakes and Misconceptions
Avoiding these frequent errors can save you significant money and headaches:
Forgetting to track cost basis: If you can't prove your cost basis, the IRS may assume it's zero — meaning your entire sale proceeds could be taxed. Keep detailed records of purchase prices, reinvested dividends, and improvements.
Ignoring state capital gains taxes: Most U.S. states also tax capital gains. States like California (up to 13.3%), New York, and New Jersey impose additional taxes that can significantly increase your total bill. A few states — including Florida, Texas, Nevada, and Washington — have no state income tax on capital gains.
Confusing the holding period: The holding period starts the day after you acquire the asset and includes the day you sell it. Selling one day too early could convert a long-term gain into a much more expensive short-term gain.
Not reporting cryptocurrency gains: The IRS treats cryptocurrency as property, not currency. Every sale, trade, or exchange of crypto is a taxable event. Failure to report these transactions can result in penalties and interest.
Overlooking the NIIT: Many taxpayers forget about the 3.8% Net Investment Income Tax, which can apply on top of regular capital gains rates for higher earners.
Missing the wash-sale rule: Repurchasing a substantially identical security within 30 days of a loss sale disallows the loss for tax purposes.
How to Report Capital Gains on Your Tax Return
Reporting capital gains correctly requires several IRS forms:
Step-by-Step Process
Gather your 1099 forms: Brokerage firms issue Form 1099-B reporting the proceeds from your sales. Starting in 2025, cryptocurrency exchanges are also required to issue these forms.
Complete Form 8949: List each individual sale, including the date acquired, date sold, proceeds, cost basis, and gain or loss. Separate short-term and long-term transactions.
Transfer totals to Schedule D: Summarize your short-term and long-term gains and losses from Form 8949 on Schedule D (Form 1040).
Calculate NIIT if applicable: Use Form 8960 to determine whether you owe the 3.8% Net Investment Income Tax.
File by the deadline: For the 2025 tax year, the filing deadline is April 15, 2026. Extensions to file (but not to pay) can be obtained using Form 4868, extending the deadline to October 15, 2026.
Estimated Tax Payments
If you expect to owe $1,000 or more in tax (including capital gains tax), you may need to make quarterly estimated tax payments to avoid underpayment penalties. The quarterly deadlines for the 2025 tax year are:
- Q1: April 15, 2025
- Q2: June 16, 2025
- Q3: September 15, 2025
- Q4: January 15, 2026
Strategies to Minimize Your United States Capital Gains Tax
Here are proven, legal strategies to reduce your capital gains tax burden:
- Hold investments for more than one year to qualify for lower long-term rates.
- Maximize the 0% bracket by managing your taxable income — for example, by timing the sale of assets in years when your income is lower (such as retirement or a career break).
- Use tax-advantaged accounts: Gains in 401(k)s, IRAs, Roth IRAs, and HSAs are either tax-deferred or tax-free. Roth IRAs, in particular, allow completely tax-free withdrawals in retirement.
- Harvest your losses strategically at year-end to offset gains.
- Donate appreciated assets to charity. You can deduct the full fair market value and avoid paying capital gains tax on the appreciation.
- Use 1031 exchanges for investment real estate to defer gains indefinitely.
- Gift assets to family members in lower tax brackets (but be aware of gift tax rules and the "kiddie tax" for children under 19, or under 24 if full-time students).
- Consider your state of residence: Relocating to a state with no income tax can eliminate the state-level capital gains tax.
Try our United States Capital Gains Tax Calculator to model different scenarios and see how holding period, income level, and filing status affect your tax.
Frequently Asked Questions (FAQ)
How much is capital gains tax in the United States in 2025?
Long-term capital gains are taxed at 0%, 15%, or 20% depending on your taxable income and filing status. Short-term capital gains are taxed at ordinary income rates ranging from 10% to 37%. High earners may also owe the 3.8% NIIT.
Do I have to pay capital gains tax on my home sale?
Not necessarily. Single filers can exclude up to $250,000 in gains, and married couples filing jointly can exclude up to $500,000, provided they meet the ownership and use tests under Section 121.
Is cryptocurrency subject to capital gains tax?
Yes. The IRS treats cryptocurrency as property. Any sale, trade, or exchange is a taxable event, and gains are subject to either short-term or long-term capital gains rates depending on your holding period.
Can capital losses offset ordinary income?
Yes, but only up to $3,000 per year ($1,500 for married filing separately). Unused losses carry forward to future years.
Do non-residents pay U.S. capital gains tax?
Generally, non-resident aliens are not taxed on U.S. capital gains from stocks and securities unless they are present in the U.S. for 183+ days or the gains are effectively connected to a U.S. business. Real estate gains are taxed under FIRPTA.
Conclusion: Key Takeaways
Understanding United States capital gains tax is essential for anyone investing in U.S. assets. Here are the key points to remember for the 2025/2026 tax year:
- Holding period is everything: Long-term gains (assets held over one year) are taxed at preferential rates of 0%, 15%, or 20%, while short-term gains are taxed at your ordinary income rate — up to 37%.
- High earners face the NIIT: An additional 3.8% tax applies if your MAGI exceeds $200,000 (single) or $250,000 (married filing jointly).
- Exemptions can save you thousands: The home sale exclusion, tax-loss harvesting, 1031 exchanges, and tax-advantaged accounts are powerful tools.
- State taxes matter: Don't forget about state-level capital gains taxes, which can add significantly to your overall liability.
- Non-residents have different rules: While most security gains are exempt, real estate sales are taxed under FIRPTA.
Proper planning and record-keeping can make a substantial difference in your after-tax investment returns. Use our United States Capital Gains Tax Calculator to estimate your specific liability and explore strategies to keep more of your investment gains.
This article is for informational purposes only and does not constitute tax advice. Tax laws change frequently; consult a qualified tax professional for advice specific to your situation.