xraytools.

Structure Factor Calculator

Powder or single crystal

Why a reflection Bragg's law allows can still be strong, weak or absent. Give a cell, a space group and the atoms of the asymmetric unit; the page expands them by the symmetry, sums the scattered waves, and shows what each atom contributed.

Before this
The asymmetric unit is the part of the cell the symmetry has not yet copied; the page expands it for you, and the sum runs over every atom that results. The space group is what does the expanding.
You supply
A unit cell, a space group and one atom per line of the asymmetric unit. Coordinates may be written as fractions. Occupancy and an isotropic B are optional.
Reading it
A diffraction experiment records intensities; |F| is derived from them once the corrections are applied, and the phase is what no measurement records — the results panel says what that costs. Corrections is the step in between. Scattering factors here are those of free, spherical atoms, with no anomalous dispersion, so Friedel's law holds exactly.

Worked examples: cubic – NaCl, Fm3m (200) · cubic – Cu, Fm3m (111) · cubic – α-Fe, Im3m (110) · cubic – CsCl, Pm3m (110) · cubic – ZnS, F43m (111) · hexagonal – quartz, P3221 (101) · tetragonal – cristobalite, P41212 (101) · hexagonal – berlinite, P3121 (101) · tetragonal – rutile, P42/mnm (110) · orthorhombic – aragonite, Pmcn (111) · monoclinic – ZrO2, P21/c (111) · triclinic – albite, C1 (111) · tetragonal – urea, P421m (110)

Earlier on the path: Space Group from Absences Next on the path: Fourier Synthesis and the Phase Problem On From planes to a powder pattern, step 7 of 7 · From intensities to a structure, step 1 of 6

Notation here: s · F, |F| · Z, V · f0, f′, f″ — what each one means here

Terms here: asymmetric unit · general position · multiplicity · setting · zone

See also: Intensity Corrections · Space Group Reflection Conditions · Wilson Plot and E Statistics · Fourier Synthesis and the Phase Problem

What each input changes
Atoms in the asymmetric unit
Which atoms are summed, after the space group has copied them. Moving one atom changes every reflection, because every term of the sum carries its position.
Space group
How many copies each atom gets and where they sit. It is what makes some reflections cancel exactly.
Teaching with this page
Objective
After this page a learner can account for a reflection being strong, weak or exactly absent by the terms of the sum rather than by a rule.
Start from
this worked example
Ask first
A detector records 4,000 counts for one reflection. Which quantity is that, before any correction?
Watch for
“|F|, which is what diffraction measures”
Then
Fourier Synthesis and the Phase Problem
Check yourself: A detector records 4,000 counts for one reflection. Which quantity is that, before any correction?

An intensity, from which |F| is eventually derived |F|, which is what diffraction measures

The chain is counts → corrected intensity → |F|² → |F|, and every arrow is work: background, scale, Lorentz-polarisation, absorption. The corrections page is that chain. Calling the measurement |F| is expert shorthand and it hides the step where most of the difficulty is.

Unit cell
Å
Å
Å
°
°
°
Space group

Conditions belong to a setting, not to a space group number. Pnma, Pbnm and Pmcn are one space group with its axes labelled three ways, and the three tables differ: the glide that empties hk0 in one of them empties 0kl in another — a glide, because it is the fractional translation that makes a whole zone cancel, and a pure mirror carries none and empties nothing. Every setting in the International Tables is here with its own operations, so P21/n and P21/a answer for themselves.

Atoms in the asymmetric unit

One atom per line, for example Na 0 0 0 or O 1/3 2/3 1/4 1 0.8. Coordinates may be fractions, which matters: a site at exactly ⅓ is not a site at 0.333333. Ions are written as the Tables label them — Na1+, O2-. Only the asymmetric unit is needed; the space group supplies the rest.

Reflection

F is summed over every atom in the unit cell — the asymmetric unit expanded by the space group. A diffraction experiment measures intensities; |F| is what survives the reduction of those counts, and the phase is what no measurement records. Recovering it is the central problem of structure solution.

Structure factor

|F| 85.3863 electrons
Phase 0.0°
F as a complex number 85.3863 + 0i
sin θ/λ 0.177305 Å−1, so d = 2.82 Å
Atoms in the cell 8, holding 111.972 electrons — which is F(000)

What each atom contributed

What each atom contributes to F. CSV
Atom Sites f0 exp(−B s2) Contribution to F
Na 4 8.6487 1.0000 34.5949 + 0i
Cl 4 12.6978 1.0000 50.7914 + 0i

The site count is the site multiplicity: how many copies of that atom the space group puts in the cell. An atom on a symmetry element has fewer than a general position, because the operations that fix it carry it onto itself. (This is the count a Wyckoff letter carries in the International Tables; the site computes it and does not otherwise use that vocabulary.)

How this is calculated

