---
title: "Melatonin Molecule Model – 3D Structure & Molar Mass (C13H16N2O2) | MolDraw"
url: https://www.moldraw.com/molecules/melatonin.html
description: "Rotate a 3D ball-and-stick and space-filling model of melatonin (C13H16N2O2, 232.28 g/mol). Shape, bond angles, polarity, IUPAC name, 2D structure, uses and facts."
lang: en
publisher: Scidart Academy
generated: 2026-11-25
---
[MolDraw](https://www.moldraw.com/) › [3D molecule models](https://www.moldraw.com/molecules/) › Melatonin 3D model

# Melatonin molecule model (C13H16N2O2)

Melatonin is the sleep hormone. Made from serotonin, it has an indole ring with a 5-methoxy group and an N-acetylated ethylamine chain, which makes it less polar and able to cross membranes easily.

**Quick answer:** Melatonin is **C13H16N2O2**, molar mass **232.28 g/mol**. Planar aromatic, sp² around indole ring. Moderately polar but lipophilic enough (XLogP ≈ 0.8) to cross the blood–brain barrier.

Atom labels Hydrogens Spin

Drag to rotate · pinch or scroll to zoom. 3D coordinates: PubChem conformer (CID 896).

## Melatonin at a glance

| Formula | C13H16N2O2 |
| --- | --- |
| Molar mass | 232.28 g/mol |
| IUPAC name | N-[2-(5-methoxy-1H-indol-3-yl)ethyl]acetamide |
| Atoms / bonds | 33 / 34 |
| H-bond donors / acceptors | 2 / 2 |
| XLogP3 | 0.8 |
| SMILES | `CC(=O)NCCC1=CNC2=C1C=C(C=C2)OC` |
| PubChem CID | [896](https://pubchem.ncbi.nlm.nih.gov/compound/896) |

![2D structural formula of Melatonin (C13H16N2O2)](https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/896/PNG?image_size=300x300)

2D structure (skeletal formula) · [Draw it in MolDraw](https://www.moldraw.com/)

## What the 3D model of Melatonin shows

The model contains **33 atoms** (17 heavy atoms and 16 hydrogens) joined by **34 bonds**; in ball-and-stick mode every stick is one bond, and double or aromatic bonds are drawn as multiple sticks. Switch to *space-filling* to see the molecule as its electron cloud, scaled to van der Waals radii: this is the shape other molecules actually "feel". It can donate 2 and accept 2 hydrogen bonds, and its PubChem XLogP3 of 0.8 means it is fairly balanced between water and fat solubility. Its topological polar surface area is 54.1 Å².

## Shape and bond angles

| Atom(s) | Geometry / hybridisation | Angles & lengths |
| --- | --- | --- |
| indole ring | Planar aromatic, sp² | ≈ 120° |
| amide C=O | Trigonal planar, sp²; planar amide | ≈ 120° |

### Is Melatonin polar?

Moderately polar but lipophilic enough (XLogP ≈ 0.8) to cross the blood–brain barrier.

## Elemental composition of C13H16N2O2

| Element | Atoms | Mass (g/mol) | Mass % |
| --- | --- | --- | --- |
| Carbon (C) | 13 | 156.143 | 67.22% |
| Hydrogen (H) | 16 | 16.128 | 6.94% |
| Nitrogen (N) | 2 | 28.014 | 12.06% |
| Oxygen (O) | 2 | 31.998 | 13.78% |

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 melatonin

- Regulates the circadian rhythm (sleep–wake cycle)
- Dietary supplement for jet lag and sleep onset
- Antioxidant

## Interesting facts

- The pineal gland secretes melatonin mainly at night, and blue light suppresses it.
- It is made from serotonin by N-acetylation and then O-methylation.
- Melatonin is also found in plants, where it acts as an antioxidant.

**Drawing structures for your notes?** MolDraw is a free online chemical structure editor for molecules, reactions and lab diagrams.

[Open MolDraw editor](https://www.moldraw.com/)

## Functional groups and IR spectrum of Melatonin

**Functional groups:** Secondary amide, Ether, Pyrrole-type N-H, Five-membered heteroaromatic ring, Benzene ring.

### Key IR bands (predicted, solid or neat liquid)

| Wavenumber (cm⁻¹) | Range | Intensity | Assignment |
| --- | --- | --- | --- |
| 3400 | 3350–3450 | medium | N-H stretch (pyrrole / indole type) |
| 3300 | 3200–3350 | medium, broad | N-H stretch (H-bonded) |
| 1655 | 1630–1700 | strong | C=O stretch (secondary amide) |
| 1600 | 1585–1620 | medium | C=C ring stretch |
| 1550 | 1510–1570 | strong | N-H bend + C-N stretch (amide II) |
| 1540 | 1480–1600 | medium | Ring stretch, C=C / C=N (five-membered heteroaromatic) |
| 1495 | 1470–1515 | medium | C=C ring stretch |
| 1245 | 1200–1275 | strong | C-O-C stretch, asymmetric (aryl alkyl ether) |
| 1040 | 1010–1075 | medium | C-O-C stretch, symmetric (aryl alkyl ether) |

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 C13H16N2O2: **232.1212 u**; [M+H]⁺ m/z **233.1285**; [M+Na]⁺ m/z 255.1104. Average molar mass: 232.28 g/mol. See the [exact mass calculator](https://www.moldraw.com/tools/free-chem-tools/exact-mass-calculator.html).

## Sources

- PubChem compound record, CID 896: structure, identifiers, 3D conformer and computed properties (XLogP3, polar surface area) ([pubchem.ncbi.nlm.nih.gov/compound/896](https://pubchem.ncbi.nlm.nih.gov/compound/896))
- 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)
- J. Arendt, A. Aulinas, "Physiology of the Pineal Gland and Melatonin", in K. R. Feingold et al. (eds), *Endotext*, MDText.com, South Dartmouth (MA) ([NCBI Bookshelf NBK550972](https://www.ncbi.nlm.nih.gov/books/NBK550972/)) (synthesis from tryptophan via serotonin by N-acetylation then O-methylation; secretion mainly at night and suppressed by light; circadian role and use for jet lag)
- M. B. Arnao, J. Hernández-Ruiz, "Functions of melatonin in plants: a review", *J. Pineal Res.* 2015, 59, 133–150, [doi:10.1111/jpi.12253](https://doi.org/10.1111/jpi.12253) (melatonin occurs in plants and acts as an antioxidant)

## Frequently asked questions

### How is melatonin related to serotonin?

Serotonin is acetylated on its amine and methylated on its 5-OH to make melatonin.

### Is melatonin a steroid?

No. It is an indoleamine, derived from the amino acid tryptophan.

### What is the chemical formula and molar mass of melatonin?

Melatonin is C13H16N2O2 with a molar mass of 232.28 g/mol (PubChem CID 896). It contains 33 atoms: 13 carbon, 16 hydrogen, 2 nitrogen, 2 oxygen.

### What is the IUPAC name of Melatonin?

The PubChem-computed IUPAC name is N-[2-(5-methoxy-1H-indol-3-yl)ethyl]acetamide.

### How do I make a model of Melatonin?

With 33 atoms, Melatonin is a big kit build. Use the interactive model above as your guide, build the ring or core framework first, then add the side groups and finally the hydrogens.

## More molecule models & tools

[**Serotonin 3D model**C10H12N2O](https://www.moldraw.com/molecules/serotonin.html)[**Adrenaline (epinephrine) 3D model**C9H13NO3](https://www.moldraw.com/molecules/adrenaline.html)[**Water 3D model**H2O](https://www.moldraw.com/molecules/water.html)[**Methane 3D model**CH4](https://www.moldraw.com/molecules/methane.html)[**Ammonia 3D model**NH3](https://www.moldraw.com/molecules/ammonia.html)[**Carbon dioxide 3D model**CO2](https://www.moldraw.com/molecules/carbon-dioxide.html)[**3D molecular model viewer**Any molecule by name or SMILES](https://www.moldraw.com/tools/free-chem-tools/3d-molecular-model-viewer.html)[**Build a molecule**Molecule builder kit](https://www.moldraw.com/tools/free-chem-tools/build-a-molecule.html)[**VSEPR geometry calculator**Shapes & bond angles](https://www.moldraw.com/tools/free-chem-tools/vsepr-molecular-geometry-calculator.html)[**Molar mass calculator**Any formula](https://www.moldraw.com/tools/free-chem-tools/molar-mass-calculator.html)
