In organic chemistry, a hydrocarbon is an organic compound consisting entirely of hydrogen and carbon. :620 Hydrocarbons are examples of group 14 hydrides. Hydrocarbons from which one hydrogen atom has been removed are functional groups called hydrocarbyls.  Because carbon has 4 electrons in its outermost shell (and because each covalent bond requires a donation of 1 electron, per atom, to the bond) carbon has exactly four bonds to make, and is only stable if all 4 of these bonds are used.
Most hydrocarbons found on Earth naturally occur in crude oil, where decomposed organic matter provides an abundance of carbon and hydrogen which, when bonded, can catenate to form seemingly limitless chains.  
- 1 Types of hydrocarbons
- 2 Usage
- 3 Poisoning
- 4 Reactions
- 5 Safety
- 6 Environmental impact
- 7 See also
- 8 References
- 9 External links
As defined by IUPAC nomenclature of organic chemistry, the classifications for hydrocarbons are:
- Saturated hydrocarbons are the simplest of the hydrocarbon species. They are composed entirely of single bonds and are saturated with hydrogen. The formula for acyclic saturated hydrocarbons (i.e., alkanes) is CnH2n+2. :623 The most general form of saturated hydrocarbons is CnH2n+2(1-r), where r is the number of rings. Those with exactly one ring are the cycloalkanes. Saturated hydrocarbons are the basis of petroleum fuels and are found as either linear or branched species. Substitution reaction is their characteristics property (like chlorination reaction to form chloroform). Hydrocarbons with the same molecular formula but different structural formulae are called structural isomers. :625 As given in the example of 3-methylhexane and its higher homologues, branched hydrocarbons can be chiral. :627 Chiral saturated hydrocarbons constitute the side chains of biomolecules such as chlorophyll and tocopherol. 
- Unsaturated hydrocarbons have one or more double or triple bonds between carbon atoms. Those with double bond are called alkenes. Those with one double bond have the formula CnH2n (assuming non-cyclic structures). :628 Those containing triple bonds are called alkyne. Those with one triple bond have the formula CnH2n−2. :631
- Aromatic hydrocarbons, also known as arenes, are hydrocarbons that have at least one aromatic ring.
Hydrocarbons can be gases (e.g. methane and propane), liquids (e.g. hexane and benzene), waxes or low melting solids (e.g. paraffin wax and naphthalene) or polymers (e.g. polyethylene, polypropylene and polystyrene).
Because of differences in molecular structure, the empirical formula remains different between hydrocarbons; in linear or "straight-run" alkanes, alkenes and alkynes, the amount of bonded hydrogen lessens in alkenes and alkynes due to the "self-bonding" or catenation of carbon preventing entire saturation of the hydrocarbon by the formation of double or triple bonds.
This inherent ability of hydrocarbons to bond to themselves is known as catenation, and allows hydrocarbons to form more complex molecules, such as cyclohexane, and in rarer cases, arenes such as benzene. This ability comes from the fact that the bond character between carbon atoms is entirely non-polar, in that the distribution of electrons between the two elements is somewhat even due to the same electronegativity values of the elements (~0.30), and does not result in the formation of an electrophile.
Generally, with catenation comes the loss of the total amount of bonded hydrocarbons and an increase in the amount of energy required for bond cleavage due to strain exerted upon the molecule; in molecules such as cyclohexane, this is referred to as ring strain, and occurs due to the "destabilized" spatial electron configuration of the atom.
In simple chemistry, as per valence bond theory, the carbon atom must follow the 4-hydrogen rule, which states that the maximum number of atoms available to bond with carbon is equal to the number of electrons that are attracted into the outer shell of carbon. In terms of shells, carbon consists of an incomplete outer shell, which comprises 4 electrons, and thus has 4 electrons available for covalent or dative bonding.
Some hydrocarbons also are abundant in the solar system. Lakes of liquid methane and ethane have been found on Titan, Saturn's largest moon, confirmed by the Cassini-Huygens Mission.  Hydrocarbons are also abundant in nebulae forming polycyclic aromatic hydrocarbon (PAH) compounds. 
|Alkane (single bond)||Alkene (double bond)||Alkyne (triple bond)||Cycloalkane||Alkadiene|
|2||Ethane||Ethene (ethylene)||Ethyne (acetylene)||—||—|
|3||Propane||Propene (propylene)||Propyne (methylacetylene)||Cyclopropane||Propadiene (allene)|
Hydrocarbons are a primary energy source for current civilizations. The predominant use of hydrocarbons is as a combustible fuel source. In their solid form, hydrocarbons take the form of asphalt ( bitumen).
Methane (CH4) and ethane (C2H6) are gaseous at ambient temperatures and cannot be readily liquefied by pressure alone. Propane (C3H8) is however easily liquefied, and exists in 'propane bottles' mostly as a liquid. Butane (C4H10) is so easily liquefied that it provides a safe, volatile fuel for small pocket lighters. Pentane (C5H12) is a colorless liquid at room temperature, commonly used in chemistry and industry as a powerful nearly odorless solvent of waxes and high molecular weight organic compounds, including greases. Hexane (C6H14) is also a widely used non-polar, non-aromatic solvent, as well as a significant fraction of common gasoline. The C6 through C10 alkanes, alkenes and isomeric cycloalkanes are the top components of gasoline, naphtha, jet fuel and specialized industrial solvent mixtures. With the progressive addition of carbon units, the simple non-ring structured hydrocarbons have higher viscosities, lubricating indices, boiling points, solidification temperatures, and deeper color. At the opposite extreme from methane lie the heavy tars that remain as the lowest fraction in a crude oil refining retort. They are collected and widely utilized as roofing compounds, pavement composition, wood preservatives (the creosote series) and as extremely high viscosity shear-resisting liquids.
Hydrocarbon use is also prevalent in nature. Some eusocial arthropods, such as the Brazilian stingless bee Schwarziana quadripunctata, use unique hydrocarbon "scents" in order to determine kin from non-kin. The chemical hydrocarbon composition varies between age, sex, nest location, and hierarchal position. 
Hydrocarbon poisoning such as that of benzene and petroleum usually occurs accidentally by inhalation or ingestion of these cytotoxic chemical compounds. Intravenous or subcutaneous injection of petroleum compounds with intent of suicide or abuse is an extraordinary event that can result in local damage or systemic toxicity such as tissue necrosis, abscess formation, respiratory system failure and partial damage to the kidneys, the brain and the nervous system. Moaddab and Eskandarlou report a case of chest wall necrosis and empyema resulting from attempting suicide by injection of petroleum into the pleural cavity. 
There are three main types of reactions:
- Substitution reaction
- Addition reaction
Substitution reactions only occur in saturated hydrocarbons (single carbon–carbon bonds). In this reaction, an alkane reacts with a chlorine molecule. One of the chlorine atoms displaces a hydrogen atom. This forms hydrochloric acid as well as the hydrocarbon with one chlorine atom.
- CH4 + Cl2 → CH3Cl + HCl
- CH3Cl + Cl2 → CH2Cl2 + HCl
all the way to CCl4 ( carbon tetrachloride)
- C2H6 + Cl2 → C2H5Cl + HCl
- C2H4Cl2 + Cl2 → C2H3Cl3 + HCl
all the way to C2Cl6 ( hexachloroethane)
Addition reactions involve alkenes and alkynes. In this reaction a halogen molecule breaks the double or triple bond in the hydrocarbon and forms a bond.
Hydrocarbons are currently the main source of the world's electric energy and heat sources (such as home heating) because of the energy produced when burnt.  Often this energy is used directly as heat such as in home heaters, which use either petroleum or natural gas. The hydrocarbon is burnt and the heat is used to heat water, which is then circulated. A similar principle is used to create electric energy in power plants.
Common properties of hydrocarbons are the facts that they produce steam, carbon dioxide and heat during combustion and that oxygen is required for combustion to take place. The simplest hydrocarbon, methane, burns as follows:
- CH4 + 2 O2 → 2 H2O + CO2 + energy
In inadequate supply of air, carbon monoxide gas and water vapour are formed:
- 2 CH4 + 3 O2 → 2 CO + 4 H2O
Another example is the combustion of propane:
- C3H8 + 5 O2 → 4 H2O + 3 CO2 + energy
And finally, for any linear alkane of n carbon atoms,
- CnH2n+2 + 3n + 1/ O2 → (n + 1) H2O + n CO2 + energy.
Burning of hydrocarbons is an example of an exothermic chemical reaction.
Extracted hydrocarbons in a liquid form are referred to as petroleum (literally "rock oil") or mineral oil, whereas hydrocarbons in a gaseous form are referred to as natural gas. Petroleum and natural gas are found in the Earth's subsurface with the tools of petroleum geology and are a significant source of fuel and raw materials for the production of organic chemicals.
The extraction of liquid hydrocarbon fuel from sedimentary basins is integral to modern energy development. Hydrocarbons are mined from oil sands and oil shale, and potentially extracted from sedimentary methane hydrates. These reserves require distillation and upgrading to produce synthetic crude and petroleum.
Economically important hydrocarbons include fossil fuels such as coal, petroleum and natural gas, and its derivatives such as plastics, paraffin, waxes, solvents and oils. Hydrocarbons – along with NOx and sunlight – contribute to the formation of tropospheric ozone and greenhouse gases.
Bacteria in the gabbroic layer of the ocean's crust can degrade hydrocarbons; but the extreme environment makes research difficult.  Other bacteria such as Lutibacterium anuloederans can also degrade hydrocarbons.  Mycoremediation or breaking down of hydrocarbon by mycelium and mushroom is possible. 
Many hydrocarbons are highly flammable, therefore, care should be taken to prevent injury. Benzene and many aromatic compounds are possible carcinogens, and proper safety equipment must be worn to prevent these harmful compounds from entering the body. If hydrocarbons undergo combustion in tight areas, toxic carbon monoxide can form. Hydrocarbons should be kept away from fluorine compounds due to the high probability of forming toxic hydrofluoric acid.
Hydrocarbons are introduced into the environment through their extensive use as fuels and chemicals as well as through leaks or accidental spills during exploration, production, refining, or transport. Anthropogenic hydrocarbon contamination of soil is a serious global issue due to contaminant persistence and the negative impact on human health. 
- Abiogenic petroleum origin
- Energy storage
- Fractional distillation
- Functional group
- Hydrocarbon mixtures
- Organically moderated and cooled reactor
- Silberberg, Martin (2004). Chemistry: The Molecular Nature Of Matter and Change. New York: McGraw-Hill Companies. ISBN 0-07-310169-9.
- IUPAC Goldbook hydrocarbyl groups Archived 7 January 2010 at the Wayback Machine
- Clayden, J., Greeves, N., et al. (2001) Organic Chemistry Oxford ISBN 0-19-850346-6 p. 21
- McMurry, J. (2000). Organic Chemistry 5th ed. Brooks/Cole: Thomson Learning. ISBN 0-495-11837-0 pp. 75–81
- Meierhenrich, Uwe. Amino Acids and the Asymmetry of Life Archived 2 March 2017 at the Wayback Machine. Springer, 2008. ISBN 978-3-540-76885-2
- NASA's Cassini Spacecraft Reveals Clues About Saturn Moon Archived 2 September 2014 at the Wayback Machine. NASA (December 12, 2013)
- Guzman-Ramirez, L.; Lagadec, E.; Jones, D.; Zijlstra, A. A.; Gesicki, K. (2014). "PAH formation in O-rich planetary nebulae". Monthly Notices of the Royal Astronomical Society. 441: 364. arXiv: 1403.1856. Bibcode: 2014MNRAS.441..364G. doi: 10.1093/mnras/stu454.
- Nunes, T.M.; Turatti, I.C.C.; Mateus, S.; Nascimento, F.S.; Lopes, N.P.; Zucchi, R. (2009). "Cuticular Hydrocarbons in the Stingless Bee Schwarziana quadripunctata (Hymenoptera, Apidae, Meliponini): Differences between Colonies, Castes and Age" (PDF). Genetics and Molecular Research. 8 (2): 589–595. doi: 10.4238/vol8-2kerr012. PMID 19551647. Archived (PDF) from the original on 26 September 2015.
- Eskandarlou, M; Moaddab, AH (Aug 2010). "Chest wall necrosis and empyema resulting from attempting suicide by injection of petroleum into the pleural cavity". Emerg Med J. 27 (8): 616–8. doi: 10.1136/emj.2009.073486. PMID 20558490.
- World Coal, Coal and Electricity Archived 22 October 2015 at the Wayback Machine. World Coal Association
- Mason OU, Nakagawa T, Rosner M, Van Nostrand JD, Zhou J, Maruyama A, Fisk MR, Giovannoni SJ (2010). "First investigation of the microbiology of the deepest layer of ocean crust". PLoS ONE. 5 (11): e15399. Bibcode: 2010PLoSO...515399M. doi: 10.1371/journal.pone.0015399. PMC 2974637. PMID 21079766.
- Yakimov, M. M.; Timmis, K. N.; Golyshin, P. N. (2007). "Obligate oil-degrading marine bacteria". Curr. Opin. Biotechnol. 18 (3): 257–266. CiteSeerX 10.1.1.475.3300. doi: 10.1016/j.copbio.2007.04.006. PMID 17493798.
- Stamets, Paul (2005) " Mycoremediation Archived 31 October 2014 at the Wayback Machine", Ch. 7, p. 86, in Mycelium Running: How Mushrooms Can Help Save the World. ISBN 9781580085793
- "Microbial Degradation of Alkanes (PDF Download Available)". ResearchGate. Archived from the original on 24 February 2017. Retrieved 23 February 2017.