Heptane is an organic compound with the chemical formula C
7
H
16
. It is an alkane with seven carbon atoms. It is used in fuels and is in gasoline.