Genetic tests have confirmed that the DNA of two cops was found on the Brooklyn teen who accused them of handcuffing her and raping her in a police van, according to sources close to the investigation.

“DNA samples taken from both suspects came back as a match when compared to the rape kits,” a law enforcement source said.

The 18-year-old, who goes by Anna Chambers on social media, claims two plainclothes officers found prescription drugs in her car during a Sept. 15 traffic stop, and then cuffed her and took her into an unmarked police van, where one raped her and both forced her to perform oral sex on them in exchange for her freedom.

“You’ll spend three hours in the precinct. This is what you’re going to do for us, and we’ll let you go,” they allegedly told her, according to her lawyer, Michael David.

“There was zero consent,” David said. “The cops were over 6 feet tall. She’s very petite, like 5-2 and maybe 100 pounds. There’s nothing she could do.”

NYPD brass have stripped the two detectives, Richard Hall and Eddie Martins, of their guns and shields and placed them on modified duty — along with their supervisor, Sgt. John Espey, who was punished for failure to supervise — while the investigation continues.

The detectives have said the sex was consensual.

The DNA evidence only proves the three engaged in sex acts — not whether she was a willing participant.

Police Commissioner James O’Neill has said the detectives would “pay the price” if the rape allegations are true.