NEW YORK -- Stocks posted solid gains Wednesday ahead of a closely watched decision by the Federal Reserve on whether or not to raise interest rates.
Beer companies gained on word of a possible deal between two giant brewers, and energy stocks rose sharply following a big jump in the price of oil.
The Dow Jones industrial average rose 140.10 points, or 0.8 percent, to 16,739.95. The Standard & Poor's 500 index rose 17.22 points, or 0.9 percent, to 1,995.31 and the Nasdaq composite added 28.72 points, or 0.6 percent, to 4,889.24.
Investors have been speculating about when the Federal Reserve will raise interest rates for months. The Fed started its two-day policy meeting Wednesday and will announce its decision Thursday afternoon, which will be followed by a press conference by Fed Chair Janet Yellen.
Interest rates have been near zero since 2008, when the Fed cut rates sharply in response to the financial crisis and Great Recession. The Fed's low interest rate policy was designed to encourage lending, but it also helped drive a seven-year bull market in stocks by making bonds, CDs and other interest-bearing investments less attractive, driving investors to put money into the stock market.
"If they raise tomorrow, it's going to be nasty for the stock market. Much of the rally back has had much to do with investors believing the Fed isn't going to move," said Tom di Galoma, head of fixed income rates trading at ED&F Man Capital.
Investors' opinions are mixed on the chance of a rate increase. Two months ago, it seemed almost certain that the Fed was going to raise rates in September. Now, after the turmoil in financial markets in August over concerns about China's economy, investors are far less certain.
"I just don't think the economy is strong enough and inflation remains too low to justify a rate increase," di Galoma said.
Stocks have been rising steadily ahead of the Fed's meeting. Investors have said that stocks recovered partly because the chances of an interest rate hike diminished.
In company news, SABMiller, a major beer maker whose brands include Miller and Foster's, jumped 20 percent in London after the company said it received a takeover offer from Anheuser-Busch InBev of Belgium. A combination of the two would create a massive conglomerate worth $275 billion. Any potential deal would be heavily scrutinized by regulators.
U.S.-traded shares of AB InBev rose $7.39, or 7 percent, to $115.43. Other beer makers also rose. Molson Coors jumped $10.34, or 14 percent, to $82.98.
Energy stocks also rose after a steeper-than-expected drop in crude inventories sent oil prices sharply higher.
U.S. benchmark crude jumped $2.56, or 5.7 percent, to $47.15 a barrel on the New York Mercantile Exchange. Brent crude, a benchmark for many international types of oil imported into the U.S., gained $2, or 4.2 percent, to $49.75 a barrel in London.
The Energy Information Administration said U.S. oil supplies fell last week by a steeper-than-expected 2.2 million barrels. Analysts surveyed by Platts expected a decline of 200,000 barrels. The plunge follows news that oil drillers in the U.S. are cutting production in the face of low oil prices.
Oil company stocks followed crude oil higher. The energy sector of the S&P 500 shot up up 2.8 percent, more than twice as much as the rest of the market.
U.S. government bond prices were little changed from Tuesday. The yield on the 10-year Treasury note held at 2.30 percent.
The dollar was little changed at 120.61 yen and the euro edged up to $1.1285.
Gold rose $16.40 to $1,119 an ounce. Silver gained 56 cents to $14.89 an ounce and copper climbed 2.6 cents to $2.45 a pound.
In other energy futures trading:
Wholesale gasoline rose 4.9 cents to $1.382 a gallon
Heating oil rose 4.1 cents to $1.541 a gallon
Natural gas slipped 6.8 cents to $2.66 per 1,000 cubic feet.