Powder Diffraction Pattern Simulator

Generate the full list of allowed hkl reflections and 2-theta peak positions for any cubic lattice.

📊 Powder Diffraction Pattern Simulator
Å
Å
deg
Peaks in range
—
First reflection
—
First peak 2θ
—
Strongest peak
—
Largest d-spacing
—

📊 What is a Powder Diffraction Pattern Simulator?

A powder diffraction pattern simulator predicts the positions and approximate heights of the peaks a crystalline powder will produce in an X-ray diffraction experiment. Instead of measuring a sample, you supply the crystal lattice, and the simulator works forward through Bragg's law to tell you exactly which reflections are allowed, what d-spacing each has, and at what 2θ angle each will appear on the detector. For a cubic crystal this is fully determined by three numbers: the lattice parameter a, the radiation wavelength λ, and which lattice centring the structure has.

Researchers use forward simulation constantly. Before running a scan, it tells you how wide the angular range needs to be to capture enough peaks for a reliable lattice-parameter refinement. After a scan, comparing the simulated peak list against the measured one is the quickest way to confirm a phase assignment or spot an unexpected impurity peak that belongs to nothing in your model. In teaching labs, it makes the connection between systematic absences and lattice centring concrete: switch the lattice type and watch entire families of peaks disappear.

An important distinction is between peak positions and peak intensities. Positions are exact, they follow directly from geometry and Bragg's law, and any discrepancy against your measurement means the lattice parameter, the wavelength, or the sample height is wrong. Intensities are much softer. The model here includes reflection multiplicity, the Lorentz-polarization factor and the lattice structure factor, but it deliberately omits the atomic scattering factor, thermal motion, preferred orientation and absorption, all of which shape real measured intensities. Treat the intensity column as a guide to which lines are strong and which are weak, not as a quantitative prediction.

This simulator covers the four cubic lattice types that dominate metals, semiconductors and simple ceramics: simple cubic, body-centred cubic, face-centred cubic and diamond cubic. Because every reflection with the same value of h²+k²+l² has the same d-spacing in a cubic cell, overlapping reflections such as 333 and 511 are merged into a single observed line with their multiplicities added, exactly as a diffractometer would record them.

📐 Formula

d = a ÷ √(h²+k²+l²)    and    2θ = 2 × arcsin(λ ÷ 2d)
a = cubic lattice parameter (Å)
h, k, l = Miller indices of the reflecting plane family
d = interplanar spacing of that family (Å)
λ = radiation wavelength (Å)
2θ = the measured detector angle (degrees)
Allowed reflections: P = all hkl; I = h+k+l even; F = h, k, l all even or all odd; diamond = F rule plus, for all-even hkl, h+k+l a multiple of 4
Relative intensity: I ∝ m × |S|² × (1 + cos²2θ) ÷ (sin²θ cosθ), with m the multiplicity
Example: a = 4.0495 Å, hkl = 111, λ = 1.5406 Å → d = 2.3380 Å and 2θ = 38.474°.

📖 How to Use This Calculator

Steps

1
Enter the lattice parameter and wavelength. Type the cubic lattice parameter a in angstroms and the radiation wavelength lambda in angstroms.
2
Choose the lattice type. Select simple cubic, body-centred, face-centred or diamond cubic so the correct systematic absence rule is applied.
3
Set the scan range and read the peaks. Set the maximum 2-theta of your scan, then read the peak table and the simulated diffractogram.

💡 Example Calculations

Example 1 — Face-Centred Cubic Aluminium

a = 4.0495 Å, λ = 1.5406 Å (Cu-Kα), face-centred cubic, scan to 120°

1
The F rule allows h²+k²+l² = 3, 4, 8, 11, 12, 16, 19, 20 within the scan, so 8 peaks appear
2
First reflection 111: d = 4.0495 ÷ √3 = 2.3380 Å, sinθ = 1.5406 ÷ 4.6760 = 0.32948
3
2θ = 2 × arcsin(0.32948) = 38.474°, then 200 at 44.722° and 220 at 65.099°
8 peaks, first is 111 at 2θ = 38.474° with d = 2.3380 Å
Try this example →

Example 2 — Body-Centred Cubic Alpha Iron

a = 2.8664 Å, λ = 1.5406 Å, body-centred cubic, scan to 120°

1
The I rule requires h+k+l even, giving h²+k²+l² = 2, 4, 6, 8, 10 in range, so 5 peaks appear
2
First reflection 110: d = 2.8664 ÷ √2 = 2.0269 Å
3
2θ = 2 × arcsin(1.5406 ÷ 4.0538) = 44.673°, the strongest line of the pattern
5 peaks, first is 110 at 2θ = 44.673° with d = 2.0269 Å
Try this example →

