Wall Street closed in positive territory on Tuesday as investors responded to a combination of cooling producer inflation and robust early second-quarter earnings.

The softening price pressures helped ease concerns about persistent inflation, while corporate results provided a solid fundamental backdrop for the session's gains.

PayPal shares jumped sharply after reports emerged of a potential buyout offer, providing a significant tailwind for the broader market.

In the financial sector, BlackRock and Morgan Stanley both delivered earnings that exceeded analyst estimates, reinforcing confidence in the industry's resilience.

These positive corporate developments helped offset weakness in the semiconductor sector, which weighed on tech-heavy indices.

The S&P 500 and Nasdaq Composite both posted modest gains, continuing a recent trend of higher closes driven by favorable macroeconomic data.