If you’ve owned your home for several years, there’s a decent chance it has increased substantially in value.That’s great news when it comes time to sell.But it also leads to one
Selling Your Primary Home? Here’s What You Need to Know About Capital Gains Taxes
Dated: August 18 2026
Views: 242
If you’ve owned your home for several years, there’s a decent chance it has increased substantially in value.
That’s great news when it comes time to sell.
But it also leads to one of the most common questions I hear from homeowners:
“If I sell my house for a big profit, am I going to get hammered with capital gains taxes?”
For many homeowners, the answer is no.
The federal tax code provides one of the biggest financial advantages available to homeowners: qualifying sellers may be able to exclude up to $250,000 of gain from taxable income, or up to $500,000 for certain married couples filing jointly when selling their primary residence.
But there are rules, exceptions, and some situations where things can get considerably more complicated.
Here’s what homeowners should understand before putting a house on the market.
First: Capital Gain Is NOT the Same Thing as Your Sale Price
This is probably the biggest misconception.
If you bought a house for $250,000 and sell it for $500,000, the IRS doesn't simply look at your $500,000 sale price and call that taxable income.
What matters is your gain.
At its simplest:
Sale proceeds
– selling expenses
– adjusted cost basis
= gain
Your adjusted basis generally begins with what you paid for the property and may then be increased or decreased by certain items over the years. Capital improvements, for example, can increase your basis. Depreciation claimed on the property can decrease it.
That distinction can make an enormous difference.
A Simple Example
Imagine you purchased your home years ago for:
Purchase price: $300,000
Over the years, you put another:
$50,000 into qualifying capital improvements
You eventually sell the property for:
$550,000
Your gain isn't necessarily:
$550,000 - $300,000 = $250,000
Your adjusted basis and certain selling expenses can affect the calculation.
That is exactly why homeowners with substantial appreciation should talk with a CPA or qualified tax professional before closing.
The $250,000 and $500,000 Home Sale Exclusion
Under current federal rules, a qualifying homeowner may exclude up to:
$250,000 of gain for an individual taxpayer
or
$500,000 of gain for certain married couples filing jointly.
That can make homeownership an incredibly powerful wealth-building tool.
Consider someone who bought their home for $200,000 many years ago and eventually generates a $200,000 qualifying gain when they sell.
If they satisfy the IRS requirements, that gain could potentially fall completely within the $250,000 exclusion.
That doesn't mean every home sale is tax-free.
It means qualifying taxpayers can exclude gain up to the applicable limit.
What Is the 2-Out-of-5-Year Rule?
This is the rule most homeowners need to remember.
During the five-year period ending on the date you sell the property, you generally must have:
Owned the home for at least two years
AND
Used the home as your primary residence for at least two years.
Those two years generally do not have to be one uninterrupted block of time.
This creates some flexibility for homeowners who move before selling.
Here's an easy way to think about it:
If you've owned and lived in your house as your primary residence for at least two of the previous five years, you may satisfy the basic ownership and use tests.
There are additional requirements and exceptions, however, so don't use the 2-out-of-5 rule as your only test.
There's Another Two-Year Rule People Miss
You generally can't repeatedly use the home-sale exclusion every few months.
To qualify for the exclusion, you generally must not have excluded gain from the sale of another home during the two-year period ending on the date of the current sale.
For most homeowners, this isn't an issue.
But it can become important for people who frequently move, renovate homes, change primary residences, or own multiple properties.
What Counts as Your Primary Residence?
Owning several houses doesn't mean you can claim the exclusion on every one of them.
The IRS rules apply to your main home.
Your primary residence is generally the home you actually use as your principal place of residence.
This becomes especially important for people who own:
- A primary home
- A vacation property
- Rental properties
- A lake house
- A second home
- Investment real estate
Simply owning a property doesn't automatically make it eligible for the primary-residence exclusion.
Home Improvements Can Become Very Important
Here's where saving receipts might actually make you money.
Certain improvements can increase your home's adjusted cost basis, potentially reducing your taxable gain. The IRS describes adjusted basis as generally including your acquisition cost plus certain capital improvements, subject to various increases and decreases.
Examples could include qualifying projects such as major additions or other improvements that add value, prolong the property's useful life, or adapt it to new uses.
Routine maintenance and repairs aren't necessarily treated the same way.
For example, simply fixing something that broke usually isn't the same as making a qualifying capital improvement. IRS guidance distinguishes qualifying improvements from ordinary repairs that simply keep a property in good condition.
That means homeowners should consider keeping records for major projects.
Think:
Kitchen remodels.
Bathroom remodels.
Room additions.
New roofs.
Major mechanical-system improvements.
Decks or additions.
Permanent property improvements.
Don't wait until you've lived in the house for 25 years and then try to remember what that kitchen renovation cost back in 2013.
Future you will not be impressed with present you.
What Happens If Your Gain Is More Than $250,000 or $500,000?
This is where the exclusion limit matters.
Suppose a married couple qualifies for the full $500,000 exclusion but has a $650,000 taxable gain before applying that exclusion.
Potentially:
Gain: $650,000
Available exclusion: $500,000
Remaining gain: $150,000
That remaining amount may potentially be subject to capital-gains taxation depending on the couple's tax situation.
The exclusion doesn't make an unlimited amount of profit tax-free.
It simply allows qualifying homeowners to exclude gain up to the applicable maximum.
For homeowners who bought decades ago in neighborhoods that have appreciated significantly, this becomes increasingly important.
What If the Property Used to Be a Rental?
Now things get more interesting.
And by interesting, I mean your CPA earns their money.
Maybe you purchased a house, lived in it for several years, moved somewhere else, and then converted the original home into a rental.
Or perhaps you originally purchased an investment property and later moved into it.
These situations require significantly more careful tax planning.
Why?
Depreciation can change the equation.
Rental property owners are generally able to claim depreciation according to federal tax rules. Depreciation also generally reduces the property's adjusted basis.
When the property is later sold, depreciation-related gain can receive different tax treatment, and the home-sale exclusion does not necessarily eliminate that depreciation-related tax exposure.
This is one of those situations where I would strongly recommend speaking with a CPA before selling, not after you've already closed.
What If I Haven't Lived There for Two Full Years?
You may not automatically be out of luck.
The IRS provides circumstances where a homeowner may qualify for a partial or reduced exclusion even if they don't meet the full two-year requirements.
Examples can involve sales primarily caused by circumstances involving:
A change in employment
Health reasons
or
Certain unforeseen circumstances.
The calculation and eligibility requirements matter, so this isn't something to guess at.
If you unexpectedly have to sell after owning a home for only a year, don't immediately assume the entire gain will be taxable.
Ask a tax professional first.
What If You Sell Your Primary Residence at a Loss?
Unfortunately, the IRS isn't quite as generous on the downside.
A loss from the sale of personal-use property such as your primary home is generally not deductible for federal income-tax purposes.
So if you:
Buy for $400,000
Sell years later for $350,000
You generally can't treat that $50,000 loss like an investment capital loss simply because the home's value declined.
Primary residences receive favorable treatment when qualifying gains occur, but personal-use losses are generally not deductible.
Do You Have to Report the Sale on Your Tax Return?
Sometimes.
The IRS states that homeowners generally don't need to report a home sale if the entire gain is excluded unless certain reporting circumstances apply, such as receiving Form 1099-S.
If you receive Form 1099-S or can't exclude your entire gain, you may need to report the transaction using the appropriate federal forms.
Again, that's a conversation for your tax preparer.
What About Iowa Capital Gains Taxes?
For Iowa homeowners, you also need to consider how your federal tax treatment flows into your Iowa income-tax return.
Iowa tax reporting incorporates capital gains into state income-tax calculations, and the Iowa Department of Revenue provides separate instructions and deductions for qualifying capital gains.
State rules can change and different types of property can receive very different treatment.
Selling your primary residence is also different from selling:
Farmland.
Rental property.
Business property.
An investment property.
A commercial building.
Or property owned through a business entity.
Don't assume that something qualifying for favorable treatment under one rule automatically qualifies under another.
Why This Matters More for Long-Time Des Moines-Area Homeowners
Across Des Moines, Ankeny, Waukee, West Des Moines, Johnston, Urbandale and many surrounding communities, there are homeowners who purchased properties years—or even decades—ago.
For someone who purchased a home for $150,000 or $200,000 years ago and now owns a property worth considerably more, understanding basis and the home-sale exclusion can become an important part of deciding when and how to sell.
This is especially relevant for:
Long-time homeowners considering downsizing.
Empty nesters.
Retirees.
Homeowners relocating out of Iowa.
Owners who converted homes into rentals.
People inheriting or combining households.
Homeowners with substantial renovations.
And anyone sitting on significant equity.
Your property's current market value tells you what it may sell for.
It doesn't automatically tell you what your taxable gain will be.
Those are two entirely different numbers.
Before Selling, Start Gathering These Records
If you think you have substantial equity, gather your paperwork before meeting with your tax professional.
Useful documents may include:
Your original closing statement.
Your original purchase price.
Receipts and invoices for significant improvements.
Records showing dates the home was your primary residence.
Prior depreciation records if the home was ever rented.
Documents related to major casualty losses, insurance reimbursements, or other basis adjustments.
Your estimated selling expenses.
The more accurate your records are, the easier it becomes for a tax professional to determine your actual adjusted basis.
A Real Estate Agent and CPA Have Different Jobs
This distinction is important.
As a real estate professional, my job is to help you understand:
What your house may sell for.
What the local market looks like.
What your likely selling expenses may be.
How much equity you may have.
What selling strategy makes sense.
Your CPA or qualified tax professional should determine:
Your adjusted tax basis.
Your allowable exclusion.
Your taxable gain.
Your federal and Iowa tax consequences.
Those two conversations work extremely well together.
A homeowner shouldn't make a $400,000, $500,000 or $700,000 financial decision while ignoring either side of that equation.
The Bottom Line
Selling your primary residence doesn't automatically mean writing a giant capital-gains check.
Many qualifying homeowners can potentially exclude up to $250,000 of gain, while qualifying married couples filing jointly may potentially exclude up to $500,000.
But the details matter.
How long you've owned the property.
How long you lived there.
Your adjusted basis.
Your improvements.
Whether you've previously rented the property.
Whether you've claimed depreciation.
Whether you've used another home-sale exclusion recently.
And how much your property has appreciated.
If you've owned your home for several years and you're thinking about selling, start with the numbers.
Before worrying about taxes, the first question is:
What is your home actually worth in today's market?
Once you know that number, you can estimate your potential proceeds and give your CPA better information to evaluate your individual tax situation.
If you're considering selling a home in Des Moines, Ankeny, Waukee, West Des Moines, Johnston, Urbandale or anywhere around the Des Moines metro, I'd be happy to put together a no-pressure market analysis and show you what your property could potentially sell for.
Want to know what your house might be worth? Reach out and let's run the numbers.
Disclaimer: This article is provided for general educational purposes only and should not be considered tax, accounting, or legal advice. Tax situations vary considerably. Consult a qualified CPA, tax professional, or attorney regarding your individual circumstances.
Frequently Asked Questions About Capital Gains When Selling a Home
How much capital gain can I exclude when selling my primary residence?
Qualifying individuals may be able to exclude up to $250,000 of gain, while certain married couples filing jointly may qualify for an exclusion of up to $500,000.
How long do I have to live in my house to avoid capital gains taxes?
Generally, the ownership and use tests require you to have owned the home and used it as your primary residence for at least two years during the five-year period ending on the date of sale.
Is capital gain calculated from the selling price?
No. Your gain depends on your amount realized from the sale compared with your adjusted basis. Selling expenses and basis adjustments can affect the ultimate calculation.
Can remodeling reduce my capital gain?
Qualifying capital improvements can increase your adjusted basis, which may reduce the amount of gain calculated when you sell. Ordinary repairs and maintenance generally aren't treated the same way.
What if my primary residence was previously a rental?
Rental use can create additional tax considerations, particularly when depreciation has been claimed. Speak with a tax professional before selling a property that has been used both as a residence and a rental.
Can I deduct a loss when selling my house?
Generally, no. A loss on the sale of a personal-use primary residence isn't deductible for federal income-tax purposes.
Justin Marshall
Justin has been in the housing industry for over 20 years. Growing up as a builders son Justin's skill set and knowledge of a property is extensive. Justin attended Iowa State University for Construct....
Latest Blog Posts
If you've been waiting to buy a home because you're hoping mortgage rates will fall, today's inflation report deserves your attention.But it also deserves some context.The latest Consumer Price
For years, people living in Iowa have heard some version of the same statement:“You don’t realize how affordable it is to live here.”In 2026, that statement carries more weight
Let's be honest: the phrase "balanced market" sounds like something your economist uncle says at Thanksgiving to avoid taking a side. It's technically accurate, vaguely reassuring, and explains
DMAAR: Des Moines Area Association of REALTORS® All information deemed reliable but not guaranteed. All properties are subject to prior sale, change or withdrawal. Neither listing broker(s) or information provider(s) shall be responsible for any typographical errors, misinformation, misprints and shall be held totally harmless. Listing(s) information is provided for consumer's personal, non-commercial use and may not be used for any purpose other than to identify prospective properties consumers