The function of carbohydrates is to give energy to all the cells in our body and they fuel the basal. metabolic rate (the rate at which we use energy at rest) and activity levels. Carbohydrates are split into four groups each have their own role in the body.