Guide

Capital Gains Tax on Investment Property: An Agent's Guide by Property Type

Capital gains tax on investment property, for agents: holding periods, rates, flips and dealer status, and how each property type can defer the gain.

Updated October 18, 2026

“Investment property” covers a lot: a single rental, a portfolio, raw land, a strip center, a vacation home rented part-time, or a flip. The tax works differently for each, and the client’s next step depends on which one they have. This guide gives agents the shared rules, then points to a detailed guide for each property type.

It’s part of our series for agents. The hub is OZ talking points for your next listing appointment.

The shared rules

  • Gain = amount realized minus adjusted basis. Adjusted basis is cost plus improvements, minus depreciation allowed or allowable (IRC §1016; IRS Publication 544).
  • Holding period. More than one year is long-term (0%, 15% or 20%); one year or less is short-term, taxed at ordinary rates (IRC §1(h); IRC §1222).
  • Depreciation. Gain from straight-line building depreciation is taxed at up to 25%; recapture on personal property is ordinary income. See depreciation recapture for selling landlords.
  • Net investment income tax. 3.8% on top above $200,000 of modified AGI ($250,000 married filing jointly) (IRC §1411).
  • State tax, which varies.

Investor or dealer?

The biggest surprise for some clients: if they buy and sell property as a business, the IRS can treat them as a dealer, and the gain is ordinary income, not capital gain. Courts look at frequency of sales, how much the seller improves and markets the property, and how long they hold it. Dealer property:

  • isn’t eligible for a 1031 exchange (IRC §1031(a)(2) excludes property held primarily for sale), and
  • doesn’t produce capital gain that can go into an Opportunity Zone fund.

If your client flips several properties a year, the CPA needs to weigh in before they treat any sale as an investment sale.

By property type

PropertyWhat’s differentFull guide
Single-family or small multifamily rentalDepreciation recapture; suspended passive losses free upCapital gains tax on rental property
Raw landNo depreciation; dealer risk if subdividedCapital gains tax on a land sale
Commercial building39-year depreciation; cost segregation; price allocationCapital gains tax on commercial property
Farmland§1231 property; machinery and bins are recapture itemsCapital gains tax on farmland
Second or vacation homeNo home sale exclusion; rental use changes the rulesCapital gains tax on a second home
Business with real estatePrice allocated across assets, each taxed its own waySelling a business with real estate
Inherited propertyBasis usually steps up to value at deathCapital gains on inherited property

The deferral options, side by side

1031 exchangeOpportunity Zone fundInstallment sale
PropertyInvestment or business real propertyAny asset with eligible capital gainMost property, not dealer inventory
ReinvestAll net proceeds, and replace debtOnly the gainNothing; the seller is the lender
Deadline45 days to identify, 180 to close180 days to investNone
RecaptureDeferred§1250 part deferrable; §1245 part notOrdinary recapture taxed in year of sale
AfterOwns another propertyOwns a fund interestHolds a note

Run the first two on the client’s numbers with the 1031 vs DST vs Opportunity Zone calculator. The 1031 deadlines are explained in the 1031 exchange 45-day rule, and the Opportunity Zone deadline with the 180-day deadline calculator. For Opportunity Zone investments on or after January 1, 2027, the deferred gain is included after five years, less a 10% basis step-up (30% for a qualified rural fund); the Opportunity Zone tax benefits guide has the details.

Questions to ask an investor seller

  • How long have you owned it, and is it held personally, in an LLC, or in a partnership?
  • How many properties have you sold in the last few years?
  • Do you have depreciation schedules and a list of improvements?
  • What do you want next: another property, out of real estate, or income?

Sources: IRC §1; IRC §1016; IRC §1222; IRC §1411; IRC §1031; IRC §453; IRC §1400Z-2; IRS Publication 544.

Not tax advice.

Frequently asked questions

What is the capital gains tax rate on investment property?
For property held more than a year, long-term gain is taxed at 0%, 15% or 20% federally depending on income, with gain from building depreciation taxed at up to 25% and the 3.8% net investment income tax for some sellers (IRC §1(h); IRC §1411). Property held a year or less is taxed at ordinary income rates. State tax may apply too.
Is a fix-and-flip taxed as capital gain?
Often not. Gain on a property held a year or less is short-term and taxed at ordinary rates. A seller who flips as a business may be a dealer, and dealer gain is ordinary income that can't be deferred with a 1031 exchange or an Opportunity Zone fund.
How can an investor defer capital gains on investment property?
The main federal options are a 1031 exchange into other investment or business real property, an installment sale, and investing the eligible gain in a qualified opportunity fund within 180 days. Each has its own rules and trade-offs.
Can an investor use the home sale exclusion on an investment property?
Only if they lived in it as a main home for two of the five years before the sale, and even then the depreciation and some rental periods aren't covered (IRC §121(b)(5) and (d)(6)).

Get the OZ 2.0 Investor Guide

One email when major OZ 2.0 events happen — Treasury guidance, state filings, rule changes. Unsubscribe anytime.

Tools: 1031 vs DST vs Opportunity Zone calculator · Depreciation recapture calculator · 180-day rule calculator · all Opportunity Zone tools