Logo

MonoCalc

/

Unit Cell Calculator

Chemistry

Significant figures

Quick examples

Z = 4 · CN 12 · atoms touch along the face diagonal
Copper: a = 361.49 pm, M from Cu = 63.546 g/mol
g/mol
Cu → 63.546 g/mol

Density ρ

8.9353 g/cm³

Measured 8.96 g/cm³ · from the unit cell 8.9353 g/cm³ (−0.28 %)

Edge length a
361.49 pm
Atomic radius r
127.81 pm
Atoms per cell Z
4
Tally
8 corners × ⅛ + 6 faces × ½ = 4 atoms
Coordination number
12
Nearest-neighbour distance
255.61 pm
Cell volume V
47.238 ų · 0.047238 nm³ · 4.7238 × 10⁻²³ cm³
Mass of one cell
4.2208 × 10⁻²² g
Molar mass M
63.546 g/mol
Packing efficiency
74.05 % (π/(3√2))
Void fraction
25.95 %
Atoms per cm³
8.4678 × 10²²
Molar volume V_m
7.1118 cm³/mol

Worked steps

Z = 8 corners × ⅛ + 6 faces × ½ = 4 atoms

V = a³ = (361.49 pm)³ = (3.6149 × 10⁻⁸ cm)³ = 4.72377 × 10⁻²³ cm³

m_cell = Z·M/N_A = 4 × 63.546 g/mol / 6.02214076 × 10²³ mol⁻¹ = 4.22082 × 10⁻²² g

ρ = m_cell / V = 8.9353 g/cm³

From a√2 = 4r: r = 127.806 pm

Intermediate values carry one guard digit beyond the result's 5 significant figures.

Results use 5 significant figures, the fewest among the measured inputs; Z, N_A and the geometric factors are exact.

Unit cell

atom at corner (0, 1, 0): counts ⅛atom at corner (0, 1, 1): counts ⅛atom at face (½, 1, ½): counts ½atom at corner (1, 1, 0): counts ⅛atom at face (0, ½, ½): counts ½atom at face (½, ½, 0): counts ½atom at corner (0, 0, 0): counts ⅛atom at corner (1, 1, 1): counts ⅛atom at face (½, ½, 1): counts ½atom at face (1, ½, ½): counts ½atom at corner (0, 0, 1): counts ⅛atom at face (½, 0, ½): counts ½atom at corner (1, 0, 0): counts ⅛atom at corner (1, 0, 1): counts ⅛a√2 = 4r
corner ⅛
edge ¼
face ½
inside 1

8 corners × ⅛ + 6 faces × ½ = 4 atoms

Drag or use the arrow keys to rotate.

Packing efficiency

Diamond34.01 %SC52.36 %BCC68.02 %FCC / HCP74.05 %densest packing of equal spheres (Kepler)

About This Tool

Unit Cell Calculator – Density, Atomic Radius, Packing and Miller Indices

A unit cell is the smallest box of atoms that, repeated in three directions, builds the whole crystal. Its shape and contents fix almost every bulk property you meet in general chemistry and materials science: how dense the solid is, how big its atoms are, how tightly they pack and how far apart its atomic planes lie. This unit cell calculator links those quantities for cubic, hexagonal close-packed and ionic structures, works in any of the seven crystal systems, and turns Miller indices into d-spacings and plane drawings.

Counting atoms per unit cell

Atoms on the boundary are shared. A corner atom is shared by 8 cells, an edge atom by 4 and a face atom by 2, so they count ⅛, ¼ and ½; an atom fully inside counts 1. Face-centred cubic therefore holds 8 × ⅛ + 6 × ½ = 4 atoms, body-centred cubic 2, simple cubic 1 and diamond cubic 8. The hexagonal prism usually drawn for HCP holds 12 × ⅙ + 2 × ½ + 3 = 6. This number of atoms per unit cell is Z.

Edge length and atomic radius

Treat atoms as hard spheres and find the direction in which they touch. That contact gives the edge length to atomic radius relation for each structure:

  • Simple cubic: atoms touch along the edge, a = 2r.
  • BCC: along the body diagonal, a√3 = 4r (see the cube diagonal calculator).
  • FCC: along the face diagonal, a√2 = 4r.
  • Diamond cubic: along a quarter of the body diagonal, a√3/4 = 2r.

Packing efficiency and the 74 % limit

The packing efficiency is the fraction of the cell filled by spheres: Z · (4/3)πr³ / V. Each sphere's volume is the one the sphere volume calculator gives, and the cell volume is a³ (volume of a cube). The results are fixed by geometry: 52.36 % for simple cubic, 68.02 % for BCC, 34.01 % for diamond and 74.05 % for both FCC and HCP. No arrangement of equal spheres beats π/(3√2) ≈ 74.05 %, a bound Kepler guessed in 1611 and Hales proved in 1998.

