Structure Factor F(hkl) Calculator

Compute the structure factor F(hkl) and diffracted intensity |F(hkl)|² for simple cubic, BCC, and FCC crystal bases.

💠 Structure Factor F(hkl) Calculator
e⁻
1 e⁻80 e⁻
|F(hkl)|
—
|F(hkl)|²
—
Reflection status
—
Step-by-step working

💠 What is the Structure Factor F(hkl)?

The structure factor F(hkl) is a complex number that sums the X-ray (or neutron) scattering contributions of every atom in a crystal's unit cell basis, for a specific set of Miller indices (h,k,l): F(hkl) = Σ fj exp[2πi(hxj+kyj+lzj)]. Its squared magnitude, |F(hkl)|², is directly proportional to the intensity of the diffraction peak measured at that reflection, making the structure factor the central quantity connecting a crystal's atomic arrangement to its observed diffraction pattern.

Crystallographers use structure factor calculations to predict which reflections will appear (and how strong they will be) before ever running an experiment, to explain why certain lattice centerings produce entirely missing peaks (systematic absences), and as the starting point for solving unknown crystal structures from measured diffraction intensities. A materials scientist indexing a powder XRD pattern checks which peaks are systematically forbidden by centering before assigning any of the observed peaks to specific (hkl) planes. A crystallography student verifies textbook BCC and FCC selection rules by computing F(hkl) directly from atom positions rather than memorizing the shortcut conditions.

A common point of confusion is treating F(hkl) itself as the measurable quantity. It isn't, a standard diffraction experiment only measures intensity, proportional to |F(hkl)|², and loses the phase information entirely (the famous "phase problem" in crystallography). Another subtlety is that systematic absences come purely from the lattice centering (how many atoms sit in the basis and where), not from the atomic scattering factor f, which only scales the intensity of allowed reflections.

This calculator computes the full complex structure factor sum for simple cubic, BCC, and FCC bases, showing the magnitude, the squared magnitude (intensity factor), and an automatic systematic-absence flag, useful for crystallography coursework and for checking selection rules by direct calculation.

📐 Formula

F(hkl)  =  Σj fj exp[2πi(hxj+kyj+lzj)]
h, k, l = Miller indices of the reflection (integers)
xj, yj, zj = fractional coordinates of basis atom j
fj = atomic scattering factor of basis atom j
Simple cubic basis: (0,0,0) → F = f, never zero, no systematic absences
BCC basis: (0,0,0), (½,½,½) → F = f[1+eiπ(h+k+l)], zero unless h+k+l even
FCC basis: (0,0,0), (½,½,0), (½,0,½), (0,½,½) → F = 4f if h,k,l unmixed parity, else 0
Diffracted intensity ∝ |F(hkl)|²

📖 How to Use This Calculator

Steps

1
Choose a lattice basis. Select Simple Cubic, BCC, or FCC, depending on the crystal's centering type.
2
Enter the Miller indices and scattering factor. Type h, k, l (integers) and the atomic scattering factor f for the basis atoms.
3
Read F(hkl), |F(hkl)|², and the absence flag. The calculator shows the full complex sum, the intensity factor, and whether the reflection is allowed or systematically forbidden.

💡 Example Calculations

Example 1 — FCC (111), Copper-like Scattering Factor

FCC: (h,k,l) = (1,1,1), f = 29 e⁻ (approximate copper value)

1
All four basis atoms contribute in phase for (111): F = f(1+1+1+1) = 4 × 29 = 116
2
|F(hkl)| = 116.00, |F(hkl)|² = 116² = 13456.00
|F(111)| = 116.00, |F|² = 13456.00 (Allowed)
Try this example →

Example 2 — BCC (110), Allowed Reflection

BCC: (h,k,l) = (1,1,0), f = 25 e⁻ (approximate iron value)

1
h+k+l = 1+1+0 = 2 (even), so F = f[1+1] = 2 × 25 = 50
2
|F(hkl)| = 50.00, |F(hkl)|² = 50² = 2500.00
|F(110)| = 50.00, |F|² = 2500.00 (Allowed)
Try this example →

Example 3 — BCC (100), Systematically Forbidden

BCC: (h,k,l) = (1,0,0), f = 25 e⁻

1
h+k+l = 1+0+0 = 1 (odd), so F = f[1+eiπ] = f[1-1] = 0
2
|F(hkl)| ≈ 0.00, |F(hkl)|² ≈ 0.00
|F(100)| ≈ 0.00 (Forbidden, absent from the pattern)
Try this example →

❓ Frequently Asked Questions

