Does Selling a Rental Property Trigger the 3.8% NIIT? (w/Examples) + FAQs

This article reflects federal rules as of June 2026 and covers tax year 2025 (returns filed in 2026), with notes on tax year 2026. The Net Investment Income Tax is a federal tax — states do not levy it, though a few add their own surtaxes (covered below). Tax law changes — confirm current figures before you file. This article is educational and is not a substitute for advice from a licensed CPA or tax attorney for your specific situation.

Quick Answer

Yes — for tax year 2025, selling a rental property usually triggers the 3.8% Net Investment Income Tax if the rental is passive and your modified adjusted gross income (MAGI) tops $200,000 (single) or $250,000 (married filing jointly). If you materially participate as a real estate professional, the gain can be exempt.

Most landlords never see this surtax coming. A rental sale can throw a single year’s income far above the NIIT thresholds set by the IRS, and the 3.8% lands on top of your regular capital gains tax and depreciation recapture. The gain from one sale is often the largest “investment income” event of a person’s life, and it can push an otherwise middle-income household across the line for that single year.

The stakes are real, the timing is unforgiving, and the rules turn on details most sellers ignore. The surtax applies in the year of sale, it is reported on a form many filers have never heard of, and the single biggest escape hatch — being treated as an active business rather than a passive investment — must be earned during the years you own the property, not claimed after you sell. According to the Tax Policy Center, the NIIT raises tens of billions in federal revenue each year, and real estate gains are a major source.

Here is what you will learn:

  • 🏠 Exactly when a rental sale is taxed by the NIIT — and the one status that exempts it.
  • 🧮 A fully worked example showing the 3.8% applied to a real gain, step by step.
  • 📉 How depreciation recapture and a §1031 exchange change your NIIT bill.
  • 📋 Which form to file (it is Form 8960), where it goes, and the deadline.
  • ⚠️ The 7+ mistakes that quietly cost sellers thousands in surtax.

What the 3.8% NIIT Actually Is

The Net Investment Income Tax (NIIT) is a 3.8% federal surtax on investment income. Congress created it in 2010 and it took effect on January 1, 2013, under Internal Revenue Code Section 1411. Its purpose was to extend a Medicare-style tax to unearned income — money you make from assets rather than from a paycheck.

You owe the NIIT only if two things are true at once. First, you have net investment income. Second, your modified adjusted gross income (MAGI) — your adjusted gross income with a few foreign items added back — rises above a fixed threshold for your filing status.

The tax is then charged on the lesser of two numbers: your total net investment income, or the amount your MAGI exceeds the threshold. This “lesser of” rule is the single most misunderstood part of the NIIT, and it is why two people with the same gain can owe wildly different amounts. The consequence of ignoring it is simple: you over- or under-estimate your bill and either overpay or get hit with an estimated-tax penalty.

A common misconception is that the NIIT replaces capital gains tax. It does not. It is added to your federal capital gains tax, so a long-term gain can face a 20% capital gains rate plus the 3.8% NIIT — an effective 23.8% federal rate on the gain. What you should do about it: before you sell, estimate both layers together, not just the capital gains line.

The MAGI Thresholds (Not Indexed for Inflation)

The thresholds are fixed in the statute and, importantly, are not adjusted for inflation. They have been the same since 2013 and remain the same for tax year 2025 and tax year 2026. Because wages and asset values rise while the thresholds stay frozen, more households drift into the NIIT every year — a slow “bracket creep” that catches first-time sellers off guard.

Filing Status MAGI Threshold (Tax Year 2025 and 2026)
Single or head of household $200,000
Married filing jointly / qualifying surviving spouse $250,000
Married filing separately $125,000

The consequence of the frozen threshold is that a one-time rental gain can lift even a retiree with modest wages above the line for that single year. If you are near the edge, the next step is to time the sale or harvest losses to keep MAGI down.

Why a Rental Sale Usually Counts as “Net Investment Income”

Net investment income includes interest, dividends, capital gains, royalties, non-qualified annuities, and — the key one here — rental income and gains from the disposition of property held for investment. The IRS confirms that gain from selling property is investment income unless the property was held in an active trade or business, as explained in the IRS NIIT questions and answers.

