Publicly traded stock and other securities you’ve held more than one year are long-term capital gains property, which can make one of the best charitable gifts. Why? Because you can deduct the current fair market value and avoid the capital gains tax you’d pay if you sold the property.
Donations of long-term capital gains property are subject to tighter deduction limits — 30% of adjusted gross income (AGI) for gifts to public charities, 20% for gifts to nonoperating private foundations. In certain, although limited, circumstances it may be better to deduct your tax basis (generally the amount paid for the stock) rather than the fair market value, because it allows you to take advantage of the higher AGI limits that apply to donations of cash and ordinary-income property (such as stock held one year or less).
Don’t donate stock that’s worth less than your basis. Instead, sell the stock so you can deduct the loss and then donate the cash proceeds to charity.