Britannica Sources used in this answer

Which elements make up hydrocarbon compounds?

Created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

Hydrocarbon compounds are composed exclusively of the elements carbon (C) and hydrogen (H).1

In these chemical compounds, carbon atoms link together to create the molecular framework, while hydrogen atoms attach to this structure in various configurations.1