NEW YORK — Given the wild trading of late, it was a calm close to the month.
After flitting between tiny gains and losses most of Friday, the stock market closed mostly lower, a peaceful end to the most volatile month in nearly two years.
"It's a dull Friday," said Gary Flam, a stock manager at Bel Air Investment Advisors. A bull market, he added, is "rarely a straight march up."
The Standard & Poor's 500 index ended its bumpy ride in June down 1.5 percent, the first monthly loss since October. Still, the index had its best first half of a year since 1998 — up 12.6 percent.
Investors still seem unsure how to react to recent statements by Federal Reserve officials about when the central bank might end its support for the economy.
Mixed economic news added to investors' uncertainty Friday. An index of consumer confidence was almost unchanged, but a gauge of business activity in the Chicago area plunged.
"Investors don't know what to make of the news," said John Toohey, vice president of stock investments at USAA Investment Management. "I wouldn't be surprised to see more ups and downs."
The S&P 500 stock index closed down 6.92 points, or 0.4 percent, to 1,606.28. The Dow Jones industrial average fell 114.89 points, or 0.8 percent, to 14,909.60. The Nasdaq composite index rose 1.38 points, or 0.04 percent, to 3,403.25.
Stocks have jumped around in June. By contrast, the first five months of the year were mostly calm, marked by small but steady gains as investors bought on news of higher home prices, record corporate earnings and an improving jobs market.
By May 21, the S&P 500 had climbed to a record 1,669. Fed Chairman Ben Bernanke spoke the next day, and prices began gyrating.
Investors have long known that the central bank would eventually pull back from its bond purchases, which are designed to lower interest rates and get people to borrow and spend more. Last week, Bernanke got more specific about the timing. He said the Fed could start purchasing fewer bonds later this year, and stop buying them completely by the middle of next year, if the economy continued to strengthen.
Investors dumped stocks, but then had second thoughts this week as other Fed officials stressed that the central bank wouldn't pull back on its support soon. The Dow gained 365 points Tuesday-Thursday. For the month, the Dow moved up or down at least 100 points 16 of 20 trading days, the most since September 2011.
Bonds have also been on a bumpy ride in recent weeks, mostly down.
The prospect of fewer purchases by the Fed sent investors fleeing from all sorts of bonds — municipals, U.S. Treasury securities, corporate bonds, foreign government debt and high-yield bonds. Investors pulled a record $23 billion from bond mutual funds in the five trading days ended Wednesday, according to Bank of America Merrill Lynch.
Bond yields, which move in the opposite direction of bond prices, have rocketed.
The yield on the 10-year Treasury note rose to 2.49 percent from 2.47 percent late Thursday. Last month, the yield was as low as 1.63 percent. Treasury yields help set borrowing costs for a large range of consumer and business loans.
It was a rocky month in foreign markets, too. Major indexes in France, Germany and Britain lost about 5 percent in June.
In U.S. economic news Friday, the University of Michigan said its index of consumer sentiment dipped to 84.1 in June from 84.5 the previous month. But that was still relatively high. May's reading was the highest since July 2007.