US stocks rose on Tuesday after a new round of corporate earnings largely exceeded expectations, even as investors weighed the risks to economic growth posed by the Federal Reserve raising interest rates to combat inflation.

The S&P 500 and the Nasdaq 100 both rose for the third session in a row. Coca-Cola and General Motors both rose after exceeding analysts' earnings estimates.

Treasury yields fell to around 4.09% as treasuries rallied. The dollar fell after data released on Tuesday showed that home price growth in the United States slowed as high borrowing costs sapped demand.

Investors remain confident that the Fed will raise interest rates by three-quarters of a percentage point at its meeting next week. However, recent economic data show that Fed tightening has already begun to weigh on the US economy, leading investors to speculate that the central bank may be nearing the end of its aggressive tightening campaign. Stocks have risen as a result of the Fed's renewed dovishness, as well as a better-than-expected earnings season thus far.

After the close today, Alphabet reported earnings, missing the average analyst expectation and causing the Nasdaq to fall in after-hours trading. Earnings reports were also seen from Microsoft, which marginally beat estimates in most categories, and Visa.