HomeHelpful Guides › How to Avoid Capital Gains Tax
TAX STRATEGY GUIDE

How to Avoid Capital Gains Tax (Legally) in 2025

There’s no magic button that makes a profit on a sale tax-free. But there are real, legal ways to learn how to avoid capital gains tax or push it years down the road, and most people who overpay simply never knew the rules existed. The catch for anyone in New York: the IRS gives long-term gains a discount, and New York State does not. That single fact changes the math on almost every strategy below.

Long-Term vs Short-Term: The Holding Period Does the Heavy Lifting

The biggest lever you control costs nothing and requires no special account. Hold an asset for more than one year before you sell it, and the gain qualifies for long-term capital gains rates. Sell it at 365 days or fewer, and the profit is a short-term gain taxed as ordinary income, which for a high earner can mean the difference between 20% and 37% at the federal level.

For 2025, the federal long-term rates are 0%, 15%, or 20% depending on your taxable income. The IRS Topic 409 brackets put the 0% rate up to $48,350 of taxable income for single filers and $96,700 for married filing jointly. The 15% rate runs up through $533,400 single / $600,050 joint, and 20% applies above those thresholds. Short-term gains get none of that. They stack onto your wages and ride your ordinary 2025 federal tax bracket.

The holding-period clock starts the day after you acquire the asset and ends on the day you sell. One day short of a year and you forfeit the preferential rate entirely. We see this every year: someone sells a stock at month eleven to lock in a gain, then learns at filing time that waiting four more weeks would have cut the tax bill nearly in half.

The New York Problem: No Preferential Rate at All

Here’s the line nobody mentions until the bill arrives. New York State taxes capital gains as ordinary income. There is no separate, lower rate for long-term gains the way there is federally. Whether you held the asset for a decade or a week, New York applies your regular state rate, which tops out at 10.9% for the highest earners under the New York State tax tables.

Live in New York City and it gets steeper. The city layers its own resident income tax of up to roughly 3.876% on top of the state rate. So a Manhattan resident in the top brackets can face a combined state-plus-city rate near 14.8% on a gain that the federal government taxes at 20%. The holding period still matters enormously for the federal portion, but it does nothing for your New York liability. Strategy that ignores the state side leaves money on the table.

How to Avoid Capital Gains Tax on a Home Sale: The $500,000 Exclusion

If you’ve owned and lived in your home as your main residence for at least two of the last five years, Section 121 lets you exclude up to $250,000 of gain if you’re single and up to $500,000 if you’re married filing jointly. This is the single largest tax break most people will ever use, and it resets roughly every two years. The full rules sit in IRS Topic 701 and Publication 523.

The two-year tests are separate. You must have owned the place for two of the past five years and used it as your main home for two of the past five years, but those periods don’t have to overlap. Gain above the exclusion is still a long-term capital gain if you held the home over a year. Keep every receipt for improvements, because a new roof or a kitchen renovation adds to your basis and shrinks the taxable gain dollar for dollar.

Tax-Loss Harvesting, Section 1031, and Opportunity Zones

When some investments are down, you can sell them to realize a loss and use it to offset gains elsewhere. Losses first cancel gains of the same type, then up to $3,000 of net loss can offset ordinary income each year, with the rest carried forward indefinitely. The trap is the wash sale rule: buy the same or a substantially identical security within 30 days before or after the sale and the IRS disallows the loss. Read the mechanics in IRS Publication 550.

For real estate held for investment, a Section 1031 like-kind exchange lets you defer the entire gain by rolling the proceeds into another investment property within strict deadlines: 45 days to identify the replacement and 180 days to close, per the Form 8824 instructions. It defers, it doesn’t erase. Qualified Opportunity Zone funds are the other deferral route, letting you reinvest a gain and defer it while the new investment grows, with the IRS Opportunity Zones program setting the terms.

Step-Up Basis, Charitable Gifting, and Harvesting in the 0% Bracket

One of the quietest advantages in the code: when someone inherits an appreciated asset, its basis generally resets to fair market value at the date of death. Decades of gain can disappear for the heirs. That’s why holding certain assets until death, rather than selling during retirement, is a real planning conversation for higher-net-worth families. The basis rules live in IRS Topic 703.