A standard rental — you own a house or duplex, you collect rent, a property manager handles most of it — is a passive activity under the tax code. Because it is passive, both the ongoing rental income and the eventual gain on sale fall into net investment income. The consequence is that the entire taxable gain, including the part created by depreciation recapture, can be hit with the 3.8%.

The misconception here is that “I worked on the property, so it’s active.” Doing repairs or screening tenants is not the same as the legal test for material participation. What you should do: figure out now, while you still own the property, whether your involvement clears the material-participation bar — because that status, set during ownership, decides how the sale is taxed.

The One Big Exemption: Active Trade or Business

The NIIT was designed to tax passive investment income, not income from an active business you run. If your rental rises to the level of a trade or business and you materially participate in it, the rental income and the gain on sale can be excluded from net investment income, as a CPA analysis of NIIT on rental real estate explains.

In practice, the cleanest path to this exemption is qualifying as a real estate professional under IRC Section 469(c)(7). To qualify, you must spend more than 750 hours per year in real property trades or businesses, and more than half of all your personal-service work hours must be in real estate. Then you must materially participate in the specific rental activity.

The consequence of clearing all three tests is significant: the gain on sale escapes the 3.8% surtax entirely, saving real money on a large gain. The consequence of almost qualifying is zero benefit — the tests are all-or-nothing. The next step for a serious investor is to keep a contemporaneous time log, because the IRS routinely challenges real estate professional status, and a log is your evidence.

Which Situation Applies to You?

The answer changes based on how you held and used the property. Find your row, then read the section it points to.

  • You own a passive rental (you collect rent, do not qualify as a real estate professional) — the gain is investment income; the NIIT likely applies if your MAGI clears the threshold. Read the worked example below.
  • You qualify as a real estate professional and materially participate — the gain can be exempt from NIIT; focus on documenting your hours.
  • You are selling your former home that was rented for a few years — only the non-excluded gain counts; the Section 121 exclusion can remove up to $250,000 / $500,000 from both income tax and NIIT.
  • You are doing a §1031 exchange — the deferred gain is not recognized this year, so there is generally no NIIT this year.
  • You “flip” houses as a dealer — flips are usually ordinary business income, not investment income, so NIIT may not apply (but self-employment tax might).

The consequence of misreading your row is paying a surtax you did not owe — or missing one you did and facing a penalty. The next step: match your facts to one row and confirm it with a tax pro if you straddle two.

Worked Example: The 3.8% on a Real Rental Gain

Here is the math, step by step, so you can copy it. Assume tax year 2025, a married couple filing jointly.

Facts: Maria and David Chen bought a rental duplex for $300,000. Over the years they claimed $90,000 of depreciation, lowering their adjusted basis to $210,000. They sell in 2025 for $560,000, with $20,000 of selling costs. They are passive investors — neither is a real estate professional. Their other MAGI for the year is $240,000.

Step 1 — Figure the gain. Amount realized = $560,000 − $20,000 = $540,000. Taxable gain = $540,000 − $210,000 adjusted basis = $330,000.

Step 2 — Add the gain to MAGI. $240,000 other MAGI + $330,000 gain = $570,000 MAGI.

Step 3 — Find the MAGI excess over the threshold. $570,000 − $250,000 (MFJ) = $320,000.

Step 4 — Find net investment income. The full $330,000 gain is net investment income (passive rental).

Step 5 — Apply the “lesser of” rule. The NIIT base is the lesser of net investment income ($330,000) or MAGI excess ($320,000), so the base is $320,000.

Step 6 — Multiply by 3.8%. $320,000 × 3.8% = $12,160 in NIIT.

That $12,160 is on top of their federal capital gains tax and the 25% maximum rate on the $90,000 of depreciation recapture. The lesson: the surtax alone added more than twelve thousand dollars to one sale. The next step for sellers near this size is to run this exact six-step math before listing.

How Depreciation Recapture Feeds the NIIT