F(h⁢k⁢l)=∑jfj(s)⁢exp(−Bj⁢s2)⁢∑rexp(2πi(h⁢xr+k⁢yr+l⁢zr))

j runs over the atoms you listed and r over every position the space group generates from each of them, so the inner sum is where the symmetry enters. A reflection is systematically absent when those terms cancel for every atom at once, whatever the atoms are — which is why an absence is a fact about the space group rather than about the structure.

s=sin(θ)λ=12⁢d=12×2.82Å=0.177305Å−1

ReFNa=8.64872×(cos(0°)+cos(0°)+cos(0°)+cos(0°))=34.5949

ReFCl=12.6978×(cos(0°)+cos(0°)+cos(0°)+cos(0°))=50.7914

This setting has an inversion centre at the origin, so every position is matched by one at minus its coordinates and the sines cancel in pairs. F is therefore real, and its phase can only be 0° or 180°.

ReF=34.5949+50.7914=85.3863

|F|=(ReF)2+(ImF)2

|F|=85.3863×85.3863+0×0=85.3863electrons

Nearest neighbours

Nearest neighbours of each atom, out to 3.6 Å. CSV
atomneighbourdistance (Å)how many
NaCl2.82006
ClNa2.82006

These are distances, not bonds. The cell says where the atoms are; whether two of them are bonded is a chemical judgement this page does not make, and a short contact between ions of the same charge is a repulsion rather than a bond. Distances are computed from the atomic coordinates through every symmetry operation of the space group and across cell boundaries, so the neighbour counts are the full coordination and not only what lies inside one cell.

The sum, drawn

All 8 terms: the sum so far is 85.3863 + 0i, so |F| = 85.3863 electrons.

⇤ start ← back add one → all ⇥

ReImNa at 0, 0, 0 — term 1Na at 0, 0.5, 0.5 — term 2Na at 0.5, 0, 0.5 — term 3Na at 0.5, 0.5, 0 — term 4Cl at 0.5, 0.5, 0.5 — term 5Cl at 0.5, 0, 0 — term 6Cl at 0, 0.5, 0 — term 7Cl at 0, 0, 0.5 — term 8

One arrow per atom in the cell, laid head to tail, and F as the resultant from the origin; a dot marks the end of each step. The dashed circle is F(000), the electron count of the whole cell — the largest |F| could ever be, and the same circle for every reflection of this structure, so two reflections can be compared by eye. An arrow that falls short of it does so for one of two reasons: the atoms are partly cancelling, or the scattering factors have simply fallen away with angle. An extinct reflection is a walk that closes back on where it started. This setting has a centre of symmetry at the origin, so F is real and every phase is 0° or 180° — a sign rather than an angle, which is why centrosymmetric structures were the first to be solved.

Anomalous dispersion is not included: close to an absorption edge the scattering factor gains f' and if'', and the imaginary part is what makes a Friedel pair unequal. Everything below therefore obeys Friedel's law exactly.

What the phase is a statement about. Each reflection is one wave running through the cell, with wavelength d(hkl) and its crests on the hkl planes. |F| says how strong that wave is; the phase says where it sits — how far its crest is from the cell origin, as a fraction of d written as an angle, so 180° is half a spacing. That is why the origin has to be fixed before a phase means anything, and why moving the origin changes every phase on this page while leaving every |F| exactly where it was: the waves have not moved, the point they are measured from has. A structure is those waves added up, which is what makes the missing phases the whole problem — the amplitudes say how much of each wave, and nothing in a measured intensity says where any of them sits.

Every term of the sum

Each row is one atom in the cell — the asymmetric unit expanded by the space group — contributing occ · f0 · exp(−B s2) turned through the phase 2π(hx + ky + lz). The running total is the structure factor of everything above that line, which is what the arrows beside it are drawing.

#AtomxyzWeightPhase (°)This termRunning |F|
1Na0.00000.00000.00008.64870.08.64872 + 0i8.6487
2Na0.00000.50000.50008.64870.08.64872 + 0i17.2974
3Na0.50000.00000.50008.64870.08.64872 + 0i25.9462
4Na0.50000.50000.00008.64870.08.64872 + 0i34.5949
5Cl0.50000.50000.500012.69780.012.6978 + 0i47.2927
6Cl0.50000.00000.000012.69780.012.6978 + 0i59.9906
7Cl0.00000.50000.000012.69780.012.6978 + 0i72.6884
8Cl0.00000.00000.500012.69780.012.6978 + 0i85.3863

The weight is what the atom scatters at this angle before the phase is applied: occupancy times f0(s) times the temperature factor. Two atoms of the same element at the same occupancy and the same B therefore have the same weight and differ only in their phase — which is why a systematic absence is a property of where the atoms are rather than of what they are. All three factors are per atom here, so a list that gives one site a partial occupancy or its own B breaks that equality deliberately; the absences of the space group survive it, because they cancel term against term whatever the weights are.

Where this comes from