According to the law, Social Security cannot contribute to the national debt.
The program pays $1.5 trillion a year and aids 70 million Americans. But it has its own budget and by law can’t create debt or widen deficits.