Every year you rent a property, you claim depreciation, which lowers your basis. When you sell, the IRS “recaptures” that depreciation as a special gain — unrecaptured Section 1250 gain — taxed at a maximum federal rate of 25%, as described in IRS Topic No. 559.

Here is the trap: that recapture gain is still part of your total capital gain, and for a passive rental it is also net investment income. So depreciation recapture is hit twice — once by the 25% recapture rate and again by the 3.8% NIIT.

The consequence is that the depreciation you enjoyed as a deduction in earlier years comes back at sale carrying both a 25% bill and a 3.8% surtax. A common misconception is that depreciation recapture is “separate” from the NIIT — it is not, for a passive owner. What to do: when you estimate your sale, calculate recapture and NIIT together so the number does not surprise you.

How a §1031 Exchange Changes the Picture

A Section 1031 like-kind exchange lets you defer the gain on an investment property by rolling it into another investment property. Because the gain is not recognized in the year of exchange, it is generally not net investment income that year — so a full 1031 exchange usually means no NIIT this year.

The catch is in the word defer. The gain is not erased; it carries over to the new property’s basis. When you eventually sell without exchanging, the whole deferred gain comes due, and the NIIT can apply then. The consequence of a partial exchange — where you take cash “boot” — is that the boot is recognized gain and can trigger NIIT immediately on that portion.

What to do: if avoiding the surtax this year matters, complete a fully qualifying exchange with a qualified intermediary, identify replacement property within 45 days, and close within 180 days. Miss either deadline and the whole gain becomes taxable — and NIIT-eligible — this year.

When the Section 121 Home-Sale Exclusion Helps

If you lived in the property as your main home for at least two of the five years before sale, the Section 121 exclusion can exclude up to $250,000 of gain (single) or $500,000 (married filing jointly). The IRS confirms that gain excluded under Section 121 is not subject to the NIIT.

This matters for a “converted” property — a home you later rented. The excluded portion escapes both income tax and the 3.8% surtax. But two parts still count: gain above the exclusion cap, and depreciation taken after May 6, 1997, which can never be excluded.

The consequence of assuming the whole gain is tax-free is a surprise bill on the recapture and the excess. What to do: track the dates you lived in versus rented the property, because that ratio and the depreciation figure decide how much gain stays taxable and NIIT-eligible.

Scenario Tables

Scenario 1 — Passive Landlord Sells

Seller’s Situation NIIT Result (Tax Year 2025)
Owns one rental, uses a property manager, MAGI $300,000 after the gain Gain is net investment income; 3.8% applies to the lesser of the gain or the MAGI excess over $250,000 (MFJ)
Never tracked hours or claimed real estate professional status No exemption available; full taxable gain is exposed to the surtax

Scenario 2 — Real Estate Professional Sells

Seller’s Situation NIIT Result (Tax Year 2025)
Spends 1,200 hours/year managing rentals, materially participates, has a time log Gain on sale can be excluded from net investment income — no 3.8% surtax
Same person but cannot prove 750+ hours if audited IRS can deny the exemption, making the entire gain subject to NIIT plus penalties

Scenario 3 — §1031 Exchange

Seller’s Situation NIIT Result (Tax Year 2025)
Fully exchanges duplex for an apartment building, takes no cash Gain deferred; generally no NIIT recognized this year
Takes $50,000 cash “boot” in the exchange The $50,000 recognized gain can be subject to NIIT this year

Named Examples

Example 1 — Maria and David, passive landlords. As shown in the worked example, their $330,000 gain pushed MAGI to $570,000. The lesser-of rule set their NIIT base at $320,000, producing $12,160 of surtax for tax year 2025. Their mistake was never building a case for material participation.

Example 2 — Priya, the real estate professional. Priya manages eight rentals full-time, logging over 1,800 hours a year. When she sells one fourplex for a $200,000 gain in 2025, she meets the real estate professional tests under Section 469 and materially participates. Her gain is excluded from net investment income, so she owes $0 in NIIT — a 3.8% saving of about $7,600 on that gain.

