The main way to avoid paying capital gains tax on inherited property is the stepped-up basis: federal law resets the property’s cost basis to its fair market value on the date of the previous owner’s death, so decades of appreciation during the decedent’s lifetime are never taxed. Sell soon after inheriting and there is often no gain to tax at all. If the property has climbed in value since the date of death, several follow-on moves can eliminate or defer what remains, including the primary residence exclusion, a 1031 exchange, capital loss offsets, a charitable donation, or disclaiming the inheritance entirely.
The Step-Up in Basis Does Most of the Work
Your basis in inherited property is not what the decedent paid. It resets to fair market value on the date of death.1Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent A parent who bought a house for $50,000 in 1980 might leave it to you worth $600,000. Your basis is $600,000. Sell for $600,000 and the taxable gain is zero. The $550,000 of lifetime appreciation is simply gone from the calculation.
No election is required. But proving the date-of-death value is your responsibility, and that proof needs to exist before the IRS asks for it. Hire a licensed appraiser to value the property as of the date of death, and keep that appraisal with your records. If the estate filed a federal estate tax return, the executor is required to send you a Schedule A reporting the property’s value, and your basis cannot exceed the figure reported there.2Internal Revenue Service. Publication 551, Basis of Assets – Section: Inherited Property
Community Property Gets a Double Step-Up
In the nine community property states, both halves of property held as community property step up when the first spouse dies, not just the deceased spouse’s half. The surviving spouse’s share also resets to fair market value.1Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent That full step-up applies as long as at least half of the community property interest was included in the deceased spouse’s gross estate. In common-law states, only the decedent’s half steps up.
Alternate Valuation Date
If the property lost value in the six months after death, the executor can elect an alternate valuation date, setting the basis at value six months after death (or on the date the property was sold or distributed, if earlier). The election is only available if it reduces both the gross estate and the estate tax owed.3eCFR. 26 CFR 20.2032-1 – Alternate Valuation The trade-off: a lower stepped-up basis means a larger potential gain if you later sell into a recovering market.
Any Gain Is Automatically Long-Term
Sell inherited property the week you receive it and the gain still qualifies for long-term capital gains rates. Federal law treats inherited property as held for more than one year regardless of your actual holding period.4Office of the Law Revision Counsel. 26 USC 1223 – Holding Period of Property That matters because long-term rates run well below the ordinary-income rates that hit short-term gains.
Know What the Tax Would Actually Be
Before pursuing any strategy, run the numbers. For 2026, long-term capital gains fall into one of three federal rates based on taxable income:
- 0% for single filers with taxable income up to $49,450, or joint filers up to $98,900.
- 15% for single filers between $49,451 and $545,500, or joint filers between $98,901 and $613,700.
- 20% above those thresholds.
If your income sits in the 0% bracket, the step-up alone may already leave you with no federal tax to pay. Higher earners face an added 3.8% net investment income tax on capital gains once modified adjusted gross income exceeds $200,000 for single filers or $250,000 for joint filers, and those thresholds are not indexed for inflation.5Office of the Law Revision Counsel. 26 USC 1411 – Imposition of Tax
Move In and Use the Primary Residence Exclusion
Live in the inherited home as your main home for at least two of the five years before you sell, and you can exclude up to $250,000 of gain from tax. Joint filers can exclude up to $500,000.6Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence The two years do not need to be consecutive; they need to total 24 months inside the five-year window. Because the exclusion stacks on top of the stepped-up basis, it only has to cover appreciation that occurred after the date of death.
Inherit a house with a $600,000 stepped-up basis, move in for two years, sell for $800,000, and the entire $200,000 gain fits inside the $250,000 exclusion. Federal capital gains tax owed: zero.
Surviving Spouse Rules
If you inherited the home from a spouse, you can still claim the $500,000 exclusion as a single filer if you sell within two years of your spouse’s death, have not remarried, and meet the ownership and use tests. You can count your late spouse’s time owning and living in the home toward those tests, even for periods when you did not live there yourself.7Internal Revenue Service. Publication 523, Selling Your Home
Partial Exclusion for a Shorter Stay
Short of the full two years, a partial exclusion is available if the sale was driven by a job change, a health issue, or an unforeseeable event such as divorce, death, or a natural disaster. You divide the months you actually lived in the home by 24 and apply that fraction to $250,000 or $500,000.7Internal Revenue Service. Publication 523, Selling Your Home
Roll the Gain Into Another Property With a 1031 Exchange
If the inherited property was a rental, held for investment, or used in a business (not a personal residence), you can defer the entire capital gains tax by reinvesting into another qualifying property through a like-kind exchange.8Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment The replacement must also be held for investment or business use. A personal residence, on either side of the trade, disqualifies the exchange.9Internal Revenue Service. Publication 544, Sales and Other Dispositions of Assets
The deadlines are strict. You have 45 days from the sale to identify potential replacements and 180 days (or your tax return due date with extensions, whichever comes first) to close.8Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment A qualified intermediary must hold the sale proceeds during that window; if the money touches your account, the exchange fails. The gain is deferred rather than erased. It rolls into the replacement property’s basis and comes due when you sell that property without another exchange.
Spread the Gain Across Years With an Installment Sale
An installment sale lets the buyer pay over multiple years, and you recognize the gain proportionally as payments arrive. Spreading income out can keep you in a lower rate bracket, avoid crossing from the 15% rate into the 20% rate, or keep modified adjusted gross income below the net investment income tax threshold. The installment method applies automatically whenever at least one payment lands after the year of sale, unless you elect out. One catch: depreciation recapture on a former rental is taxed entirely in the year of sale, no matter when the cash comes in. That alone is a reason to talk to a tax professional before signing.
Offset the Gain With Capital Losses
Losses you take on other investments in the same year can wipe out the gain from selling inherited property. Long-term losses offset long-term gains first, short-term losses offset short-term gains first, and any excess then crosses over.10Office of the Law Revision Counsel. 26 USC 1211 – Limitation on Capital Losses A $30,000 gain on the inherited home meets a $30,000 loss on stock and the net taxable amount is zero.
When total losses exceed total gains, you can deduct up to $3,000 of the excess against ordinary income each year ($1,500 if married filing separately), and any unused loss carries forward indefinitely.11Office of the Law Revision Counsel. 26 USC Subtitle A, Chapter 1, Subchapter P, Part II – Treatment of Capital Losses
Do Not Sell at a Loss to Family
Sell the inherited property at a loss to a sibling, spouse, parent, or child and the IRS disallows the loss entirely.12Office of the Law Revision Counsel. 26 USC 267 – Losses, Expenses, and Interest With Respect to Transactions Between Related Taxpayers The same rule applies to sales between an executor and a beneficiary of the same estate. If the family member later resells at a gain, that gain is reduced by the previously disallowed loss, but the original seller never gets to claim it.
Grow Your Basis With Improvements and Selling Costs
Every dollar added to basis is a dollar off the taxable gain. Capital improvements you make before selling (a new roof, a kitchen remodel, an added bathroom, a new HVAC system) increase your basis.13Internal Revenue Service. Publication 527, Residential Rental Property Routine repairs like repainting or fixing a leak do not count; work that adds value, extends useful life, or adapts the property to a new use does.
Selling costs reduce the gain from the other side. Agent commissions, title insurance, transfer taxes, legal fees for the deed, and recording fees all come off your sale proceeds.7Internal Revenue Service. Publication 523, Selling Your Home Keep every receipt and every closing statement. If the IRS questions your numbers, those records are the answer.
Donate the Property to Charity
Give the property to a qualified charity instead of selling it and no capital gains tax is triggered, because no sale occurs. You also get a charitable deduction generally equal to the property’s full fair market value on the date of the gift, because inherited property automatically qualifies as long-term capital gain property.14Internal Revenue Service. Publication 526, Charitable Contributions The deduction for appreciated property given to a public charity is capped at 30% of adjusted gross income for the year, with a five-year carryforward for anything above that.
The property itself must be donated. Sell it first and hand over the cash and you have already triggered the tax. The charity will typically need an independent appraisal, and you need written acknowledgment of the gift for your records.
Bargain Sale
Sell to a charity for less than fair market value and the transaction is a bargain sale: you get a deduction for the discount, but you also recognize gain on the sale portion, because the IRS splits your basis proportionally between the sold and donated pieces.15eCFR. 26 CFR 1.1011-2 – Bargain Sale to a Charitable Organization That basis split often produces a taxable gain even when the sale price equals your original stepped-up basis.
Charitable Remainder Trust
A charitable remainder trust sits between selling and giving. Transfer the property into an irrevocable trust, and the trust sells it without triggering an immediate capital gains tax to you. The trust pays you (or other named beneficiaries) income for a set period or for life, and whatever remains goes to charity.16Internal Revenue Service. Charitable Remainder Trusts You get a partial charitable deduction when the trust is funded, and the gain is recognized gradually through the income payments. The charity’s remainder interest must be worth at least 10% of the initial trust value.
Refuse the Inheritance With a Qualified Disclaimer
If you do not want the property or the tax that comes with it, you can refuse it. A qualified disclaimer passes the property to the next beneficiary under the will or state law, as though you had died before the owner. Because ownership never reached you, no capital gains tax attaches to you.17Office of the Law Revision Counsel. 26 USC 2518 – Disclaimers
Four requirements must be met:
- The disclaimer is in writing and filed within nine months of the death (or within nine months of your 21st birthday if you were a minor).
- You have accepted no benefit from the property, such as living in it or collecting rent.
- You do not direct where the property goes; it passes under the will, trust, or intestacy law.
- The property passes to the decedent’s spouse or to someone other than you.
If you also hold a remainder interest in a trust that would receive the disclaimed property, you have to disclaim that interest too, or the disclaimer is not qualified.18eCFR. 26 CFR 25.2518-2 – Requirements for a Qualified Disclaimer
Reporting the Sale
Report the sale on Form 8949 and Schedule D. Because the holding period is deemed long-term, the sale goes on Part II of Form 8949. Write “INHERITED” in the date-acquired column and use the stepped-up fair market value as your basis.19Internal Revenue Service. Instructions for Form 8949 The closing agent will usually issue a Form 1099-S showing gross proceeds; if the property was your primary residence and the entire gain fits within the exclusion, the agent may skip the 1099-S when you certify the gain is fully excludable. Hold onto the appraisal, closing statements, and improvement receipts. If the IRS pushes back on your basis, those documents are what carries the day.