What Tax Deductions Can You Claim on a Home Sale? 🏡

When you sell your home, the tax picture is different from what many people expect. Most homeowners won't owe federal income tax on their sale at all—but it's not because of a deduction. It's because of an exclusion, which works differently. Understanding the distinction, and knowing when deductions do apply, can help you file correctly and avoid surprises.

The Home Sale Exclusion vs. Deductions

Let's start with the most important concept: the primary residence exclusion. This is not a deduction—it's a permanent exclusion from income.

If you meet specific ownership and use requirements, you can exclude up to $250,000 (or $500,000 if you're married filing jointly) of your gain from federal income tax. This means that amount is simply not taxable income, period. For most homeowners, their profit on the sale falls within this exclusion, so they owe nothing.

Deductions, by contrast, reduce your total taxable income. They're different animals and apply in different situations related to home sales.

When Home Sale Deductions Actually Apply

True deductions on home sales are rare for owner-occupants, but they do exist in specific scenarios:

Losses on investment or rental properties. If you sell a property you've held for investment or rental (not as your primary residence), you cannot deduct a capital loss against ordinary income under federal tax rules. However, you can use capital losses to offset capital gains from other sales. This distinction matters if you have multiple investment properties or securities sales in the same year.

Home office deduction complications. If you claimed a home office deduction while you lived there, the IRS may require you to recapture (repay) part of that deduction when you sell. This isn't a new deduction—it's a recapture of prior deductions you claimed. The mechanics depend on whether you depreciated the space and your method of calculation.

Points and loan costs. If you paid points or other loan origination costs to secure your mortgage, these are often deducted over the life of the loan. Any remaining unamortized amount may be deductible in the year of sale, but this applies to the original purchase, not the sale itself.

What You Cannot Deduct

Selling expenses are not deductible. Real estate agent commissions, closing costs, title insurance, inspection fees, and repairs made before sale cannot be deducted as business expenses for a primary residence sale. Instead, they reduce your net proceeds and thereby reduce your taxable gain—but this happens through the math of calculating gain, not through a deduction line item.

Capital improvements aren't deductible. New roof, updated kitchen, new HVAC system? These increase your "cost basis" in the home, which reduces your taxable gain. Again, this is gain calculation, not a deduction.

Key Variables That Shape Your Tax Picture đź“‹

Your specific tax outcome depends on:

  • Property type. Primary residence, investment property, rental, or second home—each has different rules.
  • Length of ownership and use. The exclusion requires at least two of the five years before sale to have been lived in the property.
  • Your filing status. Married filing jointly can exclude twice as much gain as single filers.
  • Prior deductions claimed. Home office or depreciation deductions can create recapture obligations.
  • Your total income and other gains. If you have losses or gains from other sources, the interaction matters for your overall tax picture.
  • State and local rules. Some states tax capital gains differently or have their own exclusions; others don't tax capital gains at all.

What to Bring to a Tax Professional

If you're unsure whether you qualify for the exclusion or whether you'll owe taxes:

  • Purchase price and date
  • Sale price, date, and net proceeds
  • Documentation of ownership and occupancy (especially for the past five years)
  • Any prior deductions claimed on the property (home office, depreciation, etc.)
  • Receipts for capital improvements made during ownership
  • Details on any rental or business use of the property

A tax professional can calculate your exact gain, confirm your eligibility for the exclusion, and identify any recapture obligations specific to your situation.