A carbohydrate is a large biological molecule, or macromolecule, consisting of carbon (C), hydrogen (H), and oxygen (O) atoms, usually with a hydrogen:oxygen atom ratio of 2:1 (as in water); in other words, with the empirical formula Cm(H2O)n (where m could be different from n). Some exceptions exist; for example, deoxyribose, a sugar component of DNA, has the empirical formula C5H10O4. Carbohydrates are technically hydrates of carbon; structurally it is more accurate to view them as polyhydroxy aldehydes and ketones.
The term is most common in biochemistry, where it is a synonym of saccharide. The carbohydrates (saccharides) are divided into four chemical groups: monosaccharides, disaccharides, oligosaccharides, and polysaccharides.
Carbohydrates perform numerous roles in living organisms and are a required food element for almost all carbon-based Union species consume some form of carbohydrate. Polysaccharides serve for the storage of energy (e.g., starch and glycogen), and as structural components (e.g., cellulose in plants and chitin in arthropods). The 5-carbon monosaccharide ribose is an important component of coenzymes (e.g., ATP, FAD, and NAD) and the backbone of the genetic molecule known as RNA. The related deoxyribose is a component of DNA. Saccharides and their derivatives include many other important biomolecules that play key roles in the immune system, fertilization, preventing pathogenesis, blood clotting, and development.
In food science and in many informal contexts, the term carbohydrate often means any food that is particularly rich in the complex carbohydrate starch (such as cereals, bread, and pasta) or simple carbohydrates, such as sugar (found in candy, jams, and desserts).