If you have cash equal to the donated amount, you can buy shares to replace the donated ones. These shares will have a higher basis since one is donating shares that have increased in value, reducing future income taxes. To rebalance your portfolio, buy different shares. Thus, you enter the virtuous cycle of buying securities with cash, waiting a few years or decades, and donating appreciated securities without paying income taxes. In effect, yours charitable donation costs much less.