Capital Gains Tax on Real Estate: A Comprehensive Guide
Capital Gains Tax on Real Estate: A Comprehensive Guide
Capital gains tax can reduce your profit when you sell real estate, but planning and exclusions may lower what you owe.
Written by
Bob Haegele
Bob Hagele is a freelance personal finance writer at BestMoney.com who specializes in credit cards, banking, and investing. Since beginning his writing career in 2018 after paying off his student loans, he has made it his mission to help others master their finances. His work has appeared in Yahoo Finance, Business Insider, U.S. News & World Report, Newsweek, and other notable outlets.
Selling real estate has major tax implications, and understanding capital gains tax on real estate can help you keep more of your profit. If your situation is complex, you cancompare tax relief companies or consult a tax professional. This guide covers how exclusions work and the strategies that may reduce what you owe.
The rules differ for a primary residence versus an investment property, and so does your potential tax bill. Strategic planning and available exclusions may reduce what you owe.
One more thing worth knowing in 2026: current law still lets sellers exclude up to $250,000 ($500,000 if married). Proposals to raise or eliminate that break remain pending in Congress, not law, according to theCongressional Research Service.
What Are the Key Facts About Capital Gains Tax on Real Estate?
Here are the key facts to know about capital gains tax on real estate before you sell:
Primary-residence sellers can exclude up to $250,000 ($500,000 if married) after 2 of the last 5 years in the home (IRS).
Property held over a year gets long-term rates of 0%, 15%, or 20%; high earners may add the 3.8% NIIT (IRS).
Rentals and second homes get no exclusion and face depreciation recapture up to 25% (IRS).
Adding closing costs and improvements to your basis lowers your taxable gain.
The $250,000/$500,000 exclusion is unchanged for 2026; proposals to expand it remain pending, not law (CRS).
What Is Capital Gains Tax on Real Estate?
Capital gains tax on real estate is the tax you'll pay on the profit from selling property. If you bought a home for $200,000 and sold it for $400,000, with $20,000 in closing costs, your profit would be $180,000. This profit is what's subject to capital gains tax, though exclusions may apply.
How Are Long-Term Capital Gains on Real Estate Taxed?
Property you owned for more than one year is taxed at long-term rates of 0%, 15%, or 20%, depending on your income, according toIRS Topic No. 409. These preferential rates are usually lower than ordinary income tax rates.
How Are Short-Term Capital Gains Taxed?
Property you owned for one year or less is taxed as ordinary income at your regular federal rate, perIRS Topic No. 409. That rate is often higher than the long-term rate.
How Does Your Property's Basis Work?
Your property's "basis" determines your taxable gain, perIRS Publication 523. Think of your basis as your property's running cost tag: the higher it is, the smaller your taxable gain. It includes:
Purchase price: The original amount you paid for the property.
Closing costs: Transfer taxes and other purchase-related expenses.
Improvements: Capital improvements that add value or extend the property's life.
Depreciation: Reduces basis for rental properties (must be recaptured when sold).
The higher your basis, the lower your taxable gain when you sell.
What Are the 2026 Capital Gains Tax Rates on Real Estate?
Long-term real estate gains are taxed at 0%, 15%, or 20%, based on your taxable income and filing status. The dollar thresholds are adjusted for inflation each year. Here's where the 2026 brackets fall:
In plain terms: a lower-income year can drop your rate to 0%, while most sellers land in the 15% band. Your gain stacks on top of your other income when thecapital gains tax brackets are applied.
Do Higher Earners Pay an Extra Tax?
Yes. Higher earners may owe an additional 3.8% Net Investment Income Tax (NIIT) on capital gains. Think of the NIIT as a surtax layered on top of your regular capital gains rate.
It applies once your modified adjusted gross income tops $200,000 for single or head-of-household filers, or $250,000 for married couples filing jointly. See theIRS's NIIT guidance for details. For those sellers, the top long-term rate effectively rises from 20% to 23.8%.
What Are the Capital Gains Exclusions for Primary Residences?
Primary-residence sellers can exclude up to $250,000 in gain, or $500,000 if married filing jointly, when they qualify. This is a significant tax exclusion under current law. Thecurrent capital gains exclusion applies only to a home you've owned and lived in as your main residence.
What Are the Ownership and Use Requirements?
To qualify for this exclusion, you must meet both tests, perIRS Topic No. 701:
Ownership test: You must have owned the home for at least 24 months during the five years before selling.
Use test: You must have lived in the home as your primary residence for at least 24 months during the five years before selling.
Timeline flexibility: The months don't need to be consecutive.
Married couples: Only one spouse needs to meet the residency requirement.
Can You Get a Partial Exclusion for Special Situations?
You might still qualify for a partial exclusion if you don't meet the full requirements, perIRS Publication 523. Common qualifying reasons include:
Job relocation: Move at least 50 miles farther from your home than your previous work location.
Health reasons: Moving for diagnosis, treatment, or mitigation of a disease.
Unforeseen circumstances: Destruction, casualty loss, or other unforeseeable events.
Other qualifying situations: Work-related or health-related moves as determined by the IRS.
How Do Home Improvements Increase Your Exclusion?
Home improvements raise your cost basis and reduce your taxable gain, perIRS Publication 523. To claim them, follow these record-keeping steps:
Keep detailed records: Save receipts, contracts, and permits for all improvements.
Document with photos: Before-and-after pictures provide additional evidence.
Qualifying improvements: New roof, HVAC replacement, kitchen remodels, additions, and other capital improvements.
Is There a One-Time or Senior Capital Gains Exemption?
No. There is no age-based or one-time senior exemption on home sales. The old over-55 exemption was replaced in 1997 by today's Section 121 exclusion, which has no age limit, perIRS Publication 523.
Seniors use the same $250,000/$500,000 rules as everyone else, and they can use them repeatedly, generally once every two years.
How Is Capital Gains Tax Applied to Rental Properties and Second Homes?
Capital gains on rental properties and second homes are fully taxable, and the primary-residence exclusion does not apply. Becauserental properties and second homes don't qualify, you'll pay capital gains tax on the full profit from the sale, minus any allowable expenses and improvements.
How Does Depreciation Recapture Work?
When you sell a rental, the IRS reclaims some of the depreciation tax benefits you claimed over the years. Think of recapture as the IRS settling up for deductions you already claimed. This depreciation recapture works as follows:
Tax rate: You'll pay up to 25% on the total amount you depreciated while owning the property.
Combined tax burden: This comes on top of the regular capital gains tax on any remaining profit from the sale.
No escaping it: This tax applies even if you forgot to claim depreciation deductions you were entitled to.
Here's a concrete example. Say you bought a rental for $400,000, claimed $100,000 in depreciation, then sold for $600,000. Your adjusted basis is $300,000, so your gain is $300,000.
The $100,000 of prior depreciation is taxed at up to 25%, and the remaining $200,000 is taxed at the lower long-term rate. Without that recapture, the full $300,000 would have qualified for the lower rate, perIRS Publication 544. Recapture raises the bill only on that $100,000 slice.
How Do Property Conversion Strategies Affect Your Tax?
Converting a property between personal and rental use changes how it's taxed, perIRS Topic No. 701. It's like changing a property's job from personal to business: the tax rules shift when its use changes. Here's what to know:
Rental to primary residence: Live there 2 of 5 years before selling to claim partial exclusion, but depreciation recapture still applies.
Primary to rental residence: You may still qualify for primary residence exclusion if you meet timing requirements, but it triggers future depreciation recapture.
Mixed-use periods: Only gains during the primary residence period qualify for exclusion.
How Does a 1031 Exchange Work for Investment Properties?
The1031 exchange (also known as a like-kind exchange) lets investors defer capital gains taxes by reinvesting proceeds into another similar property. Think of a 1031 exchange as rolling your tax bill forward into the next property instead of paying it now:
Deferral benefit: You can potentially defer capital gains taxes indefinitely by completing successive exchanges over time.
45-day rule: You must identify your replacement property within 45 days of selling your original property.
180-day rule: You must complete the purchase of your new property within 180 days of the original sale.
Equal or greater value: Your new property must be worth at least as much as the property you sold.
Reinvest all proceeds: You must invest all sale proceeds into the new property to defer the full tax liability.
What Strategies Can Minimize Capital Gains Tax?
Several common strategies can lower or defer capital gains tax when you sell real estate.Tax planning may reduce your tax bill, and the options below are among the most widely used.
How Can You Defer Capital Gains Tax on Real Estate Sales?
1031 exchanges: Defer taxes by reinvesting in like-kind investment property.
Opportunity zone investments: Defer or reduce taxes by reinvesting gains in Qualified Opportunity Funds, a program the 2025One Big Beautiful Bill Act extended.
Installment sales: Spread the tax burden over multiple years by financing the buyer's purchase yourself.
How Does Tax-Loss Harvesting Offset Capital Gains?
Capital losses can offset capital gains, perIRS Topic No. 409. Here's how to use them:
Sell losing properties: Capital losses offset capital gains dollar-for-dollar in the same tax year.
Coordinate sales timing: Sell both winning and losing properties in the same year to minimize overall tax impact.
Carry forward losses: Unused capital losses can be carried forward to future years.
How Does Strategic Timing Reduce Your Tax?
Timing your sale can affect your tax liability, and the long-term holding period and 0% bracket both depend on your income, perIRS Topic No. 409. Consider these moves:
Hold for long-term rates: Keep properties over one year to qualify for preferential 0%, 15%, or 20% rates instead of ordinary income rates.
Low-income years: Sell during retirement or other low-income periods to potentially pay 0% capital gains tax.
Coordinate with life events: Time sales around other financial changes that might affect your tax bracket.
What Tax Advantages Do Seniors and Retirees Have?
Seniors and retirees can benefit from lower income and inheritance rules when selling real estate, perIRS Topic No. 701. Key advantages include:
Lower tax rates: Reduced retirement income often results in lower capital gains rates, potentially 0%.
Stepped-up basis at death: Property value receives a step-up to fair market value, potentially eliminating capital gains for heirs.
Nursing home exception: Time in a nursing home counts toward the ownership and use test for the primary residence exclusion.
How Do You Report Capital Gains on Your Tax Return?
You report a real estate sale using specific IRS forms and supporting records. Use the correct forms for your situation, as outlined below.
Which Tax Forms Do You Need for Real Estate Capital Gains?
Form 8949: This form reports the basic details of your real estate sale, including purchase price, sale price, and dates.
Schedule D: This schedule summarizes all your capital gains and losses for the tax year.
Form 4797: This form is required specifically for rental properties and business real estate sales.
Additional forms: You may need extra forms for special situations like 1031 exchanges or installment sales.
What Documents Should You Keep?
Knowinghow to pay your taxes correctly starts with maintaining thorough records to support your calculations. Here's what you need:
Purchase documents: Original closing statement, deed, and title documents.
Sale documents: Final closing statement showing all costs and proceeds.
Improvement records: Receipts, contracts, permits, and photos for all capital improvements.
Depreciation records: Schedule showing annual depreciation claimed on rental properties.
Other expenses: Real estate taxes, maintenance costs, and selling expenses.
What Are Common Capital Gains Tax Reporting Mistakes to Avoid?
Forgetting to include basis adjustments: Not adding closing costs and improvements to reduce taxable gain.
Claiming unqualified exclusions: Using the primary residence exclusion without meeting ownership and use requirements.
Missing depreciation recapture: Failing to report the required recapture tax on former rental properties.
Basis calculation errors: Not understanding the difference between inherited property (stepped-up basis) and gifted property (carryover basis).
Who Is This Guide For?
This guide helps anyone facing a real estate sale with tax questions. See which profile fits you:
Primary-residence sellers: You want to know whether the $250,000/$500,000 exclusion wipes out your tax.
Rental and investment owners: You want to weigh depreciation recapture and a possible 1031 exchange.
Heirs of inherited property: You want to understand how stepped-up basis affects your gain.
Near-retirees: You want to time a sale around a lower-income year to reduce your rate.
Your Questions, Answered (FAQs)
Here are quick answers to common questions about capital gains tax on real estate.
How long must I live in my home to qualify?
You must own and live in the home for at least 24 months of the five years before selling, as covered in the ownership and use requirements above.
Can I use a 1031 exchange on my primary residence?
No. A 1031 exchange applies only to investment or business property; a primary residence uses the $250,000/$500,000 exclusion instead, as covered in the sections above.
What happens if I inherit a property and then sell it?
Inherited property generally gets a stepped-up basis to fair market value on the date of death, and it is generally treated as long-term under IRS rules. See the stepped-up basis discussion above.
Is there a one-time or senior capital gains exemption?
No. As covered in the senior-exemption section above, there is no age-based or one-time exemption; seniors use the same $250,000/$500,000 rules.
How much tax will I owe on a $500,000 home sale?
It depends on your gain after the exclusion, your holding period, and your taxable income. A married couple whose gain stays under the $500,000 exclusion often owes nothing.
Why Trust BestMoney?
This guide was written by Bob Haegele, a freelance personal finance writer at BestMoney.com who specializes in credit cards, banking, and investing. Since beginning his writing career in 2018 after paying off his student loans, he has made it his mission to help others master their finances.
His work has appeared in Yahoo Finance, Business Insider, U.S. News & World Report, Newsweek, and other notable outlets. Our editorial team reviews and compares financial products to help readers make informed decisions.
How We Researched This
This guide relies on primary IRS sources rather than proprietary BestMoney research. We drew on IRS guidance covering home sales, capital gains, the Net Investment Income Tax, and depreciation. We also referenced the Tax Foundation's 2026 bracket data and the Congressional Research Service for pending legislation.
A credentialed tax professional reviews the guidance before publication.
Where We Got Our Information
IRS Topic No. 701, Sale of Your Home
IRS Topic No. 409, Capital Gains and Losses
IRS Topic No. 559, Net Investment Income Tax
IRS Publication 523, Selling Your Home
IRS Publication 544, Sales and Other Dispositions of Assets
Congressional Research Service, RL32978, home-sale exclusion framework
What Should You Do Next?
Next, estimate your gain, confirm whether an exclusion applies, and keep thorough records before you sell. Capital gains tax on real estate can materially affect your financial planning, so plan ahead and document all improvements and expenses.
For complex situations, consider working with a qualified tax professional, and learn how tochoose between a tax attorney and a CPA for your situation. Whether you're selling your family home or investment properties, proper planning can help you better understand and manage your tax liability.
Written byBob Haegele
Bob Hagele is a freelance personal finance writer at BestMoney.com who specializes in credit cards, banking, and investing. Since beginning his writing career in 2018 after paying off his student loans, he has made it his mission to help others master their finances. His work has appeared in Yahoo Finance, Business Insider, U.S. News & World Report, Newsweek, and other notable outlets.