Selling and recapture
What happens when I sell after a cost segregation study?
If you sell at a gain, some or all of the depreciation can be taxed as recapture. Model the sale first.
Learn more: Watch: What happens when I sell? · One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: 26 U.S.C. 1245
What is depreciation recapture?
It taxes part of your gain based on depreciation you took or were allowed to take.
Learn more: Watch: What happens when I sell? · One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: 26 U.S.C. 1245
How is 5-year property recaptured?
The gain is ordinary income, up to the depreciation you took or were allowed to take.
Learn more: Watch: What happens when I sell? · One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: 26 U.S.C. 1245
What is the 25% rate on depreciation?
Gain tied to depreciation on the building may be taxed at up to 25%, called unrecaptured section 1250 gain.
Learn more: Watch: What happens when I sell? · Watch: what is cost segregation? · Read: what is cost segregation?
Source: IRS Tax Topic 409
Do I owe the 3.8% investment income tax on a sale?
Sometimes. Taxable gain can also be subject to the 3.8% Net Investment Income Tax, depending on your situation.
Learn more: Explainer: what happens when you sell
Source: IRS Net Investment Income Tax
Can I avoid recapture by not claiming depreciation?
Generally no. Recapture counts depreciation you were allowed to take, even if you skipped it.
Learn more: Watch: What happens when I sell? · One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: 26 U.S.C. 1245
Can a 1031 exchange defer recapture?
Not always. A real property exchange can defer gain, but some parts from a study may still trigger recapture. Plan with your preparer and intermediary first.
Learn more: Watch: What happens when I sell? · One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: 26 U.S.C. 1245
Can I 1031 exchange furniture?
No, since 2018, like-kind exchanges apply only to real property.
Learn more: Watch: What happens when I sell? · One-pager: you did a cost seg, now you want to sell · Read: the 405-item sourcing list for a guest-favorite rental
Source: IRS instructions, Form 8824
Can I 1031 exchange my home or vacation home?
Only if it is held for investment or business use. Personal-use property does not qualify. A vacation rental must meet the investment or business use test.
Learn more: One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: IRS Publication 544
Is cost segregation worth it if I sell soon?
Usually, if you can use the loss when you take it. With 100% bonus, the extra deduction comes back at sale as extra gain of the same size, but roughly only the part equal to what the 5-, 7- and 15-year items are worth at sale is ordinary income, and the rest is mostly capital gain. So at the same tax rate both times, even a short hold tends to come out ahead, and you keep the money in the meantime. It may not pay if the loss stays suspended as passive until the sale, if your rate at sale will be higher than when you deducted, or if the fee is large for the property.
Learn more: Watch: What happens when I sell? · Try: estimate your deduction by address · One-pager: you did a cost seg, now you want to sell
Source: 26 U.S.C. 1245 · 26 U.S.C. 1250 · Treas. Reg. 1.168(k)-2(g)(3) · Treas. Reg. 1.1245-1(a)(5) · 26 U.S.C. 469
What happens to recapture if I hold until death?
Heirs generally get a basis equal to value at death, which can remove the built-in gain. Get estate planning advice.
Learn more: One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: 26 U.S.C. 1245
Does cost segregation increase the tax I owe when I sell?
Usually it changes the rate more than the amount. Gain on the 5- and 7-year parts, up to the depreciation taken, is taxed as ordinary income at up to 37%. On 15-year land improvements, only depreciation above what straight line would have allowed, which includes most bonus depreciation, is ordinary income. Gain from the rest of the depreciation on the building and land improvements is taxed at no more than 25%. Because you deducted more sooner, your basis is lower when you sell, so the gain is larger, but you also got the tax savings years earlier.
Learn more: One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: 26 U.S.C. 1245, gain from dispositions of certain depreciable property · 26 U.S.C. 1(j) rates, 1(h)(1)(E) and 1(h)(6), unrecaptured section 1250 gain · Treas. Reg. 1.168(k)-2(g)(3), bonus depreciation as depreciation for sections 1245 and 1250 · 26 U.S.C. 1250(a) and (b), additional depreciation
Is recapture a repayment of the depreciation I took?
No. Recapture is tax on part of your gain when you sell. The amount taxed at recapture rates is capped at the lesser of your gain or the depreciation allowed or allowable, so if you sell at a loss there is nothing to recapture.
Learn more: One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: 26 U.S.C. 1245(a)(1) · Instructions for Form 4797, Part III
How can I reduce or avoid recapture after a cost seg?
The main tools are deferral and timing, not avoidance. A 1031 exchange can defer gain on the real property part. Holding until death generally resets basis to fair market value for your heirs. An installment sale does not help, because all recapture income is taxed in the year of sale. Supporting a fair, lower value for worn-out 5- and 7-year items at sale also limits ordinary income.
Learn more: One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: 26 U.S.C. 1031 · 26 U.S.C. 1014, basis of property acquired from a decedent · 26 U.S.C. 453(i), recapture income in installment sales · Instructions for Form 4797 (allocating amount realized by fair market value)
Can suspended passive losses offset recapture when I sell?
Yes, if you sell your entire interest in the activity to an unrelated buyer in a fully taxable sale. The suspended losses from that property are then released and can offset any income, including recapture. The gain itself is passive income, so passive losses from other rentals that year, including bonus depreciation on a newly bought rental, can also offset it.
Learn more: One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: 26 U.S.C. 469(g), dispositions of entire interest in a passive activity · Instructions for Form 8582
If I move back into a cost-segregated rental, is the depreciation recaptured?
No, not when you move in. Converting a rental to personal use is not taxed as a sale; depreciation simply stops. Recapture applies when you later sell, and the home sale exclusion does not cover gain equal to depreciation taken after May 6, 1997. Section 179 expensing is different: it can be recaptured if business use drops to 50% or less.
Learn more: One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: Treas. Reg. 1.168(i)-4(c), conversion to personal use · 26 U.S.C. 121(d)(6) · 26 U.S.C. 179(d)(10) · IRS Publication 946, recapture of section 179 deduction
How do I split the sale price among the parts of a cost-segregated property?
Allocate the amount realized among land, building and the shorter-life parts by their relative fair market values on the sale date. Each type is reported separately on Form 4797, with the building and 1245 property in Part III. Furniture and finishes that are worn out are usually worth far less than their original cost, and a valuation at sale can support that.
Learn more: Explainer: what happens when you sell · Read: what a cost segregation study costs
Source: Instructions for Form 4797 · IRS Publication 544, Sales and Other Dispositions of Assets
How is recapture figured on land improvements like paving and fencing?
Land improvements are usually section 1250 property, depreciated over 15 years at 150% declining balance. Depreciation above what straight line would have allowed, including bonus depreciation, is additional depreciation taxed as ordinary income at sale. The rest of the gain from depreciation on them is unrecaptured section 1250 gain, taxed at up to 25%.
Learn more: One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: Treas. Reg. 1.168(k)-2(g)(3) · 26 U.S.C. 1250 · Instructions for Form 4797 · 26 U.S.C. 168(b)(2), 150% declining balance for 15-year property
Does the home sale exclusion cover depreciation I took while renting?
No. The $250,000 or $500,000 exclusion does not cover gain equal to depreciation taken after May 6, 1997, which is taxed when you sell. If the rented space was inside your home, such as a room, you do not split the gain, but you still pay tax on that depreciation. If it was a separate unit, you split the sale between the home and the rental.
Learn more: Explainer: what happens when you sell · Watch: what is cost segregation?
Source: 26 U.S.C. 121(d)(6) · IRS Publication 523, Selling Your Home
Does a 1031 exchange still trigger recapture after a cost seg?
Yes, it can. Since 2018 only real property qualifies, so value assigned to furniture, appliances and other personal property is taxed like a sale, often as ordinary recapture. Even for parts that count as real property, section 1245(b)(4) can tax recapture if the replacement property has less section 1245 property than you gave up. Plan the allocation with your intermediary before closing.
Learn more: One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: 26 U.S.C. 1245(b)(4) · Treas. Reg. 1.1031(a)-3, definition of real property · Instructions for Form 8824
How is a 1031 replacement property depreciated?
The basis carried over from the old property generally keeps depreciating over the old property's remaining recovery period. If the new property has a longer recovery period, such as 39 years replacing 27.5, the carried-over basis uses the longer period as if it had been placed in service when the old property was. Any extra basis from new money or new debt is treated as new property placed in service on the exchange date, and a study can split it into shorter lives. You can elect instead to treat the whole basis as newly placed in service. For used property, only the extra basis is eligible for bonus depreciation.
Learn more: One-pager: you did a cost seg, now you want to sell · Watch: what is cost segregation?
Source: Treas. Reg. 1.168(i)-6 · Treas. Reg. 1.168(k)-2(g)(5)(iii) · Instructions for Form 4562 (2025)
Does a rental I use personally sometimes qualify for a 1031 exchange?
Only if it is held for investment or business use. Under the IRS safe harbor, you own it at least 24 months before the exchange (or, for a replacement property, after it), and in each of the two 12-month periods you rent it at fair rent for 14 days or more and use it personally no more than the greater of 14 days or 10% of the days rented.
Learn more: One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: Rev. Proc. 2008-16
If I move rental furniture to personal use, do I owe recapture?
No, not when you move it. Converting depreciable property to personal use is treated as a disposition, but no gain or recapture is recognized then; recapture applies when you later sell it. Exceptions: no bonus is allowed if the conversion happens in the same tax year the item was placed in service, Section 179 deductions can be recaptured when business use drops to 50% or less, and listed property has its own rule.
Learn more: One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: Treas. Reg. 1.168(i)-4 · Treas. Reg. 1.168(k)-2 · 26 U.S.C. 179 · IRS Pub 946, recapture of section 179 deduction
What happens if I sell 2 years after a cost seg?
You give back part of the benefit as tax on the sale, but usually not all of it. The depreciation you took lowers your basis, so your gain is larger. Gain on the 5- and 7-year parts is ordinary income up to the depreciation taken on them, and on 15-year parts the same applies to bonus and other depreciation above straight line. Gain from the building's straight-line depreciation is taxed at up to 25%, and the rest is capital gain.
Illustrative, round numbers: you buy a rental for $500,000, of which $100,000 is land, and put it in service in January of year 1. A study finds $60,000 of 5-year property and $20,000 of 15-year land improvements, and you take 100% bonus on both. The $320,000 building is depreciated about $11,600 a year. You can use the loss each year at a 37% rate. In January of year 3 you sell for $600,000.
Depreciation taken: $80,000 of bonus plus about $23,000 on the building, $103,000 in all. Without the study it would have been about $29,000, so the study added about $74,000 of deductions, worth about $27,000 in tax.
At sale the price is split by fair market value, say $25,000 for the used 5-year items, $15,000 for the land improvements, $125,000 for the land and $435,000 for the building. The $25,000 and $15,000 are ordinary income, because those parts have a $0 basis and their bonus counts as recapture. The building gain of $138,000 includes $23,000 taxed at up to 25%, and the rest is capital gain. Total gain is $203,000, against about $129,000 without the study.
So the extra $74,000 of gain is $40,000 of ordinary income and $40,000 of extra capital gain, less $6,000 that would otherwise have been taxed at up to 25%. The used items are worth $35,000 less than you deducted, and that part of the deduction never comes back as ordinary income. In this example the study is ahead by about $6,000, before the fee, state tax, the 3.8% net investment income tax and the value of having the money 2 years sooner.
Splitting the price by fair market value is the rule; what used items are worth is a judgment, so keep support such as a valuation. The section 1060 residual method applies only if the sale is of a trade or business to which goodwill could attach.
Learn more: One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: 26 U.S.C. 1245(a) and (b), recapture on section 1245 property and its exceptions · 26 U.S.C. 1250(a), (b) and (d), additional depreciation and exceptions · Treas. Reg. 1.168(k)-2(g)(3) (bonus is depreciation for 1245 and is not straight line for 1250(b)) and (f)(1) (election out) · 26 U.S.C. 1(h)(1)(E), 1(h)(6) and 1(j), 25% rate on unrecaptured section 1250 gain and the 37% top rate · Treas. Reg. 1.1245-1(a)(5), splitting the sale price by fair market value · Treas. Reg. 1.1060-1(b)(2), when a group of assets is a trade or business · 26 U.S.C. 168(k), 100% bonus for property acquired after January 19, 2025
What changes if I sell 3 years after a cost seg instead of 2?
Less than most owners expect. With 100% bonus, the 5-, 7- and 15-year parts were fully deducted in year 1, so the extra year adds only one more year of building depreciation, which comes back at sale taxed at up to 25%. Two other things usually change: the short-life parts are worth less, so less of the gain is ordinary income, and you have kept the tax savings a year longer.
Illustrative, same facts as the 2-year example ($500,000 rental, $60,000 of 5-year property, $20,000 of land improvements, $320,000 building, 37% rate), sold in January of year 4 for $600,000. Depreciation is about $115,000, against about $44,000 without the study. If the used items are now worth $20,000 and the building $440,000, the gain is $35,000 of ordinary income, $35,000 taxed at up to 25% and $145,000 of capital gain. The study comes out about $6,500 ahead before the fee, state tax, the 3.8% net investment income tax and the time value of the savings, close to the 2-year result.
If you elected out of bonus, the short-life parts are depreciated year by year instead, so each extra year adds more deduction and more potential recapture on them.
Learn more: One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: 26 U.S.C. 1245(a) and (b), recapture on section 1245 property and its exceptions · 26 U.S.C. 1250(a), (b) and (d), additional depreciation and exceptions · Treas. Reg. 1.168(k)-2(g)(3) (bonus is depreciation for 1245 and is not straight line for 1250(b)) and (f)(1) (election out) · 26 U.S.C. 1(h)(1)(E), 1(h)(6) and 1(j), 25% rate on unrecaptured section 1250 gain and the 37% top rate · Treas. Reg. 1.1245-1(a)(5), splitting the sale price by fair market value · 26 U.S.C. 168(k), 100% bonus for property acquired after January 19, 2025
What is the break-even point for a cost seg once I count recapture?
There is no single number of years. If you can use the loss when you take it, a study can come out ahead even on a short hold, because the extra deduction comes back at sale as extra gain of the same size, and roughly only the part equal to what the 5-, 7- and 15-year items are worth at sale is ordinary income.
What decides it: your tax rate when you take the deduction versus your rate in the sale year; whether you could use the loss, since a passive loss stays suspended until you sell your whole interest in a fully taxable sale; how long you keep the money; what the short-life parts are worth at sale; and whether your state follows federal bonus depreciation.
A rough estimate: take the study's extra deduction through the sale year and multiply it by your rate in the years you could use it. Subtract your ordinary rate times the value of the short-life parts at sale, and your capital gain rate times the rest of the extra deduction. Subtract the fee. This slightly overstates the tax at sale, because less building depreciation is taxed at 25%. Add 3.8% where the net investment income tax applies.
Learn more: One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: 26 U.S.C. 1245(a) and (b), recapture on section 1245 property and its exceptions · 26 U.S.C. 1250(a), (b) and (d), additional depreciation and exceptions · Treas. Reg. 1.168(k)-2(g)(3) (bonus is depreciation for 1245 and is not straight line for 1250(b)) and (f)(1) (election out) · 26 U.S.C. 1(h)(1)(E), 1(h)(6) and 1(j), 25% rate on unrecaptured section 1250 gain and the 37% top rate · 26 U.S.C. 469(b) and (g), suspended losses and release on a full taxable sale · Treas. Reg. 1.1245-1(a)(5), splitting the sale price by fair market value
Can a cost seg cost me more tax than it saves?
Yes, in some cases. The usual ones are a lower tax rate when you took the deduction than when the recapture is taxed, for example a loss used in the 12% bracket and recapture taxed at 35% or 37% in a large sale year, and a study fee that is more than the benefit on a small property or a short hold.
Recapture is capped. Ordinary income on the 5-, 7- and 15-year parts cannot be more than the lesser of the depreciation taken on them or the gain on them. So if your rate is the same both times, the tax at sale on the extra gain is usually no more than the tax the deduction saved. Ask your tax preparer to compare both years before you order a study.
Learn more: Read: what is cost segregation? · Explainer: what happens when you sell
Source: 26 U.S.C. 1245(a) and (b), recapture on section 1245 property and its exceptions · 26 U.S.C. 1250(a), (b) and (d), additional depreciation and exceptions · 26 U.S.C. 1(h)(1)(E), 1(h)(6) and 1(j), 25% rate on unrecaptured section 1250 gain and the 37% top rate · Treas. Reg. 1.168(k)-2(g)(3) (bonus is depreciation for 1245 and is not straight line for 1250(b)) and (f)(1) (election out)
Can I spread recapture over several years with an installment sale?
No. In an installment sale, all recapture that is ordinary income under sections 1245 and 1250 is taxed in the year of sale, even if you receive no payment that year. Only the gain above the recapture is spread over the years you are paid.
Gain taxed at up to 25% from building depreciation can be spread, but it is counted first, before the gain taxed at lower capital gain rates. After a cost seg the ordinary part can be large, so plan cash for the tax in the year of sale.
Learn more: One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: 26 U.S.C. 453(i), recapture income recognized in the year of sale · Treas. Reg. 1.453-12(a), unrecaptured section 1250 gain taken into account first · IRS Publication 544 (2025), Installment Sales, Gifts, Transfers at Death and allocation of the amount realized · IRS Publication 537, Depreciation Recapture Income
If I do a 1031 exchange, does the recapture from my cost seg go away?
No. At best it is deferred. The replacement property generally takes the old property's basis, so the depreciation you took stays built into it and is counted when you later sell in a taxable sale.
Some recapture can be due at the exchange itself. For section 1245 property, such as the 5- and 7-year parts, recapture is deferred only up to the value of section 1245 property you receive; value you receive in other property, such as a replacement building, or in cash, can be taxed as ordinary income now. For section 1250 property, recapture is due up to the greater of the gain you recognize, such as from cash, or the amount by which it is more than the value of the section 1250 property you receive. Since 2018 an exchange covers only real property, so value assigned to furniture is taxed like a sale.
Deferred recapture is not taxed if you hold the replacement until death, because recapture does not apply to a transfer at death.
Learn more: One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: 26 U.S.C. 1245(a) and (b), recapture on section 1245 property and its exceptions · 26 U.S.C. 1250(a), (b) and (d), additional depreciation and exceptions · Treas. Reg. 1.1250-3(d)(1), like-kind exchange limit and carryover of additional depreciation · Treas. Reg. 1.1245-2(a), recomputed basis counts depreciation on other property · 26 U.S.C. 1031(d), basis of property received in an exchange
If I give a cost-segregated rental to my children, does the recapture go away?
No. A gift does not trigger recapture, but it does not erase it. Your children generally take your basis, and when they sell, the depreciation you deducted counts toward their recapture. If they pay you something, the sale part can be taxed as recapture up to your gain.
Property passed at death is different. Recapture does not apply to a transfer at death, and heirs generally get a basis equal to the value at the date of death.
Learn more: One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: 26 U.S.C. 1245(a) and (b), recapture on section 1245 property and its exceptions · 26 U.S.C. 1250(a), (b) and (d), additional depreciation and exceptions · 26 U.S.C. 1015(a), basis of property acquired by gift · 26 U.S.C. 1014(a), basis of property acquired from a decedent · IRS Publication 544 (2025), Installment Sales, Gifts, Transfers at Death and allocation of the amount realized
Is depreciation on parts I replaced before selling still recaptured?
No, if the old part was disposed of for tax purposes before the sale. Recapture applies only to gain, and a part you remove and discard has no sale price, so depreciation taken on it is not recaptured. When an asset is retired this way, its depreciation stops and any remaining basis is written off as a loss.
The catch is what counts as the asset. A building and its structural components are one asset, so for an old roof, siding or HVAC system you get this result only by making a partial disposition election on the return for the year you replace it. Without it, the old part stays in the building's basis and keeps being depreciated, and that depreciation is taxed at up to 25% when you sell. Items a study lists outside the building, such as carpet or appliances, are figured on the facts. The election does not help at the final sale, because the whole property is disposed of then.
Learn more: One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: 26 U.S.C. 1245(a) and (b), recapture on section 1245 property and its exceptions · 26 U.S.C. 1250(a), (b) and (d), additional depreciation and exceptions · Treas. Reg. 1.168(i)-8(c)(4), (d) and (e), dispositions, partial disposition election and abandonment loss
If I sell at a loss after a cost seg, can I still owe recapture?
Yes, on some parts. The price is split among the assets by fair market value, and gain or loss is figured separately for each. Furniture and other 5- or 7-year items with a $0 basis after bonus produce ordinary recapture income equal to the price allocated to them, even if the building and land sell at a loss. If every part sells for less than its adjusted basis, there is no recapture.
A loss on the building is a section 1231 loss if the rental is a trade or business; when your section 1231 losses for the year are more than your section 1231 gains, the net loss is ordinary. A net section 1231 loss can make section 1231 gains in the next 5 years ordinary income. If the rental is held only for investment, the loss is a capital loss.
Learn more: One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: 26 U.S.C. 1245(a) and (b), recapture on section 1245 property and its exceptions · Treas. Reg. 1.1245-1(a)(5), splitting the sale price by fair market value · Instructions for Form 4797 (2025), allocation and separate reporting of each property · 26 U.S.C. 1231(a) and (c), section 1231 gains and losses and the 5-year lookback
If I never took depreciation, can I still claim it in the year I sell?
Yes. Skipping depreciation does not avoid recapture, because your basis is reduced by the depreciation allowable even if you did not claim it. To get the deduction too, you can file Form 3115 with your return for the year of sale; Rev. Proc. 2025-23 section 6.07 covers property disposed of in the year of change, and you can also make it on an amended return for that year while it is still open. It does not cover property given up in a 1031 exchange unless you made a special election for the replacement property.
Learn more: One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: 26 U.S.C. 1016(a)(2), basis reduced by depreciation allowed but not less than allowable · 26 U.S.C. 1245(a) and (b), recapture on section 1245 property and its exceptions · Rev. Proc. 2025-23, section 6.07 (Form 3115 for property disposed of in the year of change), IRB 2025-24
Can I undo bonus depreciation because I now plan to sell?
No, not after the return is due. The election not to take bonus is made for a whole class of property, such as all 5-year property placed in service that year, by the due date, including extensions, of the return for the year the property was placed in service. After that you generally cannot elect out, revoking an election needs the IRS's written consent through a private letter ruling, and neither can be done by changing your accounting method. If you have not filed that year's return, you can still elect out.
Learn more: One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
If I sell my rental to an LLC or corporation I control, is the gain taxed differently?
Yes. If you sell depreciable property to an entity you control, all of your recognized gain on it is ordinary income, not just the recapture. Control means more than 50% of the value of a corporation's stock, or more than 50% of the capital or profits interest in a partnership, including an LLC taxed as one. Interests held by family members, such as your spouse, parents, children and siblings, can count toward the 50%. The rule also covers sales to a trust you or your spouse benefit from. Gain on the land is not affected, because land is not depreciable.
Learn more: One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: 26 U.S.C. 1239, gain on sales of depreciable property between related persons · 26 U.S.C. 267(c)(4), family members for attribution