Justice is served — with a hefty bill.

A Putnam County man wrongly convicted of raping a fellow high school student when he was 16 was awarded Thursday what his lawyers called the largest sum in U.S. history.

Jeff Deskovic won $41,650,000 in a lawsuit against sheriff’s investigator Daniel Stephens and Putnam County.

In 1989, 15-year-old Angela Correa never returned to school after leaving to take pictures for a photography class. Her body was later found beaten, raped and strangled.

Investigators zeroed in on Deskovic, who showed up late that day for school. Authorities said he seemed obsessed with the case, further rousing their suspicion.

Eventually Deskovic was given three lie detector tests over the course of a six-hour interrogation in which he eventually confessed.