The tax implications of transferring stock ownership turn almost entirely on how you move the shares. A sale produces a capital gain or loss for the seller today. A gift shifts your cost basis to the recipient and defers the tax until they sell. An inheritance resets the basis to fair market value at death, often erasing the built-in gain entirely. A divorce transfer is tax-free but carries the embedded gain with it. Each path also fixes what the recipient will owe when they eventually sell, so the choice of mechanism is really a choice about who pays, when, and on how much.
Selling Stock
A sale is the most straightforward transfer for the tax code, and the most immediate for the seller. You owe tax on the difference between what you received and your cost basis, generally what you originally paid plus commissions or fees.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses
Holding period sets the rate. Stock held one year or less produces a short-term gain, taxed at your ordinary income rate, which reaches 37% for 2026.2Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 Stock held more than a year qualifies for long-term rates of 0%, 15%, or 20% depending on taxable income.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses
Higher earners owe more. The 3.8% Net Investment Income Tax applies to the lesser of your net investment income or the amount your modified AGI exceeds $200,000 (single), $250,000 (married filing jointly), or $125,000 (married filing separately).3Internal Revenue Service. Net Investment Income Tax Those thresholds are not indexed for inflation. Someone in the top long-term bracket who also owes NIIT faces a 23.8% effective federal rate on gains.
On the other side of the trade, the buyer’s cost basis is simply what they paid, and their holding period starts the day after purchase. Those numbers travel with the shares until they, in turn, sell.
Gifting Stock to an Individual
When you hand shares to a family member or friend without payment, the transfer falls under the federal gift tax rules. The donor, not the recipient, would owe any gift tax. In practice almost no one does, because of two layers of protection.
Annual Exclusion and Lifetime Exemption
For 2026, you can give up to $19,000 in stock to any number of recipients without any reporting or reduction of your lifetime exemption.4Internal Revenue Service. What’s New – Estate and Gift Tax A married couple electing to split gifts can move $38,000 to the same person on the same terms.
Anything above the annual exclusion to a single recipient requires Form 709. Filing does not mean you owe tax. It records the gift and tracks how much of your lifetime exemption you have used.5Internal Revenue Service. Instructions for Form 709 (2025) The 2026 lifetime gift and estate exemption is $15 million per person, set by the One, Big, Beautiful Bill signed in July 2025.4Internal Revenue Service. What’s New – Estate and Gift Tax Excess gifts reduce that exemption dollar for dollar, and no actual gift tax is owed until it is exhausted.
The Recipient’s Carryover Basis
Here is where gifted stock gets consequential. The recipient inherits the donor’s original cost basis. Shares you bought at $10 and gift when they are worth $100 leave the recipient with a $10 basis, and when they sell they owe capital gains tax on the full $90 of appreciation just as you would have.6Office of the Law Revision Counsel. 26 USC 1015 – Basis of Property Acquired by Gifts and Transfers in Trust Your holding period carries over too, so the recipient can sell the next day and still qualify for long-term rates if you already held the stock more than a year.
A special rule applies if the stock has declined below your basis at the time of the gift. To keep families from shifting paper losses, the recipient’s basis for measuring a loss is the lower of your original basis or the fair market value on the gift date.6Office of the Law Revision Counsel. 26 USC 1015 – Basis of Property Acquired by Gifts and Transfers in Trust If the recipient later sells at a price between those two numbers, they recognize neither gain nor loss.
Donating Stock to Charity
Giving appreciated stock directly to a qualified charity is one of the most tax-efficient transfers available. You take a charitable deduction for the full fair market value and recognize no capital gain on the appreciation. The charity, being tax-exempt, sells the shares without owing tax on the gain either. Compared to selling first and donating the after-tax cash, a direct transfer of shares puts more toward the deduction and more to the charity.7Internal Revenue Service. Publication 526, Charitable Contributions
To claim the full fair market value, the stock must be long-term capital gain property, meaning held more than one year. Donations of appreciated stock to public charities are capped at 30% of your adjusted gross income; you can elect cost basis instead of fair market value to raise the cap to 50%, but that rarely helps. Unused deduction carries forward up to five years.7Internal Revenue Service. Publication 526, Charitable Contributions
Private foundations follow tighter rules. The deduction for appreciated stock donated to a private nonoperating foundation is generally limited to 30% of AGI, and for most property other than publicly traded stock you may need to use cost basis rather than fair market value.8Internal Revenue Service. Charitable Contribution Deductions
Inheriting Stock
Stock that passes at death gets the best tax treatment of any transfer. The recipient’s basis resets to the fair market value on the date of death, wiping out every dollar of appreciation that built up during the decedent’s lifetime.9Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent Shares purchased at $5 and worth $200 at death land in the beneficiary’s account with a $200 basis. The prior $195 of growth is never taxed.
The beneficiary’s holding period is automatically long-term regardless of actual time held, so any future gain enjoys preferential rates from day one.
Alternate Valuation Date
The executor may elect to value all estate assets six months after death instead of on the date of death. The election is only available when it reduces both the gross estate and the estate tax owed.10Office of the Law Revision Counsel. 26 USC 2032 – Alternate Valuation When the election is made, the beneficiary’s stepped-up basis uses that later value. If markets fell after the death, the lower valuation cuts the estate tax bill and the beneficiary’s future basis.
Community Property and the Double Step-Up
Married couples in community property states get an extra benefit. When one spouse dies, both halves of community property stock step up, not just the decedent’s share. The surviving spouse’s half is treated as if also acquired from the decedent, so the entire position resets to fair market value.9Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent Stock held as joint tenants with right of survivorship, the default in most non-community-property states, only steps up the decedent’s half. On a large portfolio the difference is substantial.
Income in Respect of a Decedent
The step-up does not apply to income in respect of a decedent, meaning income the decedent earned but never recognized before death. Traditional IRAs, 401(k)s, and deferred compensation are the common examples. Beneficiaries owe ordinary income tax on distributions from those accounts just as the original owner would have.
Federal Estate Tax
The estate itself may owe federal estate tax, but only if it exceeds the $15 million exemption for 2026.4Internal Revenue Service. What’s New – Estate and Gift Tax Above that, the top rate is 40%. The lifetime gift and estate exemptions are unified, so lifetime taxable gifts reduce what remains at death. A surviving spouse can use the deceased spouse’s unused exemption through a portability election, doubling the shelter to as much as $30 million for a couple.11Office of the Law Revision Counsel. 26 USC 2010 – Unified Credit Against Estate Tax
Stock Transfers in a Divorce
Splitting stock between spouses as part of a divorce is tax-free at the moment of transfer. Section 1041 treats these transfers as gifts for tax purposes, so the transferring spouse recognizes no gain or loss and no capital gains tax is due when the property is divided.12Office of the Law Revision Counsel. 26 USC 1041 – Transfers of Property Between Spouses or Incident to Divorce
The receiving spouse takes the transferring spouse’s original basis. The tax liability is deferred, not eliminated. On eventual sale the receiving spouse owes capital gains tax on appreciation dating back to the original purchase, sometimes decades earlier by someone else. Holding period carries over, so the eventual gain usually qualifies for long-term rates.
This matters for settlement math. A brokerage account holding $500,000 in stock with a $100,000 basis is not worth $500,000 in cash. It carries $400,000 in embedded gains that will be taxed later. Ignoring basis when dividing assets is one of the most expensive mistakes people make in divorce.
One boundary: Section 1041 does not apply if the receiving spouse is a nonresident alien. In that case the transfer is fully taxable and the transferring spouse must recognize any gain or loss.12Office of the Law Revision Counsel. 26 USC 1041 – Transfers of Property Between Spouses or Incident to Divorce
Transferring Stock Into a Trust
Whether a trust transfer creates a taxable event depends on whether the trust is revocable or irrevocable.
Revocable Trusts
Moving stock into a revocable living trust has no immediate tax consequence. Because you can change or dissolve the trust, the IRS treats the assets as still yours. No gift, no capital gain, no change in basis. You continue reporting dividends and sales on your personal return. At death, stock in a revocable trust receives the same step-up as any other inherited asset, because the trust’s assets are part of your taxable estate.
Irrevocable Trusts
Moving stock into an irrevocable trust is a permanent transfer. Because you give up control, it is treated as a completed gift. Form 709 may be required, and any value above the $19,000 annual exclusion uses up part of your lifetime exemption.4Internal Revenue Service. What’s New – Estate and Gift Tax
The trust takes your carryover basis, the same as a gift to an individual. Who pays income tax on later dividends and gains depends on the trust’s design. Grantor trusts pass income tax back to the grantor, and those tax payments effectively function as additional tax-free transfers to the beneficiaries. Non-grantor trusts pay their own tax under a compressed schedule: the top 37% rate applies at just $16,150 of taxable income for 2026, which makes undistributed gains inside a non-grantor trust unusually expensive.2Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026
Transfers to irrevocable trusts that skip a generation, such as those benefiting grandchildren, may also trigger the generation-skipping transfer tax. The GST exemption tracks the estate tax exemption at $15 million per person for 2026.4Internal Revenue Service. What’s New – Estate and Gift Tax
Qualified Small Business Stock
If the shares qualify as Qualified Small Business Stock under Section 1202, the transfer analysis changes. QSBS is stock in a domestic C corporation with $50 million or less in aggregate gross assets, acquired at original issuance. Hold it for at least five years, then sell, and you can exclude up to 100% of the gain from federal income tax, capped at the greater of $10 million or ten times your adjusted basis.13Office of the Law Revision Counsel. 26 USC 1202 – Partial Exclusion for Gain From Certain Small Business Stock
The exclusion percentage depends on holding period. Under current law, three years of holding qualifies for 50%, four years for 75%, and five or more years reaches the full 100%.13Office of the Law Revision Counsel. 26 USC 1202 – Partial Exclusion for Gain From Certain Small Business Stock Excluded gain is also exempt from the 3.8% NIIT.
The basis rules matter when QSBS changes hands. A gift preserves QSBS status: the recipient takes your basis and holding period, so they can reach the five-year mark using your time. Passing QSBS through an estate steps the basis up to fair market value but strips the QSBS status for ยง1202 purposes, because the beneficiary did not acquire the stock at original issuance. Founders and early investors need to weigh gifting during life against passing shares at death, because the two paths trade the exclusion against the step-up.
State Taxes on Stock Gains
Federal tax is only part of the answer. Most states also tax capital gains, and the rates vary widely. Roughly nine states impose no tax on investment gains at all, while the highest-tax states levy rates above 13% on top of federal liability. A few states tax capital gains only above certain dollar thresholds. In the worst combination, a high-income taxpayer in a high-tax state can face a combined rate on long-term gains approaching 37%, close to the top ordinary income rate. Before executing a large transfer or sale, your state’s treatment deserves the same attention as the federal rules.