Donating appreciated stock you’ve held over a year to a qualified charity is often smarter than donating cash. You skip the capital gains tax on the appreciation and may deduct the full fair market value, subject to AGI limits in Publication 526. And if your income dips in a given year, gain-harvesting inside the 0% federal bracket lets you sell appreciated assets and realize gains at no federal tax, then rebuy at a higher basis. Whether any of these fits depends on your full picture, which is exactly the kind of multi-year modeling our tax strategy consulting team builds out.

This guide is general information, not tax or legal advice. Capital gains planning turns on facts specific to you, so consult a licensed CPA about your own situation before acting.

Frequently Asked Questions

How can I avoid capital gains tax when I sell my house in New York?

The first thing to know is that the federal government hands you a large exclusion specifically for your home, and learning how to avoid capital gains tax on a primary residence starts there. Under Section 121, if you’ve owned the home and used it as your main residence for at least two of the five years before the sale, you can exclude up to $250,000 of gain as a single filer or up to $500,000 if you’re married filing jointly. The exact rules, including the ownership test and the use test, are spelled out in IRS Topic 701 and at length in Publication 523. This exclusion is the single biggest reason most homeowners pay no capital gains tax at all when they sell.

Walk through a concrete example. Say you and your spouse bought a brownstone in Brooklyn for $700,000 in 2014 and sell it in 2025 for $1,350,000. Your raw gain looks like $650,000. But you also spent $90,000 over the years on a new kitchen, a finished basement, and a roof replacement, all of which add to your cost basis. Your adjusted basis becomes $790,000, so your actual gain is $560,000. Apply the $500,000 married exclusion and only $60,000 is taxable. That $60,000, because you held the home over a year, is a long-term capital gain federally, likely taxed at 15% for a couple in the middle brackets, which is about $9,000 of federal tax instead of the $84,000 you’d have faced on the full gain at that rate.

New York is where the exclusion conversation gets less generous, and this is the part that surprises people. New York State does not offer its own version of the home sale exclusion in the way you might hope, and it taxes the taxable portion of your gain as ordinary income under the New York State tax tables. New York generally conforms to the federal exclusion as a starting point for what flows into your state return, so the $500,000 you excluded federally is also excluded from your New York taxable income. But the leftover $60,000 in our example gets taxed at your ordinary New York rate, and if you live in New York City, the resident city income tax stacks on top of that. So a strategy built only around the federal numbers underestimates the real cost of selling in the five boroughs.

A few moves tighten the outcome. Keep careful records of every capital improvement, because each dollar of documented improvement is a dollar less of taxable gain, and the IRS expects you to substantiate basis if asked. Time the sale so the gain that exceeds the exclusion lands in a year when your other income is lower, which can drop the federal rate from 20% to 15% or even 0%. If the home was ever a rental, watch out for depreciation recapture, which is taxed separately and is not covered by the Section 121 exclusion. And if you’re selling a home that’s been partly rented or used for business, only the residential portion qualifies for the full exclusion.

The common mistake we see is treating the two-of-five-years test as flexible. It isn’t. If you move out and rent the place for three years before selling, you can fall outside the use test and lose the entire exclusion. Another frequent error is forgetting that the exclusion can generally only be claimed once every two years, so flipping homes in quick succession disqualifies you. People also forget that a surviving spouse can sometimes still claim the full $500,000 if the sale happens within two years of the spouse’s death, a provision worth knowing during an already difficult time.

The other lever on a home sale is depreciation recapture, and it surprises owners who once rented the property out. If you claimed depreciation deductions during any period the home was a rental, the IRS recaptures that depreciation at a maximum 25% rate when you sell, and the Section 121 exclusion does not shield it. Suppose you rented the Brooklyn brownstone for three years before moving back in and claimed $40,000 of depreciation. On sale, that $40,000 is taxed as unrecaptured Section 1250 gain regardless of your exclusion, adding up to $10,000 of federal tax, plus New York’s ordinary-income tax on the same amount. The details are in Publication 523, and missing this recapture is one of the most expensive home-sale filing errors we correct on amended returns. It’s also a reason the order of events, renting then living versus living then renting, changes your tax materially, and why this belongs in our individual tax return review before you sell.

