Joe ZhuRE/MAX Edge · Brooklyn, NY Free Valuation Call 917-967-5966

Real Estate Tax & Home Selling

How to Reduce Taxes When Selling an Owner-Occupied Two-Family Home in NYC

November 27, 2026 · By Joe Zhu, Licensed Real Estate Agent, RE/MAX Edge

Joe Zhu, Licensed Real Estate Agent, RE/MAX Edge
Joe Zhu
Licensed Real Estate Agent · RE/MAX Edge
Brooklyn, Staten Island, Queens & Manhattan real estate buying & selling
Section 121 capital gains exclusion and 1031 exchange strategies for an owner-occupied NYC two-family home
Section 121 capital gains exclusion and 1031 exchange strategies for an owner-occupied NYC two-family home

Quick Answer: Can I Reduce My Taxes When Selling a Two-Family Home Where I Live in One Unit and Rent Out the Other?

Yes. If you meet the applicable IRS requirements, you may qualify for the Section 121 capital gains exclusion on your owner-occupied unit while using a Section 1031 exchange to defer eligible gains on your separate rental unit.

Eligible individual taxpayers may exclude up to $250,000 of qualifying principal-residence gain, while eligible married couples filing jointly may exclude up to $500,000.

The separate rental portion generally requires its own tax calculation, including accumulated depreciation. A properly structured 1031 exchange may defer eligible rental-property gains.

Combining these strategies requires advance planning, accurate allocation of the property's value and tax basis, and professional tax advice before closing.

1. Why Selling a Two-Family Home Is Different From Selling a Single-Family Home

Many New York City homeowners live in one apartment of a two-family house while renting the other apartment to generate income. Although the entire building may be sold under one purchase agreement and transferred through one deed, the IRS generally requires separate gain calculations when a distinct rental unit does not qualify as the owner's principal residence. For tax purposes, the transaction may involve both a personal residence and an investment property.

This distinction creates opportunities for tax planning, but it also means that the homeowner cannot automatically apply the principal-residence exclusion to the entire building.

Tax consideration Owner-occupied unit Separate rental unit
Property tax basis Allocated acquisition costs and qualifying improvements Allocated costs and improvements, adjusted for depreciation
Section 121 exclusion Potentially eligible for $250,000 or $500,000 Generally unavailable if the unit has never qualified as the owner's principal residence
Depreciation Generally unavailable for exclusively personal use Depreciation generally reduces adjusted basis
Depreciation-related gain Generally none if never used for rental or business May be subject to unrecaptured Section 1250 gain treatment
Section 1031 exchange Not available for exclusively personal-use property Potentially eligible if held for investment or business
Sale proceeds May generally be received directly Exchange proceeds must be properly handled to qualify for deferral

Official source: IRS Publication 523 — Selling Your Home.

2. Using Section 121 to Exclude Gain on Your Primary Residence

Section 121 allows qualifying homeowners to exclude a portion of the gain from selling their principal residence. To generally qualify for the maximum exclusion: you must have owned the residence for at least two years during the five years preceding the sale; you must have used it as your principal residence for at least two years during that period; and you generally must not have claimed another home-sale exclusion during the preceding two years.

For married couples seeking the full $500,000 exclusion through a joint tax return, at least one spouse must satisfy the ownership requirement, both spouses must individually satisfy the residence requirement, and neither spouse may be disqualified by the prior-exclusion limitation. The exclusion applies to qualifying gain — not to the sale price.

For a two-family property with a separate rental unit, the exclusion normally applies only to the portion meeting the principal-residence requirements. Unused exclusion capacity cannot simply be transferred to the separate rental unit. If the property was previously used for different purposes, additional restrictions involving nonqualified use and depreciation may apply.

Official sources: IRS Topic 701 — Sale of Your Home and IRS Publication 523.

3. How to Allocate the Purchase Price, Improvements and Sale Proceeds

An accurate allocation is essential when selling a mixed-use residential property. According to IRS Publication 523, the allocation of basis and amount realized should generally follow the method previously used to determine depreciation adjustments.

Equal-sized units with comparable characteristics might support a 50/50 allocation. However, different layouts, floor areas, improvements or other relevant characteristics may justify a different allocation. The allocation should be reasonable, consistent and supported by appropriate records.

A simplified adjusted-basis calculation is: allocated acquisition basis + qualifying capital improvements − applicable depreciation and other basis adjustments = adjusted tax basis. Qualifying selling expenses generally reduce the amount realized when determining gain. Ordinary maintenance expenses that were previously deducted generally cannot be added to basis again. Land is not depreciable. The outstanding mortgage balance affects the cash received at closing but does not directly determine the taxable gain.

Official sources: IRS Publication 527 — Residential Rental Property and IRS Publication 551 — Basis of Assets.

4. Understanding Depreciation and the Potential 25% Federal Tax Rate

Rental property owners generally recover the cost of depreciable residential rental buildings through annual depreciation deductions. For most residential rental buildings under the standard federal depreciation system, the recovery period is 27.5 years. These deductions reduce the property's adjusted tax basis, so the gain calculated when selling the rental portion may be larger than the increase in its market value alone.

For typical long-term residential rental real estate, gain attributable to straight-line building depreciation may be classified as unrecaptured Section 1250 gain, subject to a maximum federal tax rate of 25%. This is commonly called depreciation recapture, although unrecaptured Section 1250 gain is technically distinct from ordinary-income depreciation recapture.

The 25% rate is a maximum, not an automatic flat tax rate for every seller. Depreciation generally must be accounted for even when an owner failed to claim deductions that were otherwise allowable. A qualifying 1031 exchange may defer eligible depreciation-related gain.

