Jim Cramer shared a method to tell if a stock market selloff is just a technical glitch or a sign of deeper economic trouble. On Thursday's Mad Money, the CNBC host broke down three market crashes to clarify the difference.

Mechanical Glitches vs. Real Economic Threats

Cramer highlighted the 1987 Black Monday crash as a prime example of a mechanical selloff. The Dow plunged 508 points in one day, a 22.6% drop triggered not by economic fundamentals but by a flawed hedging strategy called portfolio insurance. This method aimed to limit losses automatically through futures contracts but instead accelerated the crash.

He drew parallels with the 2010 flash crash, when the Dow plunged nearly 1,000 points in just over half an hour before recovering most of that same day. Cramer attributed these incidents and the similar sharp dip at the market open in August 2015 to glitches in the futures markets rather than economic weakness.

In contrast, the 2007-2009 financial crisis represented a true systemic failure. The Dow declined over 54%, from a high above 14,000 in October 2007 to under 6,500 by March 2009, and it took several years to regain those levels. Cramer pointed to underlying economic damage like collapsing banks, rising unemployment, and delayed Federal Reserve intervention as causes. He noted the Fed’s eventual aggressive actions helped stabilize the market, but only after significant economic pain.

The key takeaway from Cramer’s framework: investors should consider if a selloff is accompanied by tangible economic deterioration. Mechanical selloffs tend to reverse quickly, often within months, while systemic downturns unfold over multiple years.