Deductions & credits

Also note that not all states recognize QCD's, so you may still owe state taxes on the distribution.