---
title: "Caffeine Structure, Formula, Molecular Weight, SMILES & 3D Viewer | MolDraw"
url: https://www.moldraw.com/blog/molecules/caffeine.html
description: "Caffeine structure, formula, molecular weight, exact mass, SMILES, InChIKey, 2D image, 3D viewer, computed properties, downloads, conversion links, synonyms, functional groups, and FAQ."
lang: en
publisher: LabCanvas Private Limited
generated: 2026-12-05
---
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](https://www.moldraw.com/blog/thumbs/caffeine-structure.webp)

Caffeine (C8H10N4O2) skeletal structure.

## Structure

![2D chemical structure of caffeine](https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/2519/PNG)

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](https://www.moldraw.com/?smiles=Cn1cnc2c1c(=O)n(C)c(=O)n2C)

## Identifiers and Properties

## 3D Viewer

Loading caffeine 3D conformer...

The 3D preview loads a [PubChem](https://www.moldraw.com/blog/free-chemical-databases-guide.html) 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.

## Computed properties

| LogP (XLogP) | -0.1 | TPSA | 58.4 Å² |
| --- | --- | --- | --- |
| H-bond donors | 0 | H-bond acceptors | 3 |
| Rotatable bonds | 0 | Heavy atoms | 14 |

## Synonyms and functional groups

### Synonyms

Guaranine1,3,7-TrimethylxanthineMethyltheobromineTheineCafeina

### Functional groups present

Methylxanthine heterocycleLactam carbonylsTertiary ring nitrogensN-methyl groups

## Downloads

[PNG](https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/2519/PNG) [SVG](https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/2519/SVG) [SDF](https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/2519/record/SDF/?record_type=3d) [PDB](https://cactus.nci.nih.gov/chemical/structure/Cn1cnc2c1c(=O)n(C)c(=O)n2C/file?format=pdb&get3d=true) [MOL](https://www.moldraw.com/tools/free-chem-tools/smiles-to-mol-converter.html?smiles=Cn1cnc2c1c(=O)n(C)c(=O)n2C) [PDBQT](https://www.moldraw.com/tools/free-chem-tools/smiles-to-pdbqt-converter.html?smiles=Cn1cnc2c1c(=O)n(C)c(=O)n2C)

## Convert this molecule

[SMILES → MOL](https://www.moldraw.com/tools/free-chem-tools/smiles-to-mol-converter.html) [SMILES → PDB](https://www.moldraw.com/tools/free-chem-tools/smiles-to-pdb-converter.html) [SMILES → PDBQT](https://www.moldraw.com/tools/free-chem-tools/smiles-to-pdbqt-converter.html) [SMILES → InChI](https://www.moldraw.com/tools/free-chem-tools/smiles-to-inchi-converter.html) [SMILES → Formula](https://www.moldraw.com/tools/free-chem-tools/smiles-to-molecular-formula.html) [SMILES → Weight](https://www.moldraw.com/tools/free-chem-tools/smiles-to-molecular-weight.html)

## Safety and handling

Educational note only: caffeine is biologically active and should be handled according to the relevant safety data sheet, institutional procedures, and local regulations. This page is not medical advice or an SDS replacement.

## Related molecule structures

[**Aspirin**Drug-like aromatic acid and ester example](https://www.moldraw.com/blog/molecules/aspirin.html) [**Paracetamol**Analgesic with phenol and amide groups](https://www.moldraw.com/blog/molecules/paracetamol.html) [**Glucose**Hydroxyl-rich biological small molecule](https://www.moldraw.com/blog/molecules/glucose.html) [All molecule pages](https://www.moldraw.com/blog/molecules/)

## Shape and bond angles

| Atom(s) | Geometry / hybridisation | Angles & lengths |
| --- | --- | --- |
| fused rings | Planar; 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

| Element | Atoms | Mass (g/mol) | Mass % |
| --- | --- | --- | --- |
| Carbon (C) | 8 | 96.088 | 49.48% |
| Hydrogen (H) | 10 | 10.080 | 5.19% |
| Nitrogen (N) | 4 | 56.028 | 28.85% |
| Oxygen (O) | 2 | 31.998 | 16.48% |

Calculated from IUPAC standard atomic weights. Check any formula with the [molar mass calculator](https://www.moldraw.com/tools/free-chem-tools/molar-mass-calculator.html).

## Uses of caffeine

- Stimulant in coffee, tea, cola and energy drinks
- Ingredient in pain relievers and in treatment of apnoea in premature infants

## Interesting facts

- Caffeine blocks adenosine receptors, which is why it reduces the feeling of tiredness.
- Its half-life in healthy adults averages about 5 hours (range 1.5–9.5 hours).
- It is structurally related to theobromine (chocolate) and theophylline (tea).

## 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⁻¹) | Range | Intensity | Assignment |
| --- | --- | --- | --- |
| 1705 | 1690–1730 | strong | C=O stretch (C2=O, between the two ring N) |
| 1660 | 1640–1690 | strong | C=O stretch (C4=O, conjugated with the ring C=C) |
| 1540 | 1480–1600 | medium | Ring 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](https://www.moldraw.com/tools/free-chem-tools/ir-spectroscopy-chart.html) or predict the full spectrum with the [IR spectrum predictor](https://www.moldraw.com/tools/free-chem-tools/ir-spectrum-predictor.html).

### 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](https://www.moldraw.com/tools/free-chem-tools/exact-mass-calculator.html).

## Sources

- PubChem compound record, CID 2519: structure, identifiers, 3D conformer and computed properties (XLogP3, polar surface area) ([pubchem.ncbi.nlm.nih.gov/compound/2519](https://pubchem.ncbi.nlm.nih.gov/compound/2519))
- T. Prohaska et al., "Standard atomic weights of the elements 2021 (IUPAC Technical Report)", *Pure Appl. Chem.* 2022, 94, 573–600, [doi:10.1515/pac-2019-0603](https://doi.org/10.1515/pac-2019-0603) (molar mass and composition)
- B. B. Fredholm, K. Bättig, J. Holmén, A. Nehlig, E. E. Zvartau, "Actions of caffeine in the brain with special reference to factors that contribute to its widespread use", *Pharmacol. Rev.* 1999, 51, 83–133 ([PubMed 10049999](https://pubmed.ncbi.nlm.nih.gov/10049999/)) (adenosine-receptor antagonism; theophylline and theobromine)
- Institute of Medicine (US) Committee on Military Nutrition Research, "Pharmacology of Caffeine", in *Caffeine for the Sustainment of Mental Task Performance*, National Academies Press 2001 ([ncbi.nlm.nih.gov/books/NBK223808](https://www.ncbi.nlm.nih.gov/books/NBK223808/)) (plasma half-life in healthy adults: mean about 5 h, range 1.5–9.5 h)

## FAQ

### What is the formula of caffeine?

Caffeine has the molecular formula C8H10N4O2.

### What is the molecular weight of caffeine?

The [molecular weight](https://www.moldraw.com/tools/free-chem-tools/molecular-weight-calculator.html) is 194.19 g/mol and the monoisotopic exact mass is 194.08037557 Da.

### Can I open caffeine in MolDraw?

Yes. Use the editor button on this page to open caffeine from its [SMILES](https://www.moldraw.com/tools/free-chem-tools/smiles-to-structure.html) string in the MolDraw editor.

Last updated: October 14, 2026

## Related tools & guides

[**NMR spectrum viewer**Open 1H and 13C NMR files](https://www.moldraw.com/tools/nmr-viewer/index.html)[**IR spectrum viewer**Find peaks and functional groups](https://www.moldraw.com/tools/ir-viewer/index.html)[**Mass spectrum viewer**Isotopes, adducts and losses](https://www.moldraw.com/tools/mass-spec-viewer/index.html)[**Molecular weight calculator**Formula weight in one step](https://www.moldraw.com/tools/free-chem-tools/molecular-weight-calculator.html)[**Exact mass calculator**Monoisotopic mass and adducts](https://www.moldraw.com/tools/free-chem-tools/exact-mass-calculator.html)[**SMILES to NMR predictor**Predict a spectrum from SMILES](https://www.moldraw.com/tools/free-chem-tools/smiles-to-nmr.html)[**Molecule pages**Structures and properties](https://www.moldraw.com/blog/molecules/)[**MolDraw editor**Draw structures in your browser](https://www.moldraw.com/)
