Not in their backyards!

The four City Council members whose districts are set to host controversial new jails each live more than a mile away from where the new lockups will be built, The Post has learned.

All four voted last week in favor of Mayor Bill de Blasio’s $8.7 billion plan to replace Rikers Island with smaller slammers in Manhattan, Brooklyn, The Bronx and Queens, but won’t have to deal with having them nearby.

One lawmaker — Councilwoman Diana Ayala (D–Manhattan, The Bronx) — even has the Harlem River separating her East Harlem apartment from the 19-story pokey that de Blasio wants to put on an NYPD tow pound in the South Bronx.

“Diana Ayala acts like she’s a hero for putting a jail in The Bronx, but she doesn’t even live in the borough where it will tower over residents, never mind the same neighborhood,” fumed Arline Parks, CEO of the Diego Beekman Mutual Housing Association, which is suing to block the plan.

“The jail is across the river from Ayala — it’s across the street from us.”

Councilman Stephen Levin (D–Brooklyn) lives nearly five miles away from where a new jail is set to replace the Brooklyn Detention Complex in Boerum Hill.

Levin’s Greenpoint home is about 30 minutes away by car, or a whopping 90 minutes by foot.

Councilwomen Margaret Chin (D–Manhattan) and Karen Koslowitz (D–Queens) will also have large buffer zones between themselves and hordes of relocated inmates.

In Lower Manhattan, where the infamous jail known as “the Tombs” would be replaced with a 29-story tower, architect Bill Bialosky said that “it’s very good assumption that these council people would’ve voted differently if the new jails affected their living situations.

“I wish [they] lived in my building and had to deal with the effects of the future construction and having to worry about property values diminishing,” said Bialosky, who lives about three blocks away.

A woman who lives near the largely abandoned Queens Detention Complex was outraged that it would be torn down and replaced with an even larger lockup.

“My husband and I were going to buy a co-op across the street and now we’re not. We’re moving back to Ozone Park,” she said.

In addition to avoiding the impact of new jails near their own homes, Levin, Chin and Koslowitz don’t have to fear the prospect of getting voted out of office because they’re all barred from seeking re-election in 2021 under the city’s term-limits law.

Only Ayala faces potential ouster by vengeful voters, although the jail in her district would be located in a largely industrial area.

Veteran Democratic political consultant Hank Sheinkopf said that Levin, Chin and Koslowitz “might not have voted the way they did” if they were running again.

“It’s not just the fear of crime going up — and city jails not having the space — it’s because there’s many people who don’t want jails in these neighborhoods,” he said.

Sheinkopf also predicted that Ayala “is going to have to plead her case to constituents” because while many want to see Rikers closed, “they will also not be happy about a jail going up in their neighborhood.”

Another Democratic consultant, George Arzt, disagreed, saying that Ayala’s popularity outweighed “any opposition stemming from her vote,” and that “Koslowitz was for the plan very early, so I doubt term limits played a role.”

All four council members claimed they wouldn’t have voted any differently, even if they lived near the planned new jails.

“I was elected to do the right thing and make hard decisions,” Ayala said Sunday.

She added: “If we know anything, it is that those communities where borough-based jails already exist are some of the safest in the city.”

Additional reporting by Kevin Sheehan and Bruce Golding