molecalculator

Moles & Molar Mass

Diatomic Molecules: Examples, Bonds, and Properties

Calculator No. 01-5231 · Updated · Formula and assumptions shown below

Total atoms 2 atoms
Amount of substance
1.661 × 10−24 mol
Result, rounded to 6 decimal places
Number of molecules
1 molecules
Set in the form below
You enter
Number of molecules (molecules)
You get
Total atoms (atoms), Amount of substance (mol)
Rounding
0 dp · 6 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

Molecules with two atoms are called diatomic molecules. They may contain two atoms of the same element, as in oxygen gas (O₂), or atoms of different elements, as in carbon monoxide (CO); their properties depend on which atoms are joined and how their electrons form a bond.

Formula

A diatomic molecule contains exactly two atoms, so the total number of atoms is A = 2m. Here, m is the number of molecules, in molecules, and A is the number of constituent atoms, in atoms. The calculator also converts molecule count to amount of substance using n = m / NA, where n is amount in moles and the exact Avogadro constant is NA = 6.02214076 × 1023 mol−1.

Enter a count of molecules. The first result gives the atoms represented by that count; the second gives the corresponding amount in moles. For a count smaller than one molecule, the arithmetic is mathematically defined, but an actual molecule count is a whole number.

Worked Example

Using the default value, m = 1 molecule:

  • Total atoms: A = 2 × 1 = 2 atoms.
  • Amount: n = 1 / (6.02214076 × 1023) = 1.6605391 × 10−24 mol.

The amount is displayed to six decimal places, which rounds to 0.000000 mol at that precision. The scientific-notation value above shows why that rounded display does not mean the molecule count is zero.

Assumptions

  • Each counted molecule is intact and contains exactly two atoms.
  • The molecule count is a numerical count, not a measured mass or concentration.
  • Avogadro’s constant is exact in the International System of Units.

What “Diatomic” Means

The prefix di- means two, and an atom is the smallest unit of an element that retains its chemical identity. A diatomic molecule is therefore a bonded unit made of two atoms. Its atoms may be identical or different. This definition concerns the number of atoms in an individual molecule, not the number of elements in it: a molecule with two different atoms is still diatomic.

That distinguishes a diatomic molecule from a diatomic element. The first describes any two-atom molecule; the second refers to an elemental substance whose molecules consist of two atoms of the same element. Hydrogen gas, H₂, is both. Hydrogen chloride, HCl, is a diatomic molecule but is a compound, not a diatomic element.

Examples: Elemental and Compound Molecules

The familiar elemental diatomic molecules at ordinary conditions are hydrogen, nitrogen, oxygen, fluorine, chlorine, bromine, and iodine. They are commonly written as H₂, N₂, O₂, F₂, Cl₂, Br₂, and I₂. The first five are gases under ordinary room conditions; bromine is a liquid and iodine is a solid. Their physical states do not alter the two-atom structure of each molecule.

Many compounds are diatomic too. Common examples include carbon monoxide (CO), carbon dioxide’s close relative but with only one oxygen atom; hydrogen chloride (HCl); nitric oxide (NO); and hydrogen fluoride (HF). Carbon dioxide (CO₂), by contrast, has three atoms per molecule and is not diatomic. The number of atoms, rather than the molecule’s name or whether it is a gas, determines the classification.

A molecule made from two atoms of one element is called homonuclear, as in N₂. A molecule made from two different elements is heteronuclear, as in CO. This distinction matters for properties: identical atoms share electrons symmetrically in the simplest picture, while different atoms may attract shared electrons unequally.

How Two Atoms Bond

Atoms bond when the arrangement of their electrons and nuclei produces a lower-energy, stable arrangement than widely separated atoms. In a covalent diatomic molecule, the atoms share electron density. The bond has a characteristic length and energy, and changing the atoms changes both. Some diatomic molecules have one shared pair in a simple Lewis structure, while nitrogen is commonly represented with a triple bond. These drawings are useful models, not literal pictures of stationary electrons.

Electronegativity helps explain whether a bond is nonpolar or polar. In homonuclear molecules such as O₂, the two atoms have the same electronegativity, so the bond has no permanent dipole from unequal sharing. In CO or HCl, the atoms differ, and electron density is distributed unevenly. Whether the whole molecule has a dipole depends on its charge distribution; for a two-atom molecule, a polar bond generally gives a polar molecule.

Shape, Motion, and Spectra

A two-atom molecule has a simple geometry: its atoms lie along the bond axis. It can rotate and vibrate, and its bond can be excited by absorbing energy. Because the molecule has only two nuclei, its rotational and vibrational behavior is easier to model than that of larger molecules. Spectroscopy uses the energies absorbed or emitted during these motions to identify substances and infer bond properties.

For an isolated diatomic molecule, the moment of inertia for rotation depends on the masses of both atoms and their separation. A larger moment of inertia generally corresponds to more closely spaced rotational energy levels. Isotopes can therefore alter a molecule’s spectrum even when its chemical formula is unchanged: replacing an atom with a heavier isotope changes the mass, while often leaving the electronic bonding pattern broadly similar.

In the simplest ideal-gas model, a diatomic molecule has translational and rotational motion, and at suitable temperatures it also has vibrational energy. Real molecular behavior depends on temperature and quantum energy levels. This is one reason “two atoms” identifies a structure but does not, by itself, tell you every physical property.

Common Misconceptions and Comparisons

  • Not every gas is diatomic. Helium and neon occur as single atoms in ordinary conditions; ozone (O₃) has three atoms, and carbon dioxide has three.
  • “Diatomic” does not mean “two elements.” H₂ contains two atoms but one element. HCl contains two atoms and two elements.
  • An elemental formula is not always the molecule’s formula. Oxygen atoms are written O, but ordinary oxygen gas consists mainly of O₂ molecules.
  • Two atoms do not guarantee a stable molecule in every setting. Whether a two-atom arrangement is stable depends on the elements, charge, and physical conditions.

Atoms and molecules are also not interchangeable counting units. One molecule of N₂ contains two nitrogen atoms; one mole of N₂ contains Avogadro’s number of N₂ molecules and twice that number of nitrogen atoms. To convert a known number of molecules into moles, divide by Avogadro’s constant. To convert moles of diatomic molecules into moles of constituent atoms, multiply by two.

Frequently Asked Questions

What is a molecule with two atoms called?
A molecule containing exactly two atoms is called a diatomic molecule. The atoms can be identical, as in N₂, or different, as in HCl.

Which elements naturally form diatomic molecules?
At ordinary conditions, hydrogen, nitrogen, oxygen, fluorine, chlorine, bromine, and iodine commonly occur as H₂, N₂, O₂, F₂, Cl₂, Br₂, and I₂ molecules.

Is water a diatomic molecule?
No. A water molecule, H₂O, contains two hydrogen atoms and one oxygen atom, for three atoms total. It is triatomic.

Is oxygen an atom or a molecule?
O can denote one oxygen atom. Ordinary oxygen gas is mainly O₂, a molecule containing two oxygen atoms. The intended meaning depends on the formula and context.

How many atoms are in one mole of a diatomic molecule?
One mole contains exactly 6.02214076 × 1023 molecules. If every molecule has two atoms, that is 1.204428152 × 1024 constituent atoms.

Are all diatomic molecules gases?
No. Several common elemental examples are gases at room conditions, but bromine is liquid and iodine is solid. Molecular size and bonding influence physical state.

Related

Formula used
in m | Number of molecules | molecules | 1 | 0
out a | Total atoms | atoms | 2 * m | 0
out mol | Amount of substance | mol | m / 6.02214076e23 | 6

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →