Your planning for income tax consequences are an important consideration when it comes taking social security. Here are a few basics.
When it comes to possibly paying federal income taxes on your Social Security benefits, withdrawals from Roth IRAs aren't counted, but withdrawals from 401(k), 403(b), regular IRAs, and other tax-deferred accounts are. So there may be a significant advantage in a) withdrawing from your tax-deferred accounts after you retire, but before you start collecting Social Security, b) using up your tax-deferred accounts before you withdraw from your Roth accounts, and c) converting your tax-deferred accounts to Roth IRA holdings after or even before you retire, but before you start collecting Social Security.