A growing number of companies are helping workers gain access to payroll advances and loans, reflecting concern over the impact money problems are having on productivity levels and worker retention.

Employers including Walmart Inc. and Pima County, Ariz., have recently added these services. The aim is to help cash-strapped employees, many with damaged credit, cover unexpected expenses without resorting to high-cost debt.

“Employers...