A sizable number of the recipients of federal aid programs such as Medicaid and food stamps are employed by some of the biggest and more profitable companies in the United States, chief among them Walmart and McDonald’s, according to a new report from Congress’s nonpartisan watchdog.

The Government Accountability Office undertook the study at the behest of Sen. Bernie Sanders (I-Vt.) to answer questions about the relationship between employers and the federal assistance programs. The report draws on February data from agencies in 11 states that administer Medicaid and the federal Supplemental Nutrition Assistance Program, better known as SNAP, or food stamps.

Walmart was one of the top four employers of SNAP and Medicaid beneficiaries in every state. McDonald’s was in the top five of employers with employees receiving federal benefits in at least nine states.

In the nine states that responded about SNAP benefits — Arkansas, Georgia, Indiana, Maine, Massachusetts, Nebraska, North Carolina, Tennessee and Washington — Walmart was found to have employed about 14,500 workers receiving the benefit, followed by McDonald’s with 8,780, according to Sanders’s team. In six states that reported Medicaid enrollees, Walmart again topped the list, with 10,350 employees, followed by McDonald’s with 4,600.

In Georgia, for example, Walmart employed an estimated 3,959 workers on Medicaid — an estimated 2.1 percent of the total of non-elderly, non-disabled people in the state receiving the benefit. McDonald’s was next on the list, employing 1,480 who received Medicaid, or 0.8 percent of the total of non-elderly, non-disabled people on the program.

In Oklahoma, 1,059 Walmart workers on Medicaid made up 2.8 percent of the state’s total and McDonald’s was next, with 536 workers, or 1.4 percent.

In Arkansas, where Walmart was founded and maintains its headquarters, 1,318 were receiving SNAP benefits — 3.1 percent of the state’s total. McDonald’s, next on the list with 865 workers, made for 2 percent of the state’s total. Another 3 percent of SNAP recipients in Georgia worked for Walmart.

The next companies with large number of workers on federal benefits include Dollar Tree, Dollar General, Amazon, Burger King and FedEx, the GAO found. (Amazon chief executive Jeff Bezos owns The Washington Post.)

In a statement sent by spokeswoman Morgan O’Marra, the company said it believed the data was taken out of context and misleading, noting that McDonald’s and Walmart account for some of the largest employers of the country.

“The average starting wage at U.S. corporate-owned restaurants is over $10 per hour and exceeds the federal minimum wage,” the statement said. “McDonald’s believes elected leaders have a responsibility to set, debate and change mandated minimum wages and does not lobby against or participate in any activities opposing raising the minimum wage.”

McDonald’s announced last year that it would stop lobbying against efforts to raise the minimum wage.

Anne Hatfield, a spokeswoman for Walmart, noted that the company was the country’s largest employer, saying that the numbers were in proportion with that.

“If not for the employment access Walmart and other companies provide, many more people would be dependent on government assistance,” she said in a statement. “A small percentage of our workforce comes to us on public assistance, and we remove employment barriers and create opportunities for individuals that too many overlook. Walmart has invested more than $5 billion in increased pay, expanded health benefits, and a debt-free college program over the past five years and our starting rate is more than 50% higher than the federal minimum wage, which Washington hasn’t changed in more than a decade. We support efforts to raise the minimum wage while we continue to make investments in our associates.”

The GAO reached out to agencies in all 50 states and the District but ended up focusing on a smaller group that provided the most reliable and verifiable data, it said.

Each agency in those states reported back the 25 most common employers of Medicaid enrollees and SNAP recipients.

Sanders accused companies such as Walmart and McDonald’s of relying on “corporate welfare from the federal government by paying their workers starvation wages.”

“That is morally obscene,” he said in a statement to The Post. “U.S. taxpayers should not be forced to subsidize some of the largest and most profitable corporations in America.”

Walmart, based in Bentonville, Ark., reported $5.1 billion in net income for the third quarter of 2020 this week, as business has surged during the pandemic.

McDonald’s reported a net income of $1.76 billion over the same period.

The numbers could not be fully explained by part-time schedules; about 70 percent of the 21 million people receiving Medicaid or SNAP benefits work full time, in general, the GAO said. Ninety percent worked in the private sector.

The data squares with other research that has explored the consequences of low wages at some of the country’s biggest corporations.

A 2013 study from the University of California at Berkeley and the University of Illinois at Urbana-Champaign found that three-quarters of people in the country’s major public benefits programs such as Medicaid and SNAP came from working families. A follow-up report two years later found that the numbers were worse for the fast-food industry, where more than half — 52 percent — of fast-food workers are in families where one or more family members relies on a public program.

The GAO data reflects some of the large-scale economic changes that have tilted economic benefits toward the wealthier segments of society, as much of the job gains over the last decade — before the pandemic — came from the service sector, while wages have failed to keep pace with productivity.

The story is partially about the minimum wage, too, which at $7.25 federally has fallen well below the amount it used to be when adjusted for inflation.

“Wages at the bottom and middle of the income spectrum have been essentially flat since the late 1970s,” said Ken Jacobs, chairman of U.C. Berkeley’s Labor Center and a co-author of both of the Berkeley reports. “As productivity has increased, pay has stayed very low, and again, our federal minimum wage is well below where it would have been if it kept up with inflation and very far where it would have been if it kept up with productivity growth. So many families earn too little to get by on what they earn from their jobs.”

There is a growing conversation about improving the plight and pay of low-wage workers, as the push for a $15 minimum wage increasingly finds support in unlikely corners such as the state of Florida, which just approved a ballot measure to raise the minimum wage, as well as the incoming Biden administration.

“There is growing evidence of serious, long-term, negative effects on families of low income,” Jacobs said. “Increasing family income has big effects on children’s educational outcome, children’s health, adults’ mental health, and crime and recidivism.”

Heather Boushey, president of the Washington Center for Equitable Growth think tank, who has been advising President-elect Joe Biden according to multiple media reports, said the story was fundamentally about taxes.

She said it shouldn’t be viewed as inherently problematic that workers relied on government programs for benefits as long as companies were paying their fair share to the government.

“The idea that we can finance access to health care through the tax system is what many other countries do,” she said. “So we shouldn’t be appalled by that, but we should make sure that everybody is paying their fair share. In some ways, it pushes us to say, ‘What’s a sufficient way to do this?’ ”

The survey was taken right before the pandemic unfolded, and the GAO noted that conditions could have worsened for workers since.

“The economic effects of the covid-19 pandemic have further exacerbated conditions for these workers, increasing the importance of federal and state safety net programs to help them meet their basic needs,” the GAO said.