Selling & Taxes
Capital Gains When Selling a House
What triggers capital gains tax when selling a house in New York, how the primary residence exclusion works, and when a former rental changes the math.
Most New York homeowners selling a primary residence never think about capital gains tax, and for a straightforward sale of a house that's been lived in the whole time, that's often the right instinct. The exclusion built into federal law covers a large share of typical gains outright. The cases that get complicated are the ones involving a rental period, an inherited house, or a sale price high enough that the exclusion doesn't cover the whole gain, and downstate New York property values push more sellers into that territory than the exclusion amounts were originally designed for.
What the Primary Residence Exclusion Actually Covers
A single filer can exclude up to two hundred fifty thousand dollars of gain, and a married couple filing jointly up to five hundred thousand, on the sale of a home that meets the ownership and use tests, generally owned and lived in as a main home for at least two of the five years before the sale. Gain above those thresholds is taxable at standard capital gains rates federally, and as ordinary income at the New York state level.
In parts of Long Island, Westchester, and the outer boroughs where home values have appreciated substantially, a homeowner who bought decades ago can find that the gain on sale exceeds the exclusion amount even for a fairly ordinary single-family house, which means part of the sale becomes taxable even though the home was never used as a rental or investment property.
When a Former Rental Period Changes the Calculation
A house that was rented out for a period before being converted back to a primary residence, or sold shortly after a tenant moved out, doesn't get the full benefit of the exclusion on the portion of the gain attributable to depreciation claimed during the rental period. That portion is subject to depreciation recapture regardless of how the rest of the sale is treated. Owners who converted a two-family Queens house between rental and owner-occupied use over the years should expect this allocation to come up when a tax preparer works through the sale.
Why an Inherited or Second Home Doesn't Get the Same Treatment
The primary residence exclusion only applies to a home that meets the ownership and use tests for the seller personally. A house inherited from a parent, or a second home used only occasionally, generally doesn't qualify even if the seller genuinely considers it home in a personal sense. Inherited property does typically receive a stepped-up basis to fair market value at the date of death, which can significantly reduce the taxable gain compared to the original purchase price, but that's a separate mechanism from the exclusion and works differently.
Options When the Gain Exceeds What the Exclusion Covers
For a sale where the exclusion doesn't cover the full gain, or doesn't apply at all because the property wasn't a qualifying primary residence, a 1031 exchange is only available if the house was held for investment or business use, not as a personal residence. A property that was genuinely a primary home the whole time doesn't qualify for exchange treatment; a property that spent meaningful time as a rental before the sale sometimes does, depending on the facts, and this is a determination worth making with a tax advisor before assuming either way.
Frequently Asked Questions
Do I have to pay New York state tax on home sale gains that are excluded federally?
New York generally follows the federal primary residence exclusion, so gain excluded federally is also excluded at the state level. Gain above the federal exclusion threshold is taxable as ordinary income on the New York return.
How is the two-year ownership and use test counted if I lived in the house on and off?
The two years don't need to be continuous. They need to total at least twenty-four months out of the sixty months before the sale, which can include separate periods of residence if the timeline works out that way.
Can I use the home sale exclusion on a house I only partly used as a rental?
Generally yes for the portion that was your primary residence, but the portion of gain attributable to depreciation claimed during any rental period is still subject to recapture and doesn't qualify for the exclusion.
Does an inherited New York house get a stepped-up basis?
Typically yes, the basis usually resets to fair market value as of the date of death, which often significantly reduces the taxable gain compared to what the original owner paid, though this should be confirmed with a tax advisor based on how the estate was handled.
Can a house that was never rented qualify for a 1031 exchange?
No, a 1031 exchange requires the relinquished property to have been held for investment or business use. A house used exclusively as a personal residence does not qualify, regardless of how much it has appreciated.
Educational content only. Not tax, legal, or investment advice. A 1031 exchange defers income tax on qualifying real property and does not remove transfer or documentary taxes.
Ready to Get Started?
Contact us to discuss how a 1031 exchange could apply to your situation in New York, NY.
Contact UsRelated Guides
In This Guide
- What the Primary Residence Exclusion Actually Covers
- When a Former Rental Period Changes the Calculation
- Why an Inherited or Second Home Doesn't Get the Same Treatment
- Options When the Gain Exceeds What the Exclusion Covers
