A man became so panicked during a joyride on a fighter jet that he accidentally ejected himself at 2,500 feet in the air — and survived, according to a report.

A newly released investigation said the 64-year-old French man was gifted the March 20, 2019, flight by his colleagues, even though he’d never expressed any desire for such an experience, according to CNN.

The man — who was not identified in the investigation report released by the French government — was so nervous before the flight that “his heart was in full tachycardia,” with beats ranging from 136 to 142, data from his watch showed.

He nevertheless went through with the flight, which took off from Saint-Dizier air base in northeastern France, the outlet reported.

But when the jet — a French air force Dassault Rafale B, which can reach maximum speeds of 870 mph — hit 2,500 feet in the air, then abruptly started climbing further, the man was so scared that he went to grab for something and accidentally pressed the eject button, according to the report.

He was shot into the air, and glided with a parachute before hitting the ground in a tumble near the German border, according to the report.

His helmet wasn’t properly fastened and it flew off during the incident.

But he wasn’t seriously injured, and the pilot — who suffered minor injuries to his face during the commotion — was able to land the plane safely.

Afterward, the passenger was taken to the hospital.