One more way people learn how to avoid capital gains tax on a residence is by understanding the partial exclusion. If you sell before hitting the two-year mark because of a job relocation, a health issue, or another unforeseen circumstance the IRS recognizes, you may still claim a prorated slice of the $250,000 or $500,000 exclusion. A move 12 months in, for example, can qualify for half the exclusion, which on a married couple’s sale is still $250,000 of gain shielded from federal tax. The qualifying events and the proration math are spelled out in Publication 523, and getting the calculation right is one of the more common places a self-prepared return goes wrong. This partial exclusion is also why a forced early sale in New York isn’t the disaster it first looks like; you may shelter far more gain than you expected, even though New York City’s resident tax still applies to whatever spills past the federal exclusion.

If you’re planning a home sale in the next year or two, the smart move is to run the numbers before you list, not after you’ve signed a contract. Our tax strategy consulting team models the federal exclusion, the New York and city portions, and any depreciation recapture together so you know your real after-tax proceeds. Going forward, expect the IRS to keep the $250,000 and $500,000 figures unindexed, meaning that as home values in New York climb, more sellers will see gains spill past the exclusion and into taxable territory, which makes basis tracking and timing more valuable every year.

What is the difference between short-term and long-term capital gains tax rates?

The holding period is the cleanest, cheapest way to reduce what you owe, and understanding it is central to how to avoid capital gains tax at the higher ordinary rates. Hold a capital asset for more than one year before selling and the profit is a long-term capital gain, taxed at the preferential federal rates of 0%, 15%, or 20%. Sell at one year or less and it’s a short-term gain, taxed at your ordinary income rate, which for 2025 can reach 37% federally. The rate thresholds for the long-term brackets are published in IRS Topic 409, and the ordinary brackets that short-term gains follow are in the annual inflation adjustment guidance.

The numbers make the gap obvious. For 2025, the 0% long-term rate applies to taxable income up to $48,350 for single filers and $96,700 for married filing jointly. The 15% rate covers most middle and upper-middle earners, running up to $533,400 single and $600,050 joint. Above that, the 20% rate kicks in. A short-term gain, by contrast, simply piles onto your wages and salary and is taxed at whatever your top ordinary bracket is, which you can check against your 2025 federal tax bracket.

Here’s a worked example. Imagine you bought 1,000 shares of a tech stock at $40 in March 2024 and they’re now worth $90 in early 2025, a $50,000 gain. If you sell in February 2025, you’ve held the shares about eleven months, so the entire $50,000 is a short-term gain. For a single filer in the 32% bracket, that’s $16,000 in federal tax. Wait until April 2025, crossing the one-year mark, and the same $50,000 becomes a long-term gain taxed at 15%, which is $7,500. Patience worth four weeks saved $8,500 in federal tax alone. That’s the holding period doing the heavy lifting.

The holding-period clock has precise rules that trip people up. It starts the day after you acquire the asset, not the day you buy it, and it ends on the trade date you sell, not the settlement date. For inherited assets, the holding period is automatically treated as long-term regardless of how long you actually held it. For gifted assets, you generally inherit the giver’s holding period and basis. And for assets bought in multiple lots, each lot has its own clock, which means specific-share identification at sale can let you sell the long-term lots first and leave the short-term lots to season.

Now layer in New York, because the holding period only helps the federal side. New York State taxes both short-term and long-term capital gains at the same ordinary rate, with no preferential treatment, under the New York State tax tables. So while crossing the one-year mark cuts your federal rate, it does nothing for your New York or New York City tax. In our $50,000 example, the New York tax is roughly the same whether the gain is short-term or long-term. This is the counterintuitive truth for New Yorkers: the timing strategy that’s so powerful federally is half as powerful here because the state ignores it entirely.

The common mistake is selling just before the one-year line to lock in a gain during a strong market, then discovering the short-term rate erased much of the advantage. Another error is the 3.8% net investment income tax under the NIIT rules, which applies on top of the capital gains rate for higher earners and is easy to forget when you estimate your tax. People also misread the brackets as marginal-only, not realizing capital gains stack on top of ordinary income, so a large gain can push part of itself from the 15% band into the 20% band.

Watch the net investment income tax as well, because it quietly raises the real cost of a capital gain for higher earners. The 3.8% surtax under the NIIT rules applies to investment income, including capital gains, once your modified adjusted gross income crosses $200,000 single or $250,000 married filing jointly. So a long-term gain you think is taxed at 15% can effectively be taxed at 18.8%, and a 20% gain at 23.8%, before New York even gets its share. Knowing where that threshold sits lets you time sales to stay under it in a borderline year, one more reason the calendar matters as much as the holding period.

