How to Avoid Capital Gains Tax on Gifted Property

To avoid or reduce capital gains tax on gifted property, you have three real levers: move in and live there long enough to claim the primary residence exclusion, use a Section 1031 exchange to defer the gain if it’s investment property, or, if the gift hasn’t happened yet, ask the owner to leave the property to you at death instead so you inherit it with a stepped-up basis that erases the built-in gain entirely. Which lever fits depends on the property, your plans for it, and whether the transfer is already done.

The reason gifted property creates such a large tax problem is basis. When someone gives you real estate, you don’t start fresh at today’s value. You take the donor’s adjusted basis — generally what they paid, plus improvements, minus any depreciation they claimed.1Office of the Law Revision Counsel. 26 U.S. Code 1015 – Basis of Property Acquired by Gifts and Transfers in Trust If your parents bought a house in 1985 for $80,000, put $20,000 into it, and gift it to you when it’s worth $500,000, your basis is $100,000. Sell the next day at market, and you have $400,000 of taxable gain. Every strategy below is really a way of working around that carryover number.

One piece of good news comes with it: you also inherit the donor’s holding period under IRC 1223, so the gain almost always qualifies for long-term capital gains rates of 0%, 15%, or 20% rather than ordinary income rates.2Office of the Law Revision Counsel. 26 U.S. Code 1223 – Holding Period of Property3Internal Revenue Service. Topic No. 409, Capital Gains and Losses

Why Inheriting the Property Beats Receiving It as a Gift

If the transfer hasn’t happened yet, the most powerful move is to not do it as a gift at all. Property passed at death gets a stepped-up basis equal to its fair market value on the date of death.4Office of the Law Revision Counsel. 26 U.S. Code 1014 – Basis of Property Acquired From a Decedent All of the appreciation during the owner’s lifetime is wiped off the tax ledger.

Run the same house through this rule. If your parents keep it until death when it’s worth $500,000, you inherit it with a $500,000 basis. Sell shortly after for $500,000 and you owe nothing. Had they gifted it during life, you’d be looking at tax on $400,000 of gain, which at a 15% federal rate alone is $60,000 before any state tax or the Net Investment Income Tax discussed below. The stepped-up basis applies whether the property passes through a will, a living trust, or state intestacy.5Internal Revenue Service. Frequently Asked Questions – Gifts and Inheritances

For married couples who own property together, how it’s titled matters. In community property states — Arizona, California, Idaho, Louisiana, Nevada, New Mexico, Texas, Washington, and Wisconsin — both halves of community property get a full step-up when the first spouse dies under IRC 1014(b)(6).4Office of the Law Revision Counsel. 26 U.S. Code 1014 – Basis of Property Acquired From a Decedent In common-law states holding title as joint tenants with right of survivorship, only the deceased spouse’s half gets the step-up. A surviving spouse planning to sell soon after loses meaningful ground outside community property jurisdictions.

This conversation needs to happen before the deed is signed. Once property has been gifted to you, you’re stuck with the carryover basis and the rest of the strategies below.

Move In and Use the Primary Residence Exclusion

If the gifted property is a house you can actually live in, the most practical shelter is Section 121. A single filer can exclude up to $250,000 of gain on the sale of a principal residence; a married couple filing jointly can exclude up to $500,000.6Office of the Law Revision Counsel. 26 U.S. Code 121 – Exclusion of Gain From Sale of Principal Residence This applies to gifted property the same as to property you bought.

To qualify, you must have owned and used the home as your principal residence for at least two of the five years ending on the sale date. The two years don’t have to be consecutive. For the $500,000 couple’s exclusion, either spouse must meet the ownership test and both must meet the use test.6Office of the Law Revision Counsel. 26 U.S. Code 121 – Exclusion of Gain From Sale of Principal Residence

Take the house with the $100,000 carryover basis. Move in, live there two years, sell for $350,000, and a single filer owes nothing — the entire $250,000 gain fits inside the exclusion. For many recipients this is the cleanest path to zero federal tax on the sale.

The Trap: Non-Qualified Use

If you rent the property out before moving in, part of your gain stops qualifying for the exclusion. Any use other than as your principal residence after January 1, 2009 counts as “non-qualified use,” and gain is allocated to that period based on the ratio of non-qualified time to total ownership.7CCH AnswerConnect. Exclusion of Gain From Sale of Principal Residence Own the place for ten years, rent for four, live in it for six, and 40% of the gain is simply outside the exclusion. If you intend to use Section 121, move in as soon as the gift is complete.

If You Have to Sell Before Two Years

A partial exclusion is available if the sale is triggered by a job change at least 50 miles farther from the home, a health-related move, or certain unforeseeable events such as the home being destroyed or losing a job.8Internal Revenue Service. Publication 523, Selling Your Home You get the $250,000 or $500,000 cap multiplied by the fraction of the two-year requirement you actually met.

Defer the Gain With a 1031 Exchange

If the gifted property is a rental or other investment real estate — and you aren’t going to live in it — a Section 1031 like-kind exchange lets you defer the entire gain by rolling the proceeds into another investment property.9Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment

