How Long After Selling a House Do You Have to Buy to Avoid Tax in New York?
The Section 121 Exclusion: No Clock Ticking
Under IRC Section 121, you can exclude up to $250,000 in capital gains from the sale of your primary residence ($500,000 for married couples filing jointly). The requirements are straightforward: you must have owned the home and used it as your main residence for at least two of the five years before the sale.
Notice what’s not on that list. There’s no rule saying you have to buy a replacement home. No 90-day window. No six-month countdown. You can sell your Manhattan co-op, rent for three years, and pocket the gain tax-free as long as you met the ownership and use tests at the time of sale. The old “rollover”. Rule from pre-1997 tax law required reinvesting in a new home, but Congress scrapped that with the Taxpayer Relief Act of 1997.
One thing New Yorkers trip over: the two-year use test doesn’t have to be consecutive. If you lived in the home for 14 months, rented it out for a year, then moved back for 10 months, you’ve still hit the 24-month threshold within the five-year lookback window.
1031 Exchanges: Where Timing Actually Matters
If you’re selling investment or rental property in New York, the rules change completely. A 1031 like-kind exchange lets you defer capital gains tax by reinvesting the proceeds into another investment property, but the IRS imposes strict deadlines per Publication 544:
- 45 days after closing to identify up to three potential replacement properties in writing
- 180 days after closing (or your tax return due date, whichever is earlier) to complete the purchase
These deadlines don’t bend. Not for weekends, not for holidays, not because your attorney went on vacation. Miss the 45-day identification window by a single day and the entire exchange fails. The full gain becomes taxable.
New York State recognizes 1031 exchanges for state income tax purposes, which is good news. But here’s what catches people: if you exchange a New York property for one in another state, New York will “recapture”. The deferred gain if you later sell that replacement property. The state keeps a long memory.
New York Transfer Taxes: The Part Nobody Budgets For
Even if your capital gain is fully excluded under Section 121, New York’s transfer taxes still apply at closing. These aren’t income taxes —. They’re transaction taxes, and they stack up fast in the city:
- New York State Real Estate Transfer Tax: 0.4% on sales up to $3 million; 0.65% on sales above $3 million (NY DTF)
- NYC Real Property Transfer Tax: 1% on residential sales of $500,000 or less; 1.425% above $500,000 (NYC DOF)
- “Mansion Tax” (buyer pays): a graduated surcharge on purchases of $1 million or more, ranging from 1% to 3.9%
On a $1.5 million apartment sale in Manhattan, the seller’s combined transfer taxes come to roughly $27,750. That’s money out the door regardless of your income tax situation. We see clients budget carefully for capital gains and then get blindsided by these closing costs.
What If Your Gain Exceeds the Exclusion?
In New York City’s real estate market, gains above the $250,000/$500,000 exclusion are more common than you’d think. A couple who bought a brownstone in Park Slope for $600,000 in 2005 and sold it for $2.2 million faces $1.1 million in gain after the $500,000 exclusion. That excess gets taxed as long-term capital gains federally (0%, 15%, or 20% depending on income), plus the 3.8% Net Investment Income Tax if their modified AGI exceeds $250,000.
New York State and City tax capital gains as ordinary income. At the top brackets, that’s 10.9% state plus 3.876% city. On a $600,000 excess gain, the combined federal and state tax bill can clear $170,000. Buying another home doesn’t reduce any of this — Section 121 already gave you your exclusion, and there’s no second bite at it.
Partial Exclusions and Special Situations
Didn’t live in the home for two full years? You might still qualify for a partial exclusion if you sold because of a job relocation, health issues, or certain unforeseen circumstances. The IRS prorates the $250,000/$500,000 based on the fraction of the two-year period you actually met. Military personnel get additional flexibility under the Uniformed Services Relief Act.
Divorced New Yorkers selling a shared home should coordinate carefully. The spouse who moved out can still count the time the other spouse lived there toward the use test, as long as the transfer was incident to divorce under IRC Section 1041. Getting this wrong means losing half the exclusion.