xraytools.

Crystallography calculators

Calculators for X-ray crystallography — the arithmetic that comes up over and over at a diffractometer and in a structure report. Each one shows the assumptions it rests on.

They are meant to be useful two ways. One is as a working tool, for when you already know what you are after. The other is as somewhere to see what a number actually means, while you are still learning. Every result has its own address, so an answer can be bookmarked, sent to a colleague or linked from a course page.

What this covers, and what it does not

These are teaching tools for small-molecule and powder X-ray crystallography: selected concepts, and the arithmetic that goes with them. The nav reads like an end-to-end determination and is not one. Nothing here does specimen preparation, instrument alignment or calibration, detector geometry, frame integration or scaling, least-squares refinement, disorder modelling, restraints and constraints, publication validation, or anything macromolecular. For those you need the real software, and the reading page says which.

Every tool below carries a label saying which measurement its statements are about, and so does every page:

Powder data
the statements on the page are about a powder pattern — a one-dimensional scan of intensity against angle
Single-crystal data
they are about single-crystal reflection data — individual reflections, each with its own indices
Powder or single crystal
they hold for either kind of measurement, or the page is about the crystal rather than about the experiment
No diffraction data
no diffraction measurement is involved at all — the page works from a composition or from a finished structure

Choose a learning path

If you are here to learn rather than to look something up, start with a route rather than with the list. Each one is a handful of these pages in a recommended order, with something to do on each. There is a question to answer at the end.

All the paths, with the steps and the exercises. Or carry on down to the full list of calculators.

Radiation

Chemistry

Experiment & data reduction

Lattice

Bragg Calculator

Bragg's law both ways: the d-spacing from a 2-theta angle, or the angle from a d-spacing, for six characteristic wavelengths, recalculated as you type.

Powder or single crystal

NaCl (200) · quartz (101)

HKL Calculator

Cell volume, d-spacing, 2-theta, the symmetry-equivalent reflections of a Miller index, and the powder stick pattern of the cell.

Powder or single crystal

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)

Reciprocal Cell Calculator

Reciprocal cell axes and angles from a unit cell, with both metric tensors, and the angle between a lattice direction and a lattice plane.

Powder or single crystal

the normal to (100) is 30° away from [100] – quartz · and in a cubic cell they coincide – NaCl, [111] and (111) · the zone law: [110] lies in (110), so hu+kv+lw = 0 · NaCl – halite (rock salt) · Cu – copper, face-centred cubic · α-Fe – ferrite, body-centred cubic · CsCl – caesium chloride · ZnS – sphalerite (zinc blende) · quartz – α-quartz, SiO2 · cristobalite – α-cristobalite, SiO2 · berlinite – berlinite, AlPO4 · rutile – rutile, TiO2 · aragonite – aragonite, CaCO3 · ZrO2 – baddeleyite, monoclinic zirconia · albite – low albite, NaAlSi3O8 · urea – urea, CO(NH2)2

Symmetry

Space Group Reflection Conditions

Systematic absences of any of the 230 space groups in any setting, with a reflection tester and the groups that share each pattern of absences.

Powder or single crystal

P21/c – the commonest space group there is · P21/n – the same group, a different setting · P43212 – screw axes and nothing else · R3c – rhombohedral, in hexagonal axes · Fd3m – diamond, and (2 0 0) missing · C2/c – a glide inside a centred net · Pnma – every other reflection, in one zone

Structure solution

Structure Factor Calculator

The structure factor of any reflection from a cell, a space group and an atom list, with each atom's contribution and an Argand diagram.

Powder or single crystal

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)

Difference Map

The (Fo-Fc) difference map: delete one atom from a known structure and see whether the map puts its strongest peak back where it was.

Single-crystal data

Crystal data

Crystal Density Calculator

Calculated crystal density from a unit cell, a chemical formula and Z, with the cell volume and the volume per non-hydrogen atom.

No diffraction data

NaCl – halite (rock salt) · Cu – copper, face-centred cubic · α-Fe – ferrite, body-centred cubic · CsCl – caesium chloride · ZnS – sphalerite (zinc blende) · quartz – α-quartz, SiO2 · cristobalite – α-cristobalite, SiO2 · berlinite – berlinite, AlPO4 · rutile – rutile, TiO2 · aragonite – aragonite, CaCO3 · ZrO2 – baddeleyite, monoclinic zirconia · albite – low albite, NaAlSi3O8 · urea – urea, CO(NH2)2

CIF Parser

Upload a CIF and read it back as an HTML or LaTeX table: unit cell, space group, atom sites, and the powder pattern the file implies.

Powder or single crystal

Interatomic Distances and Angles

Interatomic distances and angles from a cell, a space group and an atom list, each with the uncertainty its own parameters support.

No diffraction data

Quartz, with uncertainties supplied · cubic – NaCl, Fm3m · cubic – Cu, Fm3m · cubic – α-Fe, Im3m · cubic – CsCl, Pm3m · cubic – ZnS, F43m · hexagonal – quartz, P3221 · tetragonal – cristobalite, P41212 · hexagonal – berlinite, P3121 · tetragonal – rutile, P42/mnm · orthorhombic – aragonite, Pmcn · monoclinic – ZrO2, P21/c · triclinic – albite, C1 · tetragonal – urea, P421m

Refinement & validation

New to diffraction?

Two of these are the place to start, and they answer the same question from opposite ends.

The Bragg calculator is the relationship the whole technique rests on. A set of lattice planes a distance d apart reflects a wavelength λ at one particular angle. That is the angle at which waves from successive planes come away in step. Put in an angle you measured, and it gives you the spacing that caused it. That angle is where a perfect, endless lattice puts the maximum. A real crystal is neither, so a measured line has a width — that is line broadening.

The HKL calculator goes the other way. Give it a unit cell and a set of Miller indices, which is the label for one family of planes. It works out how far apart those planes are and where the reflection will appear. It also names the other reflections that the crystal’s symmetry makes identical to it.

Work one of the examples above through both, and the connection becomes concrete. The d that the HKL calculator derives from the cell is the same d that the Bragg calculator turns into an angle.

That is the first half of the beginner path. It carries the same crystal on through where the reflections live, and why some are missing.

Where the numbers come from

The standard atomic weights behind the mass, CHN and absorption calculators are IUPAC’s, published by the Commission on Isotopic Abundances and Atomic Weights (CIAAW).

The isotope‑pattern calculator uses a different quantity. Its natural abundances are the ones tabulated by the National Institute of Standards and Technology (NIST).

The CIF parser reads the Crystallographic Information File format, defined by the International Union of Crystallography (IUCr). Their Online Dictionary of Crystallography is a good reference for the terms these tools use.