He’s New York’s pension king.

Retired Queens College history professor Edgar J. McManus, 90, gets a city pension of $561,286 a year, newly released figures show.

His payout is the highest by far in both the city and state teachers retirement systems, according to data obtained by the Empire Center for Public Policy, an Albany-based think tank.

The city Teachers Retirement System, or TRS, administers pensions for 80,300 members, mostly former employees of the Department of Education and some from CUNY.

The city’s second-biggest pension, $308,358, goes to Alvin Marty, a Baruch College economics professor who retired after 55 years in 2008.

Fifteen other retirees collect more than $200,000 a year — including city Schools Chancellor Carmen Fariña, who gets $208,506.

And 1,796 retired educators get more than $100,000 a year.

The highest payment to a DOE employee, $287,625, goes to James D. Rosen, a teacher who retired at top pay, $100,049, in 2010.

The new data came to light after the Empire Center won a legal battle against the retirement funds.

In a 6-0 ruling in May, the state Court of Appeals, New York’s highest court, held that the names of state and local government pensioners are subject to public disclosure under the state Freedom of Information Law.

Since the ruling, both the state and city teachers retirement systems have released their pension rolls for the first time since 2010. The Empire Center has posted the information at SeeThroughNY.net.

McManus, who has written groundbreaking books on slavery, retired in February 2012 after teaching history and constitutional law for more than 50 years. His final salary was $116,364.

“They don’t pay you much when you’re working, but the pension is certainly good,” McManus told The Post. “Darn right I deserve it.”

With his World War II military service added in, McManus was credited with 61 years of service for pension purposes.

His pension is based on 1.2 percent of his final salary for each year before 1970, 1.53 percent for each year after 1970, and accounts amassed with investments of his own and city contributions.

His payments are also bigger because he retired so late in life.

“In this member’s case, the extremely high service credit and the relatively short life expectancy — due to age at retirement — both contributed to an unusually high annual benefit amount,” said TRS spokesman Matt Laskowski.

McManus, a widower, said he delayed calling it quits because he enjoyed his work, but finally folded.

“I didn’t want to be carried out, so I retired,” he said.