Specific-share identification deserves a closer look because it directly controls your capital gains tax on partial sales. When you’ve bought the same stock in several lots at different prices and different dates, you can instruct your broker exactly which shares to sell rather than defaulting to first-in, first-out. Selling your highest-basis, longest-held lots first minimizes the gain and locks in the long-term rate, while leaving low-basis lots to either appreciate further or pass through a step-up later. The default FIFO method often realizes the largest possible gain at the worst possible rate, and many investors never change it. The IRS recognizes specific identification in Publication 550, but you must make the election with your broker at or before the sale, not on your return after the fact, which is a deadline people routinely miss.

It’s also worth knowing how to avoid capital gains tax entirely on certain assets through account choice rather than timing. Gains realized inside a traditional IRA, Roth IRA, or 401(k) are not taxed as capital gains at all; a Roth, in particular, lets the entire long-term gain grow and come out tax-free in retirement if the rules are met. That makes the short-term-versus-long-term distinction irrelevant inside those accounts, which is why active trading is far less costly in a retirement account than in a taxable brokerage. For a New York investor staring at the state’s ordinary-income treatment of gains, sheltering the most actively traded positions inside tax-advantaged accounts and holding the buy-and-hold positions in taxable accounts is a sensible split. The contribution and distribution rules sit with the IRS retirement plans guidance, and the right mix depends on your income and your timeline.

Practically, the move is to track your acquisition dates and check the calendar before you sell anything that’s appreciated. If you’re close to the one-year mark and don’t need the cash immediately, waiting can be one of the highest-return decisions you make all year. The internal resource that pairs with this is our capital gains tax strategies guide. Looking ahead, the long-term rate brackets adjust for inflation each year, so the exact thresholds shift, but the structural advantage of holding past one year is a permanent feature of the code and worth building into how you manage every position.

How does tax-loss harvesting help reduce capital gains tax?

Tax-loss harvesting is one of the most reliable ways to reduce capital gains tax, and it works by turning your losers into a tax asset. The idea is simple: you sell investments that have dropped below what you paid, realizing a capital loss, and that loss offsets capital gains you’ve realized elsewhere. The netting rules are laid out in IRS Publication 550 and reported on Schedule D with the detail flowing through Form 8949. Done well, harvesting can wipe out a tax bill on gains you’d otherwise pay full rate on.

The netting order matters and is more nuanced than most people assume. Short-term losses first offset short-term gains, and long-term losses first offset long-term gains. Then, if you have a net loss in one category and a net gain in the other, they offset each other. If you’re left with an overall net capital loss, you can use up to $3,000 of it to offset ordinary income each year, $1,500 if married filing separately. Anything beyond that carries forward indefinitely to future years, never expiring, until it’s used up. That carryforward is genuinely valuable, because it sits on your return waiting to absorb a future gain.

Consider a real scenario. You realized a $40,000 long-term gain selling an appreciated stock in 2025. Separately, you hold a position that’s down $25,000 from your purchase price. By selling the losing position before year-end, you create a $25,000 long-term loss that nets against your $40,000 gain, leaving only $15,000 taxable. If you’re in the 15% federal long-term bracket, you’ve cut your federal capital gains tax from $6,000 to $2,250. If your losses had exceeded your gains, say you harvested $50,000 of losses against the $40,000 gain, you’d offset the entire gain and still have $10,000 of loss left, $3,000 of which offsets ordinary income this year and $7,000 of which carries forward.

The single biggest trap is the wash sale rule, and it catches even experienced investors. If you sell a security at a loss and buy the same or a substantially identical security within 30 days before or after the sale, the IRS disallows the loss. That 61-day window, 30 days on each side of the sale, is unforgiving, and it includes purchases in your IRA and, by IRS position, sometimes a spouse’s account. The disallowed loss isn’t lost forever; it adds to the basis of the replacement shares. But the timing benefit you were chasing evaporates. We break this down in detail in our wash sale rule explained guide, and the official treatment is in Publication 550.

For New Yorkers, harvesting helps on the state side too, which is a nice change from the holding-period strategy. Because New York taxes capital gains as ordinary income under the New York State tax tables, a realized loss that reduces your net gain also reduces your New York and New York City taxable income. So a harvested loss does double duty here, cutting both your federal and your state bill, which makes it one of the few strategies that’s equally powerful in and out of New York.

The common mistakes go beyond the wash sale. People harvest in December without realizing they have a large carryforward already absorbing their gains, so the new harvesting accomplishes nothing that year. Others sell a loser and immediately rebuy a nearly identical fund, triggering the wash sale by accident. And some forget that harvesting resets your basis lower, so while you save tax now, you may owe more later when the rebought position recovers, which is fine if you’re deferring into a lower-income year but a problem if you’re not. The right approach is to harvest deliberately, swap into a similar-but-not-identical investment to stay in the market, and keep a running tally of your carryforwards.

Keep a clean record of your loss carryforwards, because they are easy to lose track of and genuinely valuable. A net capital loss that exceeds the $3,000 annual ordinary-income limit carries to the next year on your Schedule D, and it keeps carrying until it’s fully used, with no expiration. People who switch tax preparers or software sometimes drop a carryforward entirely and pay tax they didn’t owe on a later gain. Reviewing prior-year returns to confirm every carryforward is captured is a standard part of our individual tax return work, and it’s often where we find money for a new client in the first year.

Coordination across accounts is where harvesting gets genuinely powerful. A loss harvested in your taxable brokerage can offset a large gain you trigger elsewhere, say from selling a concentrated position or exercising stock options, so the two events are planned together rather than in isolation. For business owners, a harvested capital loss can also offset gains from selling business assets reported on Schedule D, smoothing a spike in income in a strong year. The key is to map your expected gains for the year first, then harvest enough loss to land your net capital gain where you want it for both federal and New York purposes. Reactive December harvesting almost always leaves value on the table compared with a plan built in advance, which is the approach our tax strategy consulting team takes with clients who have lumpy investment income.

A subtler point on how to avoid capital gains tax through harvesting is the interaction with the 0% federal bracket. If your taxable income lands inside the 0% long-term band in a given year, you generally don’t need to harvest losses to offset long-term gains at all, because those gains are already taxed at zero federally. In that situation, the better move is often gain harvesting, deliberately realizing gains while they’re free, rather than loss harvesting. Where loss harvesting always earns its keep is against short-term gains, which are taxed at ordinary rates, and against New York income, which never gets a preferential rate under the New York State tax tables. So the same harvested loss can be worth very different amounts depending on what it offsets, which is why blindly harvesting every December without checking your bracket can waste a perfectly good loss carryforward.

Looking ahead, harvesting is most valuable in volatile years, and it’s a discipline rather than a one-time event. The smart investors review their portfolios for harvesting opportunities throughout the year, not just at the December deadline, and they coordinate it with their overall gain realization. Our tax strategy consulting team builds that coordination into a year-round plan, so the losses you bank are matched against the gains where they’ll do the most good.

Can a 1031 exchange or opportunity zone defer capital gains tax on real estate?

Yes, and for real estate investors these are the two heaviest tools available for deferring capital gains tax, though neither one makes the tax disappear outright. A Section 1031 like-kind exchange lets you sell an investment or business property and roll the entire proceeds into another investment property without paying tax on the gain at the time of sale. A Qualified Opportunity Zone investment lets you take a gain from almost any source and defer it by reinvesting into a designated fund. Understanding how to avoid capital gains tax through deferral starts with knowing exactly how strict each program’s rules are, because the deadlines are unforgiving.

Start with the 1031 exchange, governed by Section 1031 and reported on Form 8824. The mechanics hinge on two clocks that run at the same time. From the day you close on the sale of your relinquished property, you have 45 calendar days to formally identify the replacement property in writing, and 180 calendar days to actually close on it. There are no extensions for weekends or holidays. You also can’t touch the cash; a qualified intermediary must hold the proceeds between the sale and the purchase, because if the money hits your hands the exchange is blown. The replacement property must be like-kind, which for real estate is broad, so an apartment building can be exchanged for raw land or a commercial strip.

Here’s how the deferral plays out with numbers. Suppose you bought a rental property in Queens for $500,000 and sell it for $1,100,000, a $600,000 gain. Sell outright and you’d owe federal long-term capital gains tax, depreciation recapture at 25% on the depreciation you claimed, the 3.8% net investment income tax, plus New York State and New York City tax on the full gain treated as ordinary income. That stack can easily exceed $200,000. Through a 1031 exchange into a $1,200,000 replacement property, you defer all of it. Your basis carries over and adjusts, so the deferred gain rides along in the new property. Keep exchanging, and you can defer indefinitely; pass the property to heirs, and the step-up in basis under IRS Topic 703 can erase the deferred gain entirely. That swap-till-you-drop sequence is the quiet engine behind a lot of real estate fortunes.

