Published:
September 2, 2025
Last updated:
August 28, 2026
Capital Gains on Real Estate: What U.S. Homeowners and Investors Need to Know

Key Takeaways

  • Many primary-home sellers can exclude up to $250,000 of gain if single or $500,000 if married filing jointly.
  • To qualify for the home-sale exclusion, you generally must own and live in the home for at least 2 of the last 5 years.
  • Taxable capital gain is generally the sale price minus purchase price, eligible improvements, and selling costs.
  • Investment-property sales can trigger capital gains tax, depreciation recapture up to 25%, or tax deferral through a 1031 exchange.
In This Article

Most people selling a primary home may owe no federal capital gains tax if they qualify for the home-sale exclusion, while real estate investors usually face different tax treatment. This article explains U.S. real-estate capital gains at a practical level, with federal rules as the main baseline, so you can better understand what may apply when selling a home, rental, or other property.

What Are Capital Gains?

Capital gains refer to the profit earned from selling a capital asset—such as real estate—for more than its original purchase price. The difference between the sale price and the asset’s cost basis (including purchase price and improvements) is your capital gain.

Types of Capital Gains

Two types of capital gains exist:

Short-Term Capital Gains Profits from property held for up to one year. These are taxed at your ordinary income tax rate.
Long-Term Capital Gains Profits from property held for at least one year. These are taxed at lower tax rates, depending on your income bracket.

Why this matters: Two sales with the same profit can result in very different tax bills, depending on how long you held the property and whether you qualify for exclusions or special rules.

Capital Gains for Homeowners

Selling your home can trigger a capital gains tax, but many homeowners can qualify for a home sale exclusion, which may be used only once every two years.

Under IRS rules (Section 121), you can exclude up to:

  • $250,000 of capital gains if you’re single.
  • $500,000 if you’re married and filing jointly.

To qualify, you must meet ownership and use tests:

  • Ownership test: You owned the home for at least 2 of the last 5 years.
  • Use test: You lived in the home as your primary residence for at least 2 of the last 5 years.

Calculating Capital Gains

To determine your taxable gain, use the following formula:

Capital Gain = Sale Price − (Purchase Price + Improvements + Selling Costs)

Example Calculation

Let’s say you bought a home in 2015 for $300,000 and sold it in 2025 for $600,000. During your ownership, you spent $50,000 on renovations and paid $30,000 in selling costs.

Step 1: Calculate Adjusted Cost Basis

  • Adjusted Cost Basis = Purchase Price + Renovations
  • = $300,000 + $50,000
  • = $350,000

Step 2: Calculate Capital Gain

  • Capital Gain = Sale Price − (Adjusted Cost Basis + Selling Costs)
  • = $600,000 − ($350,000 + $30,000)
  • = $220,000

Step 3: Apply the Home Sale Exclusion

  • Taxable Gain = Capital Gain − Exclusion
  • = $220,000 − $250,000
  • = $0

Assuming you’re single and meet the IRS ownership and use tests, you qualify for the $250,000 exclusion.

Result: You owe no capital gains tax because your gain is below the exclusion threshold.

When You Might Owe Taxes

You’ll owe capital gains tax only on the amount that exceeds the exclusion limit. For example, if you’re married and make $600,000 in profit from selling your home, you’ll pay tax on $100,000 (based on the maximum $500,000 home sale exclusion amount).

Capital Gains for Real Estate Investors

Real estate investors face different rules and opportunities when it comes to capital gains.

Investment Property Sales

Selling rental or commercial property typically triggers capital gains tax. If the property was held for more than a year, it qualifies for long-term capital gains rates.

However, investors must also account for depreciation recapture, a tax rule that kicks in when you sell a property for more than its depreciated value. In simple terms, if you claimed tax deductions over the years, then sold the home for a profit, the IRS will “recapture” those deductions by taxing part of your gain as regular income instead of a lower capital gains rate.

Depreciation recapture is taxed at a maximum rate of 25%.

1031 Exchange: Deferring Capital Gains

A powerful tool for investors is the 1031 exchange, which lets you defer capital gains tax by reinvesting the proceeds of the sale into a “like-kind” property. This strategy is commonly used to grow real estate portfolios without triggering immediate tax liability.

When Do You Pay Capital Gains Tax?

