Maximum drawdown (max drawdown, or MDD) is the largest peak-to-trough decline in portfolio value before a new peak is reached. It is the worst loss you would have sat through if you had bought at the top and held to the bottom.
Max Drawdown = (Trough Value - Peak Value) / Peak Value × 100, where Peak Value is the highest value before the fall and Trough Value is the lowest value before a new peak
Say your portfolio climbs to $100,000, falls to $70,000, rebounds to $90,000, dips to $75,000 and then sets a new high. The deepest fall from a peak is $100,000 to $70,000: ($70,000 - $100,000) / $100,000 × 100 = -30%. The dip to $75,000 still counts from the $100,000 peak, because no new high came in between, so it is a smaller -25% drawdown and the maximum drawdown stays -30%. Getting back from a 30% fall takes a gain of about 43%. The S&P 500 fell about 57% from its October 2007 closing high to its March 2009 closing low.
AllInvestView calculates maximum drawdown as part of its portfolio risk analysis. See also Sharpe Ratio and Standard Deviation for a complete risk picture.