Qualified Opportunity Zones work differently and aren’t limited to real estate gains. Under the IRS Opportunity Zones program, you take a recently realized capital gain from any sale, stocks, a business, real estate, and reinvest the gain amount into a Qualified Opportunity Fund within 180 days. That defers the original gain until a set recognition date. The bigger draw is what happens to the new investment: if you hold the Opportunity Fund interest for at least ten years, the appreciation on that new investment can be excluded from tax entirely when you sell it. So the original gain is deferred, and the growth on the reinvested money can become permanently tax-free, which is a powerful combination for a long-horizon investor.

New York generally conforms to the federal deferral for 1031 exchanges, so a properly executed exchange defers your state and city tax along with the federal, which is a meaningful saving given New York’s ordinary-income treatment of gains under the New York State tax tables. The Opportunity Zone treatment at the state level has shifted over the years, so the state conformity is worth confirming for the specific year and program before you rely on it. This is precisely the kind of detail where guessing is expensive.

The common mistakes are brutal because the rules are rigid. Missing the 45-day identification window by even a day disqualifies the entire exchange, and the gain becomes fully taxable. Taking any cash out, called boot, makes that portion taxable. Trying to exchange a primary residence or a fix-and-flip held for resale doesn’t qualify, because the property must be held for investment or productive use in a business. On the Opportunity Zone side, people miss the 180-day reinvestment deadline or fail to invest through a properly structured fund. Both programs reward precision and punish improvisation.

Vacation and second homes occupy a gray zone that trips up a lot of investors. A 1031 exchange requires the property to be held for investment or business use, so a personal vacation home you barely rent generally does not qualify, while a genuine rental that you use only minimally can. The IRS has published safe-harbor guidance on how much personal use is acceptable, and staying inside those limits matters if you want the deferral to survive an audit. The reporting still runs through Form 8824, and the holding-and-use facts are what an examiner scrutinizes first. A second home converted to a true rental for a sustained period before the exchange is the cleaner path, but the conversion has to be real, with arm’s-length rent and proper records, not a paper exercise dressed up to qualify.

One detail that decides how to avoid capital gains tax cleanly in a 1031 exchange is the “equal or up” requirement. To defer the full gain, you generally need to acquire replacement property of equal or greater value and reinvest all the net proceeds, taking on debt at least equal to the debt you paid off. In our Queens example, exchanging the $1,100,000 sale into a $1,200,000 replacement satisfies this; trading down into an $800,000 property would leave $300,000 of value untouched and trigger tax on that boot. There are also reverse exchanges, where you buy the replacement first and sell the relinquished property afterward, useful in a tight market but more complex and more expensive to structure. A common and costly error is identifying a replacement property that falls through after day 45 with no backup identified, which collapses the whole exchange. Experienced investors identify the maximum three properties the rules allow precisely to keep a fallback alive, a small bit of foresight that protects a six-figure deferral.

If you’re sitting on a large real estate gain, the planning has to start before you sell, not after, because the intermediary and the identification clock are triggered at closing. Our business management and tax strategy consulting teams coordinate the timing, the intermediary, and the replacement-property analysis so the deferral actually holds up. Going forward, Opportunity Zone designations and rules continue to evolve under federal legislation, so the exact benefits depend on the year you invest, which makes current guidance essential rather than optional.

How does step-up in basis or charitable gifting help avoid capital gains tax?

Two of the most underused strategies for reducing capital gains tax don’t involve selling at the right moment at all. They involve either holding an asset until death so your heirs get a step-up in basis, or donating an appreciated asset to charity so you skip the gain entirely. Both are central to how to avoid capital gains tax for families and donors with long-held, highly appreciated positions, and both are fully supported in the tax code rather than being aggressive maneuvers.

Step-up in basis is the quieter of the two. When you die owning an appreciated asset, its basis generally resets to its fair market value as of the date of death, a rule reflected in IRS Topic 703. That means all the gain that accrued during your lifetime simply vanishes for income tax purposes when your heirs inherit. The practical implication is significant: an asset you bought decades ago for a small amount, that’s now worth a fortune, can pass to your children with the embedded gain wiped clean, and they can sell it shortly after with little or no capital gains tax.

