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.
“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
| Property | What’s different | Full guide |
|---|---|---|
| Single-family or small multifamily rental | Depreciation recapture; suspended passive losses free up | Capital gains tax on rental property |
| Raw land | No depreciation; dealer risk if subdivided | Capital gains tax on a land sale |
| Commercial building | 39-year depreciation; cost segregation; price allocation | Capital gains tax on commercial property |
| Farmland | §1231 property; machinery and bins are recapture items | Capital gains tax on farmland |
| Second or vacation home | No home sale exclusion; rental use changes the rules | Capital gains tax on a second home |
| Business with real estate | Price allocated across assets, each taxed its own way | Selling a business with real estate |
| Inherited property | Basis usually steps up to value at death | Capital gains on inherited property |
The deferral options, side by side
| 1031 exchange | Opportunity Zone fund | Installment sale | |
|---|---|---|---|
| Property | Investment or business real property | Any asset with eligible capital gain | Most property, not dealer inventory |
| Reinvest | All net proceeds, and replace debt | Only the gain | Nothing; the seller is the lender |
| Deadline | 45 days to identify, 180 to close | 180 days to invest | None |
| Recapture | Deferred | §1250 part deferrable; §1245 part not | Ordinary recapture taxed in year of sale |
| After | Owns another property | Owns a fund interest | Holds 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?
Related reading
- How to avoid capital gains tax on real estate: where OZs fit
- The Section 121 home sale exclusion
- OZ talking points for agents (series hub)
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?
Is a fix-and-flip taxed as capital gain?
How can an investor defer capital gains on investment property?
Can an investor use the home sale exclusion on an investment property?
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