ThisCalculator

Everyday

Density of Unit Cell Formula & How to Use It

Updated · Standard formula, shown below

Density (ρ) 8.94 g/cm³
Unit cell volume (a³)
0.0000 cm³
Result
Atoms per unit cell (Z)
4
You entered
Molar mass (M)
63.55 g/mol
You entered

The density of a unit cell is calculated with the formula ρ = (Z × M) / (NA × a³), where ρ is density, Z is the number of atoms per unit cell, M is the molar mass, NA is Avogadro’s number, and a is the edge length of the cell. This page explains each term, walks through a full example, and shows how to apply the formula to cubic crystal systems.

Formula

The density of a unit cell is given by:

ρ = (Z × M) / (NA × a³)

  • ρ (rho) – density of the crystal, in grams per cubic centimeter (g/cm³).
  • Z – number of atoms (or formula units) per unit cell. For a simple cubic cell Z = 1, body-centered cubic (BCC) Z = 2, face-centered cubic (FCC) Z = 4.
  • M – molar mass of the substance, in grams per mole (g/mol).
  • NA – Avogadro’s constant, 6.022 × 10²³ mol⁻¹.
  • a – edge length of the cubic unit cell, in centimeters (cm). If you measure it in picometers (pm) or angstroms (Å), convert first: 1 pm = 1 × 10⁻¹⁰ cm, 1 Å = 1 × 10⁻⁸ cm.

The product a³ is the volume of the unit cell. The numerator (Z × M) gives the total mass of all atoms inside one cell. Dividing mass by volume yields density.

Worked Example

Let’s calculate the density of copper using the default values from the calculator:

  • Z = 4 (copper crystallizes in an FCC lattice)
  • M = 63.55 g/mol
  • a = 361.5 pm = 361.5 × 10⁻¹⁰ cm = 3.615 × 10⁻⁸ cm

First, compute the unit cell volume:

a³ = (3.615 × 10⁻⁸ cm)³ = 4.72 × 10⁻²³ cm³

Now apply the formula:

ρ = (4 × 63.55) / (6.022 × 10²³ × 4.72 × 10⁻²³)

ρ = 254.2 / 28.42 = 8.94 g/cm³

The calculator gives 8.94 g/cm³, matching the known density of copper (8.96 g/cm³). The tiny difference comes from rounding the edge length.

Why the Formula Works

A unit cell is the smallest repeating unit of a crystal lattice. To find density, you need the mass of everything inside that cell and the volume it occupies. The mass comes from the number of atoms (Z) times their molar mass, divided by Avogadro’s number to convert from moles to actual atoms. The volume is simply the cube of the edge length for cubic cells. Dividing mass by volume gives density – the same logic as for any object, just at the atomic scale.

How to Choose Z for Different Lattices

Z depends on how atoms are arranged in the unit cell:

  • Simple cubic (SC): Z = 1. Only the corner atoms, each shared by 8 cells, contribute 1/8 × 8 = 1 atom.
  • Body-centered cubic (BCC): Z = 2. Corners contribute 1 atom, plus one atom fully inside the cell.
  • Face-centered cubic (FCC): Z = 4. Corners contribute 1 atom, and each of the 6 face atoms is shared by 2 cells, adding 3 more.

For non‑cubic cells (tetragonal, orthorhombic, etc.) the volume formula changes, but the same principle applies: count the atoms per cell and use the appropriate cell volume.

Common Mistakes and How to Avoid Them

  • Unit mix-ups: The biggest error is forgetting to convert edge length to centimeters. If you plug in picometers directly, the density will be off by a factor of 10³⁰. Always convert to cm before cubing.
  • Using the wrong Z: Confusing BCC and FCC is easy. Check the crystal structure – many metals are FCC (Z=4) or BCC (Z=2), not simple cubic.
  • Forgetting Avogadro’s number: The formula uses NA to convert molar mass to per‑atom mass. Omitting it gives a number that is far too large.
  • Rounding too early: Keep extra digits during intermediate steps, then round at the end. Premature rounding can shift the final answer by 0.1 g/cm³ or more.

When to Use This Formula

This formula is used in solid‑state chemistry and materials science to:

  • Calculate the theoretical density of a pure metal or ionic compound from its crystal structure.
  • Determine the edge length of a unit cell if the density is known (rearrange to solve for a).
  • Estimate the number of atoms per cell (Z) from experimental density and X‑ray diffraction data.
  • Compare theoretical density with measured density to detect vacancies, impurities, or structural defects.

It applies to any crystalline solid with a known structure, not just metals – for example, NaCl (rock salt) has Z = 4 formula units per cell.

Limitations of the Formula

The formula assumes a perfect, defect‑free crystal at absolute zero. Real crystals contain vacancies, dislocations, and thermal expansion, so measured density is usually slightly lower than the theoretical value. For alloys, the molar mass is an average based on composition, which adds uncertainty. Also, the formula works only for cubic cells; for hexagonal or other systems you must use the correct volume expression (e.g., for hexagonal close‑packed, V = (3√3/2) × a² × c).

Frequently Asked Questions

What does Z mean in the unit cell density formula?

Z is the number of atoms (or formula units) that belong entirely to one unit cell. For example, in an FCC cell, Z = 4 because the corner atoms are shared with neighboring cells and the face atoms are shared with one neighbor. It effectively counts how many whole atoms are inside that single cell.

How do I convert edge length from pm to cm?

Multiply the value in picometers by 1 × 10⁻¹⁰ to get centimeters. For instance, 361.5 pm × 10⁻¹⁰ = 3.615 × 10⁻⁸ cm. If you have angstroms, multiply by 1 × 10⁻⁸. Always do this conversion before cubing the edge length.

Can I use this formula for non‑cubic crystals?

Yes, but you must replace a³ with the actual volume of the unit cell. For a hexagonal cell, the volume is (3√3/2) × a² × c. The rest of the formula stays the same – just be sure to use the correct volume expression.

Why is the calculated density slightly different from the measured density?

Theoretical density assumes a perfect lattice with no defects and ignores thermal vibrations. Real crystals have vacancies, impurities, and expand with temperature, so the measured density is usually a bit lower. The difference is often less than 1%, but it can be larger for defective crystals.

What is the density of a simple cubic cell with a = 200 pm and M = 50 g/mol?

Using Z = 1: a = 200 × 10⁻¹⁰ cm = 2.00 × 10⁻⁸ cm, so a³ = 8.00 × 10⁻²⁴ cm³. Then ρ = (1 × 50) / (6.022 × 10²³ × 8.00 × 10⁻²⁴) = 50 / 4.8176 ≈ 10.38 g/cm³. This is a hypothetical example; real simple cubic metals are rare.

Related

Formula used
in z | Atoms per unit cell (Z) | - | 4 | 1
in m | Molar mass (M) | g/mol | 63.55 | 1
in a | Edge length (a) | pm | 361.5 | 1
out density | Density (ρ) | g/cm³ | (z * m) / (6.02214076e23 * (a * 1e-10)^3) | 2
out volume | Unit cell volume (a³) | cm³ | (a * 1e-10)^3 | 4

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, rounded as each result states. See how the calculators work or report an error.