Guides

How Capital Gains Tax Works on Rental Property

Mar 2, 2026

How Capital Gains Tax Works on Rental Property

An investor who sells a rental property for more than its adjusted basis realizes a capital gain, and that gain is generally taxable in the year of sale. The rate applied depends on how long the property was held, how much depreciation was claimed during ownership, and where the investor lives and files a return. For owners of rental property in the District of Columbia, Maryland, and Virginia, the calculation involves more layers than many owners expect, and a 1031 exchange remains the primary tool for deferring the tax bill entirely rather than reducing it after the fact.

Short-Term Versus Long-Term Treatment

Property held for one year or less before sale produces short-term capital gain, which is taxed at the same rates as ordinary income. Property held for more than one year produces long-term capital gain, which is taxed at the preferential federal rates of zero, fifteen, or twenty percent, depending on the taxpayer total income for the year. Most rental property investors hold for longer than one year, so the long-term rates apply, but an investor who acquires and quickly resells a rental property should confirm the holding period before assuming the lower rate will apply.

Adjusted Basis Determines the Size of the Gain

The taxable gain is not the difference between the original purchase price and the sale price. It is the difference between the sale price and the adjusted basis, which starts with the original purchase price plus closing costs and capital improvements, then subtracts depreciation claimed during the holding period. Because depreciation reduces basis every year the property is held as a rental, a long-held property often generates a larger taxable gain than the appreciation in market value alone would suggest.

Depreciation Recapture Is a Separate Calculation

The portion of the gain attributable to depreciation already claimed is taxed separately from the remaining capital gain, under a category commonly called unrecaptured Section 1250 gain. This portion is taxed at a maximum federal rate of twenty-five percent rather than the standard long-term capital gains rates. An investor who has owned a rental property in a neighborhood such as Petworth or Brookland for fifteen or twenty years, claiming depreciation every year, should expect a meaningful share of the total gain to fall into this recapture category rather than the lower capital gains brackets.

District of Columbia Tax Treatment

The District of Columbia does not provide a separate, reduced rate for capital gains. Instead, gain from the sale of a rental property is added to the investor total taxable income and taxed under the District graduated individual income tax brackets, which reach 10.75 percent for taxable income above $1,000,000. An investor selling a rental property in the District should model the combined federal and District tax exposure together, since the District portion is calculated on top of, not instead of, the federal capital gains and recapture tax.

Maryland and Virginia Comparisons

Maryland and Virginia also tax capital gains as ordinary income under their own graduated brackets rather than applying a separate capital gains rate. An investor selling a rental property in Montgomery County, Prince George's County, Arlington, or Fairfax should confirm the applicable state bracket and any county-level tax that may apply, since these obligations run independently of the federal return.

Net Investment Income Tax

Higher-income investors may also owe the federal net investment income tax, an additional 3.8 percent surtax that applies to net investment income, including rental gains, once modified adjusted gross income exceeds statutory thresholds. This tax applies on top of the standard capital gains rate and the depreciation recapture rate, and it is calculated separately on the federal return.

How a 1031 Exchange Changes the Calculation

A properly structured 1031 exchange defers both the capital gains tax and the depreciation recapture tax that would otherwise be due on the sale of a rental property held for investment. It does not eliminate the tax. It postpones recognition until the replacement property is eventually sold outside of another exchange. The District of Columbia generally follows federal treatment for a properly structured exchange, so deferred gain is not immediately recognized on the District return either, provided the exchange satisfies the identification and closing deadlines under Section 1031.

  • Identify replacement property within forty-five days of the relinquished property closing
  • Close on replacement property within one hundred eighty days of the relinquished property closing
  • Use a qualified intermediary so the investor never takes direct receipt of sale proceeds
  • Acquire replacement property of equal or greater value with equal or greater debt to avoid boot

Estimating the Tax Before Listing a Rental Property

Because the combined federal and District or state tax on a long-held rental property can reach thirty percent or more of the realized gain once depreciation recapture and net investment income tax are included, many investors calculate the estimated liability before listing the property, not after an offer is accepted. This estimate informs whether a 1031 exchange, an installment sale, or an outright taxable sale best fits the investor overall financial plan for the year.

Frequently Asked Questions

Does a 1031 exchange avoid depreciation recapture as well as capital gains tax?

Yes. A properly structured exchange defers both the capital gains portion and the depreciation recapture portion of the realized gain, provided the replacement property is acquired within the statutory deadlines and the exchange otherwise qualifies under Section 1031.

Is rental property capital gains tax the same as the tax on a primary residence sale?

No. A primary residence may qualify for the Section 121 exclusion of up to $250,000 for a single filer or $500,000 for a married couple filing jointly, which is a separate provision from Section 1031. Rental property held for investment does not qualify for the Section 121 exclusion.

How does the net investment income tax interact with a 1031 exchange?

A properly deferred exchange defers the net investment income tax along with the capital gains and recapture tax, since no gain is currently recognized on a qualifying exchange.

This article provides educational content only. It does not constitute tax, legal, or investment advice. Section 1031 defers federal income tax on qualifying real property and does not remove Washington DC transfer or recordation tax obligations. Consult a qualified tax advisor or attorney before acting on any exchange timeline.

Need tailored 1031 exchange guidance?

We cover transfer taxes, replacement property sourcing, and compliance for the Washington DC region.

Contact the Team