How to Avoid Capital Gains Tax on Real Estate in New York City

How New York City property owners can legally reduce or defer capital gains tax on a sale, including the primary-residence exclusion, basis planning, and 1031 exchanges.

Every owner selling appreciated New York City real estate asks some version of the same question before the closing date is even set: is there a legal way to avoid the capital gains tax entirely, or only ways to reduce and postpone it. The honest answer is that a small number of sellers can avoid it outright, most can shrink it through basis and timing decisions, and a large number of investment-property owners can defer it entirely through a 1031 exchange. Which category a seller falls into depends mainly on whether the property is a primary residence or held for investment, and how the sale is structured before the contract is signed.

The Only Real Way to Avoid the Tax Outright

Section 121 of the tax code lets an owner who has lived in a property as their primary residence for at least two of the five years before the sale exclude up to $250,000 of gain from federal tax, or $500,000 for a married couple filing jointly. In a city where a Brooklyn brownstone or a prewar Manhattan co-op can appreciate well past those thresholds, the exclusion often shelters only part of the gain, with the remainder taxed normally. Investment properties, second homes, and units that were never the owner's primary residence do not qualify for this exclusion at all, which is why it rarely helps the landlord selling a rental building.

Reducing the Taxable Gain Through Basis and Costs

Before any deferral strategy comes into play, the taxable gain itself can shrink through accurate accounting. Capital improvements made over the years of ownership, such as a gut renovation, a new roof, or a combined heating and cooling system replacement, add to the cost basis and reduce the gain when the improvements are documented with receipts and contracts. Selling costs, including broker commissions and New York's transfer taxes, are subtracted from the sale price before gain is calculated. Owners who kept sparse records during a long hold often leave real basis on the table simply because they cannot substantiate work that was actually done.

Deferring the Gain With a 1031 Exchange

For investment and business property, the most substantial lever is not avoidance but deferral: a 1031 exchange lets an owner sell a New York City investment property and roll the proceeds into a replacement property without recognizing the gain at the time of sale, as long as the exchange follows the identification and closing deadlines and the funds pass through a qualified intermediary rather than the seller's own account. This does not erase the tax; it pushes recognition into the future, and the deferred gain carries forward into the replacement property's basis. A seller who eventually sells without exchanging again will owe the deferred amount at that point, though many owners simply keep exchanging across a career and let the liability pass to heirs.

Why Timing and Holding Period Still Matter

A property held for more than one year qualifies for federal long-term capital gains rates, which are meaningfully lower than the short-term rates applied to a quick flip taxed as ordinary income. New York does not offer a separate lower rate for long-term gains at the state or city level, so the holding-period benefit is a federal one only, and a New York City resident's combined marginal exposure stays high regardless of how long the asset was held. Owners weighing a sale near the one-year mark should confirm the exact closing date against the purchase date before assuming the lower federal rate applies.

Common 1031 Exchange Questions

Can a New York City landlord use the primary-residence exclusion on a rental building?

No. The Section 121 exclusion only applies to a property used as the owner's primary residence for at least two of the five years before the sale. A property held exclusively as a rental does not qualify, regardless of how long it was owned.

Does refinancing before a sale reduce the capital gains tax owed?

No. Refinancing changes the debt on the property and can put cash in the owner's pocket, but it does not change the gain calculation, which is based on sale price minus adjusted basis and selling costs. Debt level has no direct effect on capital gains liability.

Is a 1031 exchange available for a New York City co-op apartment?

It depends on how the co-op interest is held and whether it is investment property. Co-op shares are personal property under a proprietary lease structure in most cases, which raises eligibility questions that should be reviewed with a qualified intermediary and tax advisor before assuming a straightforward exchange applies.

What records does an owner need to reduce gain through capital improvements?

Contracts, paid invoices, and permits for work that added value or extended the property's useful life, kept for the full ownership period. Routine repairs and maintenance generally do not qualify as basis-increasing improvements, so separating the two categories matters when the records are assembled.

Does New York City have its own separate capital gains tax?

New York City does not impose a distinct capital gains rate; gains are taxed as part of ordinary income at the state and city level, on top of federal capital gains tax. That combined exposure is a major reason deferral strategies get serious consideration among city sellers.

Ready to organize the exchange file?

Share the dates, property details, and open questions for your New York City exchange.

Start Exchange Review
(646) 974-9765