A West Harlem public housing complex is the most dilapidated ­NYCHA site in the entire city, according to records analyzed by The Post.

The Samuel Apartments are in such dire shape that the housing authority will have to shell out $286 million over the next nine years to bring them up to code — or an average of $431,000 for each of the 664 units in the complex’s 40 low-rise buildings, the data show.

That’s more per unit than any other NYCHA development.

“Rat holes, unleveled floors, toilet problems, rotten wood, leaking water — there are lots of problems that we usually end up taking care of ourselves,” said 66-year-old resident Denise Taylor. “The floors in my kitchen are buckling. You can feel it when you walk.”

Taylor’s daughter, Carmela Rodriguez, wants NYCHA’s new $403,000-a-year chairman, Greg Russ, to see the apartment for himself.

“He needs to look at all the seniors living in this building,” she said. “Even though the people who live here are low-income, they’re human as well.”

The complex’s whopping projected repair bill includes $136 million for its mechanical systems, $78 million for structural work and $59 million for interiors.

The Samuel Apartments, which opened in 1993, were developed from century-old buildings that fell into foreclosure in the 1970s.

Taylor’s unit, for example, is in a 1910 building that once had a servants room, blueprints show.

The buildings were “gut-reconstructed” into affordable housing as part of a Mayor Ed Koch-era program, according to city Board of Estimate documents from 1989.

Complaints about leaking roofs, sinking floors and the plumbing soon followed.

The apartments account for just a fraction of the $38 billion that NYCHA has said it needs to fix its 325 sites in the next decade.

The city hopes to pay for $24 billion by allowing private development on NYCHA land and selling air rights, although that still leaves a $14 billion gap.

“NYCHA remains committed to securing funding after decades of federal disinvestment into public housing,’’ spokesman Michael Giardina told The Post.