(CNBC) U.S. stocks closed higher Thursday, the last day of the quarter, in their third-straight day of recovery from the post-Brexit sell-off.
The Dow Jones industrial average rose nearly 1.4 percent for the quarter, while the S&P 500 rose 1.9 percent for their third-straight quarter of gains.
The Dow closed about 235 points higher with 3M, IBM and Goldman Sachs the top contributors to gains as all constituents except Visa rose. Consumer staples rose 2.2 percent to lead all 10 S&P 500 sectors higher.
Advertisement - story continues below
"I think it's a continuation of trying to sort out what Brexit means and what's important to investors," said Bruce McCain, chief investment strategist at Key Private Bank. "Whether they decide it means nothing, ... were going to have to wait and see."