Deductions & credits

Yes, the gains are added to income but the tax calculation will tax that portion of your income at the capital gains rate to arrive at your overall tax liability.