The beginning of 2013 brought with it a swelling economy, but also international turmoil, domestic uncertainty over fixed-income securities and a turbulent currency and commodities market. Despite those hurdles, the S&P 500 is still up 13 percent for the year, while the Dow is up nearly 15 percent.
In fact, the S&P is poised for its best first half since 1998 and 1999 for the Dow. As the second quarter and first half of the year came to an end Friday, CNBC examined where the money was made.
Investors betting on health care, financial and consumer discretionary stocks fared the best, as these three sectors recorded more than 18-percent gains. The sectors are also leading in Q2.
The Dow Jones Transportation Average, an index of 20 major transportation companies, is also among the winners for the first half, up nearly 17 percent. Within the index, airlines are up the most, posting gains north of 20 percent.
Quarter-to-date, the NASDAQ Composite has taken the lead after lagging for most of the year.
Here's a look at the best and worst performing stocks this quarter. (Click "next" below.)
—By CNBC's Giovanny Moreano. Follow him on Twitter: @giovannymoreano.CNBC's Jeffrey Kagan contributed to this story.