Selling your home is a big deal, and for most people, it comes with a lot of questions about taxes. One of the biggest: do you have to turn around and buy another house right away to avoid getting hit with capital gains tax? The good news is no, you don’t. But the rules that protect you are worth knowing inside and out, because they come with conditions, and missing them can be costly.
Understanding Capital Gains Tax
When you sell a home for more than you paid for it, the profit is called a capital gain, and the IRS can tax it. How much you owe, and whether you owe anything at all, depends on how long you owned the home, how you used it, and your income level.
The good news is that most homeowners who sell their primary residence never pay a dime in capital gains tax. If you owned the home for more than a year, any taxable gain is treated as a long-term capital gain, which comes with lower tax rates than ordinary income. Sell before that one-year mark and the gain is considered short-term, taxed at your regular income rate, which is almost always higher. Understanding which category you fall into is the first step to knowing what you actually owe.
How the Capital Gains Exclusion Works
The tax break that protects most home sellers is called the Section 121 exclusion. It allows you to exclude up to $250,000 of profit from your taxes if you’re single, or up to $500,000 if you’re married and filing jointly. That means if you bought your home for $300,000 and sold it for $520,000, a married couple filing jointly would owe nothing in federal capital gains tax on that $220,000 profit.
The key word here is profit, not the full sale price. Capital gains tax only applies to what you made, not what you sold the house for.
The Two Rules You Need to Meet
To qualify for the exclusion, you have to meet two tests set by the IRS.
The first is the ownership test: you must have owned the home for at least two of the last five years.
The second is the use test: the home must have been your primary residence for at least two of those same five years.
The two years don’t have to be consecutive, which gives homeowners some flexibility if their living situation changed during that time. One more thing to keep in mind: you can only use this exclusion once every two years. If you sold another home and claimed the exclusion within the past two years, you’ll need to wait before claiming it again.
What If You Have to Sell Early?
Life doesn’t always cooperate with a two-year timeline, and the IRS knows that. If you had to sell before hitting the two-year mark, you might still qualify for a partial exclusion. This applies to situations like a job relocation, a health-related reason, or other unforeseen circumstances the IRS recognizes, including divorce or a natural disaster.
The way it works is straightforward. The IRS takes the amount of time you did live in the home and divides it by 24 months. That percentage is then applied to the full exclusion amount. So if you lived there for 12 months and had to sell, you could exclude up to $125,000 as a single filer instead of the full $250,000. It’s not the full protection, but it’s meaningful and worth knowing about before you assume you owe the full tax bill.
Special Circumstances: Military, Federal Employees, Inheritance, and Divorce
Some sellers have access to provisions that go beyond the standard rules, and it’s worth knowing if you fall into one of these categories.
Members of the military, the intelligence community, or the foreign service may qualify for an extended eligibility window. If you were stationed away from home on official duty, the IRS allows you to suspend the five-year test period for up to ten years. That means you could still qualify for the full exclusion even if you weren’t living in the home for the standard required period. It’s one of the more overlooked benefits available to those who serve.
If you inherited a home, the tax rules work differently. Instead of paying capital gains on the full increase in value since the original purchase, inherited properties receive what’s called a stepped-up basis. This means your cost basis is reset to the home’s fair market value at the time you inherited it, which can significantly reduce or eliminate capital gains if you sell shortly after inheriting.
Divorce adds another layer of complexity. If a home is transferred to you as part of a divorce settlement, the IRS generally does not treat that transfer as a taxable event at the time it happens. However, capital gains may apply when you eventually sell. If the home was your primary residence and you meet the ownership and use tests, you may still qualify for the $250,000 exclusion as a single filer. These situations can get complicated quickly, which is another reason to loop in a tax professional early.
When the Rules Are Different: Investment Properties
Everything we’ve covered so far applies to your primary residence. If you’re selling an investment property, a rental, or a second home, the rules are completely different. The Section 121 exclusion doesn’t apply, which means capital gains tax is likely on the table. The good news for investors is that there’s a separate strategy called a 1031 exchange, which lets you defer capital gains taxes by rolling the proceeds from the sale into another similar investment property. It’s a powerful tool, but it comes with strict timelines and requirements, so working with a tax professional before you sell is a must.
Know Your Numbers Before You Sell
One thing that catches a lot of homeowners off guard is not knowing their actual profit on the sale. Your capital gain isn’t just the difference between what you paid and what you sold for. It’s based on something called your cost basis, which includes your original purchase price, closing costs, and any major improvements you made to the home over the years. A new roof, a kitchen remodel, an HVAC replacement: these all increase your cost basis and reduce your taxable gain. The better your records, the lower your tax bill could be. Dig up those old receipts before you list.
How Your Tax Rate Is Determined
Not every home sale is taxed the same way. If you’ve owned your home for more than a year, any taxable gain is treated as a long-term capital gain, which is taxed at 0%, 15%, or 20% depending on your income level and filing status. If you’ve owned it for less than a year, that gain gets taxed as ordinary income, which is almost always a higher rate. This is one reason timing your sale matters. It’s also worth knowing that state taxes may apply on top of federal, depending on where you live.
Don't Skip the Tax Professional
The rules around home sale taxes are straightforward for a lot of sellers, but not for everyone. If your gain is close to or over the exclusion limit, if you’ve been renting the property, or if you’re juggling the sale with other big financial moves, a tax professional is worth every penny. They can help you understand your cost basis, figure out if a partial exclusion applies, and make sure you’re not leaving money on the table. The goal isn’t just to file correctly, it’s to plan smart.
Not Ready to Buy Again Right Away? That's Okay.
Selling a home doesn’t mean you have to jump straight into buying another one. A lot of sellers choose to rent for a period of time, stay with family, or simply take a breath before making their next move. There’s no tax penalty for doing that. Your exclusion is already secured the moment you meet the ownership and use tests. What you do with the proceeds after is entirely up to you.
When you are ready to buy again, that’s where having the right mortgage partner matters. The proceeds from your home sale can affect your down payment, your debt-to-income ratio, and your overall loan options in ways that are worth planning for ahead of time rather than figuring out at the closing table.
Ready to Make Your Next Move?
Understanding your tax situation when selling is only part of the picture. What you walk away with after the sale directly affects what you can put toward your next home, your down payment, your loan options, and your overall buying power. That’s where we come in. The loan officers at DSLD Mortgage can help you understand what your next purchase could look like and get you set up for the next step. Contact us today to get started.
How much will your mortgage be? You can use DSLD Mortgage’s Mortgage Calculator to estimate your monthly mortgage payment.
Current mortgage rates holding you back? Don’t miss out on these deals! Buy a home with DSLD Mortgage and take advantage of our limited-time mortgage promotions.
Mortgage FAQs
Owning a home is a dream we help bring to life every day. You probably have a lot of questions, and that’s a good thing! Here are the answers to some of the most frequently asked questions we get, designed to make your path to homeownership as smooth as possible.
No. This is one of the most common misconceptions in real estate. The capital gains exclusion has nothing to do with whether you buy another home. It’s based entirely on how long you owned and lived in the home you sold.
Only the amount above the limit is taxable. If you’re single and made $300,000 in profit, only $50,000 would be taxable. The rate depends on your income level and filing status.
Once every two years. As long as two years have passed since you last claimed it and you meet the ownership and use tests, you can use it again on a future home sale.
Hold onto documentation of your original purchase price, closing costs, and any major home improvements. These all factor into your cost basis and can reduce your taxable gain when you sell.
Begin Your Home Search with DSLD Homes
To get a feel for the lifestyle that awaits you in a DSLD Homes community, visit one of their communities throughout the Southern Region.
With a diverse selection of floor plans and communities to choose from, you’re sure to find the perfect fit for your lifestyle.





