Capital gains tax is a tax you may owe when you sell something for more than you paid for it. Think of it this way: if you bought your home for $250,000 and sold it ten years later for $400,000, you have a "capital gain" of $150,000. That difference between what you paid and what you received is where capital gains tax comes in.
Your Free Guide to Capital One Credit Card Options →
The reason this matters for homeowners is that the federal government taxes these profits at different rates depending on how long you owned the property. The IRS distinguishes between short-term capital gains (property held for one year or less) and long-term capital gains (property held for more than one year). Long-term capital gains typically receive more favorable tax treatment, with rates of 0%, 15%, or 20% depending on your income level. Short-term gains are taxed as ordinary income, which can be significantly higher—potentially up to 37% at the federal level.
Here's a concrete example: Sarah bought her condo in Miami for $180,000 in 2015. She sold it in 2023 for $290,000. Her capital gain is $110,000. Because she held the property for more than one year, this counts as a long-term capital gain. Depending on her total income that year, she might owe federal tax at 15% on some or all of that gain—translating to roughly $16,500 in federal taxes. But if she had sold the same condo after owning it for only eight months, the tax treatment would be completely different, potentially costing her thousands more.
Most homeowners won't face this tax at all, thanks to an exclusion that Congress built into the tax code. However, understanding how capital gains tax works helps you plan your home sale strategically and avoid surprises when tax time comes around.
Practical Takeaway: Capital gains tax applies to the profit you make when selling real estate. The length of time you own the home significantly affects the tax rate you'll pay. Knowing this before you list your home helps you understand your potential tax bill.
The biggest factor affecting capital gains tax for homeowners is the primary residence exclusion. This provision allows you to exclude a substantial amount of gain from taxation when you sell your main home. For single filers, you can exclude up to $250,000 of capital gains. If you're married and filing jointly, the exclusion jumps to $500,000. This means many homeowners never pay capital gains tax on their home sale at all.
Get Your Free GameStop Credit Card Information Guide →
To use this exclusion, you must meet specific requirements. First, you need to have owned the home for at least two of the five years before the sale. Second, you must have lived in the home as your primary residence for at least two of those same five years. These don't have to be consecutive years—they just need to add up to 24 months within that five-year window. Third, you can't have used this exclusion on another home sale within the two years before this sale.
Here's a realistic scenario: Marcus and Jennifer bought their home in Denver for $320,000 in 2019. They lived there as their primary residence for four years before selling it in 2023 for $520,000. Their capital gain is $200,000. Because they owned and lived in the home for more than two years, they can exclude $500,000 of gains (their married filing jointly limit). Since their actual gain is $200,000—well under the $500,000 threshold—they owe zero federal capital gains tax on this sale. They only need to handle any state-level taxes that may apply.
However, life circumstances can complicate this. If you sold your previous home two years ago and used the exclusion then, you can't use it again on this sale, even if you otherwise meet the requirements. If you owned a rental property for five years before converting it to your primary residence and living there for one year before selling, you would only qualify for the exclusion on the portion of the gain from the year you lived there as your main home—not the previous rental period.
The IRS does provide some exceptions for taxpayers who don't meet the full two-year requirement due to unforeseen circumstances like death, divorce, or a job relocation. These exceptions can reduce the exclusion proportionally, but you still receive some tax relief.
Practical Takeaway: Most homeowners who sell their primary residence owe no federal capital gains tax because of the $250,000 (single) or $500,000 (married filing jointly) exclusion. Check whether you meet the ownership and residency tests before assuming you'll owe tax.
Understanding your capital gain starts with determining your "basis" in the property—essentially, what your home cost you. This isn't just the purchase price. Your basis includes the original purchase price plus certain improvements you made over the years, minus any depreciation you claimed (which applies mainly to rental properties, not primary residences).
Learn How USAA Auto Insurance Works →
Let's break down a detailed example. Suppose you bought a home in Portland for $285,000 in 2012. The purchase price is your starting basis: $285,000. Over the years, you made improvements: you added a second bathroom for $18,000, installed a new roof for $12,000, and replaced the HVAC system for $8,500. These capital improvements increase your basis to $323,500. However, routine maintenance like painting walls, replacing a water heater, or fixing a roof doesn't count—only improvements that add lasting value or extend the life of the home qualify.
When you later sell the home for $450,000, your capital gain is calculated as $450,000 (sale price) minus $323,500 (adjusted basis) equals $126,500. This $126,500 is your actual taxable gain—before applying the primary residence exclusion.
Many homeowners underestimate their basis by forgetting about improvements made years ago. Documentation matters tremendously. The IRS doesn't require you to report capital gains tax on your main home sale (thanks to the exclusion), but you should still keep records of your purchase documents and improvement receipts. If your gain exceeds the exclusion amount, you'll need this documentation to prove what you're claiming as your adjusted basis. Without it, the IRS could challenge your calculations.
Some costs don't increase your basis at all. Real estate agent commissions, title insurance, property inspection fees, and closing costs reduce your net proceeds from the sale, but they're not added to your basis. They're simply transaction costs that reduce your profit, which can be advantageous—every dollar that reduces your net proceeds also reduces your potential tax liability.
If you inherited the home, the rules change significantly. Inherited properties receive a "step-up in basis," meaning your basis is typically the home's fair market value on the date of the person's death, not what they originally paid. This step-up can dramatically reduce or eliminate any capital gains tax when you sell an inherited home.
Practical Takeaway: Your capital gain equals your sale price minus your adjusted basis (purchase price plus improvements). Keep receipts for major home improvements—they lower your taxable gain if it exceeds your exclusion limit.
While the primary residence exclusion protects most homeowners, certain situations create circumstances where you'll owe capital gains tax despite selling your main home. Understanding these scenarios helps you plan ahead financially.
Your Free Guide to AARP Travel Insurance Plans →
The most common situation is selling a high-value home in an expensive market where your gain exceeds the exclusion limit. Consider a couple in San Francisco who bought their home for $600,000 in 2010 and sold it for $1,850,000 in 2023. Their capital gain is $1,250,000. Even though they're married and have a $500,000 exclusion, they still have $750,000 of taxable gain. On that $750,000, they'll owe federal long-term capital gains tax at 15% or 20% (depending on their income level), which could total between $112,500 and $150,000 in federal taxes alone—before any state taxes.
Another scenario involves selling a portion of your property. If you subdivided your original lot and
This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.