The benchmark index hit an intraday high of 2,977.93 earlier in the session, as the truce agreed upon at the G20 summit boosted risk appetite.
"We're right back on track," US President Donald Trump said after the world's two largest economies agreed to restart trade talks. Trump also offered concessions including no new tariffs and an easing of restrictions on Huawei Technologies Co Ltd, while China agreed to make unspecified new purchases of US farm products.
Tech stocks, which are Wall Street's top performers so far in 2019, jumped 1.57pc, with heavyweight Apple Inc's 2.5pc gain providing the maximum support.
Chipmakers with a sizable revenue exposure to China jumped, fueling a 3pc gain in the Philadelphia Semiconductor index . Huawei suppliers Intel Corp rose 0.7pc, while Micron Technology Inc surged 5.2pc.
"The outcome between Xi and Trump was probably the best that could be expected," said Robert Pavlik, chief investment strategist and senior portfolio manager at SlateStone Wealth LLC said.
"Now with a trade truce and quite likely an eventual trade agreement coming online, the technology space, which is heavily connected to Asia, would be an area of the market you want to take a bet on."
Stocks saw their steepest sell-off this year in May after a breakdown in the US-China trade talks sparked concerns of a global economic slowdown.
But hopes that the Federal Reserve would cut interest rates to preserve a strong run of US economic growth helped the S&P 500 and the Dow Jones index post their best June performance in generations.
Despite the latest development in talks, traders still expect the Fed's next move will be a rate cut at its July 30-31 policy meeting.
At 11:06 a.m. ET, the Dow Jones Industrial Average was up 167.07 points, or 0.63pc, at 26,767.03 and the S&P 500 was up 23.70 points, or 0.81pc, at 2,965.46.
The Nasdaq Composite was up 93.94 points, or 1.17pc, at 8,100.18. Shares of Microsoft Corp, Alphabet Inc , and Amazon.com Inc also boosted the tech-heavy index.
Gains on the Dow index were limited by a 0.7pc drop in Boeing Co after a report that federal prosecutors had subpoenaed records relating to the production of the 787 Dreamliner in South Carolina.
A rise in oil prices lifted energy stocks by about 1pc. OPEC and its allies looked set to extend supply cuts until at least the end of 2019 at their meeting in Vienna this week.
Wynn Resorts Ltd jumped 7.2pc, the most on the S&P, as gambling revenue in the Chinese territory of Macau rose more than expected in June. Shares of peers Melco Resorts & Entertainment Ltd and Las Vegas Sands Corp also rose.
Coty Inc tumbled 17.1pc, falling the most on the S&P, after the company said it would overhaul its operations and write down about $3 billion in value of its brands acquired from Procter & Gamble Co.
Advancing issues outnumbered decliners by a 2.19-to-1 ratio on the NYSE and by a 1.88-to-1 ratio on the Nasdaq.
The S&P index recorded 57 new 52-week highs and one new low, while the Nasdaq recorded 108 new highs and 14 new lows.