A simple shift in what goes on your plate can do far more than help the scale budge. In a clinical trial at Washington University School of Medicine in St. Louis, Missouri, about half of the people who followed a ketogenic — or "keto" — diet for four to five months no longer met the criteria for prediabetes, even though all three diets tested led to the same weight loss.

The study, published Aug. 27 in the journal Cell Metabolism, set out to answer a question millions of Americans face: when you lose weight, does the kind of diet you eat actually matter for your health beyond the pounds? The researchers suspected it might, especially for the roughly 40% of American adults living with obesity, many of whom also carry high fat in their liver and struggle to regulate blood sugar.

To find out, Samuel Klein, the study's corresponding author, and his team enrolled 42 participants who had obesity, prediabetes and fatty liver disease. Each person was randomly assigned to one of three popular diets: a ketogenic diet, a Mediterranean diet, or a low-fat, plant-forward diet. Everyone received all their food from the research team and checked in weekly with a dietitian to stay on track. The team carefully tuned each person's calories so that everyone lost about 10% of their body weight over four to five months.

The diets could hardly look more different on the plate. The keto diet drew only 4% of its calories from carbohydrates and 73% from fat, including animal products high in saturated fat. The Mediterranean diet — heavy on vegetables, olive oil, nuts, fish and dairy — got 50% of its calories from carbohydrates and 35% from fat. The plant-forward diet sourced 70% of its calories from carbohydrates and just 15% from fat.

After the weight loss, all three diets reduced body fat and made participants more sensitive to insulin, which helps the body regulate blood sugar. But the keto group saw the biggest gains in liver and metabolic health markers. Liver fat dropped by an average of 67% in the keto group, compared with 45% in both the other groups. The keto eaters also showed the largest rise in glucagon, a hormone that promotes fat loss in the liver, and the biggest drop in blood insulin levels.

"The most surprising finding was that participants in the ketogenic diet group didn't experience an increase in blood fat or cholesterol levels despite consuming the most fat," says Max Petersen, the study's first author.

Perhaps the most striking result came in prediabetes remission. After the intervention, about 50% of the keto group no longer met the criteria for prediabetes, compared with 29% in the Mediterranean group and just 7% in the plant-forward group.

Petersen notes that powerful new weight-loss drugs have transformed obesity care, but the study shows the specific makeup of food matters too. "Our data suggest that if you have high liver fat content and prediabetes, reducing carbohydrate intake can have important therapeutic effects on metabolism beyond just weight loss alone," Klein says.

Registered dietitians can help people tailor a keto diet to their own health needs, and researchers are eager to see whether these benefits hold up over the long term.