A dietitian explains how it all works.