Crystallography Calculators
Free crystallography calculators: Bragg's law, d-spacing, unit cell volume, structure factor, Williamson-Hall, Debye-Waller, zone axis, and stereographic poles.
Crystallography Calculators - X-Ray and Neutron Diffraction
Crystallography studies how atoms pack into repeating, periodic lattices, and how that periodic structure diffracts X-rays or neutrons to reveal atomic-scale detail. These calculators cover the foundational relationships behind diffraction analysis and crystal structure determination, Bragg’s law, interplanar d-spacing from Miller indices, and unit cell volume, and extend through the analysis tools built on top of them: peak-broadening methods that separate crystallite size from microstrain, thermal attenuation, full powder pattern simulation, lattice direction geometry, and crystal symmetry classification.
Twenty-One Crystallography Calculators
The Bragg Law Calculator solves nλ = 2d sinθ for the Bragg angle, d-spacing, or wavelength, the fundamental condition for constructive interference in X-ray and neutron diffraction. The d-Spacing from Miller Indices Calculator finds the interplanar spacing d from Miller indices (h,k,l) for cubic, tetragonal, and orthorhombic crystal systems, the direct input Bragg’s law needs to predict a diffraction pattern. The Unit Cell Volume Calculator finds the volume of any unit cell, cubic through fully triclinic, from its edge lengths a, b, c and angles α, β, γ using a single general formula that reduces to V = a³ for the cubic case and to the full trigonometric expression for the least symmetric triclinic case. The Unit Cell Density Calculator finds the theoretical density of a crystal (rho = nM/(Vc x NA)) from the number of atoms per unit cell, molar mass, and edge length, verified against real elements like copper, iron, and polonium. The Atomic Packing Factor Calculator finds the fraction of unit cell volume filled by atoms (APF = n(4/3)πr³/a³) for simple cubic, BCC, and FCC structures from atomic radius and lattice parameter. The Scherrer Equation Crystallite Size Calculator finds average crystallite size from X-ray diffraction peak broadening (D = Kλ/(βcosθ)), with an interactive chart of size versus peak broadening. The Coordination Number Identifier identifies the coordination number, atoms per unit cell, and idealized packing factor for simple cubic, BCC, FCC, HCP, and diamond cubic structures. The Structure Factor F(hkl) Calculator computes the full complex structure factor F(hkl) = Σfjexp[2πi(hxj+kyj+lzj)] and diffracted intensity |F(hkl)|² for simple cubic, BCC, and FCC bases, flagging systematic absences automatically. The Systematic Absence Rule Checker applies the shortcut reflection condition rules for primitive, body-centered, face-centered, and C-centered lattices to instantly classify any (hkl) reflection as allowed or forbidden. The Reciprocal Lattice Vector Calculator computes a*, b*, and c* from any set of direct lattice vectors using a* = 2π(b×c)/[a·(b×c)], working for cubic through fully non-orthogonal lattices. The Ewald Sphere Geometry Calculator computes the Ewald sphere radius k = 2π/λ and checks whether a candidate reflection lies within the limiting sphere at a given wavelength. The X-ray Diffraction Peak Position Calculator predicts the diffraction peak position 2θ directly from a cubic lattice parameter and Miller indices, with a full table of predicted peak positions for common reflections.
Beyond those fundamentals, a second group of calculators covers the analysis actually performed on measured diffraction data. The Williamson-Hall Plot Parameter Calculator separates the two causes of peak broadening that the Scherrer equation alone conflates, plotting βcosθ against sinθ so that crystallite size falls out of the intercept and microstrain out of the slope. The Lattice Strain Calculator approaches strain three ways, from peak broadening, from a measured shift in lattice parameter against a reference, and from epitaxial film-substrate misfit with the Poisson contraction perpendicular to the interface. The Debye-Waller Factor Calculator quantifies how thermal vibration attenuates diffracted intensity, either from a known B factor or from the Debye model given a Debye temperature, atomic mass, and sample temperature. The Powder Diffraction Pattern Simulator generates a complete predicted peak list for primitive, body-centered, face-centered, and diamond lattices, applying the correct reflection conditions and multiplicities and merging reflections that share the same h²+k²+l². The Electron Density Map Parameter Calculator handles the practical side of structure solution, converting a target resolution and unit cell volume into grid spacing, expected reflection counts, and map file size.
A third group covers lattice geometry and symmetry. The Interplanar Angle Calculator finds the angle between any two (hkl) planes for cubic, tetragonal, orthorhombic, and hexagonal systems, where the lattice constants cancel in the cubic case but genuinely matter in the others. The Zone Axis Calculator takes the cross product of two plane normals to find their common zone axis, checks the Weiss zone law hu+kv+lw=0, and lists every plane belonging to a given zone. The Stereographic Projection Pole Calculator plots a plane’s pole on a stereogram along with its full set of symmetry-equivalent poles, the standard way crystallographers visualize orientation relationships. The Point Group and Space Group Symmetry Identifier reads a Hermann-Mauguin symbol and returns the crystal system, Laue class, lattice centering, and whether the group is centrosymmetric, which determines whether Friedel’s law holds and anomalous dispersion can resolve absolute structure.
Who Uses These Calculators
Materials science and condensed matter physics students use these tools to work through powder XRD problem sets, converting between diffraction angle, d-spacing, and Miller indices. Crystallographers and X-ray diffraction lab technicians use the Bragg Law Calculator for quick peak-position sanity checks before running full Rietveld refinement software. Solid-state chemistry students use the Unit Cell Volume Calculator to compute theoretical density (mass of unit cell contents divided by unit cell volume) as a standard lab exercise.
Constants Behind Crystallography
Most crystallography calculations reduce to trigonometry and geometry applied to a repeating lattice. The standard X-ray wavelength for laboratory diffractometers is Cu-Kα radiation at λ ≈ 1.5406 Å, and typical interplanar spacings in real crystals (silicon, quartz, common oxides) fall in the 1 to 5 Å range, which is exactly why diffraction angles are measurable with laboratory equipment rather than requiring exotic instrumentation.
Frequently Asked Questions
What is Bragg's law used for?
Bragg's law (nλ = 2d sinθ) is the fundamental condition for constructive interference of X-rays or neutrons scattered by the periodic planes of a crystal lattice. It underlies X-ray diffraction (XRD), neutron diffraction, and every technique used to determine crystal structure from a diffraction pattern. The Bragg Law Calculator solves it for any of the three unknowns.
What are Miller indices?
Miller indices (h,k,l) are a set of three integers that uniquely identify a family of crystal planes and their orientation within the unit cell. Every d-spacing calculation starts from a chosen set of Miller indices, and the relationship between them depends on the crystal system, cubic, tetragonal, orthorhombic, and beyond. The d-Spacing from Miller Indices Calculator covers the three most common cases.
How do I find the unit cell volume of a triclinic crystal?
For the lowest-symmetry triclinic system, where none of the three edge lengths or three angles are equal or 90°, the volume formula is V = abc·√(1 − cos²α − cos²β − cos²γ + 2cosα·cosβ·cosγ). Higher-symmetry systems are special cases of this same formula: it reduces to V = a³ for cubic (a=b=c, α=β=γ=90°) and V = abc for orthorhombic (α=β=γ=90°, a≠b≠c). The Unit Cell Volume Calculator applies the general formula automatically for any crystal system.
What X-ray wavelength should I use in the Bragg law calculator?
Laboratory X-ray diffractometers almost always use copper anode tubes, giving Cu-Kα radiation at λ ≈ 1.5406 Å (the Kα1 line; some instruments report the weighted Kα1/Kα2 average of 1.5418 Å). Other common sources include Mo-Kα (0.7107 Å, used for single-crystal work) and Co-Kα (1.7889 Å, preferred for iron-containing samples to avoid fluorescence). Enter the correct source wavelength into the Bragg Law Calculator to get an accurate d-spacing from a measured 2θ angle.