Capital gains tax on homes applies to profits made when selling a residential property, but most owners exclude gains under $250,000 ($500,000 for married couples filing jointly) if they lived in the home for at least two of the past five years. The tax is calculated on the difference between the sale price and the adjusted basis, which includes purchase cost, improvements, and selling expenses.
When you sell a home, the IRS treats the profit as a capital gain. This gain is categorized as short-term or long-term based on how long you owned the property. If you held the home for more than one year, the gain is long-term and taxed at lower rates-0%, 15%, or 20%-depending on your income. If you owned it less than a year, it's short-term and taxed at ordinary income rates, which can exceed 37%.
The IRS allows a significant exclusion for primary residences. Under Section 121 of the Internal Revenue Code, single filers can exclude up to $250,000 in gains, and married couples filing jointly can exclude up to $500,000. To qualify, you must have used the home as your principal residence for at least two out of the five years before the sale. This rule applies even if you moved due to job changes, health issues, or divorce.
To calculate capital gains tax on homes, subtract your adjusted basis from the net sale proceeds. Adjusted basis includes the original purchase price, closing costs, and money spent on major improvements like adding a bathroom or replacing the roof. Selling expenses such as realtor commissions and legal fees also reduce taxable gain.
For example, suppose you bought a house for $300,000 in 2018, paid $15,000 in closing costs, and spent $40,000 on renovations. Your adjusted basis is $355,000. If you sold it in 2024 for $700,000 and paid $35,000 in selling fees, your net proceeds are $665,000. The gain is $665,000 - $355,000 = $310,000. If you're a single filer who qualifies for the exclusion, you'd owe no tax on the first $250,000. The remaining $60,000 would be subject to long-term capital gains rates.
If your income places you in the 15% bracket, you'd pay $9,000 in federal capital gains tax on the $60,000 excess. State taxes may apply depending on your location. Washington state, for instance, enacted a capital gains tax effective January 1, 2024, targeting high earners with a rate up to 7%. The law applies to gains exceeding $250,000 annually, including those from home sales, though exemptions exist for certain thresholds.
Not all home sales trigger capital gains tax. The key factor is whether the property was your primary residence. Investment properties, vacation homes, and rental units are treated differently and generally do not qualify for the $250,000/$500,000 exclusion.
| Sale Type | Exclusion Eligible? | Tax Rate Type | Example |
|---|---|---|---|
| Primary residence | Yes (up to $250k/$500k) | Long-term (0-20%) | Sold for $600k after 10-year ownership |
| Rental property | No | Depreciation recapture + long-term (0-20%) | Sold for $400k after 5 years; $100k gain taxed at 25% |
| Vacation home | No | Long-term (0-20%) | Sold for $350k after 3 years; $80k gain taxed at 15% |
Even if you don't live in the home, you may still qualify for partial exclusion if you meet the ownership and use tests. For example, if you moved due to a job relocation, you can claim the exclusion for part of the time you lived there. The IRS allows proration based on days occupied versus total ownership period.
Many assume that all home sale profits are taxable. That's incorrect. The IRS excludes up to $250,000 ($500,000 for joint filers) of gain from taxation if you meet the residency requirement. Even if you sell for much more than you paid, you may owe nothing if your gain falls within the exclusion limit.
A common error is failing to track improvement costs. Many homeowners forget to include expenses like kitchen remodels or new HVAC systems when calculating adjusted basis. These costs reduce the taxable gain. Without them, the gain appears larger than it actually is.
Another misconception is that the exclusion resets every time you sell. It does not. You can only claim the exclusion once every two years. If you sell and buy another home within that window, you may lose eligibility unless you meet specific exceptions, such as a qualifying event like a job transfer or medical emergency.
In 2023, a couple in San Francisco sold their home for $1.4 million. They bought it in 2010 for $600,000, paid $30,000 in closing costs, and spent $75,000 on upgrades. Their adjusted basis was $705,000. Net proceeds were $1.365 million after $35,000 in selling fees. The gain was $660,000.
As a married couple filing jointly, they qualified for the $500,000 exclusion. The remaining $160,000 was subject to long-term capital gains tax. With an annual income placing them in the 15% bracket, they owed $24,000 in federal tax. California added another $12,000 in state capital gains tax, bringing total tax to $36,000.
This scenario illustrates how both federal and state taxes apply. It also shows why tracking all costs matters-without the $75,000 in improvements, the taxable gain would have been $235,000, increasing their tax bill.
You report capital gains from home sales on IRS Form 8949 and Schedule D. The form requires details like the sale date, sale price, adjusted basis, and net gain. You must file this with your annual tax return, even if no tax is due.
If you expect to owe more than $1,000 in capital gains tax, you may need to make quarterly estimated payments. Failure to do so can result in penalties. The IRS uses Form 1040-ES to calculate these payments.
I once helped a client in Seattle reconcile a home sale where the real estate agent had misclassified the sale as a short-term transaction. The client had owned the home for eight years but believed they'd triggered short-term rates. After reviewing records, we confirmed long-term status and reduced their tax liability by nearly $12,000.
Capital gains tax on homes differs from taxes on stocks. While stock gains follow similar long-term/short-term rules, the exclusion for primary residences does not apply to investment assets. Stock gains are always taxable, regardless of holding period or personal use.
Homeowners planning to sell should review their eligibility for the exclusion well in advance. This guide explains how to document ownership and use requirements. It also covers recordkeeping best practices and how to handle partial exclusions.
Capital gains tax on homes is not automatic. Most sellers walk away with no tax burden thanks to the exclusion. But understanding how the system works prevents costly mistakes and ensures accurate reporting.