Deductions & credits

You never pay taxes on more than 85% of your social security income.  So, 85% * 33,000  implies about $28,000 more in taxable income, plus more of the capital gain would be taxed.