Example 3 — Diamond Cubic Silicon

a = 5.4309 Å, λ = 1.5406 Å, diamond cubic, scan to 120°

1
The diamond rule kills 200 and 222, so the series runs 3, 8, 11, 16, 19, 24, 27, 32, 35 and 9 peaks appear
2
First reflection 111: d = 5.4309 ÷ √3 = 3.1355 Å, giving 2θ = 28.443°
3
The 333 and 511 reflections both have h²+k²+l² = 27, so they merge into one line at 94.954°
9 peaks, first is 111 at 2θ = 28.443° with d = 3.1355 Å
Try this example →

❓ Frequently Asked Questions

What does a powder diffraction pattern simulator do?+
It predicts where diffraction peaks will appear for a given crystal lattice. You supply the lattice parameter, the radiation wavelength and the lattice type, and the simulator lists every allowed hkl reflection with its d-spacing, 2-theta angle, multiplicity and relative intensity, then plots the resulting pattern.
How do you calculate 2-theta for a cubic crystal?+
First compute d = a / sqrt(h squared + k squared + l squared), then apply Bragg's law: sin theta = lambda / (2d). The measured angle is 2-theta = 2 times theta. For example a = 4.0495 angstroms, hkl = 111 and lambda = 1.5406 angstroms give d = 2.3380 angstroms and 2-theta = 38.474 degrees.
What are systematic absences?+
Systematic absences are reflections whose structure factor cancels to exactly zero because of lattice centring or symmetry elements. Body-centred cubic allows only h+k+l even, face-centred cubic allows only all-even or all-odd hkl, and diamond cubic further removes all-even reflections whose h+k+l is not a multiple of four.
How do I tell FCC from BCC in a powder pattern?+
Look at the ratio of the first few h2+k2+l2 values. Face-centred cubic gives 3, 4, 8, 11, 12, so the first two peaks are a close pair. Body-centred cubic gives 2, 4, 6, 8, 10, an evenly spaced series starting with a single isolated peak. Simple cubic gives 1, 2, 3, 4, 5, 6, 8.
Why do 333 and 511 appear as one peak?+
Both have h2+k2+l2 = 27, and in a cubic lattice d-spacing depends only on that sum, so both reflections diffract at exactly the same angle. A powder diffractometer cannot separate them, so this simulator merges them into a single line and adds their multiplicities together.
What is multiplicity in powder diffraction?+
Multiplicity is the number of symmetry-equivalent planes that diffract at the same angle. In a cubic crystal the 100 family has multiplicity 6, the 111 family has 8, the 110 family has 12, and a general hkl family has 48. Higher multiplicity means more crystallites contribute, so the peak is stronger.
Are the simulated intensities accurate?+
They are geometric estimates, not full-pattern intensities. The model includes multiplicity, the Lorentz-polarization factor and the lattice structure factor, but excludes the atomic scattering factor, thermal Debye-Waller attenuation, preferred orientation and absorption. Expect the correct peak positions and roughly the right pattern of strong versus weak lines.
What is the Lorentz-polarization factor?+
The Lorentz-polarization factor, LP = (1 + cos squared 2-theta) / (sin squared theta times cos theta), corrects for the geometry of a powder diffractometer and for the partial polarization of the scattered X-rays. It rises sharply at very low and very high angles, which is why it strongly shapes relative peak heights.
Which wavelength should I choose?+
Cu K-alpha at 1.5406 angstroms is the laboratory default and is assumed by most published patterns. Mo K-alpha at 0.7107 angstroms reaches many more reflections in the same angular range and is preferred for heavily absorbing samples. Synchrotron work typically uses a tunable wavelength between 0.5 and 1.5 angstroms.
Why do no peaks appear when the lattice parameter is very small?+
Bragg's law needs sin theta = lambda sqrt(h2+k2+l2) / 2a to be at most 1. If a is smaller than about half the wavelength, even the first reflection is out of reach and no peaks exist. Either use a shorter wavelength or check that the lattice parameter was entered in angstroms.
Does this simulator handle non-cubic crystals?+
No, it assumes a cubic cell where d = a / sqrt(h2+k2+l2). Tetragonal, hexagonal and lower-symmetry cells need a separate d-spacing expression with more than one cell parameter, which splits families such as 100 and 001 into separate peaks.
How does the lattice parameter affect peak positions?+
Peak positions move inversely with a. Doubling the lattice parameter halves every d-spacing value in the denominator of Bragg's law, so all peaks shift to lower 2-theta. Small changes in a produce the biggest angular shifts at high 2-theta, which is why lattice-parameter refinement relies on high-angle peaks.
Why is the peak width fixed in the simulated plot?+
The plot draws each reflection as a Gaussian of fixed width purely so the pattern is readable. Real peak widths depend on crystallite size, microstrain and instrumental resolution. Use the Scherrer equation or a Williamson-Hall plot to relate measured widths to crystallite size and strain.

