NEW YORK CITY

How Long After Selling a House Do You Have to Buy to Avoid Tax in New York?

Short answer: there’s no federal requirement to buy another home within any specific timeframe to avoid capital gains tax on the sale. The Section 121 exclusion doesn’t care whether you purchase a replacement property at all. But if you’re dealing with investment property, 1031 exchange deadlines are rigid. And in New York, the transfer taxes alone can add a surprise five-figure line item to your closing costs.

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.

Frequently Asked Questions

Do I have to buy another house within two years to avoid capital gains tax?
No. The Section 121 exclusion has no reinvestment requirement. You can sell your primary residence, exclude up to $250,000 ($500,000 married filing jointly) in gain, and never buy another home. The old rollover rule was eliminated in 1997.
How much capital gains tax will I owe on a home sale in New York?
If your gain is within the Section 121 exclusion limits, zero. Gains above the exclusion are taxed at federal long-term capital gains rates (15% or 20% for most sellers), plus the 3.8% NIIT, plus New York State income tax (up to 10.9%) and NYC income tax (up to 3.876%). A $500,000 excess gain for a high-income NYC resident can produce a total tax bill over $140,000.
What are the 1031 exchange deadlines for investment property in New York?
You have 45 calendar days from the sale closing to identify replacement properties and 180 calendar days to close on the replacement. These deadlines are absolute —. No extensions are available. New York recognizes 1031 exchanges for state tax purposes.
Does New York have a transfer tax when selling a home?
Yes. New York State charges 0.4% (0.65% over $3 million). In New York City, there’s an additional 1% to 1.425% city transfer tax. On a $1.5 million sale in Manhattan, combined transfer taxes for the seller run about $27,750.
Can I exclude the gain if I rented out my New York home for a few years?
Possibly. You need to have lived in the home as your primary residence for at least two of the five years before selling. You can rent it out during the other years and still qualify, though any depreciation claimed during rental periods will be recaptured and taxed at 25%.
What happens if I sell my NYC home at a loss?
You cannot deduct a loss on the sale of a personal residence. If the property was used partly for business or rental, the portion attributable to that use may generate a deductible loss, but the personal-use portion is nondeductible.
Contact Us