Key takeaways
- Each section 1231 gain qualifies in its gross amount, and section 1231 losses from other sales in the same year do not reduce it.
- The 180-day period for a section 1231 gain begins on the date of the sale that produced it, so you do not wait for year-end netting.
- Depreciation recapture taxed as ordinary income under section 1245 or section 1250 cannot be deferred.
- Unrecaptured section 1250 gain on a building, taxed at up to 25%, is part of the section 1231 gain and can be deferred.
- A landowner who sells 1,000 acres of farmland for a $10 million gain can defer all $10 million, because land has no depreciation recapture.
- The buyer must be unrelated: close family members count as related, and so do parties that share more than 20% common ownership.
What is a Section 1231 gain?
A section 1231 gain is the profit from selling real estate or depreciable property that you used in a trade or business and held for more than one year.1 Examples are a rental building, farmland, business land and equipment. Depreciable property is property, such as a building or a machine, whose cost you deduct over time as it wears out.
Section 1231 mixes two kinds of tax treatment. At the end of the year, you add up all your section 1231 gains and losses. A net gain is taxed like a long-term capital gain, and a net loss is deducted like ordinary income.2 A lookback rule then taxes net section 1231 gain as ordinary income to the extent you deducted net section 1231 losses in the previous five years.2
Depreciation recapture is handled first, before any of this. Recapture is the part of the gain that equals depreciation you already deducted and that the law taxes as ordinary income. Section 1245 covers equipment, and section 1250 covers some real property.2 Ordinary income is income taxed at regular rates, such as wages and interest.
Fig. 1Three kinds of gain on a business asset sale
Eligible
Capital gain
- Stock, investment land, collectibles
- Short-term or long-term
- 180 days from the sale date
Eligible (gross)
Section 1231 gain
- Business real estate, land and equipment held over one year
- Includes unrecaptured section 1250 gain on buildings
- Gross gain, not reduced by section 1231 losses
- 180 days from each sale date
Not eligible
Ordinary recapture
- Section 1245 recapture on equipment
- Section 1250 ordinary recapture on real property
- Taxed as ordinary income in the year of sale
Can Section 1231 gains be invested in an Opportunity Zone fund?
Yes. Under Treas. Reg. §1.1400Z2(a)-1(b)(11), a section 1231 gain from each sale is eligible gain, counted without subtracting any losses.6,1 Eligible gain is the kind of gain that can be deferred by investing it in a Qualified Opportunity Fund.
A Qualified Opportunity Fund is a corporation or partnership that holds at least 90% of its assets in Opportunity Zone property. It becomes a fund by filing Form 8996 with its tax return, and the IRS does not approve it in advance.4 The regulation calls the eligible amount a "qualified 1231 gain". It is the section 1231 gain on a sale above any amount taxed as ordinary income under section 1245 or section 1250.6,5
The 180-day period for the gain begins on the day the gain would be recognized for federal income tax purposes if you did not defer it.6 For a section 1231 gain, that is the date of the sale or exchange.3 You therefore do not have to wait until December to learn whether you have a net section 1231 gain for the year.
| Question | Rule | Source |
|---|---|---|
| How much is eligible? | The gross section 1231 gain from each sale, not reduced by section 1231 losses | Treas. Reg. §1.1400Z2(a)-1(b)(11)(i) and (iii) |
| When does the 180-day period start? | The date of the sale or exchange | Treas. Reg. §1.1400Z2(a)-1(b)(7)(i) |
| Is depreciation recapture eligible? | No, to the extent it is taxed as ordinary income under section 1245 or section 1250 | Treas. Reg. §1.1400Z2(a)-1(b)(11)(iii) |
| Must the buyer be unrelated? | Yes. Close family members are related, and so are parties with more than 20% common ownership | IRC §1400Z-2(e)(2) |
| Which benefits apply? | Deferral up to five years, a 10% or 30% basis increase and the 10-year exclusion, for amounts invested after December 31, 2026 | IRC §1400Z-2 |
The statute requires the gain to come from a sale or exchange with an unrelated person.7 It uses the related-person tests in sections 267(b) and 707(b)(1), but reads "more than 50 percent" as "more than 20 percent". Close family members are therefore related, and so are two parties that share more than 20% common ownership.7 For amounts invested after December 31, 2026, the deferred gain is taxed at the earlier of a sale of the fund interest or the fifth anniversary of the investment.8 Other gains that qualify are covered in which gains qualify for Opportunity Zone deferral, and the ones that do not are in what disqualifies a gain from deferral.
How much of a business asset gain can you defer? Worked examples
You can defer the total gain minus any ordinary depreciation recapture. What remains is section 1231 gain, including any unrecaptured section 1250 gain on a building.5 The three examples below are illustrative and use round numbers.
Example 1: a rental or industrial building
| Line | Amount | How it is worked out |
|---|---|---|
| Purchase price | $2,000,000 | Assumed |
| Depreciation taken (straight-line) | $500,000 | Assumed |
| Adjusted basis | $1,500,000 | $2,000,000 − $500,000 |
| Total gain | $1,500,000 | $3,000,000 sale price − $1,500,000 adjusted basis |
| Section 1250 ordinary recapture | $0 | Real property depreciated straight-line generally has none |
| Unrecaptured section 1250 gain (taxed at up to 25%) | $500,000 | Equal to the depreciation taken |
| Rest of the gain (taxed at long-term capital gain rates) | $1,000,000 | $1,500,000 − $500,000 |
| Gain you can defer | $1,500,000 | All of it is section 1231 gain |
| Tax postponed | $382,000 | $500,000 × 28.8% plus $1,000,000 × 23.8%, assuming the 3.8% net investment income tax applies |
A building sale can also be split between a like-kind exchange and a fund. The guide on combining a 1031 exchange with an Opportunity Zone investment explains how.
Example 2: equipment
Equipment bought for $500,000 and depreciated by $300,000 has an adjusted basis of $200,000. If it sells for $600,000, the gain is $400,000. The first $300,000, which equals the depreciation taken, is section 1245 recapture. It is taxed as ordinary income and cannot be deferred. The remaining $100,000 is section 1231 gain and can be deferred.2 If the same equipment sold for $400,000, the whole $200,000 gain would be recapture, and nothing could be deferred.
Fig. 2Equipment sale: from total gain to eligible gain
Illustrative- Sale price$600,000
- Adjusted basis−$200,000
- Section 1245 recapture (ordinary, not eligible)−$300,000
- Eligible section 1231 gain: $100,000$100,000
Example 3: selling a whole business as an asset sale
Selling an operating business as an asset sale produces several kinds of gain. Gain on goodwill is generally capital gain. Gain on real estate and equipment is section 1231 gain plus any recapture. Inventory and receivables produce ordinary income. Each piece is tested on its own, so the way the purchase price is split among the assets decides how much of the sale can go into a fund. See Opportunity Zones for business owners selling a company.
How does deferring a 1231 gain interact with Section 1231 netting?
A deferred section 1231 gain stays out of the year-end netting for the year of the sale, because it is not taxed that year.1,3 It keeps its character as section 1231 gain and is taxed as section 1231 gain in the year it is finally included in income.6
This has two practical effects. First, section 1231 losses in the year of the sale are netted without the deferred gain. That can leave a net section 1231 loss, which is deductible against ordinary income. Second, the five-year lookback rule may tax later net section 1231 gains as ordinary income to the extent of net section 1231 losses deducted in the five years before.2 How a deferred gain is netted in the year it is included, including under the lookback rule, is technical. Model it with your tax adviser before you decide how much to defer.
The tax rates that apply are those in effect for the year the gain is included. For amounts invested after December 31, 2026, that is the fifth anniversary of the investment at the latest. By then the taxable gain has been cut by a 10% increase in basis, or 30% in a Qualified Rural Opportunity Fund.9 Basis is the amount the tax law treats as what you paid. See the five-year deferral for how the inclusion works.
Worked example: farmland sold for a data center campus
A farmer who sells land used in farming for more than a year has a section 1231 gain, and all of it can be deferred because land is not depreciated.1,2 The example below is illustrative. It uses 23.8% federal tax (20% plus the 3.8% net investment income tax) and no state tax.
| Line | Standard fund | Rural fund | How it is worked out |
|---|---|---|---|
| Sale price | $11,000,000 | $11,000,000 | 1,000 acres × $11,000 an acre |
| Basis in the land | $1,000,000 | $1,000,000 | 1,000 acres × $1,000 an acre, assumed |
| Section 1231 gain | $10,000,000 | $10,000,000 | $11,000,000 − $1,000,000; land has no depreciation recapture |
| Section 1231 loss on old equipment sold the same year | $200,000 | $200,000 | Assumed; it does not reduce the eligible amount |
| Amount invested within 180 days of the closing | $10,000,000 | $10,000,000 | The whole gross gain |
| Tax due for 2027 on the gain | $0 | $0 | The whole gain is deferred |
| Basis increase after five years | $1,000,000 | $3,000,000 | 10% or 30% of the $10,000,000 deferred gain |
| Gain taxed at year 5 | $9,000,000 | $7,000,000 | $10,000,000 minus the basis increase |
| Tax due at year 5 | $2,142,000 | $1,666,000 | $9,000,000 × 23.8%, or $7,000,000 × 23.8% |
| Tax if nothing were invested | $2,380,000 | $2,380,000 | $10,000,000 × 23.8% |
The $200,000 equipment loss is netted with the farmer's other section 1231 items for 2027 and does not shrink the $10,000,000 that can be invested.1 Growth on the fund investment after 10 years is free of federal tax if the farmer elects fair market value basis on the sale.7 To run other numbers, use the Opportunity Zone tax calculator.
What about 1231 gains from partnerships, S corporations or installment sales?
Owners of a partnership or S corporation can defer their share of the entity's section 1231 gain, and installment sellers can invest each payment as it arrives.3,10
- If a partnership or S corporation does not invest the gain itself, each owner can defer its own share. By default the owner's 180-day period starts on the last day of the entity's tax year. The owner can elect instead to start it on the entity's sale date or on the entity's return due date without extensions, which is March 15 for a calendar-year partnership.10
- Real estate partnerships often sell buildings in the middle of the year. A partner who wants to invest quickly can use the sale date, and one who needs the K-1 first can use the due-date window.
- For an installment sale, the 180-day period can run from each payment received or from the end of the year. Each payment can therefore be invested separately.5
See partnership and K-1 gains in an Opportunity Zone fund and the 180-day rule.
How do you report a deferred 1231 gain?
You report the sale on Form 4797 as usual and make the deferral election on Form 8949 with your return for the year of the sale.11 You then file Form 8997 each year to report the fund investment.12
The deferral line on Form 8949 shows the fund's employer identification number, the date of the investment and the deferred amount as a negative adjustment.11 Keep the closing statement, the depreciation schedule that supports the recapture figure, and the fund's confirmation of the investment date. The forms are explained in Form 8996 and Form 8997.
What does this mean for landowners selling to data center developers?
A landowner who sells farmland, ranchland or business land for a data center campus usually has section 1231 gain or capital gain, and both can be deferred in a fund within 180 days of the sale.1 Land used in a business produces section 1231 gain, and land held as an investment produces capital gain.
Land is not depreciated, so a land sale has no section 1245 or section 1250 recapture. Farm buildings and equipment sold with the land may have recapture. Developers look for large sites near transmission lines, so these sales can produce large gains.
Two cautions apply. First, plan the fund investment before closing, so the 180 days are not used up by diligence. Second, watch the related-party rules if the landowner will also invest in the fund that buys the land. The gain must come from a sale to an unrelated person.7 A Qualified Opportunity Zone Business, the operating company a fund invests in, must also buy its property from an unrelated party.13 Both tests treat close family members, and parties with more than 20% common ownership, as related.7 See Opportunity Zones for landowners and the related-party rules.
Common questions
After Section 1231 netting, when do Section 1231 gains qualify for Opportunity Zone deferral?
Section 1231 gains qualify before any netting, sale by sale, as of the date of each sale. Under Treas. Reg. §1.1400Z2(a)-1(b)(11), the eligible amount is each gross section 1231 gain above any ordinary recapture under section 1245 or 1250, figured without subtracting section 1231 losses.6 The 180-day period begins on the date of each sale, not at the end of the year when netting is done.6,3
Can I defer a Section 1231 gain if I also had Section 1231 losses this year?
Yes, you can defer the full gross gain. Section 1231 losses do not reduce the amount you can invest. The losses are netted separately in the year of the sale, without the deferred gain.
Can I defer depreciation recapture in an Opportunity Zone fund?
No. Gain taxed as ordinary income under section 1245 or section 1250 is not eligible. Unrecaptured section 1250 gain on real estate is part of the section 1231 gain, so it can be deferred.
What if I held the business property for one year or less?
Then the gain is not section 1231 gain, because section 1231 requires a holding period of more than one year. Gain on business property held one year or less is generally ordinary income, and ordinary income cannot be deferred in a fund.
Is gain on selling farmland to a data center developer eligible?
Generally yes, if the buyer is unrelated. It is section 1231 gain if the land was used in a farming business for more than a year, or capital gain if you held it as an investment.
Does a deferred 1231 gain get the 10% basis increase?
Yes. For amounts invested after December 31, 2026, holding the investment five years increases basis by 10% of the deferred gain, or 30% in a Qualified Rural Opportunity Fund. On a $1,000,000 deferred gain, that removes $100,000 or $300,000 from the taxable amount.
Sources
Every numbered note in this guide links to the source below.
- 1.EY Tax News, “Final regulations on Opportunity Zones retain same approach as proposed regulations, with a few big changes,” 2020. taxnews.ey.com
- 2.RSM US, “Final QOZ regulations include favorable interpretations,” 2019. rsmus.com
- 3.Steptoe, “Final Opportunity Zone Regulations Provide Some Much-Needed Clarity,” 2020. steptoe.com
- 4.Internal Revenue Service, “About Form 8996, Qualified Opportunity Fund,” n.d. irs.gov
- 5.Holland & Hart, “Taxpayer-Favorable Final Opportunity Zone Regulations Issued,” 2019. hollandhart.com
- 6.Legal Information Institute, Cornell Law School, “26 CFR 1.1400Z2(a)-1, Deferring tax on capital gains by investing in opportunity zones,” n.d. law.cornell.edu
- 7.Office of the Law Revision Counsel, U.S. House of Representatives, “26 U.S.C. Subchapter Z: Opportunity Zones (§§1400Z-1 and 1400Z-2),” 2025. uscode.house.gov
- 8.Internal Revenue Service, “Notice 2026-40, Transitional Guidance on Qualified Opportunity Zones,” 2026. irs.gov
- 9.Seyfarth Shaw, “7 Key Changes to the Qualified Opportunity Zone Incentive Under the One Big Beautiful Bill Act,” 2025. seyfarth.com
- 10.Goulston & Storrs, “Qualified Opportunity Zones: Final Regulations Provide Clarity,” 2020. goulstonstorrs.com
- 11.Novogradac, “Interpreting and Completing OZ-Related Tax Forms,” n.d. novoco.com
- 12.Internal Revenue Service, “Form 8997, Initial and Annual Statement of Qualified Opportunity Fund (QOF) Investments,” 2024. irs.gov
- 13.eCFR, “26 CFR 1.1400Z2(d)-1, Qualified opportunity funds and qualified opportunity zone businesses,” 2026. ecfr.gov
Terms in this guide
OZ Data Centers and its affiliates may sponsor, manage and invest in the Opportunity Zone funds and data center projects described here, and have a financial interest in them. This information is for general purposes only. It is not an offer to sell, or a solicitation of an offer to buy, any security, and it is not investment, tax or legal advice. Any offering will be made only through a fund's confidential offering documents, to investors who qualify (generally accredited investors), where permitted by law. Investments in private funds and data center projects are speculative and illiquid and involve a high degree of risk, including the possible loss of the entire investment. They are suitable only for investors who can bear that risk and hold the investment for ten years or longer. Opportunity Zone tax benefits are not guaranteed. They depend on each investor's circumstances, on the fund and its businesses continuing to meet the requirements of the law, and on rules that can change. Statements about future projects, timing or results are forward-looking and may not occur. Consult your own tax, legal and financial advisers.
Continue reading
For advisers and CPAs · 5 of 12
← Previous: Opportunity Zone vs. 1031 Exchange: Which Is Better?·All 114 guides