MaterialsAtlas Docs

Energy Above Hull Calculator

App slug: e-above-hull Category: Composition / Formula / Structure Check

The Energy Above Hull Calculator estimates the thermodynamic stability of a material relative to the Materials Project convex hull. It can use a user-provided formation energy, a CIF plus user-provided total energy, or an approximate MACE-predicted energy from a CIF file.

This app is useful for quick stability screening, comparing candidate structures, and checking whether a computed structure is predicted to be stable, near-hull, metastable, or unstable.

What The App Does

The app builds a Materials Project phase diagram for the chemical system of the submitted material and inserts the user-provided or model-predicted entry into that phase diagram.

It reports:

Calculation Modes

1. Formula + Formation Energy

Use this mode when you already have a formation energy per atom.

Example:

formula=LiFeO2
formation_energy=-1.55

The app converts the formation energy into a total energy using Materials Project elemental references, then inserts the entry into a Materials Project phase diagram.

Required input:

2. CIF + Computed Energy

Use this mode when you have a structure file and a DFT-computed energy.

With energy per atom:

energy_per_atom=-5.2

With total cell energy:

total_energy=-62.4

Required input:

Use the CIF energy input dropdown to tell the app whether the provided energy is per atom or total cell energy.

3. CIF + MACE Approximate Energy

Use this mode when you want a quick approximate MLIP energy from a CIF file.

Example options:

mace_model=medium-mpa-0
fmax=0.05
max_steps=200

Required input:

Optional settings:

KeyMeaningDefault
mace_model or modelMACE model name or local model pathmedium-mpa-0
fmaxRelaxation force threshold in eV/A0.05
max_stepsMaximum relaxation steps200
devicecpu or cudaselected in UI

The app can optionally relax the structure before evaluating the energy.

Important: MACE mode is an approximate mixed-scale diagnostic. It is not an official Materials Project energy above hull.

Inputs

Formula / Energy Text Box

The text box accepts key-value input.

Formula mode:

formula=LiFeO2
formation_energy=-1.55

CIF energy mode:

energy_per_atom=-5.2

or:

total_energy=-62.4

MACE mode:

mace_model=medium-mpa-0
fmax=0.05
max_steps=200

CIF Structure File

Upload a CIF file for CIF-based modes.

The CIF is parsed using pymatgen. Oxidation states, if present, are removed before constructing the phase-diagram entry.

Materials Project API Key

The backend must have a Materials Project API key configured. The app uses this key to retrieve entries for the submitted chemical system.

Supported backend environment variables:

MTOOLBOX_MP_API_KEY
MP_API_KEY

Algorithm Summary

The app uses pymatgen and mp-api to compute energy above hull.

The workflow is:

1. Parse user input. 2. Determine the chemical system from the formula or CIF composition. 3. Query Materials Project entries for that chemical system. 4. Build a pymatgen PhaseDiagram. 5. Convert the submitted material into a ComputedEntry or ComputedStructureEntry. 6. Add the submitted entry to the phase diagram. 7. Compute energy above hull. 8. If the material is above hull, compute the decomposition phases. 9. Return a CSV result and structured JSON data.

For formula mode, the app converts formation energy to total energy per atom using Materials Project elemental references:

total_energy_per_atom = formation_energy_per_atom + elemental_reference_energy_per_atom

For CIF energy mode, the app uses the uploaded structure and user-provided total energy.

For MACE mode, the app uses MACE-MP to predict a raw MLIP total energy, then inserts that energy into the Materials Project phase diagram.

Output File

The app generates:

FileDescription
e-above-hull-results.csvMain result table with hull energy, stability, energy source, decomposition, and reference details

The job result also stores structured data for the frontend and permanent result URL.

Result Columns

Typical output columns include:

ColumnMeaning
formulaReduced formula of the submitted material
e_above_hullEnergy above hull in eV/atom
e_above_hull_meV_atomEnergy above hull in meV/atom
stabilityStability label
energy_sourceSource of the total energy
total_energy_per_atomTotal energy per atom used in the phase diagram
total_energyTotal cell or formula-unit energy
num_atomsNumber of atoms in the formula or structure
mp_entriesNumber of Materials Project entries used
decompositionDecomposition products and fractions
same_formula_mp_entriesNumber of MP entries with the same reduced formula
lowest_same_formula_mp_entry_idLowest-energy same-formula MP entry ID
lowest_same_formula_mp_energy_per_atomReference energy for the same formula
delta_to_lowest_same_formula_mp_energy_per_atomDifference between submitted energy and lowest same-formula MP energy
method_warningWarning for approximate methods such as MACE mode

Stability Labels

The app uses these labels:

LabelEnergy above hull
stableless than 0.0001 eV/atom
near hullless than 0.025 eV/atom
metastableless than 0.1 eV/atom
unstable0.1 eV/atom or higher

These thresholds are practical screening labels, not universal synthesis guarantees.

How To Interpret Results

An energy above hull of 0 means the submitted material lies on the convex hull for the retrieved Materials Project chemical system.

A small positive value, such as below 25 meV/atom, often indicates a near-hull phase that may be experimentally accessible, depending on temperature, entropy, synthesis route, kinetics, and uncertainty in the input energy.

A large positive value means the material is predicted to decompose into lower-energy phases.

The decomposition field lists phases that define the competing lower-energy combination.

Important Warning About MACE Mode

MACE mode uses a raw machine-learning interatomic potential energy and compares it against Materials Project DFT entries. These energies are not guaranteed to be on the same thermodynamic scale.

Therefore:

For example, a Materials Project structure with known near-zero hull energy can receive a nonzero mixed-scale MACE hull value if the raw MACE energy differs from the MP DFT energy scale.

Recommended Workflows

Quick Screening From Formation Energy

Use this when you have a formation energy from another model or DFT workflow.

formula=LiFeO2
formation_energy=-1.55

DFT Structure Stability Check

Use this when you have a relaxed CIF and DFT total energy.

total_energy=-62.4

Select:

Approximate MLIP Triage

Use this for fast preliminary checks.

mace_model=medium-mpa-0
fmax=0.05
max_steps=200

Select:

Troubleshooting

No Materials Project entries found

This can happen if:

Check the formula and confirm the backend has MTOOLBOX_MP_API_KEY or MP_API_KEY.

MACE result differs from Materials Project

This is expected. MACE mode uses raw MLIP energy, while Materials Project hulls use corrected DFT entries. Treat the MACE hull value as an approximate diagnostic.

CIF energy mode gives strange hull values

Check that:

Formula mode requires formation energy

Formula mode needs a formation energy per atom, not a total energy.

Use:

formula=LiFeO2
formation_energy=-1.55

Limitations

Current limitations include:

Acknowledgements

This app uses pymatgen and mp-api for Materials Project phase-diagram construction and convex-hull analysis. CIF parsing is handled through pymatgen. Optional approximate energy prediction uses MACE-MP when available in the backend worker environment.

Users should cite Materials Project, pymatgen, mp-api, and MACE-MP where appropriate when using results in scientific reports or publications.

All docs SEO hub