Example 3 — Robert, the converted-home seller. Robert lived in his condo for three years, then rented it for two before selling at a $280,000 gain in 2025. As a single filer, his Section 121 exclusion removes $250,000. Only the remaining $30,000 (plus his post-1997 depreciation) is taxable and exposed to the NIIT if his MAGI clears $200,000.

Reporting It: Form 8960 and the Process

If you owe the NIIT, you report and compute it on Form 8960, Net Investment Income Tax, which you attach to your Form 1040. The gain itself first flows through Form 8949 and Schedule D, and depreciation recapture is figured on Form 4797.

Form 8960 has three parts. Part I lists your investment income — interest, dividends, rents, and net gains from disposition of property, where your rental gain appears. Part II lets you take allowed deductions, such as state income tax allocable to that income and certain expenses. Part III applies the MAGI threshold and the “lesser of” calculation, then multiplies by 3.8% to produce the tax that carries to your Schedule 2.

The consequence of skipping Form 8960 when you owe is an underpayment plus interest and a possible accuracy penalty. The deadline is your regular return due date — April 15, 2026 for tax year 2025, or October 15 with an extension (an extension to file is not an extension to pay). The next step: because a large sale can also trigger an estimated-tax shortfall, consider making a quarterly estimated payment in the quarter you sell to avoid a penalty.

Mistakes to Avoid

  • Forgetting the NIIT exists. Sellers budget for capital gains tax only, then face an extra 3.8% — often thousands of dollars unplanned.
  • Assuming “I worked on it” means active. Casual repairs do not meet the material-participation test, so the gain stays passive and taxable.
  • Ignoring depreciation recapture in the NIIT base. Recapture is part of the gain and is hit by both the 25% rate and the 3.8% surtax.
  • Claiming real estate professional status with no time log. Without contemporaneous hours, the IRS can deny the exemption and add penalties.
  • Taking cash “boot” in a 1031 exchange. The boot is recognized gain and can trigger NIIT this year, defeating the deferral goal.
  • Missing the 45-day or 180-day exchange deadline. Blowing either deadline makes the entire gain taxable now — and NIIT-eligible.
  • Assuming the home-sale exclusion wipes out everything. Post-1997 depreciation and gain above the cap still count for income tax and NIIT.
  • Not paying estimated tax in the quarter of sale. A large one-time gain can cause an underpayment penalty even if you pay by April.
  • Confusing the NIIT with the Additional Medicare Tax. They are separate; the IRS notes you can owe both but not on the same dollars.

Do’s and Don’ts

Do’s – Do estimate both layers — capital gains tax plus the 3.8% — before listing, because the combined bill drives your net proceeds. – Do keep a contemporaneous time log if you want real estate professional status, since the IRS demands proof. – Do consider a 1031 exchange when you plan to reinvest, because deferral can postpone the entire surtax. – Do harvest capital losses in the year of sale, since they reduce net investment income directly. – Do make a quarterly estimated payment in the quarter you sell, because it prevents an underpayment penalty.

Don’ts – Don’t assume your state taxes it — the NIIT is purely federal, so do not double-count it on a state return. – Don’t sell two big assets in one year without checking MAGI, because stacking gains widens your surtax base. – Don’t overlook deductible expenses on Form 8960, since state tax allocable to the gain can lower the NIIT base. – Don’t claim active status after the fact — the property’s treatment during ownership controls the sale’s tax. – Don’t skip a CPA on a large gain, because one planning move can save far more than the fee.

Pros and Cons of Planning Around the NIIT

Pros – A 1031 exchange defers the whole bill, keeping more capital working for you now. – Real estate professional status can eliminate the 3.8%, a permanent saving on rental gains. – Timing a sale across two tax years can keep MAGI below the threshold in each year. – Installment sales can spread the gain, lowering MAGI in any single year and softening the surtax. – Loss harvesting offsets investment income dollar for dollar, shrinking the NIIT base.

Cons – Real estate professional status is hard to prove and invites IRS scrutiny. – A 1031 exchange has rigid deadlines that, if missed, accelerate the full tax. – Installment sales carry interest and default risk and may not suit every buyer. – Frozen thresholds mean creeping exposure, so planning must repeat every year. – Planning costs money and time, and the benefit depends on getting the facts exactly right.

