capital gains are a component of adjusted gross income. Subtract deductions and exemptions to get taxable income. Tax is figured on that amount (lower rate for long-term capital gain income, and qualified dividends).