NEW YORK — When Martin Rawls-Meehan started making adjustable beds in 2004, it was a foregone conclusion that key parts would be made overseas. It was cheaper to manufacture in Taiwan than in the U.S. And from Taiwan it was easier to ship to customers in Asia.

But this year, his company, Reverie, began making some of its beds entirely in a factory in New York. Shipping costs from Taiwan have soared between 50 percent and 60 percent since the company was founded.

“Shipping costs are tremendous,” he says. “I could put that money into the manufacturing side in the U.S.,” he says.

Reverie is one of a growing number of small businesses that are chipping away at the decades-old trend of manufacturing overseas. They’re doing what’s known as reshoring, moving production back to U.S. factories as labor costs grow in countries like China and India and shipping also becomes more expensive. Over the last 20 years, the price of a barrel of oil has risen to about $95 from $20.

There are other issues encouraging the shift. Owners are tired of having to wait weeks for shipments on slow-moving container ships, and they want to get products to customers faster. Some newer businesses aren’t even considering overseas manufacturing. It’s not just small businesses. Some of the largest companies in the U.S. are also joining the trend. Apple Inc. (