A tax hike for the wealthy is broadly popular — especially among Democrats, but also with independents.

“Voters across the board actually support higher taxes on the wealthy and on corporations,” John Hudak, a senior fellow at the Brookings Institution, said in an interview. “But in terms of understanding whether people are supportive of raising their own taxes to get certain social benefits, the evidence is mixed.”

Polling data suggest that in recent years, the country has grown less resistant to federal taxation. In both 2018 and 2019, Americans responding to Gallup polls have been more likely to say that the amount of federal income tax they pay is “about right,” rather than “too high.” This marks the first time since the 1950s, when Gallup started asking the question, that public opinion has swung that way two years in a row.

Only a quarter of those polled by Gallup this year said they were “very dissatisfied” with the amount of taxes Americans pay — the lowest percentage since the question was first asked in 2001.

But most of that change has taken place among Republicans, who have historically been the most averse to federal taxation. This shift may speak to Republicans’ satisfaction with President Trump’s 2017 tax law — which broadly lowered taxes, but delivered the greatest benefits to wealthier Americans — more than an increased willingness to be taxed in exchange for public services.

But the Trump tax law has added to the view among most Americans that the federal tax system unfairly favors the rich. In a March Pew poll, 80 percent of Americans said they were bothered at least somewhat by “the feeling that some wealthy people don’t pay their fair share” in taxes.

Therefore, Mr. Hudak said, the message of a wealth tax could catch on with the general electorate. Whether this will transform into additional support for Medicare for all remains uncertain.