How the IRS Splits a Duplex Sale Into Two Parts
The IRS does not treat a duplex as a single indivisible asset when the owner lived in one unit and rented the other. Instead, the property is conceptually divided based on use. The portion you occupied as your primary residence is evaluated under home-sale exclusion rules. The portion you rented out is treated as investment or rental property and follows capital gains and depreciation recapture rules.
This split is usually done by square footage or by unit count. For a true side-by-side duplex with two roughly equal units, a 50/50 allocation is common. If the units are different sizes, the allocation follows the actual square footage ratio. Your CPA will determine the right method based on your specific property and how it was reported on prior tax returns.
The practical result is that you can end up with two very different tax outcomes on a single closing statement. One portion may be largely sheltered. The other may produce a meaningful tax bill. Sellers who do not model this in advance often underestimate what they will actually net.
For a broader look at how occupancy history and depreciation interact at the point of sale, the NC small multifamily depreciation recapture tax strategies article covers the underlying mechanics in detail, even though it is framed for a different state market.
The Home-Sale Exclusion: What the 2-of-5-Year Rule Actually Covers
The IRS home-sale exclusion allows a seller to exclude up to $250,000 of gain from a primary residence sale if filing single, or up to $500,000 if married filing jointly. To qualify, you generally must have owned and used the property as your main home for at least two of the five years immediately before the sale date.
For a duplex owner, this exclusion applies only to the owner-occupied portion of the property. If you lived in one unit and it represents half the square footage, roughly half of your total gain may be eligible for the exclusion, assuming you meet the ownership and use tests.
A few important details sellers often miss:
- The five-year window looks back from the closing date, not from when you moved out. If you moved out of your unit two years ago and rented it since, you may still qualify if the two-year use test is met within that five-year period.
- The exclusion applies to gain, not gross proceeds. Gain is calculated as sale price minus your adjusted basis, which includes original purchase price, capital improvements, and closing costs paid at acquisition.
- If you have used the exclusion on another home sale within the prior two years, you generally cannot use it again on this sale.
- The exclusion does not apply to the rental unit's share of the gain, regardless of how long you owned the property overall.
Sellers who are approaching the edge of the five-year window should pay close attention to timing. A sale completed before the use test expires may preserve the exclusion. A sale completed after the window closes may not. This is one reason that exit timing indicators matter well before you engage buyers.
Depreciation Recapture on the Rental Unit, Even If You Never Filed It
This is the part that surprises most duplex owners. If you rented one unit and depreciated it on your tax returns, the IRS will recapture that depreciation when you sell. The recapture amount is typically taxed at a maximum rate of 25 percent, separate from the long-term capital gains rate that applies to the rest of the rental-side gain.
What surprises sellers even more is the "allowed or allowable" rule. The IRS does not require that you actually claimed depreciation to trigger recapture. If you were entitled to take depreciation and did not, the IRS generally treats you as having taken it anyway. The recapture calculation is based on the depreciation that was allowable over the rental period, whether or not it appeared on your Schedule E.
This means that a seller who rented one unit for eight years, never filed depreciation, and assumed they had no recapture exposure may still owe tax on the accumulated allowable depreciation at closing.
The practical implication is straightforward: before you list, ask your CPA to reconstruct the depreciation schedule for the rental unit going back to when it was first placed in service. That figure becomes part of your net proceeds model. Ignoring it produces an optimistic number that will not survive the closing table.
For sellers who have already been tracking this on a small multifamily property, the 1031 exchange tactics for small NC multifamily under 2M article explains one common strategy for deferring both capital gains and recapture when rolling proceeds into a replacement property.
Converted Rentals: When You Moved Out and Rented Both Units
Some duplex owners eventually move out entirely and convert the whole property to a rental. This scenario creates a different tax picture than the partial-occupancy case.
Once you no longer occupy either unit, the entire property is treated as rental property for tax purposes going forward. If you later sell, the full gain is subject to capital gains treatment, and depreciation recapture applies to the entire building's depreciation, not just one unit's share.
The home-sale exclusion may still be available for the period when you lived in one unit, but only if the two-of-five-year use test is met at the time of sale. A seller who moved out four years before closing and rented both units for that entire period would no longer meet the use test, and the exclusion would not apply to any portion of the gain.
There is also a holding period consideration. If the taxable gain on the rental side relates to a property held longer than one year, it qualifies for long-term capital gains rates, which are generally lower than ordinary income rates. If the holding period is one year or less, the gain is short-term and taxed at ordinary income rates. For most duplex owners who have held the property for several years, long-term treatment applies, but the depreciation recapture portion is still taxed at the separate 25 percent maximum rate regardless of holding period.
Virginia does not have a separate capital gains tax rate. Gains from real property sales are included in Virginia taxable income and taxed at the state's individual income tax rates, which top out at 5.75 percent as of 2026. This state-level tax is in addition to federal capital gains and recapture taxes, so your total effective rate on the rental-side gain can be meaningful.
Modeling Your Net Proceeds Before You List in VA
Most sellers think about their asking price first and their tax bill second. The more useful sequence is the reverse. Before you set a price floor or engage buyers, build a simple net proceeds model that accounts for all four components: the excluded gain on the owner-occupied portion, the taxable capital gain on the rental portion, the depreciation recapture on the rental unit, and Virginia state income tax on the taxable portions.
A basic framework looks like this. Start with your expected sale price. Subtract selling costs (agent commissions if applicable, closing costs, and any seller-paid concessions). The result is your net sale price. From that, subtract your adjusted basis allocated to each unit. The gain on the owner-occupied unit is compared against the exclusion threshold. The gain on the rental unit, plus the recapture amount, produces your taxable income from the sale.
Running this calculation with your CPA before you list does two things. First, it tells you whether your target price actually produces the after-tax proceeds you need. Second, it prepares you for buyer conversations about pricing. Buyers who are sophisticated investors will often ask about your basis and your motivation for selling. Knowing your numbers gives you a cleaner, more credible answer.
If you are also thinking about whether to sell now or refinance and hold, the when to sell vs. refinance small multifamily in NC piece walks through the financial comparison framework, which applies broadly even outside North Carolina.
One final note on the VA loan itself: the loan program does not change any of the tax outcomes described above. The IRS evaluates the sale based on how the property was used and how long it was held, not on what financing was in place. Sellers sometimes assume that a VA loan purchase creates special tax treatment at sale. It does not.
The right time to work through these questions is before you list, not after you accept an offer. A CPA who works with real property sellers can reconstruct your depreciation history, allocate basis between units, and model your net proceeds under different sale price scenarios. That preparation makes your pricing strategy more accurate and your exit cleaner.