Investors & landlords

Is the tax rate for capital gains based on taxable income, total income, or adjusted gross income?