Molecule reference

Caffeine Structure, Formula, Molecular Weight, SMILES & 3D Viewer

Caffeine is a naturally occurring methylxanthine stimulant found in coffee, tea, cacao, and many beverages. This page provides the caffeine structure, identifiers, basic properties, drug class, and a direct MolDraw editor link.

Published: 6 Jun 2026 · Data identifiers cross-checkable with PubChem CID 2519
Skeletal structure of caffeine, molecular formula C8H10N4O2: a purine ring system with two carbonyl groups and three N-methyl groups
Caffeine (C8H10N4O2) skeletal structure.

Structure

2D chemical structure of caffeine

Caffeine contains a fused xanthine ring system with three N-methyl substituents and two carbonyl groups. The structure is commonly used in teaching heterocycles, methylxanthines, and bioactive small molecules.

Draw or edit caffeine in MolDraw

3D Viewer

Loading caffeine 3D conformer...

The 3D preview loads a PubChem 3D conformer for visualization. It is useful for orientation and teaching, not a substitute for computational optimization.

Properties and Use

  • Common name: Caffeine
  • IUPAC name: 1,3,7-trimethylpurine-2,6-dione
  • Class: methylxanthine stimulant
  • Typical chemistry context: heterocyclic compounds, natural products, pharmacology examples, and structure drawing practice.

Shape and bond angles

Atom(s)Geometry / hybridisationAngles & lengths
fused ringsPlanar; ring C and N are sp²≈ 120° (≈108° in the five-membered ring)
N-methyl C (×3)Tetrahedral, sp³≈ 109.5°

Is Caffeine polar?

Moderately polar. Soluble in hot water (about 20 g/L at 25 °C, far more when hot), and its carbonyls and ring N accept hydrogen bonds.

Elemental composition of C8H10N4O2

ElementAtomsMass (g/mol)Mass %
Carbon (C)896.08849.48%
Hydrogen (H)1010.0805.19%
Nitrogen (N)456.02828.85%
Oxygen (O)231.99816.48%

Calculated from IUPAC standard atomic weights. Check any formula with the molar mass calculator.

Uses of caffeine

Interesting facts

Functional groups and IR spectrum of Caffeine

Functional groups: Pyrimidinedione (uracil / xanthine type) (×2), Five-membered heteroaromatic ring.

Key IR bands (predicted, solid or neat liquid)

Wavenumber (cm⁻¹)RangeIntensityAssignment
17051690–1730strongC=O stretch (C2=O, between the two ring N)
16601640–1690strongC=O stretch (C4=O, conjugated with the ring C=C)
15401480–1600mediumRing stretch, C=C / C=N (five-membered heteroaromatic)

Typical positions from MolDraw's IR prediction rules (beta), not a measured spectrum. Look up any peak in the IR spectroscopy chart or predict the full spectrum with the IR spectrum predictor.

Exact mass for mass spectrometry

Monoisotopic (exact) mass of C8H10N4O2: 194.0804 u; [M+H]⁺ m/z 195.0877; [M+Na]⁺ m/z 217.0696. Average molar mass: 194.19 g/mol. See the exact mass calculator.

Sources

Last updated: