Sitting on a Huge Stock Gain? The Tax Bill Shouldn’t Be the Only Reason You Hold It
A successful investment can create an uncomfortable problem. A stock purchased years ago for $50,000 may now be worth $300,000 or $500,000, leaving the investor thrilled with the gain but reluctant to sell because of the tax bill. The result can be a strange form of paralysis in which an investment that once represented smart diversification eventually becomes the largest source of risk in the portfolio. Taxes matter, but avoiding taxes at all costs can become more expensive than paying them.
The first question should therefore not be, “How do I avoid capital-gains tax?” It should be, “Would I still choose to own this much of this investment today if I were starting with cash?” If the answer is no, then the tax consequences should be managed rather than allowed to dictate the entire decision. A good strategy weighs the cost of selling against the risk of continuing to hold an asset that may now be too concentrated, too expensive or simply no longer aligned with the portfolio.
Start With the Investment Decision Before the Tax Decision
Taxes should influence an investment decision, but they should rarely be the only reason for it. If a company still fits the portfolio, remains appropriately sized and continues to support long-term goals, selling simply because it has appreciated may accomplish very little. Investors do not need to manufacture taxable events merely because a gain exists.
The calculation changes when one position becomes disproportionately large. Someone whose employer stock has grown to 40% of a portfolio may be exposed to both investment risk and career risk if the same company provides income and represents most of the family’s wealth. A retiree with a similarly concentrated position may have even less ability to recover if the stock suffers a permanent decline.
This is where the risk of action has to be compared with the risk of inaction. Selling can create an immediate and measurable tax cost, while continuing to hold can create a less visible possibility of a much larger future loss. The right decision often involves accepting some tax today in exchange for reducing a risk that has become too large to ignore.
Long-Term Gains Receive Preferential Federal Tax Rates
Investments held for more than one year generally qualify for long-term capital-gains treatment, which is usually more favorable than the ordinary income rates applied to short-term gains. For 2026, most long-term capital gains are taxed federally at 0%, 15% or 20%, depending on taxable income. The 0% bracket extends up to $49,450 of taxable income for single filers and $98,900 for married couples filing jointly. (irs.gov)
The 15% rate then applies through taxable income of $545,500 for single filers and $613,700 for married couples filing jointly in 2026, with the 20% rate applying above those thresholds. Those are taxable-income thresholds, which means wages, retirement withdrawals, interest and other taxable income can use up part or all of the lower capital-gains brackets before an investment is sold. (irs.gov)
That structure creates planning opportunities because long-term gains essentially sit on top of other taxable income. A retiree with relatively little ordinary taxable income may be able to recognize some gains at 0%, while a high-income worker may find that the same gain lands largely in the 15% or 20% bracket. The exact tax cost therefore depends on the entire tax return rather than the size of the investment gain alone.
The 0% Capital-Gains Bracket Can Be Extremely Valuable
The 0% long-term capital-gains rate is one of the more useful planning opportunities available to investors with lower taxable income. A married couple whose other taxable income leaves room below the $98,900 threshold in 2026 may be able to realize enough long-term gains to fill the remaining space at a 0% federal capital-gains rate. The same concept applies to single filers below the $49,450 threshold. (irs.gov)
The important word is taxable income, not simply salary or gross income. Deductions and other income sources affect how much room remains in the 0% bracket, and capital gains themselves increase taxable income as they are realized. An investor therefore cannot simply sell $98,900 of appreciated stock and assume the entire gain will be tax-free.
This opportunity can be especially attractive in early retirement. Someone who has stopped receiving a paycheck but has not yet begun large Social Security benefits or required minimum distributions may have several unusually low-income years. Deliberately realizing gains during that period can reduce future tax exposure while allowing the investor to rebalance a portfolio at little or no federal capital-gains cost.
Capital-Gain Harvesting Can Reset the Cost Basis
If an investor has room in the 0% bracket, selling an appreciated investment can do more than simply generate tax-free cash. The investor can potentially sell the shares, recognize the long-term gain and then repurchase the same investment at the current market price, creating a higher tax basis for future sales. That process is sometimes called tax-gain harvesting.
Suppose an investment originally purchased for $40,000 is now worth $70,000 and the entire $30,000 gain can be recognized at a 0% federal rate. Selling and repurchasing the investment could reset the new basis near $70,000, reducing the amount of taxable appreciation that would exist if the investment were sold again later. The investor continues owning the same asset but has voluntarily recognized the gain during a favorable tax year.
The wash-sale rule does not generally prevent an immediate repurchase after a gain because the rule applies to losses, not gains. That makes gain harvesting fundamentally different from tax-loss harvesting, where purchasing substantially identical securities within the 30-day window can cause the loss deduction to be disallowed. Investors still need to consider state taxes and other income-related consequences before assuming a 0% federal capital-gains rate means the transaction has no other effect.
Tax-Loss Harvesting Can Offset Gains
Investors with losing positions can use those losses to reduce taxable gains elsewhere in the portfolio. Capital losses first offset capital gains, which means selling one investment at a $20,000 loss could potentially neutralize $20,000 of gains realized from another investment during the same tax year. That can make portfolio rebalancing considerably more tax efficient.
If total capital losses exceed total gains, individuals can generally deduct up to $3,000 of remaining net capital losses against ordinary income each year, or $1,500 for married taxpayers filing separately. Unused losses generally carry forward to future years, giving them continuing tax value even when they cannot all be used immediately. (irs.gov)
The wash-sale rule makes this strategy more complicated. If an investor sells a stock or security at a loss and buys the same or a substantially identical security within 30 days before or after the sale, the loss may be disallowed for current tax purposes. The rule means investors need to preserve the economic intent of the portfolio without simply selling for the tax loss and immediately restoring the exact same position. (irs.gov)
Spreading a Large Gain Across Several Years Can Reduce the Tax Cost
A large appreciated position does not necessarily have to be sold all at once. Investors can sometimes reduce taxes by selling portions over several calendar years, particularly when the additional gains would otherwise push taxable income into a higher capital-gains bracket. This approach also allows the portfolio to become gradually more diversified rather than making one enormous transaction.
For example, someone planning to retire in two years may decide that reducing a concentrated position immediately would create an unnecessarily large tax bill while continuing to hold the full position indefinitely would create too much risk. Selling part this year, another portion after retirement and additional shares during lower-income years can create a middle ground. The investor accepts taxes, but does so deliberately and at potentially more favorable rates.
The strategy requires looking beyond this year’s tax return. Future salary, retirement distributions, Social Security, business income and required minimum distributions can all affect which years provide the best opportunities. Sometimes paying a 15% capital-gains rate today is preferable to waiting until future income pushes the same gain into a higher effective tax environment.
High-Income Investors May Owe More Than 20%
The headline federal long-term capital-gains rates do not always represent the investor’s complete federal tax cost. The 3.8% Net Investment Income Tax can apply when modified adjusted gross income exceeds $200,000 for single and head-of-household filers or $250,000 for married couples filing jointly. Capital gains are generally included in net investment income for purposes of that calculation. (irs.gov)
That means a high-income investor facing the 20% long-term capital-gains rate could also owe the 3.8% NIIT on some or all of the gain, depending on the specific income calculation. State income taxes can add another layer, particularly in jurisdictions that tax capital gains at ordinary state income-tax rates. The combined tax burden can therefore be materially higher than the familiar 15% federal rate many investors assume.
This is why large sales should be modeled before they are executed. A six-figure gain can affect more than capital-gains tax, particularly for retirees whose income can influence Medicare IRMAA surcharges or other tax provisions. The correct calculation considers the transaction’s effect across the entire financial plan rather than examining one tax bracket in isolation.
Donating Appreciated Stock Can Be Better Than Donating Cash
Charitably inclined investors with highly appreciated securities have another powerful option. Instead of selling the stock, paying capital-gains tax and then donating the cash, an investor can often transfer appreciated shares directly to a qualified charity. When the appropriate rules are satisfied, long-term appreciated securities may generally generate a charitable deduction based on fair market value while allowing the donor to avoid recognizing the embedded capital gain. (irs.gov)
This can make appreciated stock one of the most tax-efficient assets to give away. An investor who regularly donates $20,000 of cash to charity could instead donate $20,000 of appreciated securities and use the $20,000 of cash that would have been donated to purchase new investments. The household has supported the same charity while effectively replacing low-basis stock with new shares carrying a much higher basis.
That strategy can be especially useful for concentrated positions accumulated over many years. The investor reduces exposure without creating the same capital-gains bill that would result from selling the shares personally. Deduction limits, itemization rules and the type of charitable organization can affect the tax result, so large gifts should still be coordinated with a tax professional.
Giving Stock to Family Does Not Make the Gain Disappear
Gifting appreciated securities to children or other family members can sometimes move future taxable income to someone in a lower tax bracket, but the strategy is not the same as receiving a basis step-up. In most cases, the recipient of appreciated property takes over the donor’s adjusted basis for purposes of calculating a future gain. The embedded gain therefore travels with the gift rather than disappearing when ownership changes. (irs.gov)
Suppose a parent bought stock for $20,000 that is now worth $100,000 and gives the shares to an adult child. The child’s basis for determining a future gain will generally remain tied to the parent’s $20,000 basis, subject to the specific gift-basis rules. If the child later sells the shares for $100,000, the family has not magically eliminated the $80,000 appreciation.
The potential advantage comes from the recipient’s tax circumstances. An adult child with relatively little taxable income may be able to realize some gains in a lower capital-gains bracket than the parent, although dependent children may also encounter the kiddie-tax rules. The gift should therefore be made because it fits the estate and family plan, not simply because someone assumes transferring ownership erases the taxable gain.
Inherited Assets Usually Receive Very Different Treatment
Assets inherited at death generally receive a basis equal to their fair market value on the date of death, subject to important exceptions and estate-planning rules. If someone bought stock decades ago for $50,000 and it is worth $500,000 when that person dies, the heir’s basis may generally become approximately $500,000 rather than the original $50,000. If the heir sells shortly afterward at roughly the same value, little or no capital gain may remain. (irs.gov)
This step-up in basis creates a major difference between gifting appreciated property during life and leaving appreciated property at death. A lifetime gift generally carries the donor’s low basis to the recipient, while inherited assets usually receive the new fair-market-value basis. That can make highly appreciated taxable assets attractive estate assets in some circumstances.
It can also create a reason not to sell every highly appreciated asset simply to eliminate concentration. An older investor with ample diversification elsewhere and no need for the money may rationally decide to retain certain appreciated assets for heirs. The decision still depends on investment risk, estate goals and health, because holding a dangerously concentrated position purely for a future tax benefit can still backfire.
Joint Ownership Can Complicate the Basis Step-Up
The basis rules at death can become more complicated when property is jointly owned. How much basis receives an adjustment can depend on whether the owners are spouses, how the property is titled, when it was acquired and whether the couple lives in a community-property state. Investors should therefore be cautious about assuming every jointly held asset automatically receives a full basis adjustment.
Community-property rules can sometimes produce especially favorable treatment for married couples because both halves of qualifying community property may receive a basis adjustment at the first spouse’s death. Other forms of joint ownership may receive different treatment. State law is important because ownership rules determine how federal basis rules apply to the property.
This is one area where tax planning and estate planning overlap directly. Changing the ownership structure solely to pursue a basis benefit can create unintended estate, creditor or control consequences. Large appreciated positions should therefore be reviewed alongside wills, trusts, beneficiary designations and property titles rather than treated as an isolated brokerage-account problem.
Don’t Let a Tax Tail Wag the Investment Dog
Perhaps the most dangerous mistake is allowing the fear of a tax bill to turn a successful investment into an enormous portfolio concentration. Someone who owns $1 million of a single stock with a $100,000 basis may understandably hate the idea of recognizing a $900,000 gain. But if the stock falls 40%, the investor has lost $400,000 of market value while trying to avoid a tax bill that may have been considerably smaller.
The correct comparison is not between paying tax and paying no tax. It is between paying a known tax cost to diversify and accepting an unknown amount of investment risk by continuing to hold. That calculation becomes particularly important for retirees who may depend on the portfolio for spending and cannot replace a large permanent loss with future earnings.
Selling does not have to mean abandoning the investment completely. An investor can reduce the position gradually until it reaches an acceptable percentage of the portfolio, preserving some upside while removing the amount of concentration that could threaten the broader financial plan. Taxes become one factor in determining how quickly the transition occurs rather than an excuse never to make the transition at all.
Managed Tax Strategies Can Help Larger Portfolios
Investors with substantial taxable assets increasingly have access to strategies such as separately managed accounts and direct indexing that can provide more opportunities for tax-loss harvesting. Instead of owning one broad index fund, a direct-indexing account may own many of the individual stocks inside the index, creating the ability to sell individual losers while maintaining similar overall market exposure. The resulting losses can potentially offset gains elsewhere in the portfolio.
These strategies can be useful, but complexity has a cost. Management fees, tracking differences and large numbers of individual tax lots can make a portfolio harder to understand and eventually harder to transfer. Tax savings should therefore be evaluated after fees and implementation costs rather than assumed to make every sophisticated strategy worthwhile.
A straightforward portfolio can still accomplish much of the same planning through careful rebalancing and selective loss harvesting. Sophisticated tools are most valuable when the size of the taxable portfolio and frequency of capital gains justify the additional complexity. The tax strategy should serve the investment portfolio rather than turning the portfolio into a tax-management exercise.
Sometimes Paying the Tax Is the Best Outcome
Investors naturally want to minimize taxes, but minimizing taxes and maximizing after-tax wealth are not always the same objective. A person can avoid capital-gains tax entirely by holding a stock until it becomes worthless, but nobody would consider that a successful strategy. Taxes are usually created because an investment made money.
That means a tax bill can sometimes be evidence of a successful investment rather than a financial failure. Selling appreciated assets can provide cash for retirement, eliminate concentration, fund another opportunity or simply move the portfolio closer to the risk level the investor actually needs. The objective is to keep as much of the gain as reasonably possible while still making the correct investment decision.
The most effective approach usually combines several strategies. Investors can harvest gains during low-income years, harvest losses when markets create opportunities, donate appreciated shares, spread sales across tax years and hold appropriate assets for heirs when estate planning makes that attractive. No single technique eliminates every tax, but together they can substantially improve the after-tax result.
The Best Tax Strategy Starts With the Portfolio You Actually Want
A brokerage account should ultimately reflect the investor’s financial goals, risk tolerance and need for liquidity. Taxes influence how a portfolio moves from its current position to the desired one, but they should not determine what the desired portfolio looks like. An investment that has become too risky does not become safer simply because selling it is taxable.
That is why the most useful framework begins with the investment decision. Determine how much of the position you would want if taxes did not exist, then calculate the most efficient way to move toward that allocation. Some of the transition might happen immediately, some through charitable gifts or tax-loss harvesting, and some during lower-income years.
The goal is not to reach zero taxes. The goal is to preserve as much after-tax wealth as possible without allowing an old investment decision to control the future of the entire portfolio.
You should always consult a financial, tax, or legal professional familiar about your unique circumstances before making any financial decisions. This material is intended for educational purposes only. Nothing in this material constitutes a solicitation for the sale or purchase of any securities. Any mentioned rates of return are historical or hypothetical in nature and are not a guarantee of future returns.
Past performance does not guarantee future performance. Future returns may be lower or higher. Investments involve risk. Investment values will fluctuate with market conditions, and security positions, when sold, may be worth less or more than their original cost.