Is the formula for sugar organic or inorganic?

The formula for sugar, specifically for sucrose, is C₁₂H₂₂O₁₁. This formula is considered organic.

Organic compounds are those that primarily contain carbon atoms, along with hydrogen and other elements. Inorganic compounds, on the other hand, do not primarily contain carbon atoms.

In the formula for sucrose, carbon is the primary element, making up 12 out of the 45 total atoms in the molecule. Along with carbon, sucrose contains hydrogen and oxygen atoms. Therefore, sucrose is classified as an organic compound.