Celebrity scientist Neil deGrasse Tyson sparked angry backlash by suggesting people are overreacting about mass shootings — then later admitted he “miscalculated” in a groveling apology on Monday.

“In the past 48hrs, the USA horrifically lost 34 people to mass shootings,” the astrophysicist wrote Sunday as the nation wrestled with massacres in Dayton, Ohio, and El Paso, Texas, that left 29 dead.

“On average, across any 48hrs, we also lose… 500 to Medical errors, 300 to the Flu, 250 to Suicide, 200 to Car Accidents, 40 to Homicide via Handgun.

“Often our emotions respond more to spectacle than to data,” said the 60-year-old scientist.

Almost immediately, Twitter exploded with outrage.

“This is the most heartless tweet in history of social media,” @JessGreer8 replied, calling him a “soulless a–hole” for suggesting that “innocent dead bodies arriving at the morgues are just statistics.”

Engineer Sam Newell stressed that “no one person” caused all the deaths he referred to, while “one a–hole with a high powered rifle killed 20 people in El Paso.”

“See the f–king difference,” he told Tyson.

Moms Demand Action founder Shannon Watts criticized his “cold take,” replying, “Our gun violence crisis is preventable and senseless and driven by a special interest.”

Candice Aiston wrote that it was “almost comforting that even a super important scientist can be so fundamentally stupid.”

“Neil’s been smoking DeGrass,” Ethan Klein joked.

DeGrasse apologized early Monday, saying he was caught off guard by the emotions he stirred.

“My intent was to offer objectively true information that might help shape conversations and reactions to preventable ways we die,” he said.

“I apologize for not knowing in advance what effect my Tweet could have on you. I am therefore thankful for the candor and depth of critical reactions shared in my Twitter feed.

“As an educator, I personally value knowing with precision and accuracy what reaction anything that I say (or write) will instill in my audience, and I got this one wrong.”