Skip to content

Molkit 0.38.0

Released November 7, 2026

Crystals arrive. Open a CIF, POSCAR or extended XYZ file, pick one of 19 built-in crystals, or search the Crystallography Open Database, and Molkit draws the unit cell the way a textbook does, with every atom an ordinary atom you can select and edit.

Count the atoms by where they sit, look straight down an axis with each atom's height, mark holes, layers, Miller planes and coordination polyhedra, draw the cell as balls or as a hexagonal prism, see it in 3D with thermal ellipsoids or cut at the cell's faces, work out its density and powder X-ray pattern, and draw the molecule a crystal is made of.

Also new: compare a computed IR spectrum with a measured one of your own, and see the size of a molecule's dipole.

New Features

  • Crystals. Open a CIF, POSCAR (VASP) or extended XYZ file with File > Open (it opens in a new tab), File > Import Crystal File, or by dropping it on the canvas: Molkit draws its unit cell in the textbook view, with every atom of the cell an ordinary atom you can select, move and style, the atoms on faces, edges and corners shown on every equivalent place, and ionic charges shown. A VASP 4 file asks for its elements. Six crystals are built in: rock salt, caesium chloride, zinc blende, fluorite, diamond and copper.
  • A crystal's Crystal group in the properties panel gives its formula, Z, kind, density and space group, and sets Repeat (1 to 4 cells along a, b and c, the extra cells lighter) and Look along (the textbook view, straight down a, b or c to see one layer, or along the body diagonal). Each change is one undo step.
  • Count atoms: turn it on in a crystal's Crystal group and every atom of the cell is tinted by where it sits (corner, edge, face, inside), with the sum for each kind of atom under the cell (Na+: 8 corners x 1/8 + 6 faces x 1/2 = 4). In a cell whose angles are not 90 degrees, each atom's real share is worked out from the angles. A partly filled site counts its share times how full it is (NH4Cl: H: 8 inside x 0.5 filled = 4).
  • Numbers, in the Crystal group: the density worked out step by step (every atom on a shared or partly filled site counted), how many neighbors each kind of atom has (a polyatomic ion such as carbonate counts as one ion, so calcite's Ca2+ has 6), the packing fraction (refused in words when the table's radii do not fit the cell), and the radius ratio with what it predicts. A molecular crystal lists no neighbors.
  • Show in 3D: a crystal's 3D view beside its drawing, with its repeats, its cell's edges and the counting colors (with a key); the ions of an ionic crystal sized by their ionic radii; it is redrawn when you change the crystal's view. Turn it live and click an atom to see its neighbors.
  • Insert > Crystal lists Molkit's 19 built-in crystals by kind and searches them: besides rock salt, caesium chloride, zinc blende, fluorite, diamond and copper, now wurtzite, rutile, perovskite (SrTiO3), graphite, ice (one ordered cell), aluminum, iron, sodium, magnesium, zinc, polonium, iodine and quartz.
  • Holes, Stacking layers and Plane in a crystal's Crystal group: the octahedral and tetrahedral holes of a close-packed array marked, with what fills them (Na+ fills all 4 octahedral holes of the fcc Cl- array); the close-packed layers ringed A B C or A B, looking along them; a Miller plane (h k l) drawn in the cell with its atoms ringed and its spacing d.
  • A POSCAR or extended XYZ file that holds the primitive cell of a face- or body-centered cubic crystal (copper as 1 atom) offers Show conventional cell, which redraws it as the textbook cube.
  • More crystal files open: a PDB file with a real cell, and a CIF that names its space group without listing its symmetry operators (the space-group table is from spglib).
  • Crystals from the Crystallography Open Database: in Insert > Crystal, type a name, mineral or formula (calcite, pyrite, CaCO3) and choose Search COD. Its entries are listed best first (the exact name, room conditions, the best fit), and a click draws the one you pick, credited to its authors. In a script, crystal calcite draws COD's best entry and the log writes its number (cod: 1010928), so the script draws the same crystal next time.
  • Crystals on web pages: an SVG export of a crystal carries it, and on a page with the Molkit widget the 3D button shows it in 3D with its cell, repeats, counting colors and key, holes or layers, and Miller plane. The page's title gives the formula unit (NaCl), not the cell's Na4Cl4.
  • Insert > Lattice draws a textbook cubic lattice as a figure: simple, body-centered or face-centered cubic, or rock salt, as the unit cell with each atom shaded by where it sits and the counting written out (8 corners x 1/8 + 6 faces x 1/2 = 4 atoms per cell), or as its (100) layer.
  • In a script: crystal NaCl repeat: [2, 2, 1] along: c counting: on, change nacl-1 along: a, derive nacl-1 views: 3d, crystal NaCl holes: octahedral plane: [1, 1, 1], change cu-1 cell: conventional, and lattice fcc layout: layer. describe lists a crystal's cell, space group, Z, density and where each atom sits; Describe as script writes a library crystal back as its crystal line, and the Recorder writes the panel's Repeat and Look along.
  • Crystals, second pass. A crystal opens in a textbook view chosen so its atoms stand apart, seen from above with its hidden corner at the back; graphite opens looking down onto its layers. Atoms farther back are drawn lighter (Depth: none, subtle or strong).
  • Atoms: Balls draws a crystal as shaded balls and sticks, the textbook ionic and metallic look, its ions sized by their ionic radii. The atoms stay editable underneath.
  • The a, b and c axes are three small arrows beside the cell, as textbooks draw them, and any view but the textbook one says which way it looks (viewed along [001]). Cell parameters writes a, b, c and the angles above the cell.
  • Heights: looking straight down an axis, each atom's height along it is written beside it (0, 1/2, 1/4), the standard exam drawing.
  • Hexagonal prism: a hexagonal crystal such as magnesium is drawn in its hexagonal prism of three cells, with the unit cell outlined inside.
  • Coordination polyhedra round the atoms of an element (rock salt's octahedra, perovskite's TiO6), in 2D and 3D. Polyatomic ions and molecules stay whole at the cell's faces (calcite's carbonate at every corner).
  • The 3D view: orientation presets (face-on to a, b or c, level), contacts between molecules, thermal ellipsoids at 50% for a file with displacement parameters (the ORTEP picture), and atoms cut at the cell's faces (half, quarter, eighth) to show the shares. Flatten from 3D turns the 2D drawing to match the 3D view.
  • Powder pattern: a crystal's simulated powder X-ray pattern, its peaks labeled (h k l), with the plane of a clicked peak shown in the cell.
  • Draw the molecule: a crystal made of molecules (most organic COD entries) draws its own molecule beside it as an ordinary molecule, solvent left out unless asked; a file without hydrogen positions still gives the right molecule.
  • Copies (lighter, solid or faint) for Repeat, and Show charges, in the Crystal group.
  • Editing a crystal: changing an element or a charge keeps the cell and updates the formula; an edit the cell cannot hold takes the cell off, says so, and one Undo brings it back.
  • Compare a computed IR spectrum with a measured one of your own: in the spectrum window, choose Compare with a measured spectrum and pick a JCAMP-DX file (.jdx or .dx). Say where it is from (the line is required and shown with it). It is drawn behind the computed spectrum with a key, scaled to the strongest band, kept with the molecule and carried into the chart when you insert it. Molkit never downloads or bundles measured spectra.

