A Wall Street sign is pictured outside the New York Stock Exchange amid the coronavirus disease (COVID-19) pandemic in the Manhattan borough of New York City, New York, U.S., April 16, 2021.
A Wall Street sign is pictured outside the New York Stock Exchange amid the coronavirus disease (COVID-19) pandemic in the Manhattan borough of New York City, New York, U.S., April 16, 2021. Reuters / Carlo Allegri

The S&P 500 ended slightly higher on Tuesday as investors kept their focus on the growth trajectory of the U.S. economy, and the tech-heavy Nasdaq closed higher while the Dow slipped.

U.S. stocks have been under relentless selling pressure this year, with the benchmark S&P 500 index recording its steepest first-half percentage drop since 1970, as the Federal Reserve moves away from easy-money policy by raising borrowing costs.

Investors are waiting for minutes from the Fed's meeting in June on Wednesday as they brace for another 75-basis-point rate hike at the end of the month.

Traders are also keeping a watch on economic data, including a June nonfarm payrolls report expected on Friday, and on company commentaries for signs of peaking inflation and cooling economic growth, with another earnings season around the corner.

Data showed new orders for U.S.-manufactured goods increased more than expected in May, reflecting that demand for products remains strong even as the Fed seeks to cool the economy.

Separately, business growth across the euro zone slowed further in June and European natural gas prices surged again, reigniting worries of a recession in the bloc.

"The risks of an outright recession are nonzero and the probability is growing at this point that a recession could emerge later - this year, or perhaps even into early 2023," said Bill Northey, senior investment director at U.S. Bank Wealth Management in Minneapolis. "And the U.S. labor market continues to look quite healthy."

The Dow Jones Industrial Average fell 129.44 points, or 0.42%, to 30,967.82, the S&P 500 gained 6.06 points, or 0.16%, to 3,831.39 and the Nasdaq Composite added 194.39 points, or 1.75%, to 11,322.24.

Benchmark U.S. Treasury yields tumbled on Tuesday and a key part of the yield curve inverted for the first time in three weeks as economic growth concerns dented risk appetite and increased demand for the safe-haven U.S. debt.

Eight of the 11 major S&P sectors ended down, with communication services leading the gainers and energy notching the largest percentage drop, marking five-month lows as recession fears darkened the outlook for oil demand.

Volume on U.S. exchanges was 12.39 billion shares, compared with the 13.03 billion average for the full session over the last 20 trading days.

Declining issues outnumbered advancing ones on the NYSE by a 1.33-to-1 ratio; on Nasdaq, a 1.37-to-1 ratio favored advancers.

The S&P 500 posted 1 new 52-week high and 51 new lows; the Nasdaq Composite recorded 13 new highs and 308 new lows.