An NYPD officer who was awarded $15 million after other cops beat him up while he was off duty saw the whopping amount slashed by a judge this week — but he could still walk away with a cool $5.4 million.

A jury in 2016 awarded Officer Larry Jackson the eye-popping $15 million payout — $12.5 million in compensatory damages and $2.6 million in punitive damages — over injures and emotional distress sustained when the cops roughed him up while responding to a 911 call at his daughter’s 21st birthday party.

But the department protested that the compensation was too high, and Brooklyn federal court Judge Pamela Chen this week agreed — recommending that the compensatory damages be cut it down to $2.7 million, which she said was more in line with similar cases. She kept the punitive-damages figure the same, saying the jury’s original figure was fair on that front, for a total of $5.4 million.

“Plaintiff was the victim of an unjustified and brutal beating at the hands of his fellow officers in the presence of his extended family and friends. Plaintiff was punched, struck and choked with an [baton], and pepper-sprayed in the eyes when he was already subdued,” Chen wrote in her order.

“Plaintiff went through an undeniably traumatic experience that has scarred him both physically and emotionally for life … Nonetheless, the jury’s award of $12,500,000 compensatory award for Plaintiff’s physical and emotional injuries is beyond any reasonable amount of compensation in cases such as this.”

A lawyer for Jackson said he is satisfied with the judge’s recommendations because they are still a vindication of his client’s ordeal. Jackson has until Sept. 28 to decide whether to accept the lower payout or ask for a new trial.

“The judge reaffirmed what the jury found from the beginning, which is that the Police Department covered up this assault against Larry Jackson, and, to this day, what they did is disgraceful and no one has ever been held accountable for the criminal conduct perpetrated against him,” his lawyer, Eric Sanders, told The Post.

Jackson was hosting his daughter’s birthday bash at his Queens home Aug. 21, 2010, when his wife called 911 to report a man outside the house who appeared to have a gun, according to court papers.

When the officers arrived, Jackson says, he repeatedly told them that he’s a cop, but they nevertheless blamed him for the trouble, bashing him with batons while he lay on the ground and pepper-spraying his face before hauling him off to a police station.

Jackson believes he was targeted because he is black.

The city’s lawyers argued at the trial that Jackson had punched one of the officers.

At the time, Jackson claimed his injuries were so bad that he might have to retire, but he remains on the force to this day.