Improvements

  • The Molecule section shows the dipole's size, with the dipole on: the arrow's bond-dipole model, the size computed for the molecule's 3D view, and the measured gas-phase value when Molkit's table has the molecule (NIST CCCBDB).
  • The docs site has a Release notes page with every version.
  • A 3D view's dipole is worked out with B3LYP/def2-SVP when the calculation helper is running: much closer to measured values (in Molkit's benchmark, within 0.3 D of the measured value for 58 of 61 molecules, against 34 for the in-browser estimate). The size and the method show under the Show row and in describe. Without the helper the in-browser estimate is used, as before, and labeled.
  • A ring flipped by hand in the 3D panel is written back to a script as flip:, so the script makes the same shape.
  • On a web page, a 3D view saved in the stick or wireframe look opens in that look (it showed as ball and stick).
  • For a reader who asks for reduced motion, a chair flip on a web page shows the other chair as a still picture, then the first again, instead of playing.

Fixes

  • After drawing a bond with the Bond tool chosen from its menu, Ctrl+Z did nothing until the next click: the menu stayed open over the canvas. It now closes when you start drawing.
  • Dragging a molecule by an atom that was not selected left the drop undrawn: the atoms stayed where the drag's first moment left them until something else redrew the canvas. The drop is now drawn where it lands.
  • Saving a 3D view on the canvas as an SVG picture from the 3D panel now keeps its layers, and the editor frames the whole molecule.
  • In the ball-and-stick look of a 3D view on the canvas, the sticks now meet the balls cleanly.
  • The properties panel's title names any element of a single selected atom (a sodium ion read Atom · Na).
  • A motion that does not loop now ends by itself, on the web page and in the 3D panel's Preview, and the button says Play again.
  • Clicking More on a live 3D view and then Done, with nothing changed, no longer adds an undo step or labels to the picture.
  • The live 3D box no longer pans on a middle-button or Ctrl drag, which was never saved.
  • A script asking for a chair flip with path: xtb when the calculation helper is not running is told so at once, instead of after a wait.