Taxes on appreciated securities turn on a single question: how does the asset leave your hands? Selling triggers capital gains tax at rates set by how long you held the shares and how much you earn. Gifting shifts the built-in gain to the recipient. Donating to a qualified charity can erase the gain entirely while still producing a deduction. Passing the shares at death typically resets the basis for your heirs. The rules for each path are different, and choosing the wrong one can cost real money.
What You Owe When You Sell
You owe tax on the profit only when you sell, and the holding period does most of the work in setting the rate. Securities held one year or less produce short-term capital gains, taxed at your ordinary income rate. For top earners in 2026, that rate reaches 37 percent.
Hold the same security for more than a year and you qualify for long-term capital gains rates of 0, 15, or 20 percent, keyed to taxable income and filing status.1Office of the Law Revision Counsel. 26 U.S.C. 1 – Tax Imposed A single filer in 2026 pays 0 percent below roughly $49,450 of taxable income, 15 percent up to about $545,500, and 20 percent above that. Joint filers cross into the 15 percent bracket near $98,900 and the 20 percent bracket near $613,700.
High earners face an extra layer. The Net Investment Income Tax adds 3.8 percent once modified adjusted gross income exceeds $200,000 for single filers or $250,000 for joint filers.2Internal Revenue Service. Net Investment Income Tax Those thresholds are not indexed for inflation, so the tax reaches more people each year. A top-bracket investor selling long-held stock can owe 23.8 percent to the federal government before any state tax.
Most states tax capital gains as ordinary income. Rates run from zero in states with no income tax up to 13.3 percent at the high end, and a few states apply extra surcharges on large gains. Factor the state rate in before deciding to sell.
Mutual Fund Distributions You Didn’t Ask For
You can owe capital gains tax without selling anything. When a mutual fund manager sells holdings inside the fund at a profit, the fund passes those gains to shareholders as capital gain distributions, and they count as long-term regardless of how long you have owned the fund shares.3Internal Revenue Service. Mutual Funds (Costs, Distributions, etc.) 4 The amount shows up on the Form 1099-DIV your brokerage sends in January. Actively managed funds can produce sizable distributions in years when the shareholder saw no personal profit.
Cost Basis and Why It Moves
Cost basis is the starting number the IRS uses to measure your gain. It begins with the price you paid, including brokerage commissions and transaction fees. The gap between that basis and today’s market price is your unrealized gain.
Basis does not stay fixed. Stock splits change your share count without changing the total invested, so you spread the original basis across the new share total. Reinvested dividends add to basis, because each reinvestment is a purchase of additional shares with taxed cash. Investors who reinvest for years and forget to track it end up overstating gain at sale and paying tax they don’t owe. Keep the records.
Gifting Appreciated Shares to Family
Handing appreciated stock to a relative does not erase the built-in gain. Under the carryover basis rule, the recipient inherits your original cost basis and your holding period.4Office of the Law Revision Counsel. 26 U.S.C. 1015 – Basis of Property Acquired by Gifts and Transfers in Trust Shares you bought for $5,000 that are worth $15,000 today become $5,000 of basis in the recipient’s hands. When they sell, they owe tax on the difference between the sale price and $5,000.
The 2026 annual gift tax exclusion is $19,000 per recipient. You can give up to that amount in securities to as many people as you like each year with no gift tax filing. Married couples can combine exclusions and give $38,000 per recipient. Larger gifts require Form 709, though no tax is typically due until you use up the $15,000,000 lifetime exemption.5Internal Revenue Service. What’s New – Estate and Gift Tax
Don’t Gift Losers
The carryover rule carries a trap. If the security has fallen below your original basis on the date of the gift, the recipient must use the fair market value on the gift date as their basis when calculating a loss.6eCFR. 26 CFR 1.1015-1 – Basis of Property Acquired by Gift If they later sell somewhere between your basis and the gift-date value, no gain or loss is recognized at all. The built-in loss simply disappears. Sell the depreciated shares yourself first, claim the loss on your own return, and give the cash.
The Kiddie Tax Limits the Payoff
Gifting appreciated stock to a child in a low bracket sounds efficient until the kiddie tax cuts in. For 2026, a child’s unearned income above $2,700 is taxed at the parents’ marginal rate.7Internal Revenue Service. Topic No. 553, Tax on a Child’s Investment and Other Unearned Income (Kiddie Tax) The rule reaches children under 18, 18-year-olds whose earned income does not cover more than half their support, and full-time students ages 19 through 23 in the same situation. Large transfers to minors rarely deliver the savings people expect.
Donating Appreciated Shares to Charity
Giving appreciated stock directly to a qualified 501(c)(3) is one of the most tax-efficient moves available. Transfer shares you have held more than a year and two things happen at once: you claim a charitable deduction for the full fair market value, and no one pays capital gains tax on the appreciation.8Office of the Law Revision Counsel. 26 U.S.C. 170 – Charitable, Etc., Contributions and Gifts Compared with selling first, paying tax, and donating cash, you come out ahead by the full amount of avoided capital gains tax.
The deduction for donated long-term capital gain property is capped at 30 percent of adjusted gross income for the year. Amounts above the cap carry forward for up to five additional tax years.9eCFR. 26 CFR 1.170A-10 – Charitable Contributions Carryovers of Individuals Donor-advised funds work the same way. You contribute appreciated shares, claim the deduction now, and recommend grants over time.
Never donate depreciated securities. The charity is tax-exempt and cannot use the loss, so it simply vanishes. Sell those shares first, take the capital loss (up to $3,000 per year is deductible against ordinary income after netting against gains), then donate the cash. You get both the loss and the charitable deduction.
One planning point on timing. If the standard deduction absorbs your yearly giving, you may see no tax benefit. Bunching several years of donations into a single tax year through a donor-advised fund pushes your itemized total above the standard deduction and captures the value.
Passing Securities to Heirs
Inheritance is the one event that can wipe out decades of unrealized gain in a stroke. When you inherit securities, your basis resets to fair market value on the date the original owner died.10Office of the Law Revision Counsel. 26 U.S.C. 1014 – Basis of Property Acquired From a Decedent Stock a parent bought at $10 that was worth $100 at death has $100 basis in your hands. Sell it the next week at $100 and you owe nothing on the gain.
Even a quick sale after inheriting counts as long-term for tax purposes.11Office of the Law Revision Counsel. 26 U.S.C. 1223 – Holding Period of Property The heir is not stuck with short-term rates.
Alternate Valuation Date
If markets fall after a death, the estate’s executor can elect to value assets six months later. The election is only available when it reduces both the total estate value and the estate tax owed, and it is irrevocable once made on the estate tax return.12Office of the Law Revision Counsel. 26 U.S. Code 2032 – Alternate Valuation If the executor uses that date, the heir’s stepped-up basis matches the lower six-month value. Securities that left the estate before the six-month mark are valued as of the date they were sold or distributed.
Community Property Gets a Double Step-Up
Couples in community property states receive a stronger version of the rule. When one spouse dies, both halves of community property receive a new basis at fair market value, not just the decedent’s half.10Office of the Law Revision Counsel. 26 U.S.C. 1014 – Basis of Property Acquired From a Decedent In a common-law state, only the decedent’s share of jointly held securities steps up; the surviving spouse’s half keeps its original basis. For couples with large joint portfolios, the difference can run into six figures of avoided gain.
Retirement Accounts Are Outside the Rule
The step-up applies to securities in taxable brokerage accounts, not to tax-deferred retirement accounts. Money inside a traditional IRA or 401(k) was never taxed on the way in, so there is no basis to step up. Beneficiaries pay ordinary income tax on withdrawals with no capital gains advantage. Holding highly appreciated stock in a taxable account rather than moving proceeds into an IRA can preserve the step-up for the next generation.
Reducing the Bill on a Sale
Loss Harvesting
Selling losers to offset winners is the most direct way to shrink a capital gains bill. Realized losses offset realized gains dollar for dollar with no ceiling. If your losses exceed gains for the year, you can deduct up to $3,000 of net loss against ordinary income and carry the rest forward indefinitely.
Watch the wash sale rule. If you sell at a loss and buy a substantially identical security within 30 days before or after the sale, the IRS disallows the loss.13Office of the Law Revision Counsel. 26 U.S.C. 1091 – Loss From Wash Sales of Stock or Securities The disallowed amount is added to the basis of the replacement shares, so it is not gone permanently, but it does not help this year. Wait at least 31 days before repurchasing, or move to a similar but not substantially identical fund in the meantime.
Qualified Opportunity Funds
Investors who realize capital gains can defer the tax by reinvesting the gain into a Qualified Opportunity Fund within 180 days. The deferred gain must be recognized no later than December 31, 2026, or when you sell the fund interest, whichever comes first.14Internal Revenue Service. Opportunity Zones Frequently Asked Questions With that recognition date near, the deferral value has largely run out unless Congress extends the program. Gains held in the fund for at least 10 years can still be excluded from tax on any additional appreciation of the fund investment itself.
Reporting and Estimated Payments
Each sale is reported on Form 8949, which captures the acquisition date, sale date, proceeds, and adjusted basis.15Internal Revenue Service. Instructions for Form 8949 Totals flow to Schedule D of your Form 1040, where short-term and long-term gains and losses are netted.16Internal Revenue Service. About Schedule D (Form 1040), Capital Gains and Losses Your brokerage sends Form 1099-B reporting proceeds and, in most cases, cost basis. Check those numbers against your records, especially for older shares and any acquired through reinvested dividends.
A large mid-year gain can trigger an estimated tax obligation. The IRS expects taxes to be paid throughout the year, not only at filing. You generally avoid the underpayment penalty by paying at least 90 percent of the current year’s tax or 100 percent of the prior year’s tax through withholding and estimated payments. The safe harbor climbs to 110 percent of the prior year’s tax if your adjusted gross income exceeded $150,000.17Internal Revenue Service. Underpayment of Estimated Tax by Individuals Penalty Sell a concentrated position for a six-figure gain and you should send an estimated payment in that quarter, not in April.