Miller Indices Calculator
How it Works
01Pick the Material
11 options — common metals, diamond, AlAs — lattice constant auto-fills (or enter custom)
02Enter Miller Indices
h, k, l — integers (positive, negative, or zero) but not all three zero
03Apply d = a / √(h² + k² + l²)
Cubic-system interplanar spacing — the foundation of XRD analysis
04Get Bragg Angles + Selection
θ for Cu/Mo/Co/Cr-Kα · plane multiplicity · allowed/forbidden by lattice type
What is a Miller Indices Calculator?
Pick from 11 material presets — diamond, the major FCC metals (Cu, Ag, Au, Pt, Pd, Ni, Pb), BCC iron, and AlAs (zincblende) — and the lattice constant auto-fills with the accepted room-temperature value. Or pick "Custom" and enter your own lattice constant for any cubic material not in the library. Enter the (h k l) integers in the dedicated panel and the calculator returns the d-spacing in Å, pm, and nm; the Bragg first-order angle θ for Cu-Kα (1.5418 Å), Mo-Kα (0.7107 Å), Co-Kα (1.7902 Å), and Cr-Kα (2.2910 Å); the family multiplicity (how many equivalent planes the {hkl} family contains); and the lattice-systematic-absence rule for the chosen structure.
Designed for solid-state chemistry, materials science, and crystallography coursework, the tool also handles edge cases — reduced indices when (h k l) share a common factor, identification of (000) as a forbidden trivial case, and λ > 2d cases where no first-order reflection is geometrically possible.
Pro Tip: Pair this with our Lattice Constant Calculator to derive a from atomic radius, or our Electronegativity Calculator for bonding analysis.
How to Use the Miller Indices Calculator?
How do I calculate Miller indices and d-spacing?
Miller indices encode the orientation of a crystal plane via the reciprocals of the plane's intercepts on the crystal axes. Combined with the lattice constant, they determine the plane's spacing — and via Bragg's law, the diffraction angle. Here's the complete derivation:
Think of (h k l) as the "address" of a family of parallel planes in the crystal. The integers tell you how the plane slices through the unit cell — (100) cuts the cube into two halves perpendicular to the x-axis; (111) is the diagonal plane through the body of the cube.
The Cubic-System d-Spacing
d_hkl = a / √(h² + k² + l²)
For cubic crystals (SC, BCC, FCC, diamond, zincblende — anything with three equal lattice parameters and right angles), the d-spacing depends only on the lattice constant a and the integers h, k, l. The denominator √(h² + k² + l²) is the magnitude of the reciprocal-lattice vector for plane (hkl). Larger indices → smaller d-spacing, denser plane stacking.
Bragg's Law
nλ = 2d sin θ
For first-order diffraction (n = 1), sin θ = λ / (2d). Solving: θ = arcsin(λ / (2d)). The 2θ angle (called "two-theta" — the angle between the incident beam and the diffracted beam) is what's read directly from an XRD diffractometer pattern. The calculator computes both θ and 2θ for four standard X-ray sources.
Selection Rules (Systematic Absences)
Not every (hkl) gives a measurable XRD reflection — atoms inside the unit cell can interfere destructively, canceling certain reflections. For cubic structures:
- Simple cubic (SC): all (hkl) allowed.
- Body-centered cubic (BCC): h + k + l must be even.
- Face-centered cubic (FCC): h, k, l all even OR all odd.
- Diamond: FCC rule + when h, k, l are all even, h + k + l must be divisible by 4.
- Zincblende: same as FCC for first-order reflections.
Plane Multiplicity
The {hkl} family encompasses all crystallographically equivalent planes — different (hkl) tuples that produce the same d-spacing due to cubic symmetry. Multiplicity in cubic crystals follows simple rules:
- {h00}: 6 (e.g., (100), (010), (001) and their negatives)
- {hh0}: 12 (e.g., (110) family)
- {hk0}: 24 (one zero, two distinct)
- {hhh}: 8 (e.g., (111) family)
- {hhk}: 24 (two same, one different)
- {hkl}: 48 (all three different, all non-zero)
Miller Indices Calculator – Crystal Plane Spacing In Practice
- Step 1: Identify the inputs. Material: copper FCC, a = 3.6149 Å. Plane: (111), so h = k = l = 1.
- Step 2: Compute h² + k² + l² = 1 + 1 + 1 = 3.
- Step 3: Apply the formula. d_111 = 3.6149 / √3 = 3.6149 / 1.7321 = 2.0871 Å.
- Step 4: Verify selection rule. FCC requires (h, k, l) all even or all odd — (1, 1, 1) all odd ✓ → allowed reflection.
- Step 5: Compute Bragg angle for Cu-Kα (λ = 1.5418 Å). θ = arcsin(1.5418 / (2 × 2.0871)) = arcsin(0.3694) = 21.67°. So 2θ = 43.34° — this is the well-known Cu(111) peak position in XRD patterns.
- Step 6: Family info. {111} multiplicity in cubic = 8 (eight equivalent planes: ±1±1±1 in all sign combinations). The (111) plane is the close-packed plane in FCC.
Now consider diamond (a = 3.567 Å) for the (200) plane. d_200 = 3.567 / √4 = 1.7835 Å. But (200) is forbidden in diamond — the FCC selection rule allows it (all even), but the diamond extra rule requires h+k+l divisible by 4 when all indices are even. 2+0+0 = 2, not divisible by 4 → systematic absence. (200) gives zero intensity in diamond's XRD pattern. The first allowed even-index reflection in diamond is (220), where 2+2+0 = 4 ✓.
Who Should Use the Miller Indices Calculator?
Technical Reference
Origins. Miller indices were introduced by William Hallowes Miller in 1839 (A Treatise on Crystallography) as a notation for crystal faces in macroscopic crystallography. They were repurposed in the 20th century for the modern reciprocal-lattice formulation of X-ray diffraction.
Definition. Given a plane that intercepts the crystal axes at fractional coordinates (1/h, 1/k, 1/l), the Miller indices are (h k l). Negative intercepts are written as bars over the integer (e.g., (1̄ 0 0) = (-1, 0, 0)). Zero indices indicate the plane is parallel to that axis.
d-Spacing Formulas (general crystal systems):
- Cubic: 1/d² = (h² + k² + l²) / a²
- Tetragonal: 1/d² = (h² + k²)/a² + l²/c²
- Orthorhombic: 1/d² = h²/a² + k²/b² + l²/c²
- Hexagonal: 1/d² = (4/3)·(h² + hk + k²)/a² + l²/c²
- Trigonal/rhombohedral: more complex; depends on rhombohedral angle α
- Monoclinic & triclinic: involve all three lattice angles; expressed via the metric tensor
The calculator uses the cubic-system formula. For non-cubic crystals, separate calculators or computer-algebra approaches are needed.
Selection Rules (Systematic Absences) — derivation:
- BCC: Atoms at (0,0,0) and (½,½,½). Structure factor F = f·(1 + e^(iπ(h+k+l))). When h+k+l odd, F = 0.
- FCC: Atoms at (0,0,0), (½,½,0), (½,0,½), (0,½,½). F = f·(1 + e^(iπ(h+k)) + e^(iπ(h+l)) + e^(iπ(k+l))). Vanishes unless h, k, l are all even or all odd.
- Diamond: FCC + an additional FCC sublattice shifted by (¼,¼,¼). Adds the constraint that when (hkl) all even, h+k+l must be 4n.
- Zincblende (e.g., AlAs): Two interpenetrating FCC sublattices of different atoms — but for first-order reflections the selection rules match FCC.
Common Cubic Lattice Constants (room temperature, in Å):
- Diamond: 3.567 (covalent C–C)
- Si: 5.4307 (diamond cubic)
- Ge: 5.6575 (diamond cubic)
- NaCl: 5.640 (rock salt)
- α-Fe: 2.866 (BCC)
- γ-Fe: 3.658 (FCC, > 912°C)
- Ni: 3.524, Cu: 3.6149, Ag: 4.0853, Au: 4.0782, Al: 4.0495 (all FCC)
- W: 3.165 (BCC)
- AlAs: 5.66 (zincblende)
- GaAs: 5.6533 (zincblende)
Key Takeaways
Frequently Asked Questions
What is the Miller Indices Calculator?
The 11-material library covers diamond, the major FCC metals (Cu, Ag, Au, Pt, Pd, Ni, Pb), BCC iron, and AlAs zincblende — each with its accepted room-temperature lattice constant. Bragg angles are computed for the four standard X-ray sources used in XRD labs: Cu-Kα (1.5418 Å), Mo-Kα (0.7107 Å), Co-Kα (1.7902 Å), and Cr-Kα (2.2910 Å).
Designed for X-ray diffraction analysis, materials science coursework, and solid-state chemistry, the tool runs entirely in your browser — no data is stored or transmitted.
Pro Tip: For more chemistry tools, try our Lattice Constant Calculator.
What is a Miller index, exactly?
Why is d = a / √(h² + k² + l²) only for cubic crystals?
What's a 'forbidden' reflection?
How do I get the Miller indices from an XRD peak?
What does plane multiplicity mean?
Why is Cu-Kα (λ = 1.5418 Å) the standard XRD source?
What if my Bragg angle is shown as 'n/a'?
How do thermal expansion and pressure affect d-spacing?
Can I use this for non-cubic materials?
Does the calculator work for negative Miller indices?
Disclaimer
The d-spacing formula assumes a cubic crystal system. For tetragonal, hexagonal, orthorhombic, and lower-symmetry systems, separate formulas are needed. Reference lattice constants are room-temperature values; thermal expansion and pressure shift them.