Both properties must be real property held for business or investment use. Personal residences don’t qualify. Property held primarily for resale doesn’t qualify. The deadlines are strict and, outside a presidentially declared disaster, cannot be extended:10Internal Revenue Service. Like-Kind Exchanges Under IRC Section 1031

  • Identify replacement properties in writing within 45 days of the sale.
  • Close on the replacement within 180 days of the sale, or by your tax return’s due date with extensions, whichever is earlier.

If you touch the sale proceeds before buying the replacement, the exchange collapses and the full gain becomes taxable right away. A qualified intermediary typically holds the funds in between. The gain isn’t erased — it’s rolled into a reduced basis in the new property. Investors who chain 1031 exchanges across their lifetime and then die holding the final property hand their heirs a stepped-up basis that permanently clears the deferred gain.

Smaller Moves That Shrink the Bill

Offset the Gain With Other Losses

Capital losses offset capital gains dollar for dollar. If your other investments are sitting on paper losses, selling them in the same year as the gifted property matches them up. Net losses beyond the gains can offset up to $3,000 of ordinary income per year ($1,500 if married filing separately), with the rest carried forward indefinitely.11Office of the Law Revision Counsel. 26 U.S. Code 1211 – Limitation on Capital Losses

Spread the Gain With an Installment Sale

Under IRC 453, any sale with at least one payment arriving after the close of the tax year can be reported on the installment method, which recognizes gain proportionally as each payment comes in.12Office of the Law Revision Counsel. 26 USC 453 – Installment Method Breaking the gain across several years can keep you in a lower long-term rate bracket and under the thresholds for the Net Investment Income Tax.

Charitable Remainder Trust

A charitable remainder trust can eliminate the upfront capital gain on a highly appreciated gifted property. The trust is tax-exempt, so it can sell the property without paying capital gains tax, and the donor gets an income tax deduction for the present value of what will eventually pass to charity.13Internal Revenue Service. Charitable Remainder Trusts Distributions back to you as income beneficiary are taxed in a set order — ordinary income, then capital gains, then other income, then tax-free return of principal — so the tax is deferred and stretched rather than erased. CRTs make sense when the asset is large, you want an income stream, and you have genuine charitable intent. They require an attorney and ongoing trust administration.

Two Taxes That Can Blindside You

Before counting savings, two surcharges can quietly add to the bill on gifted property.

The Net Investment Income Tax adds 3.8% on top of your capital gains rate. It applies to the lesser of your net investment income or the amount your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly). Those thresholds don’t adjust for inflation.14Internal Revenue Service. Net Investment Income Tax A large gain from selling a low-basis gifted property pushes many sellers over.

Depreciation recapture hits if the property was used as a rental and the donor (or you) claimed depreciation. On sale, the recaptured amount is taxed at up to 25% regardless of your holding period. You inherit the donor’s accumulated depreciation exposure along with the carryover basis. Property inherited at death, by contrast, receives a stepped-up basis that clears both the capital gain and the depreciation recapture — another reason the inherit-don’t-gift conversation matters.

Nail Down the Basis Before You Sell

Every strategy above runs on an accurate basis number, so gather what the donor has: the original closing statement, receipts for improvements, and any depreciation schedules. If the donor’s basis can’t be documented and the IRS can’t determine it, the statute uses the fair market value on the approximate date the donor originally acquired the property — which can be far below what they actually paid.1Office of the Law Revision Counsel. 26 U.S. Code 1015 – Basis of Property Acquired by Gifts and Transfers in Trust

Two basis quirks are worth knowing.

First, the dual basis rule applies when the property’s fair market value at the time of the gift is lower than the donor’s adjusted basis. You use the donor’s basis to figure a gain, but the lower gift-date FMV to figure a loss, and if the sale price lands between the two you report neither.15Internal Revenue Service. Property (Basis, Sale of Home, etc.) An uncle who paid $200,000 for a property now worth $150,000 gifts it to you: sell at $220,000, your gain is $20,000; sell at $130,000, your loss is $20,000; sell at $175,000 and there’s nothing to report.

Second, if the donor actually paid federal gift tax on the transfer, your carryover basis increases by the portion of that gift tax attributable to the property’s net appreciation, up to the gift-date FMV.1Office of the Law Revision Counsel. 26 U.S. Code 1015 – Basis of Property Acquired by Gifts and Transfers in Trust This mostly matters for families who have already used up the donor’s lifetime exemption; the gift tax itself is the donor’s problem, not yours, and most gifts of real estate require the donor to file Form 709 but produce no actual tax because of the $15,000,000 lifetime exemption for 2026.16Internal Revenue Service. What’s New — Estate and Gift Tax

Pick the strategy that matches the property. For a home you can live in, Section 121 after a two-year residency does most of the work. For investment real estate you want to keep deployed, a 1031 exchange defers the whole gain. For an owner who hasn’t signed the deed yet, holding the property until death is almost always the better plan for the person receiving it.