What is the structure factor F(hkl)?+
The structure factor F(hkl) is a complex number that sums the scattering contributions of every atom in a unit cell's basis for a given set of Miller indices (h,k,l): F(hkl) = Σ f_j exp[2πi(hx_j+ky_j+lz_j)]. Its squared magnitude |F(hkl)|² is proportional to the intensity of that reflection's diffraction peak.
Why is the structure factor complex?+
Each basis atom contributes a phase factor exp[2πi(hx_j+ky_j+lz_j)] that depends on its fractional position, atoms at different positions scatter with different phases relative to a reference origin. Summing these complex phase factors, weighted by each atom's scattering power f_j, gives a complex result whose real and imaginary parts can partially or fully cancel.
Why does BCC have systematic absences?+
BCC has a two-atom basis at (0,0,0) and (1/2,1/2,1/2). Summing their phase factors gives F(hkl) = f[1 + exp(iπ(h+k+l))], which equals 2f when h+k+l is even but exactly 0 when h+k+l is odd, the centering atom's contribution exactly cancels the corner atom's for every odd-sum reflection.
Why does FCC have systematic absences?+
FCC has a four-atom basis: one at (0,0,0) and three face-centering atoms. Summing all four phase factors gives F(hkl) = f[1+exp(iπ(h+k))+exp(iπ(h+l))+exp(iπ(k+l))], which equals 4f when h, k, l are all even or all odd, and exactly 0 for any mixed-parity combination.
Does simple cubic have any systematic absences?+
No. Simple cubic has only one atom per basis, at (0,0,0), so F(hkl) = f for every combination of h, k, l with no cancellation possible. Every reflection is allowed, which is why simple cubic diffraction patterns are the simplest of the common cubic structures to index.
What is the difference between F(hkl) and |F(hkl)|²?+
F(hkl) is the full complex structure factor, including phase information that a standard diffraction experiment cannot directly measure. |F(hkl)|² is its squared magnitude, a real, positive number directly proportional to the measured diffracted peak intensity, this is the quantity crystallographers actually extract from experimental data.
What units does the atomic scattering factor f use?+
Atomic scattering factor f is conventionally expressed in electron units for X-ray diffraction, roughly equal to the atomic number Z at zero scattering angle and decreasing at higher angles. This calculator treats f as a single input constant per basis atom, the simplified textbook approximation.
What does 'forbidden' or 'systematically absent' mean for a reflection?+
A systematically forbidden (or systematically absent) reflection is one where F(hkl) evaluates to exactly zero because of the lattice's centering symmetry, regardless of what atom occupies the basis position. No diffraction peak appears at that (hkl) position no matter how strong the scattering factor f is.
How is this different from the Systematic Absence Rule Checker?+
This calculator computes the full complex structure factor sum from actual atom positions and scattering factors, showing the exact magnitude and intensity for any reflection. The Systematic Absence Rule Checker applies the simpler shortcut rules (like h+k+l even for BCC) directly, without computing F(hkl) itself, useful once you already know the rule and just need a fast allowed/forbidden check.
Can this calculator handle non-cubic or multi-element bases?+
This calculator covers the three most common monatomic cubic bases, simple cubic, BCC, and FCC, with a single scattering factor for all basis atoms. Real multi-element crystals (like NaCl or perovskites) need a basis with different f values at each site, a more advanced structure factor calculation beyond this tool's scope.

What is the structure factor F(hkl)?

The structure factor F(hkl) is a complex number that sums the scattering contributions of every atom in a unit cell's basis for a given set of Miller indices (h,k,l): F(hkl) = Σ f_j exp[2πi(hx_j+ky_j+lz_j)]. Its squared magnitude |F(hkl)|² is proportional to the intensity of that reflection's diffraction peak.

Why is the structure factor complex?

Each basis atom contributes a phase factor exp[2πi(hx_j+ky_j+lz_j)] that depends on its fractional position, atoms at different positions scatter with different phases relative to a reference origin. Summing these complex phase factors, weighted by each atom's scattering power f_j, gives a complex result whose real and imaginary parts can partially or fully cancel.

Why does BCC have systematic absences?

BCC has a two-atom basis at (0,0,0) and (1/2,1/2,1/2). Summing their phase factors gives F(hkl) = f[1 + exp(iπ(h+k+l))], which equals 2f when h+k+l is even but exactly 0 when h+k+l is odd, the centering atom's contribution exactly cancels the corner atom's for every odd-sum reflection.

Why does FCC have systematic absences?

FCC has a four-atom basis: one at (0,0,0) and three face-centering atoms. Summing all four phase factors gives F(hkl) = f[1+exp(iπ(h+k))+exp(iπ(h+l))+exp(iπ(k+l))], which equals 4f when h, k, l are all even or all odd, and exactly 0 for any mixed-parity combination.

Does simple cubic have any systematic absences?

No. Simple cubic has only one atom per basis, at (0,0,0), so F(hkl) = f for every combination of h, k, l with no cancellation possible. Every reflection is allowed, which is why simple cubic diffraction patterns are the simplest of the common cubic structures to index.

What is the difference between F(hkl) and |F(hkl)|²?

F(hkl) is the full complex structure factor, including phase information that a standard diffraction experiment cannot directly measure. |F(hkl)|² is its squared magnitude, a real, positive number directly proportional to the measured diffracted peak intensity, this is the quantity crystallographers actually extract from experimental data.

What units does the atomic scattering factor f use?

Atomic scattering factor f is conventionally expressed in electron units for X-ray diffraction, roughly equal to the atomic number Z at zero scattering angle and decreasing at higher angles. This calculator treats f as a single input constant per basis atom, the simplified textbook approximation.

What does 'forbidden' or 'systematically absent' mean for a reflection?

A systematically forbidden (or systematically absent) reflection is one where F(hkl) evaluates to exactly zero because of the lattice's centering symmetry, regardless of what atom occupies the basis position. No diffraction peak appears at that (hkl) position no matter how strong the scattering factor f is.

How is this different from the Systematic Absence Rule Checker?

This calculator computes the full complex structure factor sum from actual atom positions and scattering factors, showing the exact magnitude and intensity for any reflection. The Systematic Absence Rule Checker applies the simpler shortcut rules (like h+k+l even for BCC) directly, without computing F(hkl) itself, useful once you already know the rule and just need a fast allowed/forbidden check.

Can this calculator handle non-cubic or multi-element bases?

This calculator covers the three most common monatomic cubic bases, simple cubic, BCC, and FCC, with a single scattering factor for all basis atoms. Real multi-element crystals (like NaCl or perovskites) need a basis with different f values at each site, a more advanced structure factor calculation beyond this tool's scope.