US stocks had ended higher on Thursday in another day of broad swings as investors showed nervousness ahead of next week's much-anticipated Federal Reserve meeting, but gains in Apple and biotech shares supported the day's advance.

Apple's shares rose 2.2 per cent to $112.57, rebounding from losses the day before when the iPhone and iPad maker unveiled new offerings.

Biotech also boosted the market, with Gilead up 3.3 per cent at $107.25, giving the second-biggest boost to the S&P 500 and Nasdaq after Apple. The Nasdaq biotechnology index was up 1.9 per cent.

The day's gains follow a 1-per cent market decline on Wednesday and weeks of volatility largely tied to worries about a slowdown in Chinese growth and its impact on the global economy. Investors also have been nervous about next week's Fed meeting and whether the US central bank will decide to raise interest rates for the first time in nearly a decade.

"It's this tug of war, and that gives big moves going both ways at the moment. Obviously investors are very unsettled with regard to their conviction," said Mark Luschini, chief investment strategist at Janney Montgomery Scott in Philadelphia.

"It certainly doesn't seem as though we have a groundswell of demand coming into stocks that can push the market up significantly."

The Dow Jones industrial average rose 76.83 points or 0.47 per cent to 16,330.4, the S&P 500 gained 10.25 points or 0.53 per cent to 1,952.29 and the Nasdaq Composite added 39.72 points or 0.84 per cent to 4,796.25.

The S&P 500 traded in a 28-point range on Thursday, but has had moves of at least 1 per cent in 11 sessions since Aug. 20, when concerns about a deceleration in the Chinese economy began to increase.

Nine of the 10 major S&P sectors were higher, led by the healthcare, up 0.9 per cent and technology up 1 per cent.

Adding to uncertainty surrounding the Fed's next meeting, data showed the US labour market appeared to gain momentum in early September as fewer Americans filed for weekly unemployment benefits, while another report showed import prices fell last month.

Influential fund manager David Tepper of Appaloosa Management told CNBC that corporate earnings may not rise as much as expected and he was not overly bullish on stocks next year.

Krispy Kreme Doughnuts dropped 11.7 per cent to $15.65 a day after the doughnut chain cut its 2016 profit forecast.

Also, the shares of Avon Products fell 9.5 per cent to $4.10, reversing earlier gains. The Wall Street Journal reported the company was in talks with private equity firms about an investment through a stake sale in the struggling company.

After the bell, shares of Restoration Hardware were up 2.4 per cent at $93.25 following its results and outlook.

During the regular session, NYSE advancing issues outnumbered declining ones 1,623 to 1,398; on the Nasdaq, 1,656 issues rose and 1,155 fell. The S&P 500 index posted one new 52-week high and eight lows; the Nasdaq recorded 28 new highs and 62 lows.

About 6.8 billion shares changed hands on US exchanges, below the 8.1 billion daily average for the past 20 trading days, according to Thomson Reuters data.