Eating a diet based on whole foods deserves a thumbs-up. What’s hard to swallow, however, is that doing so might contribute to the heaps of food wasted in the United States.

Research supported by the U.S. Department of Agriculture and reported in the journal PLOS One found that consumers waste about 422 grams of food, per person, daily. The study also determined that this waste amounts to 30% of the daily calories available for consumption in America and involves the waste of resources like irrigation water and the 30 million acres of cropland used to produce this food.

Here is the kicker: Healthier diets were associated with greater amounts of wasted food. This does make sense, since a healthy diet typically contains more perishable foods like fruits, vegetables and dairy—the largest contributors to food waste. Armed with this knowledge, healthy eaters need to implement strategies to waste less. These can include planning meals more carefully, improving storage practices, and learning new ways to incorporate leftover fruits and veggies into various dishes (hello, green smoothies and banana bread).