By the Numbers

S&P on track for best first three quarters since 1997

Getty Images

The stock market gains this year are shaping out to be the best in well over a decade. With September heading toward its close, the S&P 500 is on track for its best first three quarters since 1997.

The index has soared 19.4 percent this year, but how long will the rally continue?

Since 1928, the market has been up this much only 14 other times. In 10 of those instances, the S&P 500 continued to climb in the last quarter of the year, posting an average gain of 6.9 percent.

When the market was down, however, it was down big. Consider two of the last four times the S&P 500 fell in Q4, both of which took place during crash years: Q4 1987 (-23%) and Q4 1929 (-29%).

Bad omen?

S&P 500 Returns When Q1-Q3 > 19.4%
DateS&P 500First 3Q Chg.Q4% Chg.
9/29/19339.7240.5%2.57%
9/30/1987321.8332.9%-23.22%
9/30/195432.3130.2%11.36%
9/30/1997947.2827.9%2.44%
9/29/1995584.4127.2%5.39%
9/29/1989349.1525.7%1.22%
9/30/192930.325.2%-29.21%
9/30/195850.0625.2%10.29%
9/30/194312.0823.6%-3.39%
9/30/197583.8722.3%7.54%
9/30/193511.5822.3%15.98%
9/30/195543.6721.4%4.14%
9/28/194516.0520.9%8.16%
9/29/196796.7120.4%-0.25%
9/17/20131704.7619.5%---


—BY CNBC's Giovanny Moreano. Follow him on Twitter: @giovannymoreano