Official sources: IRS Publication 544 — Sales and Other Dispositions of Assets and IRS Topic 409 — Capital Gains and Losses.

5. A Hypothetical $1.4 Million Brooklyn Two-Family Home Sale

Assume a married couple purchased a Brooklyn two-family house for $400,000, made $100,000 in qualifying capital improvements, and now plans to sell the property for $1.4 million. The couple has always occupied one unit as its principal residence and rented the other. Both units support an equal allocation, and the couple satisfies all requirements for the full Section 121 exclusion.

Tax calculation Owner-occupied unit Rental unit
Allocation percentage 50% 50%
Allocated selling price $700,000 $700,000
Allocated selling expenses −$30,000 −$30,000
Amount realized $670,000 $670,000
Allocated original purchase basis $200,000 $200,000
Allocated capital improvements $50,000 $50,000
Accumulated building depreciation $0 −$70,000
Adjusted tax basis $250,000 $180,000
Realized gain $420,000 $490,000
Section 121 exclusion −$420,000 $0
Remaining gain before any 1031 exchange $0 $490,000

All figures are hypothetical. The example assumes a valid 50/50 allocation, $60,000 in qualifying selling expenses, exclusively personal use of the owner-occupied unit and typical straight-line rental-building depreciation.

Without a qualifying 1031 exchange, the rental portion would generally produce $490,000 in recognized gain. Under these simplified assumptions, $70,000 may be treated as unrecaptured Section 1250 gain, with the remaining $420,000 generally receiving long-term capital gain treatment, subject to applicable Section 1231 rules. Additional federal taxes, New York State income taxes and applicable New York City resident income taxes may affect the final liability.

Section 121 & 1031 Tax Planning Calculator

Estimate your owner-occupied gain, rental gain, and amounts that may qualify for exclusion or deferral (simplified illustration)

Owner-occupied portion gain—
Rental portion gain—
Estimated Section 121 excluded gain—
Potential depreciation-related gain (rental portion)—
Assumed 1031 deferred gain—
Estimated remaining taxable gain in this transaction (not the tax due)—

This tool uses a simplified separate owner-occupied and rental unit model and assumes the owner-occupied portion was never rented. It does not handle nonqualified use periods, special depreciation assets, loss carryovers, partial exclusions, exchange boot or other complex situations. Do not use it to prepare a tax return.

→ Start with what your two-family home is worth today: get a free home valuation

6. Combining Section 121 and a 1031 Exchange

The IRS provides guidance for transactions involving both principal-residence exclusions and like-kind exchanges. In the hypothetical example, the married couple may exclude the $420,000 gain on their personal residence and structure a qualifying exchange for the rental portion. A fully qualifying exchange could potentially defer the $490,000 rental gain, including eligible depreciation-related gain.

Under the general deferred-exchange rules: replacement investment real estate must be identified within 45 days of transferring the original property; the replacement property must be received within 180 days or the applicable federal tax return deadline, including extensions, whichever comes first; and a qualified intermediary should be arranged before closing for a conventional deferred exchange.

The owners may generally receive their personal-residence proceeds directly, while the exchange portion must be handled according to the exchange requirements. Receiving nonqualifying cash or other consideration, or certain net debt relief, may cause part of the gain to become taxable.

A fully deferred exchange is not accomplished merely by purchasing another property. The ownership structure, reinvestment, debt, closing expenses and replacement-property requirements must all be reviewed. A 1031 exchange defers eligible taxes; it does not automatically eliminate them.

Official sources: IRS Revenue Procedure 2005-14 and IRS Instructions for Form 8824.

Can I use the entire $500,000 exclusion on my two-family house?

Only qualifying principal-residence gain is eligible. A separate rental unit that never meets the residence requirements generally cannot use the remaining exclusion.

Can I use Section 121 and Section 1031 in the same property transaction?

Yes, when the applicable requirements are satisfied. Your CPA, attorney and qualified intermediary should coordinate the allocation and exchange structure before closing.

What if I never claimed depreciation on my rental apartment?

Allowable depreciation generally still affects the rental property's adjusted basis. A tax professional should review the depreciation history and determine whether corrective filings are appropriate.

Can I move into my rental unit for two years and then sell it tax-free?

Not necessarily. Previous rental use, nonqualified-use rules and depreciation restrictions can limit the exclusion. Moving into the unit does not automatically eliminate those tax consequences.

Can a 1031 exchange permanently eliminate my rental property's taxes?

A qualifying exchange generally defers eligible gain rather than permanently eliminating it. The deferred gain is generally reflected in the replacement property's tax basis.

What Is Your NYC Two-Family Home Worth Today?

Before making any tax-planning decisions, it is important to understand your property's current market value and estimated selling proceeds. If you own a two-family or multifamily home in Brooklyn, Staten Island, Queens or elsewhere in New York City, a complimentary property market evaluation can provide a useful starting point for discussions with your CPA and attorney.

Even if you are not planning to sell immediately, understanding your property's value may help you prepare for a more tax-efficient future sale.

Every conversation is strictly confidential — whether you sell, and when, is entirely your decision.

Official Sources

Keep Reading

Joe Zhu, Licensed Real Estate Agent, RE/MAX Edge

Joe Zhu | Your Trusted Realtor

RE/MAX Edge · Brooklyn Chinese Realtor · Mandarin & Cantonese speaking

917-967-5966 · joezhuny.com

Disclaimer: This article provides general educational information and does not constitute legal, tax or financial advice. All numerical examples are hypothetical. Section 121 exclusions and Section 1031 exchanges are subject to individual eligibility and transaction requirements. Consult a qualified CPA, tax attorney and qualified intermediary before proceeding.

← Back to Blog