What is the chemical formula of a carbohydrate?
The term carbohydrate can basically be translated into "carbon water".
Therefore, the typical formula for a carbohydrate is
--> Carbon with 2 Hydrogen and 1 Oxygen:
The most common sugar is glucose from the photosynthesis reaction.
Glucose has a formula of
Sucrose which is table sugar is
Note that in each case the hydrogen is twice the oxygen, just the same as in a water molecule.