Since the Great Recession, states have moved to reform their public pension plans, making tough choices and frequently doing so with bipartisan support. Federal lawmakers should keep these lessons in mind.

Social Security, while a critical source of retirement income for nearly 65 million Americans, has been allowed to slide toward a financial cliff. If left unaddressed by our elected leaders in Congress and the White House, the program will exhaust its $2.8 trillion trust fund by 2033 and require an immediate 21 percent benefit cut for retirees. There is no easy solution to this challenge, but state legislatures across the country can provide some lessons for federal policymakers.

After the 2007-2009 Great Recession, state lawmakers had to salvage public employee pension plans. Republican and Democratic lawmakers came together to make tough choices, and every state has approved some type of pension reform since 2010. Texas in particular serves as an excellent example of what can be achieved when robust policy debates lead to bipartisan compromise. While the lessons learned from this overhaul are not completely comparable to what will be needed to deal with the fiscal crisis soon to face Social Security, they can serve as something of a reform road map for federal lawmakers.

By 2021, Texas’ Employees Retirement System (ERS) faced a $14 billion funding shortfall and what consultants called “a strong possibility” that the plan would become insolvent at some point in 30 to 40 years. Unlike Social Security, where insolvency triggers a benefit cut, insolvency risk in Texas falls entirely on the taxpayers. If the pension runs dry, full payments to retirees would be made from the general fund, resulting in a quadrupling of the annual pension cost and chaos for the state budget.

To avoid this outcome, lawmakers enacted legislation that raised state contributions by more than $500 million per year while establishing a new, lower-risk pension plan for future state workers. This package reversed the plan’s trajectory toward insolvency and instead put it on a path to eliminating the pension-funding shortfall over 30 years.

The legislation modernized the benefit structure by establishing a “cash balance” pension for new workers — a flexible hybrid plan that provides a guaranteed interest rate with an upside to additional returns if the market grows — shifting them away from the costly traditional defined benefit plans that left the state on the hook for market instability. This design provides a powerful tool for state workers to safely accumulate retirement savings while greatly reducing the risk that taxpayers will be asked to bail out ERS again.

Even for states that didn’t go as far as Texas and instead opted to maintain the underlying defined benefit structure, this framework of pairing contribution increases with benefit reforms has been common across the country since 2010. These changes, which distributed the burden of paying down pension debt, were frequently approved with bipartisan support in red and blue states alike.

These reforms and the bipartisan nature in which they were passed are examples Congress should look toward as it faces Social Security’s looming insolvency. It may not be politically popular, but federal lawmakers will need to craft a compromise solution that brings program revenues and expenditures back into alignment through adjustments to both sides of the ledger. There are only so many ways to make the books balance.

What should not be lost amid the inevitable negotiations is that Social Security has been on this unsustainable trajectory for decades, and Congress has been unwilling to make the structural reforms necessary to change it. Now is the time for leadership. Lawmakers must craft a plan that reduces the size of scheduled benefit cuts in the near term while modernizing the system to ensure long-term fiscal sustainability and retirement security for America’s most vulnerable senior citizens.

What we have learned from state pension reform makes the agenda for Congress clear: Pulling Social Security back from the brink will likely require both more resources and changes to the benefit structure. Lawmakers have an opportunity to strengthen and modernize an essential source of retirement income while overcoming its long-standing reputation as the third rail of American politics, and they should look to the states for guidance.