Density from the unit cell

The mass of one cell divided by its volume is the crystal density:

ρ = Z·M / (N_A·a³)

with M in g/mol, NA = 6.022 140 76 × 10²³ mol⁻¹ and a in centimetres (1 pm = 10⁻¹⁰ cm). Copper is FCC with a = 361.49 pm, so ρ = 4 × 63.546 / (6.022 × 10²³ × (3.6149 × 10⁻⁸)³) = 8.935 g/cm³. Rearranged, the same relation finds the edge length from a measured density, identifies an unknown metal from its molar mass, or decides whether a cubic metal is BCC or FCC by solving for Z. For bulk objects rather than crystals, use the density calculator, and convert units with the density converter.

Ionic structures and the radius-ratio rule

In ionic crystals such as rock salt, caesium chloride, zinc blende and fluorite, the cation–anion contact distance r₊ + r₋ follows from a, and the radius ratio r₊/r₋ predicts the cation's coordination number: below 0.225 three-fold, 0.225–0.414 tetrahedral, 0.414–0.732 octahedral and above 0.732 cubic.

The radius-ratio rule is only a guide
KCl has r₊/r₋ ≈ 0.76, which predicts eight-fold coordination, yet it crystallises in the six-fold rock-salt structure. Covalency, polarisation and lattice energy all shift the real choice.

Miller indices and d-spacing

A plane that cuts the axes at a/h, b/k and c/l has Miller indices (hkl): take the reciprocals of the intercepts and clear fractions. In a cubic crystal the spacing between neighbouring (hkl) planes is d = a / √(h² + k² + l²); other systems use the reciprocal metric tensor, which this tool applies to all seven. That spacing is the d in Bragg's law, so a Bragg's Law Calculator can turn it into a diffraction angle. Planar and linear densities follow from d, the cell volume and the lattice centring.

HCP versus FCC stacking

Both close-packed structures stack the same hexagonal layers of touching spheres. HCP repeats every second layer (ABAB) and FCC every third (ABCABC); looking down the FCC body diagonal [111] reveals those layers. Real HCP metals deviate from the ideal axial ratio c/a = √(8/3) ≈ 1.633: magnesium is close to it, while zinc (c/a ≈ 1.86) is stretched, so its atoms touch only within the basal plane and it packs below 74 %.

Frequently Asked Questions

Is the Unit Cell Calculator free?

Yes, Unit Cell Calculator is totally free :)

Can I use the Unit Cell Calculator offline?

Yes, you can install the webapp as PWA.

Is it safe to use Unit Cell Calculator?

Yes, any data related to Unit Cell Calculator only stored in your browser (if storage required). You can simply clear browser cache to clear all the stored data. We do not store any data on server.

How do you calculate a crystal's density from its unit cell?

Divide the mass of the atoms in one cell by the cell's volume: ρ = Z·M / (N_A·a³), where Z is the number of atoms (or formula units) per cell, M the molar mass and a the edge length converted to centimetres. For copper (FCC, Z = 4, a = 361.49 pm) this gives 8.935 g/cm³.

Why does an FCC cell contain 4 atoms when 14 are drawn?

Atoms on the cell boundary are shared with neighbouring cells. Each of the 8 corner atoms is shared by 8 cells (⅛ each) and each of the 6 face atoms by 2 cells (½ each), so 8 × ⅛ + 6 × ½ = 4 atoms belong to one cell.

Why are FCC and HCP both 74 % packed?

Both are built from the same close-packed layers of spheres; FCC stacks them ABCABC and HCP stacks them ABAB. Each sphere has 12 touching neighbours either way, and π/(3√2) ≈ 74.05 % is the densest possible packing of equal spheres (Kepler's conjecture, proved by Hales).

How are the edge length and the atomic radius related in SC, BCC and FCC?

It depends on the direction along which atoms touch. In simple cubic they touch along the edge (a = 2r), in BCC along the body diagonal (a√3 = 4r) and in FCC along the face diagonal (a√2 = 4r). Diamond cubic touches along a quarter of the body diagonal (a√3/4 = 2r).

How do you find Miller indices from a plane's intercepts?

Write the intercepts in units of the cell edges, take their reciprocals (an intercept at ∞ gives 0), clear any fractions by multiplying through, and divide by a common factor if there is one. Intercepts 1, ½, ∞ give reciprocals 1, 2, 0, so the plane is (120).

Why does the density calculated from X-ray data differ slightly from the measured density?

The unit-cell (X-ray) density assumes a perfect, fully occupied crystal. Real samples contain vacancies, impurities, grain boundaries and pores, and lattice constants change with temperature, so measured bulk densities usually differ by a fraction of a percent.