Americans are back to buying up toilet paper.

Procter & Gamble Co. , the biggest U.S. manufacturer of toilet paper and paper towels, said it is ramping up production as demand increases. The moves come as several retailers said P&G is limiting shipments of paper products to stores.

The maker of Charmin toilet paper and Bounty paper towels is speeding up production lines, running factories 24 hours a day, seven days a week and investing to increase shipping volumes, a company spokeswoman said. P&G declined to comment on limits to retailers.

The recent jump in demand comes after many months in which paper-product sales plummeted to below pre-pandemic levels as stocked-up Americans stopped buying.

The situation isn’t as dire as it was early in the pandemic, when panicked customers cleared shelves as they stockpiled large quantities of paper towels and toilet paper, according to industry data, manufacturers and retailers.

Paper products, which include paper towels and toilet paper, were 86% in stock as of Aug. 29, according to data from market-research firm IRI. That is a lower in-stock rate than consumer products on average, but nowhere near the height of last year’s toilet paper shortage when paper products were just 40% in stock.

P&G says government stimulus, preparation for back-to-school and rising Covid-19 cases have Americans buying more household staples. Meanwhile, cleaning habits born of the pandemic remain.

Retailers said shortages have improved since last year, but they are still struggling to get the full variety of sizes and brands of toilet paper and paper towels. Many supermarkets have been receiving incomplete shipments of their orders, as the U.S. supply chain is plagued by shortages of raw materials and labor.

Massachusetts-based grocery chain Roche Bros. Inc. has been struggling with securing a steady flow of toilet paper over the past month, said Arthur Ackles, the company’s vice president of merchandising and buying.

“Customers are asking a lot of questions,” said Mr. Ackles, who said Roche Bros. was notified of limits by P&G last week. Certain items have already been unavailable for a few days in recent weeks, and Mr. Ackles is worried that other disruptions could lead to panic buying.

Roche Bros. and some other retailers said shoppers have been buying more staples like toilet paper and cleaning products as the Delta variant pushes up the number of Covid-19 cases across the country. In response, Roche Bros. is looking at other suppliers of paper products and securing more items, Mr. Ackles said, though stores don’t have much extra space to store bulky packs of toilet paper.

“I don’t think we fully recovered from when the supply chain got a massive hit,” he said.

In the Southern U.S., Food City has been carrying toilet paper from smaller suppliers to avoid holes on the shelves.

‘I don’t think we fully recovered from when the supply chain got a massive hit.’

— Arthur Ackles of Roche Bros.

“We fill them with whatever we’ve got,” said Steve Smith, the Abingdon, Va.-based chain’s chief executive. Demand for toilet paper remains high at the grocery chain, with sales up about 7% for the past four weeks compared with the same period a year ago. August was the grocer’s second-highest month of total sales since the pandemic started.

Other retailers said they are seeing a resurgence in demand for cleaning products because of concerns around rising cases and the coming return of cooler weather. SpartanNash Co. in the Midwest is maintaining a much larger “safety stock” of these products, said Dave Petko, its chief supply-chain officer, though different items are coming back at varying times.

Paper-product sales were 8% higher in the three weeks ended Aug. 22 compared with the same period a year ago, according to IRI.

Across the broader consumer-products industry, companies that make and sell products from hand sanitizer to cleaning wipes are working to avoid shortages that plagued the country through the early months of the pandemic.

Supply levels have yet to return to normal. In March 2020, when shopping peaked for household staples, stores ran out of 13% of their items on average, according to IRI. Now, roughly 11% of items remain out of stock, compared with a normal range of 5% to 7% before the pandemic.

The equation has become more complicated amid widespread supply-chain disruptions, soaring material costs, labor shortages and shifts in demand as Covid-19 cases surge and fall. Companies that ramped up production a year ago took hits in recent quarters as demand declined sharply this spring and summer.

Clorox Co. , maker of namesake sanitizing wipes that were among the pandemic’s hottest-selling and hardest-to-find mainstays, more than doubled capacity last year to make wipes while substantially increasing capacity to make other cleaners, the company said. Clorox also hired third-party manufacturers and continued running plants at all hours to keep supply coming.

Covid-19’s Delta variant is proliferating world-wide threatening unvaccinated populations and economic recovery. WSJ breaks down events in key countries to explain why Delta spreads faster than previously detected strains. Composite: Sharon Shi The Wall Street Journal Interactive Edition

“We feel good that our supply chain is more resilient than during the initial stages of the pandemic,” a Clorox spokeswoman said. “We expect to be able to meet demand and also expect that shelves will continue to have a strong assortment of Clorox disinfecting products, including wipes.”

Gojo Industries Inc., maker of Purell hand sanitizer, restructured its supply chain and added both a factory and a warehouse in the U.S., doubling the size of its manufacturing operations.

P&G and other makers of paper products have increased manufacturing capacity more modestly. Making toilet paper in bulk requires a massive machine, a four-story-tall collection of intricately pieced-together parts, which can cost billions of dollars and take months to build.

Kimberly-Clark Corp. , maker of Cottonelle toilet paper and Scott toilet paper, posted the steepest quarterly sales declines in a decade this year as the demand for those products plummeted in the first half of the year. The company is monitoring the situation, a spokesman said.

“We remain vigilant with consumer demand and will continue to produce and ship as much product out to retailers as possible,” he said.

Write to Jaewon Kang at jaewon.kang@wsj.com and Sharon Terlep at sharon.terlep@wsj.com