NEW YORK (AP) — Stocks ended Wednesday's trading slightly lower as shares of energy companies and consumer goods makers outweighed gains in technology companies like Apple.
Investors also worked through the Federal Reserve's latest policy statement. The Fed didn't make any changes to interest rates but left the door open for increases later this year.
The Dow Jones industrial average fell 1.58 points, less than 0.1 percent, to 18,472.17. The Standard & Poor's 500 index lost 2.60 points, or 0.1 percent, to 2,166.58. The technology-heavy Nasdaq composite rose 29.76 points, or 0.6 percent, to 5,139.81.
Apple jumped $6.36, or 6.6 percent, to $103.03. While the company reported lower revenue and iPhone sales, it still earned $7.8 billion last quarter, well above analysts' estimates. Apple had been one of the biggest drags on the market this year as investors became concerned that its years of massive growth were coming to an end. Apple nearly erased its loss for the year.
"The expectations for Apple were abysmal," said Daniel Morgan, a portfolio manager at Synovus Trust Company who owns Apple shares. "Everyone is waiting for later this year, when Apple releases new products."
Apple, one of the 30 stocks in the Dow Jones industrial average, is the first of the major technology companies to report this week. Investors got results from Facebook after the close of trading Wednesday, which will be followed by Amazon and Google later this week.
Facebook shares jumped 8 percent to $131.05 in aftermarket trading after the company's quarterly results easily surpassed analysts' expectations on both sales and profit. The company said roughly 1.71 billion people now use Facebook at least once a month, up 15 percent from a year earlier.
Coca-Cola, another component of the Dow, fell $1.48, or 3.3 percent, to $43.40 after the beverage giant trimmed its sales outlook for the year, citing weak demand in China and other international markets. Coke has faced headwinds in the U.S. and internationally as more consumers move away from sugary drinks.
Twitter, which also reported its results late Tuesday, plunged $2.68, or 15 percent, to $15.77. The social media company reported another loss and said user adoption rates continue to slow. Roughly 313 million people regularly used Twitter last quarter, a fraction of the 1.7 billion people who use Facebook regularly.
"It's really now becoming a question on whether Twitter as a concept is something financially viable," Morgan said. "Fundamentally, is this going to work?"
The Federal Reserve voted to keep interest rates unchanged while noting that "near-term risks" to the economy have "diminished." The Fed said the U.S. job market has rebounded, with strong job gains in June following weak growth in May. Investors will get another policy decision by one of the world's central banks on Friday, when the Bank of Japan is likely to vote to increase its economic stimulus efforts.
Benchmark U.S. crude fell $1, or roughly 2.3 percent, to close at $41.92 a barrel on the New York Mercantile Exchange, continuing its month-long decline. Brent crude, used to price international oils, fell $1.40 to $43.47 a barrel in London.
Energy stocks were among the biggest decliners as oil prices fell. Marathon Oil, Transocean and Hess Corporation all fell roughly 4 percent or more.
Bond prices rose. The yield on the 10-year Treasury note fell to 1.51 percent from 1.56 percent, most of the gains coming after the Fed's announcement. The dollar rose to 105.23 yen from 104.63 yen and the euro fell to $1.1054 from $1.0986.
In metals, the price of gold rose $5.90 to $1,326.70 an ounce, silver rose 31 cents to $20 an ounce and copper fell 4 cents to $2.19 a pound.
In other energy commodities, heating oil fell 3 cents to $1.30 a gallon, wholesale gasoline futures fell 2 cents to $1.32 a gallon and natural gas fell 4 cents to $2.67 per 1,000 cubic feet.
This story has been corrected to show that Apple earned $7.8 billion last quarter, not $10.5 billion.