It's important to note that while capital gains can increase one's adjusted gross income (AGI), they are not subject to Social Security taxes. However, a higher AGI from capital gains can potentially lead to a higher portion of Social Security benefits being taxable.