CompoundOrganic chemistry

Caffeine (C8H10N4O2): Chemical Formula, Structure and Facts

Caffeine crystals photographed after recrystallization from ethanol
Caffeine crystals photographed after recrystallization from ethanol. Image: H. Hiller (CC BY-SA 3.0 DE), via Wikimedia Commons

Caffeine (C8H10N4O2) is a bitter, white crystalline alkaloid found in coffee, tea, cacao and some soft drinks. Its molecule has a purine ring, a fused pair of rings built from carbon and nitrogen atoms, which is why chemists classify it as a methylxanthine. It is one of the most widely consumed stimulants.

Contents

What is Caffeine?

Caffeine is an alkaloid, a nitrogen-containing compound that many plants produce. Its formula is C8H10N4O2, so each molecule contains eight carbon atoms, ten hydrogen atoms, four nitrogen atoms and two oxygen atoms. Its molar mass is 194.19 g/mol. The systematic name is 1,3,7-trimethylxanthine, which describes a xanthine core with three methyl groups attached.

Plants are thought to make caffeine partly as a defense against insects, and it is found in the seeds, leaves or fruits of several species. Coffee beans, tea leaves, cacao beans, guarana seeds and kola nuts all contain it. Theobromine, the main stimulant in chocolate, is a close relative with one methyl group fewer. The amount of caffeine in a drink depends on the plant, the variety and how the drink is prepared.

Structure and bonding

The caffeine molecule has a purine core, made of a six-membered ring fused to a five-membered ring. Both rings contain nitrogen atoms, and the six-membered ring carries two carbonyl groups, which are carbon atoms double-bonded to oxygen. Three methyl groups, each one carbon atom bonded to three hydrogen atoms, are attached to nitrogen atoms at positions 1, 3 and 7.

Electrons in the ring system are shared across several atoms, a pattern called delocalization. This keeps the rings flat, so the molecule is planar, and flat molecules can stack together in crystals. The atoms are held together by covalent bonds, with no ions in the molecule itself.

Oxygen and nitrogen pull shared electrons more strongly than carbon does, so the molecule has polar regions. This is one reason caffeine dissolves better in water than a purely nonpolar compound would. A nitrogen atom in the ring can also accept a proton, so caffeine behaves as a weak base and can form salts such as caffeine citrate.

Physical properties

Caffeine forms white crystals, sometimes needles, with a bitter taste and almost no smell. It is a solid at room temperature and sublimes when heated, which means it turns straight from solid to vapor. Its melting point is about 235–238 °C (455–460 °F), and sources differ slightly depending on the crystal form.

PropertyValue
Molar mass194.19 g/mol
Melting pointabout 235–238 °C (455–460 °F)
Densityabout 1.23 g/cm³
Solubility in waterabout 2.2 g per 100 mL at 25 °C
AppearanceWhite, bitter, crystalline solid

Caffeine is not very soluble in cold water, but its solubility rises steeply with temperature. This is why hot water is used to extract it from coffee beans and tea leaves. It also dissolves in ethanol and chloroform, which are often used in laboratories to purify it.

Chemical properties and reactions

Caffeine is stable enough to be stored as a dry solid for long periods. As a weak base, it reacts with strong acids to form salts. Adding a proton to one nitrogen atom can be written as:

C8H10N4O2 + H+ ⇌ C8H11N4O2+

One caffeine molecule takes up one hydrogen ion to form a positively charged caffeinium ion. The double arrow means the reaction runs in both directions, so the salt can release the proton again when conditions change.

In the body, caffeine is broken down mainly by enzymes in the liver. It is converted into smaller methylxanthines, such as paraxanthine, which has two methyl groups instead of three. Caffeine’s main biological effect comes from its shape. It is similar to adenosine, a molecule that builds up during waking hours and binds receptors in the brain that slow nerve activity. Caffeine occupies those receptors without switching them on, so the slowing signal is blocked.

Where Caffeine comes from

Caffeine occurs naturally in dozens of plant species. Coffee plants (genus Coffea) are the largest commercial source, with arabica and robusta as the two main species. Robusta beans usually contain more caffeine than arabica beans. Tea leaves, cacao pods, guarana and kola are other major sources.

Caffeine is extracted from coffee and tea, and some is made by chemical synthesis from simpler xanthine-type starting materials. Decaffeinated coffee is produced by removing most of the caffeine with solvents or with supercritical carbon dioxide before roasting. The removed caffeine is then purified and used in foods, drinks and medicines.

Industrial sources are controlled by food and drug agencies, which set rules on purity and labeling. The caffeine in a finished drink is usually listed on the label or on the company’s technical information sheet.

Uses of Caffeine

Caffeine’s best-known use is as a stimulant in food and drink. A standard cup of brewed coffee typically contains roughly 80 to 100 mg of caffeine, though the amount varies widely. Tea, cola and energy drinks each contain different amounts, and many labels now state the content.

In medicine, caffeine appears in some pain relievers and cold tablets, where it adds a mild stimulant effect. Caffeine citrate is used in hospitals to treat breathing pauses in premature infants. In the laboratory, caffeine is a standard test compound in pharmacology courses and a model for studying how small molecules bind to receptors. Students often learn the purine ring structure by drawing caffeine, since its formula and shape are easy to remember.

Safety and the environment

Caffeine is toxic when a large amount is swallowed at once, and the toxic dose is far above what is found in a normal cup of coffee. Too much caffeine can cause a fast heartbeat, nervousness, trouble sleeping and an upset stomach. Pure caffeine powder is very concentrated, so it should be kept out of reach of children and measured with care.

Health agencies publish guidance on daily intake, and people who are pregnant, take certain medicines or have heart conditions should follow advice from a doctor. This article gives no dosage advice.

In the environment, caffeine passes through sewage treatment plants only partly broken down, so it is found in rivers near wastewater outlets. Scientists use it as a marker of household wastewater. Its effects on aquatic life at the low levels found in rivers are small but are still studied.

Frequently asked questions

What is the formula of caffeine?

The formula of caffeine is C8H10N4O2. Each molecule contains eight carbon atoms, ten hydrogen atoms, four nitrogen atoms and two oxygen atoms. Its molar mass is 194.19 g/mol.

Where is caffeine found naturally?

Caffeine occurs in the seeds, leaves or fruits of several plants, including coffee, tea, cacao, guarana and kola. Robusta coffee beans usually contain more caffeine than arabica beans.

How does caffeine make you feel more awake?

Caffeine has a shape similar to adenosine, a molecule that signals the brain to slow down. Caffeine binds to the same receptors without activating them, which blocks adenosine’s signal.

Is caffeine an alkaloid?

Yes. Caffeine is an alkaloid, a nitrogen-containing compound produced by plants. Its molecule is built on a purine ring, which is a fused pair of rings containing nitrogen atoms.

Why is caffeine more soluble in hot water?

The solubility of caffeine rises with temperature, so hot water dissolves much more of it than cold water. This is why tea and coffee are brewed with hot water.

What is the difference between caffeine and theobromine?

Theobromine is a close relative found mainly in cacao. It has one fewer methyl group than caffeine, so its formula is C7H8N4O2.

Sources and further reading

  • W. M. Haynes (ed.), "CRC Handbook of Chemistry and Physics"
  • OpenStax, "Chemistry 2e"
  • Encyclopaedia Britannica, "Caffeine"

Cite this page

“Caffeine (C8H10N4O2): Chemical Formula, Structure and Facts.” Atoms & Forces, https://science.bigworldlist.com/compounds/caffeine/.