A "control" group which was offered the classes but did not benefit from the app failed to lose any weight.
Weight-watching apps use activity logs and food diaries to track energy expenditure and calorie intake. The apps monitor the number of calories consumed by eating different foods.
They allow users to see instantly the effects of snacking between meals, or consuming too much fat while taking little exercise.
Prof Bonnie Spring, from Chicago, who led the study reported in the journal Archives of Internal Medicine, said: "The app is important because it helps people regulate their behaviour, which is really hard to do. Most of us have no idea how many calories we consume and how much physical activity we get. The app gives you feedback on this and helps you make smart decisions in the moment."
Participants in the study had an average age of 58 and were mainly men.
Each received a personalised programme of calorie and activity goals. Those using the phone app transmitted the data to a behavioural coach, who spoke to them by phone for 10 to 15 minutes twice a month.
Prof Spring pointed out that the time participants spent interacting with the coaches was minimal.
"The coaches' most important role was being in the wings," she said.
"The patients know the coaches are hovering and supportively holding them accountable. They know somebody is watching and caring and that's what makes a difference."
She added: "This approach empowers patients to help themselves on a day-to-day basis. We can help people lose meaningful amounts of weight and keep it off."