Concerns over the growing unrest in Egypt sent crude oil prices up 3 percent to $92 a barrel.
At the market close, the Dow Jones industrial average is up 68 points, or 0.6 percent, to 11,892. The broader S&P 500 index is up 10, or 0.8 percent, to 1,286. The Nasdaq composite index is up 13, or 0.5 percent, to 2,700.
Two stocks rose for every one that fell on the New York Stock Exchange. Volume came to 1.2 billion shares.