Search

Leave a Message

Thank you for your message. We will be in touch with you shortly.

Explore Our Properties
Background Image

Capital Gains Tax Basics When Selling a NYC Apartment | Daniel Blatman

Daniel Blatman  |  August 25, 2026

Capital Gains Tax Basics When Selling a NYC Apartment

Quick Answer: Do you pay capital gains tax when selling a NYC apartment? In most cases, only on the profit above the IRS primary residence exclusion, which shelters up to $250,000 of gain for a single filer and up to $500,000 for a married couple filing jointly when you have owned and used the home as your main residence for at least two of the last five years. Gain above that is generally taxable, so your tax basis and your records matter as much as your sale price. This is educational information, not tax advice, so confirm your situation with a tax professional.

What Capital Gains Tax Is on a Home Sale

Capital gains tax applies to the profit you make when you sell an asset for more than you paid for it, and a home is no exception. The taxable gain is not your sale price; it is your sale price minus your selling costs and minus your tax basis, which is essentially what you have invested in the home. For many long-time NYC owners, the number that matters is not the headline sale price but how much of the gain, if any, falls outside the exclusion.

The Primary Residence Exclusion

The most important rule for most sellers is the primary residence exclusion. As the IRS explains for the sale of your main home, if the home was your main residence and you meet the ownership and use tests, you can generally exclude up to $250,000 of gain as a single filer, or up to $500,000 as a married couple filing jointly. The core requirement is that you owned and lived in the home as your main residence for at least two of the five years before the sale. A pied-a-terre, an investment unit, or a home you have not lived in long enough generally will not qualify, which is why the distinction between a primary residence and a second home matters so much at sale.

How to Calculate Your Tax Basis and Gain

Your tax basis is what protects you from tax on paper appreciation, and it is where good records pay off. In simple terms, your basis starts with what you paid for the apartment, plus certain purchase costs, plus the cost of capital improvements you made over the years, meaning permanent upgrades rather than routine repairs. Renovations, a new kitchen, or a combined-unit build-out can raise your basis and shrink your taxable gain. The practical takeaway is to keep documentation of every capital improvement for as long as you own the home, because a higher basis can be the difference between a fully excluded sale and a taxable one.

How NYC and NYS Seller Taxes Fit In

Capital gains tax is separate from the transfer taxes you pay as a seller, and it helps to keep the two straight. In New York, the seller generally pays both state and city real estate transfer taxes, which the New York State Department of Taxation and Finance explains, and these are calculated on the sale price regardless of your gain. A co-op may also charge a flip tax, which is a building charge rather than a government tax. None of these reduce your capital gain, so a complete picture of your net requires accounting for transfer taxes, any flip tax, and capital gains together.

A Few NYC Wrinkles Worth Knowing

Two situations deserve extra attention. Sellers who are not New York State residents may be subject to an estimated tax payment at closing on the gain, so non-resident owners should raise this with their attorney and accountant early. And owners who converted a former primary residence into a rental, or vice versa, can face more complex calculations involving depreciation and partial exclusions. These are exactly the cases where professional guidance saves money, because the general rules have important exceptions.

The Due-Diligence Callout: Keep Your Records

The single most valuable thing a homeowner can do for a future sale is keep clean records of purchase costs and every capital improvement, since those raise your basis and can move a sale from taxable to fully excluded. Confirm your primary-residence status against the two-of-five-year test before you list, and model your full net, including transfer taxes and any flip tax, alongside your potential capital gains. Because everyone's tax situation is different and the rules have exceptions, treat this as a starting framework and confirm the specifics with a qualified tax professional before you rely on any number.

FAQ

Do you pay capital gains tax when selling your primary residence in NYC? Generally only on gain above the exclusion. If the apartment was your main residence for at least two of the last five years, you can usually exclude up to $250,000 of gain as a single filer or $500,000 as a married couple filing jointly, with gain above that amount typically taxable.

What is the primary residence exclusion? It is an IRS provision that lets qualifying homeowners exclude a set amount of gain from the sale of their main home, up to $250,000 for single filers and $500,000 for married couples filing jointly, subject to ownership and use tests.

How do you calculate the gain on an apartment sale? Take your sale price, subtract selling costs, and subtract your tax basis, which is your purchase price plus certain purchase costs plus the cost of capital improvements. The result is your gain, against which the exclusion may then apply.

Are transfer taxes the same as capital gains tax? No. New York state and city transfer taxes are paid by the seller on the sale price regardless of profit, while capital gains tax applies only to your gain. A co-op flip tax is a separate building charge, not a government tax.

Does a pied-a-terre or investment apartment qualify for the exclusion? Usually not, because the exclusion requires the home to have been your main residence for at least two of the last five years. Second homes and investment units generally do not meet that test, though other rules may apply.

If you are planning a sale, our guidance for Manhattan sellers covers pricing and timing, our home valuation tool helps you estimate your number, and you can learn more about Daniel Blatman's NYC real estate expertise. This article is educational and not tax advice; consult a qualified tax professional about your specific situation.


Follow Us On Instagram