The head of the “nonprofit” North Shore-LIJ Health System pulled down $10 million in compensation last year.

Michael Dowling received a $6.5 million payout from his retirement plan, on top of his $1.4 million salary and a $1.7 million bonus. He also was given $456,717 in deferred pay sometime in the future, according to the hospital’s latest tax filing, which was obtained by The Post.

Dowling is in charge of a 21-hospital system generating $9.5 billion in annual revenue that includes ­Lenox Hill in Manhattan and Staten Island University Hospital.

He got the retirement money on Nov. 18, 2014, when he turned 65, even though he’s not retiring. The cash was part of a plan “that would provide an incentive for Mr. Dowling to stay with the organization, which has achieved enormous growth and success during his nearly 14 years as president and CEO,” said Terence Lynam, a system spokesman.

As a former state employee and commissioner of the Department of Social Services, Dowling also collects a yearly state pension of $13,812.

Executives at New York-Presbyterian Hospital also raked it in last year.

Dr. Robert Kelly, the president who resigned suddenly in September, got a 14 percent raise in 2014, bringing his salary to $1.2 million. He also got a $1 million bonus and $800,000 in “other compensation.”

The highest-paid exec at the hospital, CEO Dr. Steven Corwin, got an 11 percent salary hike to $1.6 million and a $1.6 million bonus, bringing his total compensation to $4.6 million.

Unspecified New York-Presbyterian honchos also received housing allowances and chauffeurs.

Dr. Steven Safyer, the head of Montefiore Medical Center in The Bronx, had use of a driver in 2014. He received a $2 million payout from his retirement plan, bringing his total compensation to $4.8 million.

Stanley Brezenoff retired as head of Continuum Health Partners in 2013, yet in 2014 still got a salary of $1.3 million and a $1.3 million bonus.

Continuum, which included Beth Israel, St. Luke’s and Roosevelt hospitals, merged with Mount Sinai Medical Center in September 2013. Breze­noff’s 2014 pay was as “president emeritus” of Continuum and as a special adviser to the new system’s leadership, according to a Mount Sinai spokesman.

Brian Conway, a spokesman for the Greater New York Hospital Association, an industry group, defended the salaries and perks at the hospitals, which are all nonprofits.

“Hospital CEO compensation reflects their myriad operational and fiscal responsibilities, the complexity of running a medical center that literally never closes and employs thousands, and the national market for their talents,” Conway said.