Capital Gains Tax on a Manhattan Apartment Sale: The Full Stack
How federal capital gains tax (0%/15%/20%), the 3.8% NIIT, NY State (4%–10.9%), and NYC resident income tax (3.078%–3.876%) stack on a Manhattan apartment sale. Cost basis, capital improvements, Section 121 exclusion, worked examples. Companion to the Capital Gains Tax Calculator.
Guides · Taxes & Closing Costs
Capital gains tax on a Manhattan apartment sale is not one tax — it's a stack of four. The federal long-term capital gains rate (0%, 15%, or 20% depending on your income). The Net Investment Income Tax (3.8% for higher earners). The New York State income tax (4% to 10.9%, no preferential rate for capital gains). And, if you're a New York City resident, the city add-on (3.078% to 3.876%). Stack them together and a high-income NYC seller can face an effective rate north of 35% on their taxable gain. Stack them against the Section 121 primary residence exclusion ($250,000 single, $500,000 married filing jointly) and a long-tenured primary-residence seller can pay zero. This piece walks through how the stack actually works, what counts as cost basis, what counts as a selling cost, and what most sellers get wrong before they sit down with a CPA.
Key takeaways:
- Capital gains tax is calculated on your gain, not your sale price. Gain = (sale price − selling costs) − (purchase price + acquisition costs + capital improvements). Three of those four components are things most sellers underestimate, and underestimating any of them inflates the tax you think you owe.
- NY State and NYC don't offer a preferential long-term capital gains rate. Unlike the federal system, which taxes long-term gains at 0%/15%/20%, New York treats the gain as ordinary income — which means the marginal NY State rate at the top of the bracket reaches 10.9% and the NYC resident add-on reaches 3.876%.
- The Section 121 exclusion is the single most consequential tax-planning lever for primary-residence sellers. If you've owned and lived in the apartment as your primary residence for at least 2 of the last 5 years, you can exclude up to $250,000 (single) or $500,000 (married filing jointly) of gain — meaning a primary-residence seller with $500K of gain and an MFJ filing pays zero capital gains tax.
The tax stack at a glance
For a NYC resident selling a Manhattan apartment that they've held long-term (more than one year), the tax stack on the taxable gain looks like this:
| Layer | Rate | Notes |
|---|---|---|
| Federal long-term capital gains | 0% / 15% / 20% | Depends on your income bracket; gain is "stacked on top" of ordinary income to determine which brackets apply |
| Net Investment Income Tax (NIIT) | 3.8% | Applies when MAGI exceeds $200,000 (single) or $250,000 (MFJ) — taxes the lesser of net investment income or the MAGI excess |
| NY State income tax | 4% – 10.9% | Marginal brackets; capital gains taxed as ordinary income |
| NYC resident income tax | 3.078% – 3.876% | NYC residents only; capital gains taxed as ordinary income |
The four layers do not coordinate. Each is calculated independently. The aggregate of the four is what you actually owe.
For short-term capital gains (apartments held one year or less), the federal preferential rate does not apply — the gain is taxed at your federal ordinary income tax rate, which ranges from 10% to 37% depending on your bracket. The other three layers (NIIT, NY State, NYC) apply the same way.
Cost basis: what you start with
Cost basis is the amount you have invested in the apartment for tax purposes. It is not simply the purchase price. Three components combine to produce your true basis:
Original purchase price. What you paid at the original closing. The contract price, not the asking price.
Acquisition costs. Closing costs you paid as the buyer that are capital in nature rather than deductible expenses. These include the buyer's portion of any transfer taxes (NYS transfer tax was paid by the seller, but if there was any buyer-paid component), title insurance premiums, attorney fees specifically related to the acquisition (not routine legal), survey fees, recording fees, and the mortgage recording tax. Importantly, NYC mortgage recording tax (1.8%-1.925% depending on loan size) is treated as an acquisition cost and adds to basis — for a buyer who financed, this is often the single largest line item adding to basis.
Capital improvements. Renovations and improvements that add to the apartment's value, prolong its useful life, or adapt it to new uses. This is the largest and most-underestimated component for most sellers. Capital improvements include:
- Kitchen renovations (full or partial)
- Bathroom renovations (full or partial)
- Replacement of HVAC systems, plumbing, electrical
- Installation of hardwood floors throughout
- Built-in cabinetry and millwork
- Window replacement
- Wall removal and floor plan modification (if structural)
- Additions to the apartment footprint (combining units, enclosing terraces where permissible)
- Significant lighting overhauls
- Custom storage build-outs
Capital improvements do not include routine repairs and maintenance. Painting, patching drywall, fixing a leaky faucet, replacing a broken appliance with an equivalent — these are repair expenses, not capital improvements, and they do not add to basis. The IRS distinction is roughly: an improvement extends the useful life or adds substantive value; a repair restores the existing condition.
The practical implication: keep documentation. Receipts, contracts, permits, before-and-after photos. The IRS substantiation requirement for basis adjustments is real, and the burden of proof falls on the taxpayer. For a long-held apartment that has been renovated multiple times across decades, basis substantiation is often the single most labor-intensive piece of the seller's tax-prep process.
Selling costs that reduce your gain
Capital gains tax is calculated on your amount realized — sale price minus selling costs — not on the gross sale price. The selling costs that reduce amount realized include:
Broker commission. Typically 5%-6% of sale price, split between the seller's broker and the buyer's broker.
NYC transfer tax. Paid by the seller. 1.0% on sales under $500,000; 1.425% on sales of $500,000 or more.
NY State transfer tax. Paid by the seller. 0.4% on residential sales under $3,000,000; 0.65% on residential sales of $3,000,000 or more. (The "mansion tax" is a separate buyer-paid tax and does not reduce the seller's amount realized.)
Co-op flip tax. For co-ops only. Rate and basis vary by building — typically 1%-3% of sale price, but some buildings charge a percentage of profit or a per-share calculation. Check the proprietary lease. Buildings where the flip tax is buyer-paid (rare but not unknown — 740 Park Avenue is a notable example) do not reduce the seller's amount realized; in that case the flip tax becomes a buyer-side closing cost.
Seller's attorney fees. Typically $3,000-$8,000 for a Manhattan transaction; higher for complex deals.
Other building-related fees. Move-out fees, processing fees, working capital contributions in some cases.
The total selling-cost stack typically runs 7%-9% of sale price for a co-op and 7%-10% of sale price for a condo. On a $3M sale, that's $210,000-$300,000 of selling costs reducing the gain before any tax is calculated.
The Section 121 exclusion (primary residence)
The single most consequential provision for primary-residence sellers is IRC Section 121, which allows the exclusion of up to $250,000 of capital gain (single) or $500,000 of capital gain (married filing jointly) from taxable income, subject to two tests:
Ownership test. You must have owned the apartment for at least 2 of the 5 years immediately before the sale. The 2 years do not need to be continuous.
Use test. You must have used the apartment as your principal residence for at least 2 of the 5 years immediately before the sale. Again, the 2 years do not need to be continuous.
Frequency limit. You can use the Section 121 exclusion only once every 2 years.
The ownership and use tests are independent — you can satisfy ownership before you satisfy use, or vice versa. For an MFJ couple, both spouses must satisfy the use test (only one needs to satisfy ownership) to claim the full $500,000 exclusion. If only one spouse satisfies use, the exclusion drops to the single $250,000.
For a primary-residence seller with substantial gain, the Section 121 exclusion can be the difference between owing $100,000+ in capital gains tax and owing zero. The structural implication for Manhattan: a seller who has owned and lived in their apartment for at least 2 of the last 5 years should always claim the exclusion — and a seller whose gain exceeds the exclusion limit pays tax only on the excess gain, not on the full gain.
Several edge cases warrant attention:
Partial-use scenarios. If you've used the apartment as a primary residence for part of your ownership period and as a rental or pied-à-terre for another part, the gain is allocated proportionally between qualified use and non-qualified use. Only the qualified-use portion is eligible for the exclusion.
Depreciation recapture. If you've ever claimed depreciation on the apartment (e.g., during a period when you rented it out), the depreciation recaptured at sale is taxed as ordinary income at federal rates up to 25%, regardless of the Section 121 exclusion. NY State and NYC tax the depreciation recapture at ordinary state and city rates.
Inherited basis. If you inherited the apartment, your basis is generally the fair market value at the decedent's date of death (the "stepped-up basis") rather than the decedent's original purchase price. For long-held family apartments, the stepped-up basis often eliminates most or all of the gain.
1031 like-kind exchanges. Available for investment properties (not primary residences). Allows deferral of capital gains tax by reinvesting sale proceeds into another investment property within strict timelines (45 days to identify, 180 days to close). Not generally available for the typical Manhattan primary-residence sale.
Holding period: long-term vs short-term
Your holding period determines which federal capital gains rate applies.
Long-term: held more than 1 year. Eligible for the preferential federal long-term capital gains rates (0%, 15%, 20% per IRC §1(h)). This is the typical case for a Manhattan apartment sale — most apartments are held for at least several years.
Short-term: held 1 year or less. Not eligible for the preferential rate. The gain is taxed at federal ordinary income tax rates (10% to 37% depending on your bracket). Short-term capital gains taxation effectively doubles or triples the federal tax exposure compared to long-term treatment.
The holding period starts the day after acquisition and ends on the date of sale. For inherited property, the holding period is automatically treated as long-term regardless of how long the heir has owned it.
For an investor or a flipper considering selling within the first year, the short-term rate creates substantial friction: a high-income seller can face a combined federal-state-city tax rate above 50% on a short-term gain. The structural implication is that even when market conditions favor a quick sale, the after-tax economics often favor holding past the one-year mark.
Federal long-term capital gains rates
For tax year 2025, the federal long-term capital gains brackets are:
| Filing status | 0% rate applies to taxable income up to | 15% rate applies up to | 20% rate applies above |
|---|---|---|---|
| Single | $48,350 | $533,400 | $533,400 |
| Married filing jointly | $96,700 | $600,050 | $600,050 |
| Head of household | $64,750 | $566,700 | $566,700 |
| Married filing separately | $48,350 | $300,000 | $300,000 |
The brackets are inflation-adjusted annually; check the IRS published tables for the year of your sale.
The brackets work by "stacking" the gain on top of your ordinary income. If you're a single filer with $400,000 of ordinary income and a $300,000 long-term capital gain, the gain is treated as if it sits in the $400,000-$700,000 income range. The first $133,400 of gain (up to the $533,400 threshold) is taxed at 15%; the remaining $166,600 is taxed at 20%.
For high-income earners — household income above the 20% bracket threshold — the federal capital gains rate is 20% on the entire long-term gain. For middle-income earners, the rate is typically 15%. For low-income sellers (e.g., a retiree with limited current income) selling an appreciated apartment, the gain can fall partially or entirely within the 0% bracket — a meaningful planning opportunity in selected scenarios.
The Net Investment Income Tax (NIIT)
Layered on top of the federal capital gains rate is the 3.8% Net Investment Income Tax, established by IRC §1411 as part of the Affordable Care Act. The NIIT applies to higher-income taxpayers on their net investment income.
Who is subject. Single filers with modified adjusted gross income (MAGI) above $200,000. Married filing jointly with MAGI above $250,000. Head of household above $200,000. Married filing separately above $125,000. These thresholds are not inflation-adjusted and have been fixed since the NIIT was enacted in 2013 — meaning more taxpayers cross the threshold every year as nominal incomes rise.
What gets taxed. The 3.8% applies to the lesser of (a) your net investment income or (b) the amount by which your MAGI exceeds the threshold. Capital gains from an apartment sale count as net investment income.
Practical application. For most Manhattan sellers with substantial capital gains, the NIIT applies in full to the gain — the gain itself pushes MAGI well above the threshold, and the 3.8% applies to the entire taxable gain. For lower-income sellers near the threshold, only the portion of the gain that pushes MAGI above the threshold is subject to the NIIT.
The NIIT effectively raises the top federal capital gains rate from 20% to 23.8% for high-income sellers. It's not a separately-paid tax — it's a surcharge filed with the federal income tax return on Form 8960.
New York State income tax on the gain
New York State does not offer a preferential long-term capital gains rate. Capital gains are taxed as ordinary income at the state's marginal income tax rates. The 2025 NY State personal income tax brackets for a single filer:
| Taxable income | Marginal rate |
|---|---|
| Up to $8,500 | 4.00% |
| $8,500 – $11,700 | 4.50% |
| $11,700 – $13,900 | 5.25% |
| $13,900 – $80,650 | 5.50% |
| $80,650 – $215,400 | 6.00% |
| $215,400 – $1,077,550 | 6.85% |
| $1,077,550 – $5,000,000 | 9.65% |
| $5,000,000 – $25,000,000 | 10.30% |
| Over $25,000,000 | 10.90% |
The brackets for MFJ filers are approximately double the single brackets at the lower end and identical at the top. (HoH brackets fall between single and MFJ.)
For a high-income Manhattan seller, the marginal NY State rate on the gain is typically 6.85% (income $215K-$1.08M), 9.65% (income $1.08M-$5M), or 10.30% (income $5M-$25M). At the very top end (income above $25M), the rate is 10.90% — among the highest state income tax rates in the United States.
The structural implication: NY State adds substantively to the total tax burden on Manhattan capital gains. A seller in the 6.85% NY State bracket pays the equivalent of an additional 6.85% on the gain on top of the federal 15% or 20% LTCG rate and the 3.8% NIIT. The combined effective rate before NYC tax is 25.65%-28.65% depending on bracket.
NYC resident income tax on the gain
If you are a New York City resident for tax purposes, you also pay NYC personal income tax on the gain. NYC, like NY State, treats capital gains as ordinary income. The 2025 NYC resident income tax brackets for a single filer:
| Taxable income | Marginal rate |
|---|---|
| Up to $12,000 | 3.078% |
| $12,000 – $25,000 | 3.762% |
| $25,000 – $50,000 | 3.819% |
| Over $50,000 | 3.876% |
For practical purposes, any Manhattan seller with substantial income is in the top NYC bracket of 3.876%. That rate applies to the full taxable gain.
The combined NY State + NYC marginal rate at the top reaches approximately 14.78% (10.9% state + 3.876% city). For a high-income NYC resident selling a substantial apartment, the combined federal + NIIT + NY State + NYC effective rate on the taxable gain can reach approximately 38%-39%.
Important: residency rules. "NYC resident" for tax purposes is determined by domicile + days-present tests, not just by where you own property. A seller who owns a Manhattan apartment but is not a NYC resident for tax purposes (e.g., a Florida-domiciled seller selling a New York pied-à-terre) pays NY State income tax on the New York-sourced capital gain but does not pay NYC tax. The state-vs-city residency distinction can have substantial tax consequences and is worth getting a CPA opinion on before assuming.
Worked examples
Example 1: MFJ primary-residence seller, $500K gain, exclusion eliminates tax.
A married couple purchased a 2BR co-op for $1,200,000 in 2015. They lived in it as their primary residence the entire time. They sell in 2025 for $2,000,000. Selling costs (broker 6%, transfer taxes, attorney, flip tax) total $200,000.
- Amount realized: $2,000,000 − $200,000 = $1,800,000
- Capital improvements over 10 years: $100,000 (documented)
- Acquisition costs at original purchase: $25,000
- Cost basis: $1,200,000 + $25,000 + $100,000 = $1,325,000
- Capital gain: $1,800,000 − $1,325,000 = $475,000
- Section 121 exclusion: $500,000 (MFJ, primary residence)
- Taxable gain: $0
Federal tax: $0. NIIT: $0. NY State tax: $0. NYC tax: $0. Total tax exposure on the gain: $0.
This is the structural payoff of the Section 121 exclusion — a primary-residence MFJ couple whose gain falls within the $500,000 exclusion limit pays nothing.
Example 2: MFJ seller, $1.5M gain, exclusion partially shelters.
Same couple, but they sell for $3,200,000 instead of $2,000,000. Same selling costs (proportionally higher transfer taxes; assume $360,000 total).
- Amount realized: $3,200,000 − $360,000 = $2,840,000
- Cost basis: $1,325,000 (same as Example 1)
- Capital gain: $2,840,000 − $1,325,000 = $1,515,000
- Section 121 exclusion: $500,000
- Taxable gain: $1,015,000
Now assume household ordinary income of $400,000. The couple is in the 15% federal LTCG bracket (income + gain stacks to $1,415,000, mostly within the 15% band up to $600,050 MFJ threshold — actually crosses into 20% bracket). Let's calculate:
- Federal LTCG: 15% on the portion up to $600,050 stack threshold ($200,050) + 20% on the remainder ($814,950) = $30,008 + $162,990 = $192,998
- NIIT 3.8% on taxable gain: $38,570
- NY State: marginal blend (gain stacks $400K to $1.415M, mostly in 6.85% bracket): ~$70,000
- NYC: 3.876% on full $1,015,000 (already at top bracket): $39,341
- Total tax: ~$340,000-$345,000 (~33-34% effective rate on gain)
The Section 121 exclusion shelters $500,000 of gain (saving roughly $175,000-$190,000 in combined tax) but the seller still pays substantial tax on the remaining $1,015,000.
Example 3: Single investor, no Section 121, short-term gain.
A single investor purchased a 1BR condo for $800,000 in March 2024 as a pied-à-terre. They sell in November 2024 (held 8 months) for $950,000. Selling costs $80,000.
- Amount realized: $950,000 − $80,000 = $870,000
- Cost basis: $800,000 + $15,000 acquisition costs + $0 improvements = $815,000
- Capital gain: $870,000 − $815,000 = $55,000
- Section 121 exclusion: not eligible (not primary residence)
- Taxable gain: $55,000
- Holding period: short-term (held < 1 year)
- Federal: taxed at ordinary income rates. Assume $400K ordinary income → top of 35% bracket. Tax on $55K: ~$19,250
- NIIT: 3.8% × $55,000 = $2,090
- NY State: 6.85% × $55,000 = $3,768
- NYC: 3.876% × $55,000 = $2,132
- Total tax: ~$27,000 (~49% effective rate on gain)
The short-term holding period roughly doubles the federal tax compared to a long-term treatment. The structural lesson: investors should hold for at least 13 months to qualify for long-term treatment, unless there's a compelling non-tax reason to sell earlier.
Special situations
Depreciation recapture. If the apartment was ever depreciated (typically because it was rented out for a period), the accumulated depreciation must be "recaptured" at sale. Recaptured depreciation is taxed at federal ordinary income rates up to 25%, regardless of long-term holding period treatment. NY State and NYC tax it at ordinary rates. This is a substantial tax leak for owners who claimed depreciation during a rental period and may favor consulting a CPA before claiming depreciation in the first place.
1031 like-kind exchanges. For investment property only (not primary residences or pieds-à-terre that haven't been actively rented). A 1031 exchange defers — does not eliminate — capital gains tax by reinvesting sale proceeds into "like-kind" replacement investment property. Strict timelines: 45 days to identify replacement property, 180 days to close. The deferred gain rolls into the replacement property's basis and is taxed eventually when the replacement is sold (unless deferred again). For investors with substantial unrealized gains, 1031 is the single most consequential tax-planning tool. For primary-residence sellers, not available.
Foreign sellers. Non-resident alien sellers and foreign-entity sellers face the additional layer of FIRPTA (Foreign Investment in Real Property Tax Act), which requires the buyer to withhold up to 15% of the gross sale price at closing. See the FIRPTA Foreign Seller Withholding guide.
Partial primary residence. If you've used the apartment partially as primary residence and partially as something else (a rental, a home office that produced depreciation, etc.), the Section 121 exclusion is allocated proportionally. Worth a careful CPA review.
Mortgage payoff is not relevant to capital gains tax. A common misconception: capital gains tax is calculated on the gain, not on the cash you receive at closing. If you sell a $3M apartment with a $1.5M mortgage to pay off, the tax is calculated on (sale price minus selling costs minus basis), not on the $1.5M of net cash you walk away with. The mortgage is a financing structure; it doesn't affect the tax calculation.
What this means for sellers
The biggest planning lever is basis documentation. Most sellers under-document their capital improvements and pay tax on a higher gain than they need to. Before listing, pull together every receipt, contract, permit, and renovation invoice from the years you've owned the apartment. Each documented improvement reduces taxable gain dollar-for-dollar at your combined marginal rate.
The Section 121 exclusion is worth structuring around. If you're approaching the 2-year primary-residence threshold and considering a sale, the after-tax economics of waiting may be substantial. A single seller approaching the 2-of-5-year threshold with a $250,000 gain shelter on the table is looking at $75,000-$100,000 of tax savings by waiting until the threshold is met.
Investors should plan around the one-year holding mark. Short-term capital gains tax doubles or triples the federal exposure. For an investor with a holding period approaching one year, holding past the threshold is often worth even modest market downside risk.
NY State + NYC adds roughly 10%-14% to the federal capital gains burden. The total stack means a high-income NYC resident faces an effective rate of approximately 35%-39% on a long-term taxable gain. Plan your post-tax net accordingly — the rough rule of thumb is to budget 35% of the taxable (after Section 121) gain for tax.
The Roebling Team coordinates with your CPA, not in place of your CPA. We can model the after-tax outcome of a sale using our Capital Gains Tax Calculator and help you understand where the levers sit, but the actual tax filing requires a CPA who knows your full financial picture. We work with several Manhattan-focused CPAs and can refer you to one if you don't already have a relationship.
Related resources
- NYC Capital Gains Tax Calculator — model your specific scenario with all four tax layers
- Tax Implications of Selling Your Manhattan Apartment — the broader tax framework beyond capital gains
- NYC Closing Costs: The Full Stack — the new pillar guide on the full closing-cost picture for both sides
- FIRPTA: Foreign Seller Withholding — for non-resident-alien and foreign-entity sellers
- Manhattan Seller Closing Costs — the seller-side closing-cost breakdown
- Manhattan Apartment Selling Guide — the full selling-side pillar guide
This guide reflects 2025 IRS, NY State, and NYC published tax brackets and is intended as general educational reference. Real-world tax exposure depends on specific basis documentation, residency determination, prior depreciation, AMT exposure, and dozens of other variables that require a CPA's review. The Roebling Team at Compass does not provide tax advice and recommends consulting a CPA before making transaction decisions on tax estimates. © 2026 The Roebling Team at Compass.
Part of: Closing Costs in NYC: The Complete Buyer and Seller Guide