Deductions & credits

As long as your total taxable income - LTCG included - keeps you in the bottom two tax brackets any LTCG will be taxed at the 0% tax rate.  But if the LTCG is sufficient to break you into the the 25% tax bracket that "excess" amount of LTCG will be taxed at the 15% rate.