CHICAGO, IL - AUGUST 15: The Walmart logo is displayed on a shopping cart at a Walmart store on August 15, 2013 in Chicago, Illinois. Walmart, the world's largest retailer, reported a surprise decline in second-quarter same-store sales today. The retailer also cut its revenue and profit forecasts for the fiscal year.  (Photo by Scott Olson/Getty Images)
Scott Olson/Getty Images
CHICAGO, IL - AUGUST 15: The Walmart logo is displayed on a shopping cart at a Walmart store on August 15, 2013 in Chicago, Illinois. Walmart, the world's largest retailer, reported a surprise decline in second-quarter same-store sales today. The retailer also cut its revenue and profit forecasts for the fiscal year. (Photo by Scott Olson/Getty Images)
Now playing
01:11
How Walmart is taking on Amazon
Now playing
03:24
The start-up helping Ted Baker humanize online shopping
Pandora
Now playing
02:32
Pandora CEO on why the company is ditching mined diamonds
Now playing
03:06
Stella McCartney: Fast fashion is hugely damaging to the plant
Photo: iStock
iStock
Photo: iStock
Now playing
02:15
LL Bean CEO: People are dressing up, but not giving up comfort
Now playing
02:37
Etsy CEO: Depop is growing like crazy
Getty Images
Now playing
02:18
This airplane-shaped bag is selling for more than some actual planes
Now playing
00:54
See Nike's new 'hands-free' shoe
One of many large boxes of returned products that fill the warehouse. The returned products in this box will eventually be sorted and categorized.
John General/CNN
One of many large boxes of returned products that fill the warehouse. The returned products in this box will eventually be sorted and categorized.
Now playing
05:08
Here's where your 'free' online returns actually end up
Shutterstock
Now playing
04:42
Ever receive a package you didn't order? It could be a scam
Orangetheory Fitness
Now playing
02:13
This gym is actually opening studios during the pandemic
NEW YORK, NEW YORK - NOVEMBER 19: A view of the window display as Macy's Herald Square unveils Give, Love, Believe 2020 Holiday Windows on November 19, 2020 in New York City. (Photo by Eugene Gologursky/Getty Images for Macy's)
Eugene Gologursky/Getty Images North America/Getty Images for Macy's
NEW YORK, NEW YORK - NOVEMBER 19: A view of the window display as Macy's Herald Square unveils Give, Love, Believe 2020 Holiday Windows on November 19, 2020 in New York City. (Photo by Eugene Gologursky/Getty Images for Macy's)
Now playing
00:56
Macy's unveils holiday window display with gratitude theme
CNN/Target/Design by John General
Now playing
02:36
It's official: Black Friday is irrelevant
Now playing
02:23
Party City CEO: Consumers still want to celebrate together
Walmart
Now playing
01:01
See what's new inside Walmart stores
3119 E Third Street Dollar General in Dayton, OH on March 12, 2020.
Maddie McGarvey for CNN
3119 E Third Street Dollar General in Dayton, OH on March 12, 2020.
Now playing
06:07
Dollar General's business is booming. It's also vulnerable to crime, police say
New York CNN Business —  

Walmart hopes a pay raise will solve its trucking problem.

The company announced this week that its more than 8,000 truck drivers will get around a $1,500-a-year raise. Walmart, the world’s largest retailer, hopes higher pay will help it retain those drivers and hire 900 new ones this year.

A shortage of truck drivers nationwide and high turnover rates in the industry have hit Walmart at a bad time. The company faces pressure to deliver goods on time to its 4,700 stores and online distribution centers to compete with rivals like Amazon.

Last quarter, higher transportation costs dragged down Walmart’s (WMT) profit margin.

Although many companies outsource trucking to third-party carriers, Walmart has its own private fleet of 65,000 trailers, one of the largest in the country. Last year, Walmart brought on more than 1,400 new drivers.

Walmart drivers, who are known for their white shirt uniforms, get paid per-mile. Pay varies based on their tenure at the company.

Beginning in February, Walmart will give a one-cent-per-mile increase in pay. That means drivers will now make about 89 cents per mile on average and $87,500 a year.

Walmart has also changed its onboarding process to get drivers on the road more quickly. It found that the process had been too slow, leading potential drivers to take other jobs.

Grueling demands

Pepsi (PEP), Coke (KO), Mondelez (MDLZ) and Hasbro (HAS) are also struggling with trucking, a crucial link in the supply chain.

“Freight costs have skyrocketed in the last year for everybody,” Costco (COST)CFO Richard Galanti said in May.

More than 70% of goods in the United States hit the highway at some point before they get to your home, according to the American Trucking Associations, an industry trade group.

The strong economy has increased demand for products, and there are not enough qualified drivers in the tight labor market to keep up.

Adding to the challenge, long-distance truck driving is tough work. Drivers have to complete strict training requirements and withstand the grueling, lonely demands of days of interstate travel.

An aging trucking population, low wages, and a new federal safety regulation that restricts hours on the road have contributed to the squeeze, analysts say. Median pay for tractor-trailer truck drivers was around $42,000 last year, according to the Bureau of Labor Statistics.

To attract and keep new truckers, major carriers like J.B. Hun (JBH)t are increasing pay and benefits. Congress is also considering lowering the interstate truck driving age to 18 from 21.

There are signs that companies’ strategies to address the shortfall are paying off. Turnover at large trucking carriers fell last quarter.

“Large pay increases fleets have been offering appear to be working,” said Bob Costello, chief economist at the industry group.