Deductions & credits

Charitable deduction is deducted from your total income (which includes capital gains) as an adjustment if you take the standard deduction or if you itemize it’s included in your total itemized deductions which are then subtracted from your AGI.