Donating appreciated stock skips the capital-gains tax and keeps the full charitable deduction

Two businessmen reviewing documents at a table.

Investors sitting on large unrealized gains in publicly traded shares face a choice every time they plan a charitable gift: sell the stock and donate the cash, or transfer the shares directly to the charity. The second path, when the stock qualifies, eliminates the federal capital-gains tax on the appreciation and still lets the donor claim a deduction equal to the full fair market value. That dual benefit is written into the Internal Revenue Code under Section 170 and its accompanying Treasury regulations, and it applies specifically to a category the statute calls “qualified appreciated stock.”

How unrealized gains and rising markets sharpen the tax stakes

When a donor sells appreciated stock before giving the proceeds to charity, the sale triggers a capital-gains tax on the difference between the purchase price and the sale price. The donor then deducts the cash amount given. Donating the shares directly to a qualifying charity skips the sale entirely. The donor never realizes the gain, so no capital-gains tax is owed, and the deduction equals the stock’s fair market value on the date of the gift. The Treasury regulation governing property contributions states that noncash donations are generally valued at fair market value at the time of contribution, subject to certain reductions.

Those reductions matter. Under IRC Section 170(e)(1), the deduction for most appreciated property must be reduced by the amount that would have been long-term capital gain if the property had been sold. But the statute carves out a specific exception for qualified appreciated stock. To meet that definition, the shares must be capital-gain property, meaning they have been held longer than one year, and market quotations must be readily available on an established securities market. Shares in a private company or a thinly traded fund do not qualify.

The hypothesis that stock donations accelerate faster than cash gifts during years of strong equity returns is plausible on its face, because larger unrealized gains increase the tax savings from donating shares rather than selling them first. Yet no publicly available IRS Statistics of Income dataset isolates qualified appreciated stock donations from other noncash property gifts with enough granularity to confirm or reject that relationship after controlling for overall giving trends. The latest publicly available SOI breakdowns do not separate stock gifts from real estate, art, or other capital-gain property in a way that allows a clean comparison to cash giving.

What the statute and regulations actually guarantee

The legal architecture rests on three linked provisions. Section 170 of the Internal Revenue Code is the controlling federal statute for the charitable contribution deduction. It sets the general rule, the percentage-of-income caps, and the reduction rules for appreciated property. Within that section, paragraph (e) limits deductions for gifts of property that would have produced ordinary income or capital gain if sold, while paragraph (e)(5)(B) defines qualified appreciated stock and exempts it from the usual haircut on long-term capital-gain property donated to public charities.

In practical terms, that exemption means a donor who gives qualified appreciated stock to a qualifying public charity can deduct the full fair market value, subject only to the statute’s percentage-of-income limits. The built-in gain that would otherwise be taxed if the stock were sold is effectively erased for income-tax purposes. The charity, as a tax-exempt entity, can sell the shares without recognizing the gain. The tax code thus converts what would have been a tax liability for the donor into additional resources for the nonprofit.

The regulations fill in the mechanical details. The general valuation rule in Treasury Regulation 1.170A-1 explains how to determine the amount of a charitable contribution of property and how to measure fair market value for deduction purposes. A separate regulation, Treasury Regulation 1.170A-4, coordinates the statutory reduction rules for contributions of ordinary-income and capital-gain property, including the exceptions for certain gifts to public charities. Together, these provisions spell out when a donor must subtract the unrealized gain from the deduction and when, as with qualified appreciated stock, the full value can be claimed.

Limits, planning considerations, and open empirical questions

Even when stock meets the technical definition, the deduction is not unlimited. Section 170 caps most gifts of appreciated capital-gain property to public charities at a percentage of adjusted gross income, with any excess carried forward to future years. Donors who are already at or near those limits may not be able to use the entire deduction immediately, even if the tax advantage of avoiding capital gains remains intact.

Planning also has to account for the type of recipient. The most favorable treatment applies to gifts to public charities and certain donor-advised fund sponsors. Contributions to private nonoperating foundations generally face stricter percentage limits and may require reducing the deduction by the amount of unrealized long-term gain, making cash gifts or different assets comparatively more attractive in some cases.

Despite the clear statutory incentives, the data gap around qualified appreciated stock leaves important empirical questions unanswered. Researchers cannot yet say with confidence how sensitive stock-based giving is to market cycles, how concentrated these gifts are among top earners, or how much they contribute to overall charitable funding in a given year. Until the IRS or another data provider breaks out qualified appreciated stock in a consistent way, analysis of those patterns will rely on partial proxies rather than direct measurement.

For now, what the law firmly guarantees is narrower but still significant: when donors hold appreciated, publicly traded stock for more than a year and give it directly to a qualifying charity, the tax code allows them to deduct the full market value while sidestepping capital-gains tax on the embedded appreciation. That structural incentive, grounded in statute and regulations, ensures that stock market run-ups do more than swell brokerage statements-they also expand the potential tax leverage of charitable giving, even if the precise behavioral response remains hard to quantify from public data alone.


Free tool for readers: It’s free, takes about five minutes, and there’s no sign-up to see your result: get your free Retirement Safety Score — a 0–100 number plus a few personalized steps for making your money last.

Social Security and Medicare change every year, and nobody sends you a memo. Get the free newsletter.

Free from Retirement Shield. Unsubscribe anytime. We never ask for money.