The chemical formula of a carbohydrate is Cx(H2O)y, which denotes some carbons (C) with some water molecules (H2O) attached—hence the word carbohydrate, which means “hydrated carbon.”