# How to infer formula from diagram

Hello Folks

I am not now nor have I ever been any kind of chemist.

My question is, how is the formula for Cerin, C30H50O2, consistent with this diagram taken from Chemspider?

I can count the 30 Carbon atoms, assuming that each vertex of a hexagon is a single C. I can obviously see the two Oxygen atoms. But when I count the Hydrogens, I can only get to 28. Where are the other 22?

Each carbon atom (you seem to have identified them) needs four of those stick-like thingies (the lines, sometimes called "bonds"). These include the dashed lines and thick triangles as well as the "double bond" you see at the lower oxygen which looks like this ($=$). That one counts twice. Every time you only see 3 or even 2 for one carbon atom, that means 1 (or 2) hydrogen atoms are implied.