just one of the many odd tax laws. assuming that you donate a security held long term with a FMV of $5,000 and a tax basis of $3,000, you get a $5,000 deduction on schedule A without getting taxed on the $2,000 gain. it is properly not reflected on line 2a. for some calculations the amount on line 2a is used to calculate Modified Adjusted Gross income.