A Merrill Lynch analyst ate a handful of magic mushrooms in his Manhattan apartment Sunday morning — and then plunged to his death out of his 26th-floor window, police sources said.

Alex Lagowitz, 23, was found dead on a third-floor, outdoor patio around 10 a.m. — directly below his bedroom window at Windsor Court on East 31st Street and Lexington Avenue in Murray Hill, the sources said.

It’s still unclear to cops if he purposely jumped or lost his balance and fell out the window.

Sources said that Lagowitz, who is from Livingston, N.J., and was a star golfer on the Colgate University team, took 4 grams of the drug.

His roommate, Max Kaplan, 22, was arrested and charged with criminal possession of a controlled substance for the remaining mushrooms found inside the apartment.

Lagowitz, a credit trading analyst at Bank of America Merrill Lynch since June 2015, went to the Super Bowl in February with his dad, according to his Facebook page.

Click for more from The New York Post.