mfsig.com
unitsbohrangstromdata-integrity5 min read

Units in scientific files and the bohr to ångström trap

Quantum chemistry codes work in bohr, σ-profiles are read in ångström. One bohr² is 0.280028 Ų, so a mislabelled file is off by 3.57. How to spot it.

Updated November 28, 2026

Quantum chemistry codes compute in bohr, and σ-profiles are read, plotted and compared in ångström. One bohr is 0.529177 Å, so one bohr² is 0.280028 Ų, and a file that carries bohr-based numbers under ångström labels is wrong by a factor of about 3.57 in every area and every σ. The error is silent, because the numbers look plausible and the labels look right. This guide explains why the trap exists, shows the real case of an earlier MFsig recipe that fell into it, and gives three checks that catch it in seconds.

Why quantum chemistry codes think in bohr

Electronic structure programs work in Hartree atomic units. The Bohr radius, the elementary charge, the electron mass and the reduced Planck constant are each set to one. Lengths come out in bohr, energies in hartree, and charge densities on a surface in e/bohr². It is the right choice inside the code.

The cost is paid at the boundary. Every quantity that leaves the code for a human or a downstream program must be converted. Surface segment areas and screening charge densities are the quantities most likely to slip through, because they are intermediate results that few people inspect by eye. Units of a σ-profile explains what the e/Ų axis means once the conversion is right.

What happens to a sigma profile when the label lies

Suppose a file says Ų but holds bohr². Each area is numerically 0.280028 times what it should be, so a segment of 1.00 Ų reads 0.28. The total surface area reads about 3.57 times too small. A molecule with a true cavity area of 150 Ų appears to have 42, a plausible number for a very small molecule.

Now the σ values. Screening charge density is charge divided by area. If the charge is in electrons and the area is in bohr², the density in e/bohr² is 0.280028 times the density in e/Ų. Every σ reads about 3.57 times too small. The consequence for interpretation is severe. Klamt's hydrogen-bond threshold in COSMO-RS is about 0.0082 e/Ų. A segment carrying a true σ of 0.015 e/Ų would read 0.0042, below the threshold. Every hydrogen-bond donor and acceptor in the molecule would appear not to hydrogen bond, and a script would not notice. The raw per-segment σ in a .mfsig file is not the averaged profile COSMO-RS expects in any case, but the threshold still tells you what magnitude to expect.

The σ-moments split. Total area and variance carry units, and shift by 3.57 and by 3.57 squared, about 12.75. Skewness and excess kurtosis are dimensionless ratios and are unchanged. That split is a diagnostic in its own right, and σ-moments explained describes what each moment measures.

The real case, recipe v0.91.1 under ångström labels

MFsig's frozen atlas recipe v0.91.1 wrote per-segment areas in bohr² and σ in e/bohr² under labels that said ångström. The screening charges were correct. The SCF was the same as the production recipe today, although v0.91.1 also used UFF geometries and no effective core potential, which are method differences rather than errors. The conversion at the output boundary was missing, and the labels asserted a unit the numbers did not have. Anyone who read the file trusting the labels read every area and every σ about 3.57 times too small, and every variance about 12.75 times too small, while skewness and kurtosis were right.

The fix was in two parts, and both matter. The current production recipe, v1.0.0 with schema mfsig/v1.0, converts to ångström at production, so the numbers in the file are in Ų and e/Ų. And the schema is self-describing, so the units are declared in the file rather than assumed from a label in documentation. A reader, or a program, can check the declared unit before interpreting a number. The recipes page lists both recipes, and the anatomy page shows how each quantity and its unit are written. The lesson is older than quantum chemistry. The Mars Climate Orbiter was lost in 1999 because one piece of software reported impulse in pound-force seconds and another expected newton seconds, with no unit in the interface to catch it.

A label is a claim. A declared unit is a fact the file can be checked against.

Three checks that catch a unit error in seconds

First, check the total area against molecular size. The cavity area of a small organic molecule in a scaled Bondi cavity is tens to a few hundred Ų. If a molecule with twenty heavy atoms shows an area that would fit a diatomic, suspect the unit. Total surface area in a σ-profile gives the expected scaling with size.

Second, check the σ range. The screening charge densities of a neutral organic molecule span a few hundredths of an e/Ų from the most negative to the most positive segment. If a molecule with a hydroxyl group shows nothing beyond about 0.005 e/Ų in either direction, either the molecule is not what you think or the unit is bohr.

Third, check whether the file declares its units, and read them. Here is the fallback test in Python, once the per-segment arrays are loaded, for a file that does not.

BOHR_TO_ANGSTROM = 0.529177
BOHR2_TO_ANGSTROM2 = BOHR_TO_ANGSTROM ** 2  # 0.280028

total_area = sum(area)
if total_area < 0.3 * expected_area_angstrom2:
    print("area looks like bohr^2, converted:", total_area / BOHR2_TO_ANGSTROM2)
    sigma_angstrom = [s / BOHR2_TO_ANGSTROM2 for s in sigma]

The threshold of 0.3 is a heuristic that separates a factor-of-3.57 error from ordinary variation in cavity size. It is not a substitute for a declared unit. It is the check you run when a file does not declare one, and how to validate a σ-profile file puts it alongside six other checks.

Key points

  • One bohr is 0.529177 Å, one bohr² is 0.280028 Ų, and a bohr-under-ångström error makes every area and every σ about 3.57 times too small.
  • Variance scales by about 12.75 under the same error while skewness and excess kurtosis do not change, which is a diagnostic.
  • MFsig's frozen recipe v0.91.1 carried this error in its labels, and schema mfsig/v1.0 converts at production and declares units in the file.
  • Check total area against molecular size and check the σ range against the few hundredths of e/Ų a neutral molecule should span.
  • Trust declared units over labels in documentation, and treat an undeclared unit as a finding.

Questions people ask

How do I convert bohr² to Ų?
One bohr is 0.529177 Å, so one bohr² is 0.529177 squared, which is 0.280028 Ų. To convert an area from bohr² to Ų, multiply by 0.280028. To convert a charge density from e/bohr² to e/Ų, divide by 0.280028, which is the same as multiplying by about 3.571.
Why do quantum chemistry programs use bohr instead of ångström?
Electronic structure codes work in Hartree atomic units, in which the Bohr radius, the electron charge, the electron mass and the reduced Planck constant are all equal to one. Those units make the equations simplest and the arithmetic fastest. Conversion to ångström and electronvolt is meant to happen at the output stage, and a missed conversion is the classic failure.
What did the unit error in MFsig recipe v0.91.1 look like?
The earlier recipe wrote segment areas in bohr² and σ values in e/bohr² under labels that said ångström. Every area read about 3.57 times too small and every σ about 3.57 times too small, so hydrogen-bond donor peaks appeared well below the usual threshold. The current schema mfsig/v1.0 converts to ångström at production and declares its units in the file.
Which σ-moments are affected by a unit error?
The total surface area scales by the area factor and the variance of σ scales by the square of the density factor. Skewness and excess kurtosis are dimensionless and are unchanged. A profile whose skewness looks right while its variance and area look wrong is a strong hint of a unit error rather than a chemistry error.

Further reading

In practice: Each .mfsig file records the method, the package versions read at run time, the geometry convergence flag and a content SHA-256, and no file is written when the SCF does not converge. The lineage and audit pages describe the record in full.

Generate a σ-profile from your SMILES

Free converter for a profile you already have, a reference-grade DFT run with its provenance record when it has to be defensible.