A concrete example sharpens it. Suppose you bought stock in 1990 for $50,000, and it’s now worth $800,000, a $750,000 unrealized gain. If you sell during your lifetime, you’d pay long-term capital gains tax on that $750,000, plus the 3.8% net investment income tax, plus New York’s ordinary-income treatment under the New York State tax tables, easily a six-figure tax bill. If instead you hold the stock until death and your heirs inherit it at the $800,000 date-of-death value, their basis becomes $800,000. If they sell it for $810,000 a few months later, their taxable gain is just $10,000. The $750,000 of lifetime appreciation never gets taxed as income. This is why advisors often tell retirees with appreciated, low-basis assets to spend down other accounts first and hold the appreciated positions, a strategy that has to be weighed against estate tax and your actual cash needs.

Charitable gifting of appreciated assets is the strategy you can use while you’re alive. Instead of selling a long-held appreciated stock, paying the capital gains tax, and donating what’s left, you donate the stock directly to a qualified charity. You avoid the capital gains tax on the appreciation entirely, and you may deduct the full fair market value of the donated stock as a charitable contribution, subject to the adjusted gross income limits detailed in IRS Publication 526. For an asset held more than a year, this double benefit, no capital gains tax plus a fair-market-value deduction, is almost always better than donating cash.

Run the comparison. You want to give $50,000 to your alma mater, and you own stock worth $50,000 that you bought for $10,000. If you sell the stock first, you owe capital gains tax on the $40,000 gain, perhaps $6,000 federally at 15% plus more for New York, leaving you less than $50,000 to give unless you reach into other funds. If instead you donate the shares directly, the charity receives the full $50,000, you owe zero capital gains tax on the $40,000 appreciation, and you may deduct $50,000 against your income subject to the AGI limits. For people who give regularly, a donor-advised fund lets you donate appreciated stock in a high-income year, take the deduction now, and grant the money to charities over time.

The common mistakes here are timing and documentation. For the step-up, gifting an appreciated asset during your lifetime instead of leaving it through your estate forfeits the step-up, because lifetime gifts carry over your original low basis to the recipient. For charitable gifting, donating an asset you’ve held a year or less limits your deduction to your cost basis rather than fair market value, which kills the advantage. And large charitable gifts require a qualified appraisal and proper substantiation, or the deduction can be denied entirely on audit. These are areas where the licensed-professional act of structuring the gift matters, so the planning belongs with a CPA rather than a DIY approach.

Timing the gift to the right year amplifies the benefit and is part of how to avoid capital gains tax efficiently as a donor. Bunching several years of charitable giving into one high-income year, often through a donor-advised fund, lets you donate appreciated stock when your marginal rate is highest, take a large itemized deduction that year, and then grant to charities gradually afterward. In a year you sell a business or realize a large gain, that bunched gift can offset a meaningful chunk of the income while also removing the embedded capital gain on the donated shares. The AGI limits that govern how much you can deduct in a single year are in Publication 526, and amounts above the limit carry forward for five years. For New York donors, the state generally follows the federal charitable deduction, so the same gift trims both bills, which makes the timing decision worth modeling carefully rather than giving on autopilot each December.

There’s a hybrid move that combines both ideas and is one of the strongest ways to avoid capital gains tax for charitably inclined families: the charitable remainder trust. You contribute a highly appreciated asset to the trust, the trust sells it without paying capital gains tax because of its tax-exempt status, and you receive an income stream for life or a term of years, with the remainder going to charity. You get an immediate partial deduction, you spread the recognition of income over years instead of all at once, and you defer or reduce the capital gains tax that an outright sale would have triggered. For a New York resident facing the state’s ordinary-income treatment of gains under the New York State tax tables, spreading recognition can also keep more of the income out of the top state and city brackets in any single year. These trusts are technical instruments that require a licensed professional to set up correctly, so they belong in a planning conversation with your CPA and estate attorney rather than a do-it-yourself effort.

Whether step-up or charitable gifting fits depends on your estate plan, your income, your cash needs, and your charitable intentions, which is exactly why this is a conversation, not a formula. Our tax strategy consulting team models these against your full picture and coordinates with your estate attorney. Looking ahead, the step-up in basis rule is periodically debated in Congress, so its long-term future isn’t guaranteed, which is one more reason to build a flexible plan with current rules rather than betting everything on a single provision staying put.

Contact Us