State Conformity: Does Your State Pile On?

The NIIT is a federal tax under IRC Section 1411. No state imposes the 3.8% NIIT itself, and states do not “conform” to it the way they conform to other federal rules. So on your state return, you generally do not see a separate NIIT line.

That said, a handful of states add their own surtaxes that can stack on a large gain. For tax year 2025, Massachusetts levies a 4% surtax on taxable income above roughly $1 million, which can catch a big property sale. States with no income tax — such as Texas, Florida, and Washington (which taxes only certain capital gains) — impose nothing on the gain at the state level.

The consequence of assuming your state mirrors the federal NIIT is mis-estimating your total bill. What to do: check your own state’s capital gains and surtax rules separately, and never use the 3.8% federal figure as a stand-in for a state number.

What To Do Next

  1. Run the six-step math above using your real numbers and the 2025 thresholds to estimate your NIIT.
  2. Determine your status — passive investor or material-participation real estate professional — and gather your time logs if you claim the latter.
  3. Pull your depreciation schedule so you can figure unrecaptured Section 1250 gain on Form 4797.
  4. Decide on a strategy — outright sale, 1031 exchange, or installment sale — before you sign a contract.
  5. Make an estimated tax payment in the quarter of sale to avoid a penalty.
  6. File Form 8960 with your 1040 by April 15, 2026 (or October 15 with an extension to file).
  7. Call a CPA or tax attorney if your gain is large, you are claiming real estate professional status, or you are mixing a 1031 exchange with boot — these are the situations where mistakes cost the most.

Frequently Asked Questions

Does selling a rental property always trigger the 3.8% NIIT? No. It triggers the surtax only if the gain is net investment income (a passive rental) and your MAGI exceeds $200,000 single or $250,000 joint for tax year 2025. Active real estate professionals can be exempt.

What is the NIIT rate and how is it calculated? 3.8%. It applies to the lesser of your net investment income or the amount your MAGI exceeds the threshold, then multiplied by 3.8%, as figured on Form 8960 for tax year 2025.

Is the NIIT in addition to capital gains tax? Yes. The 3.8% is added on top of your federal capital gains tax and depreciation recapture, so a long-term gain can face an effective 23.8% federal rate in tax year 2025.

Does depreciation recapture count toward the NIIT? Yes. For a passive rental, unrecaptured Section 1250 gain is part of the taxable gain and is subject to both the 25% recapture rate and the 3.8% surtax.

Can a 1031 exchange avoid the NIIT? Yes, for now. A fully qualifying exchange defers the gain, so generally no NIIT is recognized this year, but the surtax can apply when you finally sell without exchanging.

Does the home-sale exclusion stop the NIIT? Yes, partly. Gain excluded under Section 121 (up to $250,000 single / $500,000 joint) is not subject to NIIT, but post-1997 depreciation and gain above the cap still count.

What MAGI thresholds apply for 2025 and 2026? $200,000 / $250,000 / $125,000. Single, married filing jointly, and married filing separately, respectively. These are fixed by statute and not indexed for inflation.

Which form reports the NIIT? Form 8960. You attach it to your Form 1040, with the gain flowing from Form 8949, Schedule D, and Form 4797 for depreciation recapture.

Do real estate professionals owe NIIT on a rental sale? No, if they qualify. When the activity is an active trade or business and the taxpayer materially participates, the gain can be excluded from net investment income.

Do house flippers pay the NIIT? Usually no. Dealer flips are typically ordinary business income, not investment income, so NIIT often does not apply — though self-employment tax may.

Does any state charge its own 3.8% NIIT? No. The NIIT is purely federal. A few states add separate surtaxes — Massachusetts has a 4% surtax above about $1 million for 2025 — but none copy the federal 3.8%.

When is the NIIT due for a 2025 sale? April 15, 2026. It is due with your tax year 2025 return, or October 15 with an extension to file; an extension does not delay the payment.

This guide reflects federal rules as of June 2026 for tax year 2025. Tax law changes — confirm current figures with the IRS or a licensed tax professional before you file.