Density of Unit Cell: Formula & Derivation
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
This calculator works out the density of a unit cell (in g/cm³) from the number of atoms per cell, the atomic mass, and the edge length you enter. You get the density directly, plus the cell volume and the mass of one cell, so you can check each step. The formula is ρ = (Z × M) / (Nₐ × a³), where Z is atoms per unit cell, M is molar mass in g/mol, Nₐ is Avogadro’s number, and a is the edge length in cm.
Formula
The density of a unit cell is given by the formula:
ρ = (Z × M) / (Nₐ × a³)
Where:
- ρ – density of the unit cell (g/cm³)
- Z – number of atoms (or formula units) per unit cell
- M – molar mass of the substance (g/mol)
- Nₐ – Avogadro’s constant, 6.022 × 10²³ mol⁻¹
- a – edge length of the unit cell (cm)
The product Z × M is the mass of all atoms in one cell, expressed per mole. Dividing by Avogadro’s number gives the actual mass of one cell in grams. Dividing that by the cell volume (a³) gives density, which is mass per volume.
Worked Example
Using the default values from the calculator (copper, FCC structure):
- Z = 4 atoms per unit cell
- M = 63.55 g/mol
- a = 361.5 pm = 361.5 × 10⁻¹⁰ cm
Step 1: Convert edge length to cm.
a = 361.5 pm = 361.5 × 10⁻¹² m = 3.615 × 10⁻⁸ cm
Step 2: Compute cell volume.
a³ = (3.615 × 10⁻⁸)³ = 4.724 × 10⁻²³ cm³
Step 3: Compute mass of one cell.
mass = (Z × M) / Nₐ = (4 × 63.55) / (6.022 × 10²³) = 254.2 / 6.022 × 10²³ = 4.221 × 10⁻²² g
Step 4: Divide mass by volume.
ρ = 4.221 × 10⁻²² / 4.724 × 10⁻²³ = 8.935 g/cm³
The calculator gives 8.935 g/cm³, matching the known density of copper (about 8.96 g/cm³). The small difference is due to rounding and the exact atomic mass used.
How to Choose Z for Your Structure
Z depends on the crystal lattice type. You must know the structure before using the formula. Common values:
- Simple cubic (SC) – 1 atom per unit cell (e.g., polonium)
- Body-centered cubic (BCC) – 2 atoms per unit cell (e.g., iron, tungsten)
- Face-centered cubic (FCC) – 4 atoms per unit cell (e.g., copper, aluminum, gold)
- Hexagonal close-packed (HCP) – 6 atoms per unit cell (e.g., magnesium, zinc)
- Rock salt (NaCl structure) – 4 formula units per unit cell
- Fluorite (CaF₂) – 4 formula units per unit cell
For ionic compounds, use the number of formula units, not individual ions. For example, NaCl has 4 Na⁺ and 4 Cl⁻ per cell, so Z = 4 and M = 58.44 g/mol (the molar mass of NaCl).
Common Mistakes and How to Avoid Them
The most frequent error is mixing units. The edge length is often given in picometers (pm) or Ångströms (Å), but the formula requires centimeters. Convert before cubing:
- 1 pm = 1 × 10⁻¹² m = 1 × 10⁻¹⁰ cm
- 1 Å = 1 × 10⁻¹⁰ m = 1 × 10⁻⁸ cm
- 1 nm = 1 × 10⁻⁹ m = 1 × 10⁻⁷ cm
Another common mistake is using the atomic mass in amu directly without dividing by Avogadro’s number. The formula uses molar mass (g/mol), so you must convert amu to grams using Nₐ.
Also, be careful with Z. For BCC, Z = 2, not 1 or 4. For diamond cubic (silicon, germanium), Z = 8. If you are unsure, look up the crystal structure of the material.
Why This Formula Works
Density is mass divided by volume. For a unit cell, the mass is the sum of all atoms inside it. But atoms are shared between adjacent cells – a corner atom belongs to 8 cells, a face atom to 2, and an edge atom to 4. Z counts only the fraction that belongs to one cell:
- Corner atom contribution: 1/8 per cell
- Face atom contribution: 1/2 per cell
- Edge atom contribution: 1/4 per cell
- Body atom contribution: 1 per cell
For FCC, there are 8 corners (8 × 1/8 = 1) and 6 faces (6 × 1/2 = 3), giving Z = 4. For BCC, 8 corners (1) plus 1 body (1) gives Z = 2. This counting is the heart of the formula.
Limitations of the Formula
The formula assumes a perfect, defect-free crystal at absolute zero. Real materials have vacancies, impurities, and thermal expansion, so the measured density may differ slightly. For alloys, the molar mass must be a weighted average of the components, which complicates things. Also, the formula works for cubic cells (SC, BCC, FCC). For non-cubic cells (tetragonal, orthorhombic, hexagonal), the volume is not simply a³ – you need the full lattice parameters (a, b, c, and angles).
For HCP, the volume is calculated as (3√3/2) × a² × c, not a³. The calculator here is for cubic unit cells only. If you have a hexagonal material, use the appropriate volume formula with Z = 6.
Frequently Asked Questions
What is the density of a unit cell in simple cubic?
For simple cubic, Z = 1. Use the same formula with Z = 1. For example, polonium has a = 336 pm and M = 209 g/mol. Converting a to cm gives 3.36 × 10⁻⁸ cm, so density = (1 × 209) / (6.022 × 10²³ × (3.36 × 10⁻⁸)³) ≈ 9.15 g/cm³.
Can I use this formula for ionic compounds like NaCl?
Yes, but Z must be the number of formula units per cell, and M is the molar mass of the formula unit. For NaCl, Z = 4 and M = 58.44 g/mol. The edge length of the NaCl unit cell is about 564 pm, giving a density of about 2.16 g/cm³.
What if I only know the density and want to find the edge length?
Rearrange the formula to solve for a: a = (Z × M / (Nₐ × ρ))^(1/3). Plug in Z, M, and ρ, and you get the edge length in cm. Then convert to pm or Å if needed.
Why do I need Avogadro’s number in this formula?
Avogadro’s number connects the macroscopic molar mass (grams per mole) to the microscopic mass of a single atom. Since the unit cell contains only a few atoms, you need to divide the molar mass by Nₐ to get the mass of one atom.
Does temperature affect the density of a unit cell?
Yes. As temperature increases, the lattice expands, so the edge length a increases. Since density is inversely proportional to a³, density decreases slightly with temperature. The formula gives the density at the temperature at which the lattice parameter was measured, usually room temperature.
Is the density of a unit cell the same as the bulk density of the material?
In a perfect crystal, yes. The unit cell density equals the bulk density because the unit cell repeats throughout the crystal. However, real materials have grain boundaries, dislocations, and porosity, which can lower the measured bulk density slightly.
Related
Formula used
in z | Atoms per unit cell | - | 4 | 1 in m | Molar mass | g/mol | 63.55 | 1 in a | Edge length | pm | 361.5 | 10 out density | Density | g/cm³ | (z * m) / (6.02214076e23 * (a * 1e-10)^3) | 3 out volume | Cell volume | cm³ | (a * 1e-10)^3 | 12 out cell_mass | Mass per cell | g | (z * m) / 6.02214076e23 | 24
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.