Calculateus

Appreciated Stock Donation Tax Calculator

Compare the tax benefit of donating appreciated stock directly versus selling it and donating cash.

Result

Total Benefit Donating Stock Directly
$8,650.00
Benefit if Selling First, Then Donating Cash
$6,400.00
Extra Benefit of Donating Stock
$2,250.00

Donating appreciated stock held long-term directly to a qualified charity lets you deduct its full fair market value while completely avoiding the capital gains tax you'd owe if you sold it first - selling first and donating the cash proceeds means paying capital gains tax before the charity ever receives the money.

About the Stock Donation Calculator

This calculator compares the tax benefit of donating appreciated stock directly to a qualified charity against selling the stock first and donating the cash proceeds. It isolates the extra advantage that comes from avoiding capital gains tax entirely when shares are given in kind instead of liquidated first. Donors weighing whether to give shares or cash from a taxable brokerage account use it to see the dollar difference between the two approaches.

How It Works

Enter the stock's current fair market value, your original cost basis, and your marginal tax rate. The calculator computes the built-in capital gain, applies a flat 15% long-term capital gains rate to that gain, and compares two outcomes: donating the stock directly, which deducts the full fair market value and avoids the capital gains tax, versus selling first and donating cash, which only produces the deduction since the capital gains tax would already have been paid.

Capital Gain = max(Current Value - Cost Basis, 0). Capital Gains Tax Avoided = Capital Gain x 15%. Deduction Value = Current Value x Marginal Rate. Total Benefit (Donate Stock) = Deduction Value + Capital Gains Tax Avoided. Total Benefit (Sell Then Donate Cash) = Deduction Value.

Formula & Methodology

To compare the two paths by hand, first find the embedded gain by subtracting cost basis from current value. Multiply that gain by 15% to find the capital gains tax that donating stock directly avoids. Separately, multiply the full current value by your marginal tax rate to get the deduction value, which is identical whether you donate stock or cash. Add the avoided capital gains tax to the deduction value for the total benefit of donating stock directly, and compare that to the deduction value alone for the cash-donation path.

Examples

Highly Appreciated Position

Stock now worth $20,000 with a $5,000 cost basis, donor in the 32% marginal bracket. The gain is $15,000, so the avoided capital gains tax is $2,250. Donating the stock directly is worth $6,400 in deduction value plus $2,250 avoided, or $8,650 total, versus $6,400 if sold first and donated as cash.

Modest Gain

Stock now worth $10,000 with an $8,000 cost basis, donor in the 24% bracket. The gain is $2,000, so the avoided tax is only $300. Direct stock donation totals $2,700 versus $2,400 for donating cash after selling.

Advantages

  • Isolates the exact dollar value of the capital-gains-avoidance benefit rather than just showing the deduction, so donors see what's specifically gained by giving stock instead of cash.
  • Scales automatically with the size of the embedded gain, showing why highly appreciated, long-held positions benefit the most from this strategy.
  • Uses your own marginal rate as an input, so the deduction-value portion reflects your actual bracket rather than a generic assumption.

Common Mistakes

  • Believing the charity receives less value when given stock instead of cash, when qualified charities can typically sell donated shares tax-free and keep the full fair market value either way.
  • Selling the stock first and then donating cash "to make it simpler," which triggers capital gains tax before the charity ever receives the money.
  • Donating a stock that has lost value, which forfeits the separate capital loss that could have been claimed by selling it first instead.

Edge Cases to Watch For

  • If the current value is below the cost basis, the calculator treats the gain as zero, so no capital-gains-avoidance benefit is modeled for a position that has actually lost value.
  • The comparison always uses a flat 15% rate for the avoided tax regardless of income, so taxpayers subject to the 20% top long-term rate or the net investment income tax would see a larger real-world benefit than this estimate shows.
  • The deduction is calculated on the full current fair market value in both scenarios, which assumes long-term holding; stock held one year or less generally only allows a deduction limited to cost basis, a rule not modeled here.

Common Use Cases

  • Investors with a concentrated, highly appreciated stock position looking to reduce it while supporting a cause.
  • Donors deciding between gifting shares directly, or through a donor-advised fund, versus writing a check.
  • Financial planners illustrating the tax-efficiency case for in-kind securities donations to clients.
Written & fact-checked by the Calculateus TeamLast updated August 5, 2026How we verify our formulas

Frequently asked questions

Does the charity lose out if you donate stock instead of cash?

No - most established charities and donor-advised funds can accept and sell donated securities directly without paying capital gains tax themselves (since qualified charities are generally tax-exempt), meaning the charity typically receives the full fair market value either way, while you get a larger combined tax benefit by donating the stock directly rather than selling it yourself first.

Conclusion

For long-term appreciated stock, donating shares directly generally outperforms selling and donating cash by exactly the amount of capital gains tax avoided. That gap grows with the size of the unrealized gain, which is why the strategy matters most for stock that has appreciated substantially since purchase.