Capital gains tax is reported and paid as part of your annual federal tax return using Form 8949 and Schedule D.

If you receive a Form 1099-S from a real estate transaction, you must report the sale—even if the gain is excluded.

Strategies to Minimize Capital Gains Tax

Whether you’re a homeowner or investor, here are smart ways to reduce your capital gains tax liability:

  1. Hold Assets Longer: Qualify for long-term capital gains rates by holding assets for more than one year.
  2. Use the Home Sale Exclusion: Live in your home for at least two years to exclude up to $250,000/$500,000 in gains.
  3. Track Improvements: Keep receipts for renovations and upgrades to increase your cost basis.
  4. Offset Gains with Losses: Use capital losses to offset gains.
  5. Time Your Sale: Selling in a year with lower income may help you qualify for a lower capital gains tax rate.
  6. Use a 1031 Exchange: Real estate investors can defer taxes by reinvesting in similar properties.

Common Misconceptions About Capital Gains

Myth #1: All Home Sales Are Taxed

Not necessarily. Many primary-home sellers qualify for the home-sale exclusion, which can eliminate federal capital gains tax on some or all of the gain.

Myth #2: You Pay Tax on the Full Sale Price

Capital gains tax applies to your gain, not the entire sale price. Your taxable gain is generally based on the sale price minus your cost basis, eligible improvements, selling costs, and any applicable exclusion.

Myth #3: Investors Are Taxed the Same Way as Primary-Home Sellers

Usually not. Investment-property sales may involve long-term or short-term capital gains treatment, depreciation recapture, and in some cases additional tax considerations. For some taxpayers, a 20% capital gains rate can apply once taxable income exceeds the 15% rate thresholds, and the 3.8% Net Investment Income Tax may also apply to certain net investment income above statutory threshold amounts.

Final Thoughts

Capital gains can be a powerful source of wealth, but they may come with certain tax implications. For homeowners, the IRS offers generous exclusions that can shield most or all of your profit from taxes. For investors, strategic planning—like timing your sales or using a 1031 exchange—can help you keep more of your gains. Understanding the rules and applying smart strategies ensures that you maximize your financial outcome while staying compliant.

Have Questions About Mortgages?

Sammamish Mortgage can help. We serve clients across Washington, Idaho, Colorado, Oregon, and California. Since 1992, we’ve been providing several mortgage programs and products with flexible qualification criteria to borrowers across the Pacific Northwest. Visit our website to get an instant rate quote or to use our online mortgage calculator. Or, reach out to us if you are ready to get pre-approved for a mortgage.

FAQs

Do I owe capital gains tax when I sell my primary home?

Maybe not. If you pass the ownership and use tests, you may exclude up to $250,000 of gain if single or $500,000 if married filing jointly.

How long do I have to live in a home to qualify for the exclusion?

You must live in the home for at least 2 of the last 5 years before the sale, and you cannot have used the exclusion in the prior 2 years.

Are closing costs deductible?

Selling costs reduce the amount realized, which may reduce your taxable gain.

How are short-term vs. long-term capital gains taxed?

Short-term capital gains are taxed at ordinary income tax rates. Long-term gains are taxed at lower, preferential rates.

Can I offset capital gains with capital losses?

Yes. Losses offset gains. Excess losses can offset up to $3,000 of ordinary income per year, with the remainder carried forward.

What is a 1031 exchange?

A 1031 exchange lets an investor defer capital gains tax by reinvesting proceeds from the sale of investment real estate into like-kind real estate while following strict rules and timelines.

When do you pay capital gains tax on real estate?

Capital gains tax is reported and paid with your annual federal tax return, generally using Form 8949 and Schedule D.

Who pays capital gains tax on real estate?

The seller generally reports the gain on the sale. Primary-home sellers may qualify for the home-sale exclusion, while investors usually face different tax treatment.

How is capital gains tax treated on real estate that is not your primary residence?

Selling rental or commercial property typically triggers capital gains tax. If you held the property for more than one year, it generally qualifies for long-term capital gains rates, and depreciation recapture may also apply.

How does depreciation recapture work when I sell a rental property?

If you claimed depreciation deductions over the years and then sell the property for more than its depreciated value, part of the gain can be taxed under depreciation recapture rules instead of at the lower capital gains rate. The article notes a maximum recapture rate of 25%.