The temperature isn’t the only thing getting high this summer.

People are much more likely to try drugs for the first time in the summer than any other time of year, according to a study by New York University scientists published Tuesday.

The most noticeable trend came with LSD, with 34 percent — more than a third — trying it for the first time between June and August, the NYU School of Medicine report found.

But marijuana and ecstasy had similar rates, both with 30 percent, while almost as many people try cocaine for the first time, at 28 percent, according to the report published in the Journal of General Internal Medicine.

During each of the other seasons — even during the school year — less than a quarter tried drugs for the first time.

The trends seem level across age ranges, with older adults just as likely to use summer to experiment for the first time as teenagers, the study.

Drugs are likely more prevalent because people have extra free time and are more likely to hang out in large groups, the report’s senior investigator, Dr. Joseph Palamar, told The Post.

“The bigger the group of people the more likely you are to have a drug user in the group and the more likely you are to be offered drugs, which leads to higher exposure,” he said.

Of particular note, he said, is the “huge” festival scene as a point of “exposure” for many — and also the biggest concern.

“When you hear about young people trying something like ecstasy on a whim when they’re already drunk and dancing all day in 90-degree weather without drinking fluids — that’s a dangerous combination,” he warned.

“People shouldn’t be dying from drugs like ecstasy but they are trying drugs in far from safe environments.”

The study, using data between 2011 and 2017 from 394,415 people 12 and older, offers a key lesson for parents to be extra vigilant over the summer, Palamar said, while adults should also be ready for how they’ll respond to getting offered something.

“I think you need to know where you stand on certain drugs,” he said, noting you shouldn’t make key decisions on a whim when drunk or not around people you trust.

“That’s when people get in trouble,” he warned.