Last updated 3 months ago. Our resources are updated regularly but please keep in mind that links, programs, policies, and contact information do change.
When you sell an investment or asset for more than you paid for it, that profit is called a capital gain. If you sell it for less, you have a capital loss. These gains and losses must be reported to the IRS, and they can significantly impact your tax bill.
This guide explains everything you need to know about reporting capital gains and losses on your tax returns.
What Are Capital Gains and Losses?
A capital gain or loss happens when you sell a capital asset. Capital assets include:
- Stocks, bonds, and other investments
- Real estate (including your home)
- Vehicles
- Collectibles (art, coins, stamps)
- Business equipment
- Personal items of significant value
Essentially, almost everything you own and use for personal or investment purposes is a capital asset.
How Capital Gains Are Calculated
The formula for calculating a capital gain or loss is straightforward:
Sale Price – Cost Basis = Capital Gain (or Loss)
Your cost basis is generally what you paid for the asset, including:
- Purchase price
- Sales commission or broker fees
- Reinvested dividends (for stocks)
- Certain closing costs (for real estate)
- Cost of improvements (for real estate)
For example, if you bought shares of stock for $5,000 and sold them for $7,000, your capital gain is $2,000.
Types of Capital Gains and Losses
Capital gains and losses are categorized based on how long you owned the asset before selling it:
Short-Term Capital Gains and Losses
Short-term gains and losses come from assets you owned for one year or less. These are taxed at your ordinary income tax rate, which can range from 10% to 37% depending on your income bracket.
Long-Term Capital Gains and Losses
Long-term gains and losses involve assets held for more than one year. Long-term capital gains receive preferential tax treatment with lower tax rates:
- 0% for incomes up to $44,625 (single) or $89,250 (married filing jointly)
- 15% for incomes between $44,626 and $492,300 (single) or between $89,251 and $553,850 (married filing jointly)
- 20% for incomes above these thresholds
These income thresholds are adjusted annually for inflation.
Net Capital Gain or Loss
Your net capital gain or loss is calculated by combining all your capital gains and losses for the tax year:
- Add up all short-term gains and losses to determine your net short-term capital gain or loss
- Add up all long-term gains and losses to determine your net long-term capital gain or loss
- Combine these two figures to find your net capital gain or loss
This final number determines how your gains or losses will be taxed or deducted.
How to Report Capital Gains and Losses
Capital gains and losses are reported on your federal tax return using several forms:
Form 8949: Sales and Other Dispositions of Capital Assets
Form 8949 is where you list details for each capital asset you sold or disposed of during the tax year. You’ll need to include:
- Description of the property
- Date acquired
- Date sold
- Sales price
- Cost basis
- Code for any adjustments (if applicable)
- Amount of adjustment (if applicable)
- Gain or loss
Form 8949 is divided into two parts:
- Part I: Short-term transactions (assets held one year or less)
- Part II: Long-term transactions (assets held more than one year)
Schedule D: Capital Gains and Losses
After completing Form 8949, the totals are transferred to Schedule D (Form 1040). This form summarizes your capital gains and losses and calculates your net capital gain or loss.
Schedule D also helps determine your tax liability based on:
- Whether gains are short-term or long-term
- Whether losses will be deducted this year or carried forward
- Any special situations (like the sale of collectibles or Section 1250 property)
Form 1040 or 1040-SR
The final capital gain or loss amount from Schedule D is then reported on your main tax return (Form 1040 or 1040-SR).
Special Reporting Situations
Cryptocurrency Transactions
Cryptocurrency transactions are treated as property for tax purposes and must be reported on your tax return. This includes:
- Selling crypto for fiat currency (like USD)
- Trading one cryptocurrency for another
- Using crypto to purchase goods or services
Each transaction potentially creates a capital gain or loss that must be reported on Form 8949. The IRS has specific guidance on reporting these transactions.
Sale of a Home
If you sell your primary residence, you may exclude up to $250,000 of capital gains ($500,000 for married couples filing jointly) if you meet certain requirements:
- You owned the home for at least two years
- You lived in the home as your primary residence for at least two of the five years before the sale
- You haven’t excluded gain from another home sale in the past two years
If your gain exceeds these exclusion amounts or you don’t qualify for the exclusion, you’ll need to report the gain on your tax return using Form 8949 and Schedule D.
For more details on this exclusion, see IRS Publication 523.
Investment Property and Rental Real Estate
When selling investment property or rental real estate, different rules apply:
- Depreciation recapture: If you’ve claimed depreciation deductions on the property, some of your gain may be subject to a 25% tax rate rather than the standard capital gains rates.
- 1031 exchanges: You may be able to defer capital gains taxes by reinvesting proceeds into similar property through a 1031 exchange, also called a like-kind exchange.
- Mixed-use property: If you’ve used the property for both personal and rental purposes, you’ll need to allocate the gain between personal and business use.
Collectibles and Certain Small Business Stock
Special capital gains tax rates apply to certain assets:
- Collectibles (art, antiques, coins, precious metals) are taxed at a maximum rate of 28%, regardless of your income level.
- Qualified small business stock held for more than five years may qualify for partial or full exclusion from capital gains taxes under Section 1202 of the Internal Revenue Code.
Capital Loss Limitations and Carryovers
While capital gains are taxable, capital losses can be used to offset those gains and potentially reduce your tax liability. However, there are limitations:
The $3,000 Rule
If your capital losses exceed your capital gains, you can deduct up to $3,000 of the excess loss ($1,500 if married filing separately) from your other income, such as wages.
Loss Carryover
If your net capital loss exceeds the $3,000 limit, you can carry over the unused portion to future tax years. These carryover losses retain their original character as short-term or long-term.
For example, if you have a $10,000 net capital loss in 2024:
- You can deduct $3,000 on your 2024 return
- The remaining $7,000 carries over to 2025
- In 2025, this carryover loss can offset capital gains plus up to another $3,000 of ordinary income
You can continue carrying over losses until they’re used up completely. To track loss carryovers, keep copies of your Schedule D from previous years.
Tax Planning Strategies for Capital Gains and Losses
Smart tax planning can help minimize your capital gains taxes or maximize the tax benefits of capital losses:
Tax-Loss Harvesting
Tax-loss harvesting involves selling investments at a loss to offset capital gains realized from other investments. This strategy is particularly useful toward the end of the tax year when you have a better picture of your overall tax situation.
For example, if you’ve realized $10,000 in capital gains during the year, selling investments that have declined in value by $10,000 would offset those gains, potentially eliminating your capital gains tax liability.
However, be aware of the wash-sale rule when implementing this strategy.
The Wash-Sale Rule
The wash-sale rule prevents you from claiming a loss on a security if you buy the same or a “substantially identical” security within 30 days before or after the sale. If a wash sale occurs, you cannot deduct the loss immediately—instead, the disallowed loss is added to the cost basis of the replacement security.
To avoid triggering this rule:
- Wait at least 31 days before repurchasing the same or similar security
- Purchase a different but similar investment that isn’t “substantially identical”
- Consider purchasing a similar ETF or mutual fund that tracks a different index but provides similar exposure
Timing Your Sales
The timing of your asset sales can significantly impact your tax bill:
- Consider your holding period: If you’re close to the one-year mark, holding a bit longer to qualify for long-term capital gains rates might save substantial taxes.
- Coordinate with your income: In lower-income years, you might fall into the 0% long-term capital gains bracket, making it an ideal time to realize gains.
- Spread out large gains: Consider selling assets over multiple tax years to avoid pushing yourself into a higher tax bracket in a single year.
Tax-Advantaged Accounts
Utilizing tax-advantaged accounts can help shield your investments from capital gains taxes:
- Traditional and Roth IRAs: Capital gains within these accounts aren’t subject to yearly taxation. In a Roth IRA, qualified withdrawals are completely tax-free.
- 401(k)s and other retirement plans: Similar to IRAs, capital gains in these accounts grow tax-deferred or tax-free.
- 529 College Savings Plans: Investment gains in these plans are tax-free when used for qualified education expenses.
- Health Savings Accounts (HSAs): HSAs offer triple tax advantages, including tax-free growth when used for qualified medical expenses.
Special Rules and Exceptions
Various special rules and exceptions can affect how capital gains and losses are reported and taxed:
Net Investment Income Tax (NIIT)
The Net Investment Income Tax is an additional 3.8% tax that applies to certain investment income, including capital gains, if your modified adjusted gross income exceeds certain thresholds:
- $200,000 for single filers
- $250,000 for married filing jointly
- $125,000 for married filing separately
This tax is reported on Form 8960 and is in addition to regular capital gains taxes.
Inherited Assets and Step-Up in Basis
When you inherit assets, they generally receive a “step-up” in basis to their fair market value on the date of the owner’s death. This can significantly reduce or eliminate capital gains when you eventually sell the inherited asset.
For example, if your parent purchased stock for $10,000 that was worth $100,000 when they died, your basis would be $100,000, not the original $10,000. If you then sell the stock for $105,000, you’d only pay capital gains tax on $5,000.
Gifted Assets
Assets received as gifts don’t receive a step-up in basis. Instead, the recipient generally takes the donor’s original basis. However, if the asset’s fair market value at the time of the gift is less than the donor’s basis, special rules apply when calculating gain or loss.
For details on the tax treatment of gifted assets, see IRS Publication 551.
Installment Sales
If you sell property and receive payments spread over multiple years, you may be able to report the gain using the installment method. This allows you to spread the tax impact over the same period as you receive the payments.
Installment sales are reported on Form 6252 and then transferred to Schedule D.
Common Mistakes to Avoid
Reporting capital gains and losses can be complex, and errors can lead to audits or missed tax-saving opportunities. Here are common mistakes to avoid:
Incorrect Cost Basis
Using an incorrect cost basis is one of the most common errors. Remember to include:
- Commissions and fees in your cost basis
- Reinvested dividends for investments
- Adjustments for stock splits, mergers, or spin-offs
- Home improvements for real estate
Many brokerages now report cost basis information to the IRS on Form 1099-B, but it’s still important to verify this information and adjust if needed.
Failing to Report All Transactions
The IRS receives copies of various information returns (like Form 1099-B from brokerages) reporting your investment transactions. Failing to report these transactions on your tax return can trigger notices or audits.
Even if you don’t receive a Form 1099, you’re still required to report all capital asset transactions on your tax return.
Misclassifying Short-Term and Long-Term Gains
Misclassifying your gains and losses as short-term or long-term can lead to calculating the wrong tax amount. Double-check your purchase and sale dates to ensure correct classification.
Overlooking Wash Sales
Ignoring the wash-sale rule can lead to improper loss deductions. While brokerage firms typically track wash sales within the same account, they may not identify wash sales across different accounts or between a taxpayer and their spouse.
Forgetting to Carry Forward Losses
If you had capital losses in previous years that exceeded the annual $3,000 limit, don’t forget to carry these forward to your current tax return. These carryover losses can offset current year gains and potentially reduce your tax liability.
Record Keeping for Capital Gains and Losses
Proper record keeping is essential for accurate reporting of capital gains and losses:
What Records to Keep
Maintain documentation showing:
- Purchase date and price
- Sale date and price
- Commissions or fees paid
- Reinvested dividends
- Stock splits, mergers, or other corporate actions
- Home improvements (for real estate)
- Gift or inheritance documentation (if applicable)
How Long to Keep Records
The IRS generally recommends keeping tax records for at least three years after filing your return, as this is the standard period for audits. However, for capital assets, it’s best to keep records for at least three years after you sell the asset.
In some cases, you might need to keep records longer:
- If you underreport income by more than 25%, the IRS can audit up to six years back
- If you claim a loss from worthless securities or bad debt, records should be kept for seven years
- If you don’t file a return or file a fraudulent return, there’s no statute of limitations on audits
Digital Record Keeping Solutions
Consider these options for organizing capital gains records:
- Investment tracking software or apps
- Spreadsheets with transaction details
- Digital copies of trade confirmations and 1099 forms
- Portfolio management services offered by brokerages
Getting Help with Capital Gains Reporting
Given the complexity of capital gains tax rules, seeking professional assistance may be beneficial:
Tax Professionals
Consider working with:
- Certified Public Accountants (CPAs): Particularly those specializing in investment taxation
- Enrolled Agents (EAs): Federally-licensed tax practitioners
- Tax attorneys: For complex situations or disputes with the IRS
Tax Preparation Software
Most major tax software packages can handle capital gains reporting:
Many of these programs can import transaction data directly from major brokerage firms, reducing data entry errors.
IRS Resources
The IRS offers free resources to help with capital gains reporting:
- Publication 550: Investment Income and Expenses
- Publication 544: Sales and Other Dispositions of Assets
- Topic No. 409: Capital Gains and Losses
- Interactive Tax Assistant: Online tool that answers tax law questions
Recent Tax Law Changes Affecting Capital Gains
Tax laws change frequently, and staying informed helps you make better financial decisions:
Tax Cuts and Jobs Act Impact
The Tax Cuts and Jobs Act maintained the preferential rates for long-term capital gains but adjusted the income thresholds. These changes are set to expire after 2025 unless Congress extends them.
Inflation Adjustments for 2024
The income thresholds for capital gains tax brackets are adjusted annually for inflation. These adjustments can affect tax planning strategies, especially for taxpayers near the threshold boundaries.
State-Level Considerations
While federal tax rules apply nationwide, state tax treatment of capital gains varies significantly:
- Some states tax capital gains at the same rate as ordinary income
- Others offer preferential rates for long-term gains
- Some states, like Florida, Texas, and Washington, have no state income tax
Check with your state’s tax authority for specific guidance on how capital gains are taxed in your state.
Capital Gains in Specific Situations
Retirement and Capital Gains
As you approach retirement, capital gains tax planning becomes even more important:
- Consider the timing of investment sales to manage your tax bracket
- Be aware of how investment income can affect the taxation of Social Security benefits
- Plan for Required Minimum Distributions (RMDs) that might push you into higher tax brackets
Small Business Owners
Small business owners face unique capital gains situations:
- Sale of business assets can generate capital gains
- Sale of the entire business may qualify for favorable tax treatment
- Section 1202 stock exclusions for qualified small business stock
- Potential benefits from installment sales
First-Time Asset Sellers
If you’re selling investments or property for the first time:
- Gather all relevant purchase documentation before the sale
- Understand the tax implications before finalizing the transaction
- Consider consulting a tax professional for guidance
- Learn about payment options for any taxes due
Digital Assets and Emerging Investments
The tax landscape for digital assets continues to evolve:
Cryptocurrency and NFTs
The IRS treats virtual currencies and non-fungible tokens (NFTs) as property for tax purposes, meaning:
- Each transaction potentially creates a taxable event
- Detailed records of purchase dates, costs, and sale information are essential
- Specialized software may help track these complex transactions
New Investment Platforms
Trading apps and fractional share investing have made investing more accessible, but they also create potential tax complications:
- Frequent trading can generate numerous short-term gains
- Fractional shares may have different holding periods
- Some platforms may not provide complete cost basis information
Be sure to maintain your own records or use platforms that provide comprehensive tax reporting.
Practical Examples of Capital Gains Reporting
Example 1: Stock Investment
Maria bought 100 shares of ABC Corp for $50 per share ($5,000 total) in February 2023. She paid a $20 commission. In August 2024, she sold all 100 shares for $70 per share ($7,000 total) and paid another $20 commission.
To calculate her capital gain:
- Cost basis: $5,020 ($5,000 purchase price + $20 commission)
- Sale proceeds: $6,980 ($7,000 sale price – $20 commission)
- Capital gain: $1,960 ($6,980 – $5,020)
Since Maria held the shares for more than one year, this is a long-term capital gain. If she’s in the 15% long-term capital gains tax bracket, her tax on this transaction would be $294 ($1,960 × 15%).
Example 2: Home Sale
John and Lisa bought their home in 2010 for $250,000. They made $50,000 in qualifying improvements over the years. In 2024, they sold the home for $450,000.
To calculate their capital gain:
- Cost basis: $300,000 ($250,000 purchase price + $50,000 improvements)
- Sale proceeds: $450,000
- Capital gain: $150,000 ($450,000 – $300,000)
Since they’re married filing jointly, lived in the home as their primary residence for at least two of the last five years, and their gain is less than $500,000, they can exclude the entire gain from their income. No capital gains tax is due, and they don’t need to report the sale on their tax return unless they received a Form 1099-S.
Example 3: Mixed Investment Results
David made the following investment transactions in 2024:
- Sold Stock A: $3,000 long-term gain
- Sold Stock B: $1,500 short-term gain
- Sold Stock C: $2,000 short-term loss
- Sold Stock D: $4,000 long-term loss
To calculate his net capital gain or loss:
- Net short-term result: $500 loss ($1,500 gain – $2,000 loss)
- Net long-term result: $1,000 loss ($3,000 gain – $4,000 loss)
- Overall net capital loss: $1,500 ($500 + $1,000)
David can deduct $1,500 from his ordinary income on his tax return. If his marginal tax rate is 24%, this deduction would save him $360 in taxes ($1,500 × 24%).
Strategies for Different Financial Situations
For High-Income Individuals
If you’re in the highest tax brackets:
- Focus on long-term holdings to benefit from lower capital gains rates
- Consider tax-loss harvesting to offset gains
- Explore charitable giving of appreciated assets to avoid capital gains taxes
- Look into opportunity zone investments for potential tax deferral
For Middle-Income Individuals
For those in middle tax brackets:
- Time your gains to stay within favorable tax brackets
- Consider realizing gains in years with lower income
- Maintain an emergency fund to avoid selling investments at inopportune times
- Maximize contributions to tax-advantaged accounts like 401(k)s and IRAs
For Those Approaching Retirement
As retirement nears:
- Review your portfolio for highly appreciated assets
- Consider the tax implications of different withdrawal strategies
- Be mindful of how investment income affects Social Security taxation
- Weigh the benefits of Roth conversions to reduce future required minimum distributions
Planning for Future Changes
Tax laws continually evolve, and staying informed helps you adapt your strategies:
Potential Tax Law Changes
With the Tax Cuts and Jobs Act provisions set to expire after 2025, prepare for possible changes:
- Capital gains tax rates could shift
- Income thresholds for different brackets may adjust
- New limitations or opportunities might emerge
Stay informed through reputable financial news sources, tax professional updates, or IRS announcements.
Economic Conditions and Market Timing
While tax considerations are important, they shouldn’t be the only factor in investment decisions:
- Balance tax planning with your overall investment strategy
- Consider market conditions alongside tax implications
- Remember that investment quality and long-term growth potential typically outweigh short-term tax benefits
Working with Financial Professionals
A coordinated approach with both tax and investment professionals can provide comprehensive planning:
- Tax professionals offer expertise on reporting requirements and tax-saving strategies
- Financial advisors help with investment selection and portfolio management
- Estate planning attorneys can address inheritance and gifting strategies
Together, these professionals can help you develop a holistic approach to managing capital gains and losses within your broader financial plan.
Understanding how to properly report capital gains and losses is essential for tax compliance and can significantly impact your overall tax liability. By maintaining good records, understanding the rules, and implementing strategic planning, you can manage your tax obligations while working toward your financial goals.
Our articles make government information more accessible. Please consult a qualified professional for financial, legal, or health advice specific to your circumstances.