Carbohydrates are organic compounds (i.e., carbon-based compounds) consisting of carbon, hydrogen, and oxygen atoms. They serve as a primary source of energy for living organisms. Carbohydrates can be simple sugars like glucose and fructose and complex molecules like starch and fiber in foods such as grains, fruits, and vegetables.