Want to know what the job of the future looks like? Go to the gym.


Phillip Hoskins did, but not to work out. He went to find clients, and to join the ranks of personal trainers, one of the fastest-growing American occupations.


“I knew I didn’t want a desk job,” said Mr. Hoskins, of Louisville, Ky., who became a personal trainer after being let go, after 17 years, from a middle-management position at a car repair shop in December. “I’m pretty fit for 51 years old, and I knew I could do something with that.”


Once stereotyped as the domain of bodybuilders and gym devotees, personal training is drawing the educated and uneducated; the young and old; men and women; the newly graduated, the recently laid-off and the long retired.


From 2001 to 2011, the number of personal trainers grew by 44 percent, to 231,500, while the overall number of workers fell by 1 percent, according to the Labor Department.


It is no wonder that so many Americans are trying to transform a passion for fitness into a new career.


Personal training requires many of the skills and qualities of the new typical middle-class American job: it is a personal service that cannot be automated or sent offshore, that caters to a wealthier client base and that is increasingly subsidized (in this case, by employers and insurance companies).


But as people with such jobs have found, the pay is low. Unlike the clock-in-and-clock-out middle-class jobs of the past, personal service occupations have erratic hours, require entrepreneurial acumen and offer little job security.


“The kind of job where you come in and work 9 to 5, and where someone tells you what to do all day is becoming scarcer and scarcer,” said Erik Brynjolfsson, an economics professor at M.I.T. and co-author of “Race Against the Machine,” a book about how automation is changing the job market. “The kind of job where you have to hustle and hustle and where you’re not sure whether you will have enough clients next month, where you have less job security, is becoming much more common.”


For personal trainers, the median hourly wage is less than $15. Because they have to find clients and set up their businesses, trainers must be flexible, adapting to client schedules and physical abilities, as well as the availability of exercise machines and accommodating weather.


They must also be able to engage with all sorts of personalities — precisely the skills that help keep these jobs around while others are replaced by algorithms.


“Knowing how to keep someone motivated and how to keep a connection are skills humans have learned and evolved over hundreds of thousands of years,” Professor Brynjolfsson said. “A robot can’t figure out whether you can do one more push-up, or how to motivate you to actually do it.”


Donna Martin, 69, of Orlando, Fla., recently became a personal trainer after having been retired for 25 years. She mostly works with clients over age 60. “I think my age actually helps me get clients,” she said.


Another reason for the surge in personal trainers — as well as home health aides and other midskill service occupations — is that the barriers to entry are low.


The industry is mostly unregulated, with private organizations rather than governments issuing certifications. Once upon a time, some certification organizations required bachelor’s degrees and intensive study; now dozens of groups offer ever cheaper and easier certifications to serve the fitness boom.


The fitness industry has been growing steadily in good economies and bad, with American health clubs adding about 10 million members since the recession officially began in 2007, according to the International Health, Racquet & Sportsclub Association.


Facing a sea of options, Mr. Hoskins chose an online test that cost $60 by Action, an organization founded in 2008. Action is not accredited by the National Commission for Certifying Agencies, the group the industry uses to vet such certifications, though, and he could not find a local gym that recognized the credential.


He is now studying for a more in-depth test from an older group, the American Council on Exercise, and trying to train clients on his own until he can qualify to work for a gym. The study materials and test cost about $500.


Some older certifying organizations favor more regulation because they see the industry maturing and fear that increasing numbers of new trainers with less experience will dilute the reputation of trainers in general.


“We are really trying to professionalize this industry, and state-by-state licensure may be what we need,” said Mike Clark, the chief executive of the National Academy of Sports Medicine and a licensed physical therapist. “Right now, the gyms really don’t want that, though, because they’re already having trouble finding enough trainers with just the current system.”


In a country with a 35.7 percent obesity rate, potential customers are plentiful, at least in theory.