Electrostatic potential maps
An electrostatic potential map colors a molecule’s surface by the potential that a positive test charge would feel there: red where the molecule is electron-rich, blue where it is electron-poor. Molkit shows maps in the 3D viewer. You can import a map from cube files. Calculating a map from the drawing needs the calculation helper. Maps are saved in the .mkit file, exported with the SVG, and shown by the Molkit Viewer.

Map buttons
Section titled “Map buttons”To open the 3D viewer on a molecule’s map, select the molecule, then Compute > Electrostatic Potential Map.
The 3D viewer has two map buttons next to its view toggles.
- Electrostatic potential map shows or hides the map. When the molecule has no map, it opens the options instead.
- Map options opens the options panel. Esc closes the panel without closing the viewer.
A map belongs to one molecule, so when the scene holds several molecules there is no map to show.
While the map is on, a legend shows the color scale with its low, middle, and high values.
Calculating a map
Section titled “Calculating a map”Calculating a map needs the calculation helper. Without it, the options panel says so, and you can still show a map by importing cube files. With the helper, the panel shows these fields:
| Field | What it does |
|---|---|
| Charge | The net charge, read from the formal charges in the drawing. Change it if the drawing is not what you want calculated. |
| Unpaired e− | The number of unpaired electrons, read from the drawn radical dots. An odd electron count gets one unpaired electron, and O2 is calculated as a triplet; a note says so. |
| Method | The level of theory. The first choice, B3LYP/def2-SVP (OCC), is the default. HF/3-21G (OCC) and GFN2-xTB (xTB) are also offered when the calculation helper provides them. An anion is calculated with the diffuse def2-SVPD basis, and a note says so. |
| Relax the geometry first | On by default. The calculation starts from the shape the 3D view shows (as drawn, lowest energy, or the textbook VSEPR shape), and xTB relaxes it before the potential is calculated. Charged species and zwitterions are relaxed in a water model, shown as “(in water)”. Shown only when the calculation helper provides xTB. |
To start, click Calculate (or Recalculate). The panel shows the current stage and a Cancel button. The potential itself is always calculated in the gas phase. If relaxing would change which atoms are bonded, the map is calculated on the built geometry instead, and a note says so. The same happens when xTB flattens a peroxide: GFN2-xTB turns the skew O–O torsion of a molecule such as hydrogen peroxide planar, which gives it a dipole near zero, so the skew built geometry is kept.
If you select another molecule while a calculation runs, the map is still stored for the molecule it was started for.
Using the map’s geometry
Section titled “Using the map’s geometry”A relaxed map sits on a slightly different geometry from the one Molkit built. While such a map is shown, the model moves to the map’s geometry and the viewer’s label reads “Geometry of the map”. Use this geometry for the molecule makes that geometry the molecule’s 3D structure everywhere: the 3D view, the dipole, and exports use it, and it is saved with the document. Back to the built geometry reverses this.
Importing cube files
Section titled “Importing cube files”- Click Import cube files….
- Select the potential file and, if you have it, the electron density file from the same calculation (
.cubeor.cub, one or two files).
Without a density file, the surface is built from free-atom densities.
The atoms in the cube file must be in Molkit’s order. To get that order, click Save coordinates: it downloads molecule.xyz with the geometry on screen, its charge, and its unpaired electrons, to use as the input for your own calculation in another program. A map on a slightly different geometry is shown on its own geometry; a map for a different shape is refused.
Remove map deletes the map from the molecule.
Display options
Section titled “Display options”When a molecule has a map, the options panel also offers these options:
| Option | Choices | Default |
|---|---|---|
| Opacity | 0.2 to 1; the map updates as you drag. It sets the opacity of the surface, or of the cut when only a cut is shown. Each has its own value; with Surface and cut, the cut stays opaque under the surface. | 0.8 for the surface, 1 (opaque) for the cut |
| Colors | Rainbow (textbook); Red, green, blue; Red, white, blue; Orange, white, violet (color-blind safe) | Rainbow (textbook) |
| Range | Standard (by charge) (one scale for every molecule of the same charge: ±200 kJ/mol for a neutral molecule, ±900 for a 1+ or 1− ion, 300 more per further charge, so a color means the same potential on every map), This molecule (fitted to the map), or Fixed with a ± value. The legend names the scale in use: “Standard scale for neutral molecules”, “This molecule’s range (not comparable)”, or “Fixed range” | Standard; Fixed starts at ±150 kJ/mol |
| Unit | kJ/mol, kcal/mol, a.u. (atomic units) | kJ/mol |
| Surface | Tight (0.004), Standard (0.002), Loose (0.001): the electron density of the surface in e/bohr3 | Standard (0.002) |
| Show | Surface; A cut through the molecule; Surface and cut | Surface |
On the rainbow scale, green is zero, red is negative (electron-rich), and blue is positive (electron-poor).
The negative end is red on every scale except Orange, white, violet (color-blind safe), where it is orange. Molkit keeps these options in your browser and applies them to every map; changing them needs no new calculation.
The cut
Section titled “The cut”When a cut is shown, three more controls appear:
- Cut sets the plane: The molecule’s own plane; Across it, lengthwise; or Across it, crosswise. Choosing a cut turns the view to face it.
- Position moves the cut up to 3 Å either way along its normal.
- Contour lines draws lines of equal potential on the cut.
Out-of-date maps
Section titled “Out-of-date maps”Any edit to the molecule (an atom, a bond order, a charge) makes its map out of date: the map button is marked, and the old map is not drawn or exported. Undoing the edit brings the map back. Discard it in the options removes the old map; a new map replaces it.
Saving, capturing, and exporting
Section titled “Saving, capturing, and exporting”- Saving. Maps are saved in the
.mkitfile, with any geometry you adopted. Only the maps of molecules in that document are written. See .mkit files. - Capturing. A PNG capture from the viewer includes the map when it is on.
- Pop-out window. The pop-out 3D window has its own map button and legend, and uses the options set in the panel.
- SVG export. The Electrostatic maps option of the Export SVG dialog (shown when a molecule in the document has a map) writes the map Inside the SVG (one file), writes it as a Separate file (on demand) with the
.espextension in a folder you name (espby default), or leaves it out. The SVG records the method, the geometry the map was calculated on, the surface, a citation, and a caption that says how the geometry was made (MMFF94, GFN2-xTB, or the idealized VSEPR geometry), along with your display options and, when the map is on in the viewer at export time, the camera angle. See Export an SVG and Chemistry metadata. - On a web page. The Molkit Viewer shows an exported map from its own ESP map tab. Your Range is where it starts: Standard opens on Compare molecules, This molecule on This molecule’s range, and Fixed adds an Author’s scale choice. The reader can switch between them, and the viewer says which scale is showing.
Calculation helper
Section titled “Calculation helper”Some calculations in Molkit need the calculation helper, a companion program that runs the quantum chemistry programs xTB and OCC on your own computer. Everything else in Molkit works without it: where a calculation has an in-browser method, Molkit uses that, and the options that need the helper say so.
These features need the calculation helper:
- Calculating an electrostatic potential map (imported cube files work without it).
- Energy scans with GFN2-xTB, including stretching a bond until it breaks (scans with MMFF94 run in the browser).
- Minimize (xTB) and Computed (xTB) orbitals on a 3D view.
- A dipole calculated with B3LYP/def2-SVP (the in-browser estimate is always available).
- The With the calculation helper (xTB) route for an IR spectrum or a reaction mechanism, and a solvent around the molecule (the browser route computes in the gas phase).
With the helper, the calculation runs on your computer: nothing is sent to an outside server, and the helper accepts requests only from your own computer and from molkit.com.