What does a powder diffraction pattern simulator do?

It predicts where diffraction peaks will appear for a given crystal lattice. You supply the lattice parameter, the radiation wavelength and the lattice type, and the simulator lists every allowed hkl reflection with its d-spacing, 2-theta angle, multiplicity and relative intensity, then plots the resulting pattern.

How do you calculate 2-theta for a cubic crystal?

First compute d = a / sqrt(h squared + k squared + l squared), then apply Bragg's law: sin theta = lambda / (2d). The measured angle is 2-theta = 2 times theta. For example a = 4.0495 angstroms, hkl = 111 and lambda = 1.5406 angstroms give d = 2.3380 angstroms and 2-theta = 38.474 degrees.

What are systematic absences?

Systematic absences are reflections whose structure factor cancels to exactly zero because of lattice centring or symmetry elements. Body-centred cubic allows only h+k+l even, face-centred cubic allows only all-even or all-odd hkl, and diamond cubic further removes all-even reflections whose h+k+l is not a multiple of four.

How do I tell FCC from BCC in a powder pattern?

Look at the ratio of the first few h2+k2+l2 values. Face-centred cubic gives 3, 4, 8, 11, 12, so the first two peaks are a close pair. Body-centred cubic gives 2, 4, 6, 8, 10, an evenly spaced series starting with a single isolated peak. Simple cubic gives 1, 2, 3, 4, 5, 6, 8.

Why do 333 and 511 appear as one peak?

Both have h2+k2+l2 = 27, and in a cubic lattice d-spacing depends only on that sum, so both reflections diffract at exactly the same angle. A powder diffractometer cannot separate them, so this simulator merges them into a single line and adds their multiplicities together.

What is multiplicity in powder diffraction?

Multiplicity is the number of symmetry-equivalent planes that diffract at the same angle. In a cubic crystal the 100 family has multiplicity 6, the 111 family has 8, the 110 family has 12, and a general hkl family has 48. Higher multiplicity means more crystallites contribute, so the peak is stronger.

Are the simulated intensities accurate?

They are geometric estimates, not full-pattern intensities. The model includes multiplicity, the Lorentz-polarization factor and the lattice structure factor, but excludes the atomic scattering factor, thermal Debye-Waller attenuation, preferred orientation and absorption. Expect the correct peak positions and roughly the right pattern of strong versus weak lines.

What is the Lorentz-polarization factor?

The Lorentz-polarization factor, LP = (1 + cos squared 2-theta) / (sin squared theta times cos theta), corrects for the geometry of a powder diffractometer and for the partial polarization of the scattered X-rays. It rises sharply at very low and very high angles, which is why it strongly shapes relative peak heights.

Which wavelength should I choose?

Cu K-alpha at 1.5406 angstroms is the laboratory default and is assumed by most published patterns. Mo K-alpha at 0.7107 angstroms reaches many more reflections in the same angular range and is preferred for heavily absorbing samples. Synchrotron work typically uses a tunable wavelength between 0.5 and 1.5 angstroms.

Why do no peaks appear when the lattice parameter is very small?

Bragg's law needs sin theta = lambda sqrt(h2+k2+l2) / 2a to be at most 1. If a is smaller than about half the wavelength, even the first reflection is out of reach and no peaks exist. Either use a shorter wavelength or check that the lattice parameter was entered in angstroms.

Does this simulator handle non-cubic crystals?

No, it assumes a cubic cell where d = a / sqrt(h2+k2+l2). Tetragonal, hexagonal and lower-symmetry cells need a separate d-spacing expression with more than one cell parameter, which splits families such as 100 and 001 into separate peaks.

How does the lattice parameter affect peak positions?

Peak positions move inversely with a. Doubling the lattice parameter halves every d-spacing value in the denominator of Bragg's law, so all peaks shift to lower 2-theta. Small changes in a produce the biggest angular shifts at high 2-theta, which is why lattice-parameter refinement relies on high-angle peaks.