Owning rental real estate involves a different tax cycle from owning stocks or living in your own home. While you hold the property, MACRS depreciation shelters cash flow on Schedule E—but every dollar of depreciation reduces your cost basis and comes back into focus when you sell. Between depreciation recapture, Section 1031 like-kind exchanges, and the 3.8% Net Investment Income Tax, the timing and structure of a sale can swing your federal tax bill by tens of thousands of dollars. This guide explains the core 2026 federal rules and official IRS forms. It is general information, not tax or legal advice.
Separating land from depreciable building basis
Before you take your first dollar of depreciation, you must split your total acquisition basis (purchase price plus certain capitalized closing costs such as recording fees, title insurance, and transfer taxes) into two buckets:
- Land (non-depreciable): Under IRS Publication 527, land is never depreciated because it does not wear out or get used up.
- Building and improvements (depreciable): The structure itself, plus capital improvements you make after purchase (such as a new roof or HVAC system), are depreciated over their IRS recovery periods.
Investors typically establish the land-to-building split using the county property tax assessment ratio, an independent appraisal, or a clear allocation in the purchase documentation. Keep the backup for that allocation with your permanent property records—you will need it for the entire time you own the building and when you eventually sell or exchange it.
MACRS straight-line depreciation (27.5 vs. 39 years)
Under the MACRS General Depreciation System (GDS), rental buildings are depreciated using the straight-line method and the mid-month convention:
- Residential rental property: 27.5 years (about 3.636% of depreciable building basis per full year). See IRS Publication 527 for the dwelling-unit gross rental income test that distinguishes residential from nonresidential buildings.
- Nonresidential (commercial) real property: 39 years (about 2.564% per full year).
- Mid-month convention: Regardless of which day of the month you place the rental in service (ready and available for rent), the IRS treats it as placed in service at the midpoint of that month. A property placed in service in July, for example, receives 5.5 months of depreciation in year one, not 6.
Run your purchase price, land value, and placement month through the rental property depreciation calculator to see your exact first-year and full-year schedule.
You claim initial-year rental depreciation on Form 4562 (Part III, Section B) and report ongoing rental income, operating expenses, mortgage interest, property taxes, and depreciation on Schedule E. Note that rental mortgage interest is deducted on Schedule E as a rental expense—it is not subject to the personal home-acquisition debt cap ($750,000, or $375,000 married filing separately), which applies to primary and second-home itemized deductions modeled in the mortgage tax deduction calculator. Some landlords whose rental activity rises to a Section 162 trade or business (or meets the IRS rental safe harbor) may also evaluate eligibility for the 20% deduction in the QBI deduction calculator.
Selling a rental: capital gains and 25% depreciation recapture
When you sell a rental property held for more than one year in a taxable sale, your gain is usually split into two pieces taxed at different federal rates:
- Unrecaptured Section 1250 gain: The portion of your gain equal to the straight-line depreciation you claimed—or were allowed to claim, even if you forgot to deduct it—is taxed at your ordinary marginal income tax rate up to a maximum federal rate of 25% (IRS Topic 409).
- Remaining long-term capital gain: Appreciation above your original adjusted cost basis is taxed at the 2026 federal long-term capital gains rates—0%, 15%, or 20%—depending on your taxable income (for 2026, the 15% bracket starts above $49,450 single / $98,900 married filing jointly, and the 20% bracket starts above $545,500 single / $613,700 joint).
Model how appreciation stacks on top of ordinary income in the capital gains tax calculator.
Deferring taxes with a Section 1031 like-kind exchange
If you plan to reinvest your equity into another investment or business real estate asset, IRC § 1031 lets you defer both long-term capital gains tax and 25% unrecaptured Section 1250 tax by exchanging real property for like-kind real property (personal property and personal residences do not qualify).
Three strict rules govern a deferred 1031 exchange under the Form 8824 instructions:
- 45-day identification deadline: You must identify potential replacement property in writing within 45 calendar days after closing the sale of your relinquished property.
- 180-day completion deadline: You must close on and receive the replacement property within 180 calendar days after transferring the relinquished property (or by the due date of your tax return for that year, including extensions, if earlier). Neither deadline is extended for weekends or holidays in the ordinary course.
- Boot triggers immediate tax: To defer 100% of your realized gain, you generally must acquire replacement real estate of equal or greater value and reinvest all net equity without reducing net mortgage debt (unless offset by adding cash). Any cash you receive, non-like-kind property received, or net debt relief is boot, which is taxable up to your realized gain—with depreciation recapture generally recognized first.
Use a Qualified Intermediary before closing the sale (touching the sale proceeds directly disqualifies the exchange), estimate deferred gain, boot, and exact calendar deadlines in the 1031 exchange calculator, and report the exchange to the IRS on Form 8824.
The 3.8% Net Investment Income Tax (Form 8960)
High-income real estate investors face an additional federal surtax on top of income and capital gains rates: the 3.8% Net Investment Income Tax (NIIT) under IRC § 1411.
The 3.8% tax applies to the lesser of your net investment income or the amount by which your Modified Adjusted Gross Income (MAGI) exceeds statutory thresholds that are not indexed for inflation:
- Single or head of household: $200,000
- Married filing jointly (or qualifying surviving spouse): $250,000
- Married filing separately: $125,000
Net rental income and taxable gain from selling investment real estate (including taxable boot in a partial 1031 exchange) generally count as net investment income, unless the rental is part of an active Section 162 real estate trade or business in which you materially participate (such as a qualifying real estate professional). Estimate your exposure in the 3.8% NIIT calculator and report the tax on Form 8960, attached to Form 1040.
Rental property vs. the primary-residence § 121 exclusion
Investors sometimes confuse the investment deferral rules of Section 1031 with the primary-home exclusion under IRC § 121 (IRS Topic 701):
- Main-home exclusion (§ 121): Excludes up to $250,000 of gain ($500,000 if married filing jointly) permanently—not just deferred—if you owned and lived in the home as your main residence for at least 2 of the 5 years ending on the sale date.
- No exclusion for depreciation: Even if you convert a rental into your main home (or rent out a former main home) and meet the 2-out-of-5-year test, prior rental depreciation allowed or allowable is never excluded under § 121 and remains taxable up to 25% (see IRS Publication 523 for the effective-date cutoff and calculation).
- Nonqualified use: Gain allocated to periods when the property was used as a rental before it became your main home generally cannot be excluded under § 121.
What this guide does not cover
This guide is general federal tax information, not tax, legal, or real estate advice. It does not cover passive activity loss (PAL) limitations and the special rental loss allowance on Form 8582, real estate professional status hour and material-participation tests, short-term rental exceptions, cost segregation studies, state capital gains taxes or state 1031 clawback rules, installment sales (Form 6252), or partnership/LLC basis and Section 754 elections. Consult IRS Publication 527, the Form 8824 and Form 8960 instructions, or a qualified real estate CPA before closing a sale or exchange.