A carbohydrate is a biomolecule consisting of carbon, hydrogen and oxygen atoms, usually with a hydrogen and oxygen atom ratio of 2:1 and thus with the empirical formula Cₘₙ.