You generally can’t write off a loss on a home sale if the property was your personal residence. Federal tax law treats your home as personal-use property, and losses on personal assets aren’t deductible. The exception matters: if you converted the home to a rental or used part of it for business before selling, the loss attributable to that business or rental use can be deductible, provided you follow the IRS’s basis rules and can document the conversion.
Why the Loss on Your Personal Home Isn’t Deductible
Individuals can deduct only three kinds of losses under federal tax law: losses from a trade or business, losses from a transaction entered into for profit, and certain casualty or theft losses.1Office of the Law Revision Counsel. 26 USC 165 – Losses A home you bought to live in doesn’t fit any of them.
The IRS puts it in plain terms: “A loss on the sale or exchange of personal use property, including a capital loss on the sale of your home used by you as your personal residence at the time of sale…isn’t deductible.”2Internal Revenue Service. Losses (Homes, Stocks, Other Property) Publication 523 says the same thing from the other side: you can’t deduct the loss, but you also owe no tax on the sale proceeds.3Internal Revenue Service. Publication 523, Selling Your Home
This catches people off guard because losses on stocks are deductible. The tax code treats your home as a consumption asset, closer to a car or furniture, rather than an investment. The classification holds even if the home appreciated for years before its value dropped.
One boundary worth naming: a loss from a fire, hurricane, or other sudden destructive event follows separate casualty-loss rules and forms, not the rules discussed here.2Internal Revenue Service. Losses (Homes, Stocks, Other Property)
When Converting to a Rental Opens the Door
Publication 544 confirms you can deduct a loss on property you originally acquired as your home if you changed it to business or rental use and were using it that way at the time of sale.4Internal Revenue Service. Publication 544, Sales and Other Dispositions of Assets The conversion has to be real. Moving out and leaving the house empty doesn’t count. You need active efforts to find tenants, signed leases, rental income reported on your returns, and depreciation claimed during the rental period.
The tax code sets no minimum rental period, but tax professionals commonly recommend operating the property as a documented rental for at least 12 to 24 months before selling to establish clear investment intent. A short or half-hearted rental history invites scrutiny. The IRS will look at whether you charged market-rate rent, advertised the property, and treated it like a real business on your returns.
The Lesser-of Rule That Eats Most Personal Declines
Converting your home to a rental doesn’t let you use your original purchase price as the starting point for a loss. Your basis for calculating a loss on a converted property starts with the lower of your adjusted basis or the property’s fair market value on the date of conversion.5Internal Revenue Service. Publication 551, Basis of Assets You then adjust that figure for improvements and depreciation taken during the rental period.
The rule exists to keep you from deducting value that dropped while the home was still personal-use property. Say you paid $400,000 for a house and it was worth $320,000 when you converted it to a rental. Your starting basis for a loss is $320,000, not $400,000. That $80,000 personal decline stays nondeductible. If the property’s value falls further during the rental years and you sell below the converted basis, that additional decline is the deductible portion. Depreciation you claimed or were entitled to claim during the rental period reduces the basis further. Publication 527 works through this calculation in detail.6Internal Revenue Service. Publication 527, Residential Rental Property
Get a written appraisal or other credible valuation as of the conversion date. Without one, you’ll struggle to defend the number if the IRS questions the deduction later.
Figuring Your Adjusted Basis
Basis is the amount of your investment in the property for tax purposes.5Internal Revenue Service. Publication 551, Basis of Assets Start with the original purchase price. Add qualifying settlement costs from the purchase: legal fees, recording fees, transfer taxes, owner’s title insurance, survey costs, and utility service installation. Loan-related items like mortgage origination points don’t count.
Add capital improvements made during ownership. An improvement adds value, extends useful life, or adapts the property to a new use. A new roof, an added bedroom, a remodeled kitchen, or a replaced HVAC system qualify. Routine maintenance does not; the IRS has confirmed that exterior painting by itself is a currently deductible repair rather than a capital improvement.7Internal Revenue Service. Depreciation and Recapture
Subtract depreciation claimed or allowable during business or rental use. The result is your adjusted basis. Compare it to the amount realized on the sale (sale price plus any buyer-assumed liabilities, minus selling expenses) to find the gain or loss.
Home Offices and Partial Business Use
If you ran a business from part of your home, the tax treatment splits at the line between personal and business space. The loss on the personal portion stays nondeductible; the loss allocable to the business portion may be deductible.4Internal Revenue Service. Publication 544, Sales and Other Dispositions of Assets
You typically calculate the business percentage by dividing the square footage used exclusively for business by the total square footage of the home. Rooms of roughly equal size can be used as the denominator instead.8Internal Revenue Service. Publication 587, Business Use of Your Home If the office occupied 15% of the house, 15% of the overall loss is potentially deductible. The other 85% disappears for tax purposes.
Depreciation you claimed on the business portion reduces the basis of that portion, and in some cases the reduction absorbs most of the loss you’d otherwise claim. If you used the simplified method ($5 per square foot, up to 300 square feet), you didn’t claim depreciation, so basis isn’t reduced for those years.
Selling to a Family Member Kills the Deduction
Even a properly converted rental loses its deduction if you sell to a related party. Federal law disallows losses on sales between related taxpayers, a group that includes siblings, a spouse, parents, grandparents, children, and grandchildren.9Office of the Law Revision Counsel. 26 USC 267 – Losses, Expenses, and Interest With Respect to Transactions Between Related Taxpayers
There is a partial offset for the buyer. If the relative later resells at a gain, that gain is taxable only to the extent it exceeds the disallowed loss. The disallowed loss effectively shields the buyer from later gain on the same property, but the original seller never gets a deduction. If you’re planning to sell an investment property at a loss, sell it to an unrelated third party at arm’s length.
Inherited and Gifted Homes
Inherit a home and your basis is generally stepped up to the property’s fair market value on the date of the previous owner’s death.10Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent Whether a later loss is deductible still depends on how you used the property. Move in and it’s personal-use, so the loss is nondeductible. Rent it out or hold it purely as an investment and the loss can be deducted. Get an appraisal near the date of death; without one, proving your stepped-up basis years later is hard.
Gifted property follows a dual-basis rule. If the home’s fair market value at the time of the gift was lower than the donor’s adjusted basis, you use the fair market value as your basis when calculating a loss.11Internal Revenue Service. Property (Basis, Sale of Home, etc.) If the donor’s basis produces a loss but the fair market value produces a gain, you have neither a gain nor a loss. Nothing is deductible and nothing is taxable in that middle zone.
Reporting a Deductible Loss
A deductible loss on a converted rental or business property runs through Form 4797, Sales of Business Property. That form captures the sale price, the acquisition and sale dates, and the adjusted basis. Property held longer than one year and sold at a loss generally starts in Part I, which handles Section 1231 transactions.12Internal Revenue Service. 2025 Instructions for Form 4797, Sales of Business Property
The result flows to Schedule D of Form 1040, which summarizes your capital gains and losses for the year and feeds into the main return.13Internal Revenue Service. 2025 Instructions for Schedule D (Form 1040), Capital Gains and Losses Property held one year or less, or capital assets not reported elsewhere, may need to go through Form 8949 before reaching Schedule D.14Internal Revenue Service. Instructions for Form 8949
Keep every document in the chain: the original purchase closing statement, records of capital improvements, depreciation schedules, the conversion-date appraisal, lease agreements, and the final sale closing statement.
Annual Limits and Carryforward
If total capital losses exceed capital gains for the year, you can use up to $3,000 of the excess against ordinary income ($1,500 if married filing separately).15Office of the Law Revision Counsel. 26 USC 1211 – Limitation on Capital Losses That cap is statutory and isn’t adjusted for inflation. Anything left over carries forward indefinitely.
Long-held rental property losses are typically classified as Section 1231 losses, and a net Section 1231 loss is treated as an ordinary loss rather than a capital loss. It can offset more than $3,000 of income in the year of the sale. The classification depends on your overall Section 1231 gains and losses for the year and any unrecaptured Section 1231 losses from the preceding five years.12Internal Revenue Service. 2025 Instructions for Form 4797, Sales of Business Property Net operating losses arising after 2020 generally cannot be carried back to prior years and only carry forward.16Internal Revenue Service. Instructions for Form 172, Net Operating Losses for Individuals, Estates, and Trusts