"The federal tax code allows you to contribute long-term appreciated securities—such as stocks, bonds, and mutual fund shares—directly to a charity without paying capital gains tax on the appreciated value, as you would if you sold it first and then contributed cash to the charity." [1]
[1] https://www.fidelity.com/viewpoints/personal-finance/tax-bre...