Charles Schultze in 1976. (Joe Heiberger/The Washington Post)

Charles L. Schultze, an economist who served two Democratic presidents, advocated a tax increase to pay for the escalating Vietnam War and struggled to curb economic “stagflation” in the late 1970s, died Sept. 27 at an assisted-living center in Washington. He was 91.

He had dementia, but the immediate cause of death was complications from sepsis, said his daughter Mary Chris Weintrob.

Dr. Schultze (pronounced “Schultz”) served presidents Lyndon B. Johnson as director of the budget from 1965 to 1968 and Jimmy Carter as chairman of the President’s Council of Economic Advisers from 1977 to 1981.

Between and after his years of government service, Dr. Schultze was affiliated with the Brookings Institution public policy center, where most recently he was senior fellow emeritus. He also was a past president of the American Economic Association.

Better known among economists than to the public, Dr. Schultze saw government as able to ameliorate economic problems, but he took a more restrained view of what it could achieve than some Democrats do. He nudged the policymaking process in the direction of less heavy-handed regulation and toward using market prices to achieve the government’s goals.

Economic adviser to President Carter, Charles Schultze, in 1978. (Frank Johnston/The Washington Post)

He believed that the three-member Council of Economic Advisers had to choose its battles carefully as it sought to win over the president in policy debates that sometimes pitted it against Cabinet secretaries, powerful congressional Democrats or private-sector interests.

William D. Nordhaus, an economics professor at Yale University who served on the council with Dr. Schultze, summarized Dr. Schultze’s temperate approach: “One of the things you have to accept is that you’re not going to get the first best. You can shoot for the second best — and you can prevent the worst.”

As an economist, Dr. Schultze was more problem solver than theorist. Like other councils of economic advisers, the Schultze team’s effect was incremental, rarely dramatic.

He gained a reputation for being precise and meticulous about admitting what he didn’t know — and for being, occasionally, blunt and impolitic.

In October 1979, when inflation had climbed to 13 percent a year, Dr. Schultze, the Carter administration’s senior economist, appeared on NBC’s public affairs show “Meet the Press.” He was asked if the U.S. economy was experiencing a recession or a “moderate downturn.”

“Call it a recession,” he said without qualification.

Dr. Schultze developed early expertise on fiscal policy while serving as a staff economist at the Council of Economic Advisers in the 1950s. The work immersed him deeply in the interaction of the government’s budget — revenue and spending — with the national economy.

In 1962, he was named assistant director of the Bureau of the Budget, now the Office of Management and Budget. He became director in 1965, when he was 39 years old, the youngest person to hold that post.

Pentagon spending was increasing rapidly as the number of troops in Vietnam rose. Dr. Schultze and H. Gardner Ackley, the chairman of the Council of Economic Advisers, advised Johnson to raise taxes.

The president resisted for two years, fearing a tax increase would hamper his Great Society anti-poverty programs.

As Johnson gradually stepped up further involvement in Southeast Asia — and with federal deficit forecasts approaching tens of billions of dollars — the president proposed and Congress enacted in 1968 a two-year, 10-percent surtax on individual and corporate income taxes.

During the presidency of Richard M. Nixon, Dr. Schultze helped start a Brookings series of annual reports called “Setting National Priorities.” It came to be regarded during Republican administrations as an opposition budget.

A few years later, Dr. Schultze’s service as CEA chairman coincided with what came to be known as “stagflation,” the coincidence of rising price levels (inflation) and significant unemployment. It was spurred in part by the run-up in the cost of oil and other supply “shocks.”

Dr. Schultze had taken an early academic and professional interest in this question of the government’s role in causing and combating inflation.

He was cool to raising the minimum wage because he saw wage pressures as driving inflation. This led to friction between him and the more liberal — and more political — members of the Carter administration, notably Vice President Walter Mondale, Labor Secretary Ray Marshall and Stuart E. Eizenstat, chief of the White House domestic staff.

At times, he was able to defeat what he regarded as profoundly bad policy. Dr. Schultze successfully fought proposed language in the Full Employment and Balanced Growth Act of 1978 to make the government an employer of last resort.

Late in 1979, Dr. Schultze did not oppose the Federal Reserve’s aggressive raising of interest rates under its new chairman, Paul Volcker, for two reasons: He believed that Volcker had the support of Carter, who had just appointed him, and he recognized that the government had no other effective way to roll back double-digit inflation. The administration’s exhortations to business and labor to practice restraint — the “jawboning” urged by the Schultze council — had been ineffective.

High interest rates threw the economy into recession in the early 1980s, unemployment shot up, inflation started to abate and the Fed began to ease up.

Dr. Schultze’s longest-lasting impact may have been on moving the government away from what he called “command-and-control” regulation, such as the old quotas on oil imports.

Dr. Schultze explained his approach in “The Public Use of Private Interest,” an essay derived from the Godkin Lectures that he delivered at Harvard University in 1976. He was particularly concerned with applying market pricing to energy policy and environmental protection, both new fields in the 1970s.

“Our political system almost always chooses the command-and-control response,” he wrote, “regardless of whether that response fits the problem.”

For example, Nordhaus recounted, some environmentalists wanted to impose absolute limits on the emissions from each of a firm’s smokestacks. The Schultze council favored a combined cap for all of them, which would let the firm elect to shut down its least efficient units.

Charles Louis Schultze was born in Alexandria, Va., on Dec. 12, 1924. He graduated in 1942 from Gonzaga College High School in the District.

After Army service in World War II, he enrolled at Georgetown University, where he received a bachelor’s degree in 1948 and a master’s degree in economics in 1950. He earned a doctorate in economics from the University of Maryland in 1960.

In 1947, he married Rita Hertzog. She died in 2014. Survivors include six children, Karen Hoffman of Raleigh, N.C., Kevin Schultze of Jackson, Wyo., Lynn Jones of Fort Lauderdale, Fla., Kathleen Schultze of Williamstown, Mass., Carol Kasunic of Darnestown, Md., and Mary Chris Weintrob of Bethesda, Md.; a brother, Bill Schultze of Alexandria; 16 grandchildren, and five great-grandchildren.

Dr. Schultze’s passion for precision was not confined to economics. It reached back to the wording of the citation that accompanied his Bronze Star Medal for combat in Germany (he also received the Purple Heart). The incident occurred on April 2, 1945, five weeks before the end of the war in Europe.

He was standing up behind a .50 caliber machine gun mounted on a Jeep during a reconnaissance patrol when enemy machine gun fire raked the area. “Instead of taking cover from the murderous fire, he manned his machine gun on his vehicle, being in an exposed position, until wounded,” it said.

In an interview for this obituary, he said the rest of the citation was “jazzed up” by superiors to make him look more heroic.

He had suffered a flesh wound to the right shoulder — “no bones broken, it wasn’t a big deal,” he recalled. Characteristically, he didn’t want to embroider the truth.