Calculators

Small interactive tools.

MD simulation time


Steps, timestep and total simulated time. Fill in any two and the third follows.

Total simulated time = number of steps × timestep. Fill in any two and the third is worked out for you (highlighted). Change either of the two you filled in and it updates.

GROMACS works in ps: dt = 0.002 is a 2 fs timestep and nsteps is the step count. NAMD works in fs: timestep 2.0 is a 2 fs timestep and run takes the step count.

GROMACS (.mdp): dt = 0.002, nsteps = 500000
NAMD (.conf): timestep 2, run 500000

Trajectory output

MD engines write a frame every N steps. In GROMACS this is nstxout-compressed variable in the .mdp, controlling the .xtc trajectory.
In NAMD it is dcdfreq in the .conf, controlling the .dcd trajectory.

GROMACS (.mdp): nstxout-compressed = 5000 gives 101 frames in the .xtc (it also writes step 0)
NAMD (.conf): dcdfreq 5000 gives 100 frames in the .dcd
Time between frames: 0.01 ns (10 ps)

Typical timesteps: all-atom MD is 1-2 fs (2 fs hydrogen bond lengths to be constrained)
Martini CGMD is typically 20-40 fs.

Concentration calculator


Work out the concentration of a species from an MD box size and molecule count.

Concentration:288.3 mM(volume 1,728 nm³)

Energy unit converter


Edit any box and the rest update. Converts between kJ/mol, kcal/mol, eV, hartree, cm⁻¹ and kT.

kT = 2.4790 kJ/mol at 298.15 K.

ΔG, K and pKa


Free energy to equilibrium constant and pKa, with the pH-dependent protonation fraction.

A reaction's standard free energy ΔG fixes where its equilibrium sits. The two are linked by ΔG = -RT ln K, where R is the gas constant and T the temperature: a more negative ΔG means a larger K and a reaction that lies further towards products.

For an acid dissociating (HA ⇌ A- + H+), that same free energy is the deprotonation ΔG, and K is the acidity constant Ka. Taking -log₁₀ gives pKa = ΔG / (RT ln 10). A larger pKa is a weaker acid that holds onto its proton more tightly.

At a given pH, the Henderson–Hasselbalch relation sets how much of the species is protonated: fraction protonated = 1 / (1 + 10pH - pKa). When pH equals the pKa the species is exactly half protonated. A pH one unit below the pKa leaves it ~91% protonated, one unit above ~9%.

Equilibrium constant K:3.157e-5(ΔG = -RT ln K)
pKa:4.50(treating ΔG as the deprotonation free energy)
Fraction protonated at pH 7:0.3%

Henderson–Hasselbalch assumes the pKa above. At pH = pKa the species is 50% protonated.

Hill equation


Draw the protonation curve against pH for a given pKa and Hill coefficient n.

S = 0.997
00.250.50.75102468101214pHS (fraction deprotonated)

Hill Equation: S = 1 / (1 + 10n(pKa - pH)).

Binding affinity converter


Edit any box and the rest update. Converts between Kd, pKd and the free energy of binding.

Binding affinity is reported in several interchangeable ways. The dissociation constant Kd is the ligand concentration at which half the receptor is bound, so a smaller Kd means tighter binding. pKd = -log₁₀ Kd flips that into a bigger-is-better number: 1 µM is pKd 6, 1 nM is 9.

The free energy of binding follows from ΔG = RT ln Kd, so each tenfold improvement in Kd is worth about 5.7 kJ/mol (1.4 kcal/mol) at room temperature. The same arithmetic is used for Ki and, less rigorously, IC50.

One log unit of Kd = 5.71 kJ/mol at 298.15 K.

Ligand efficiency


LE, LLE, BEI and SEI from affinity, heavy atom count, logP, molecular weight and polar surface area.

Raw affinity rewards big, greasy molecules. Efficiency metrics normalise it by size or lipophilicity so that a small fragment can be compared fairly with a lead. LE = -ΔG / Nheavy is the binding free energy per heavy atom. A common target is 0.3 kcal/mol per atom or better.

LLE = pKd - logP asks how much affinity comes from something other than hydrophobicity. A value of 5 or more is a healthy lead. BEI and SEI are the same idea per unit molecular weight and per unit polar surface area.

ΔG bind:-10.91 kcal/mol(at 298 K)
Ligand efficiency LE:0.36(kcal/mol per heavy atom)
Lipophilic ligand efficiency LLE:5.0(pKd - logP)
Binding efficiency index BEI:19.0(pKd / MW (kDa))
Surface efficiency index SEI:10.0(pKd / (PSA / 100 Ų))

Highlighted values meet the usual rule-of-thumb thresholds: LE ≥ 0.3, LLE ≥ 5, BEI ≥ 20, SEI ≥ 10.

Dose to concentration


From a mg/kg dose to a plasma concentration, and how it compares with the IC50.

A dose in mg/kg says nothing about whether the compound reaches its target at a useful concentration. In a one-compartment picture the peak plasma concentration is C = dose × F / Vd, where F is the fraction absorbed and Vd the volume of distribution per kg. A drug that partitions heavily into tissue has a large Vd and a low plasma level.

Only the unbound fraction fu is free to bind the target. Comparing that free concentration with the IC50 gives a crude occupancy of Cfree / (Cfree + IC50). This ignores clearance and time, so treat it as a back-of-envelope check rather than a PK model.

Total plasma concentration:25.00 µM(10.00 mg/L)
Free concentration:2.500 µM
Free / IC50:25.0×(~96% target occupancy)

Boltzmann populations


Paste relative energies of states or conformers and get their equilibrium populations.

At thermal equilibrium the probability of finding a system in state i is pi ∝ exp(-Ei / RT), normalised over all states. Only energy differences matter, so the lowest state is taken as zero.

A state 1 kT (about 2.5 kJ/mol at room temperature) above the ground state is e times less populated. A gap of 5.7 kJ/mol is a factor of ten. Paste conformer energies in to see which ones actually contribute. The curve is the Boltzmann factor itself, so every bar sits on it.

00.20.40.60.8024681066%24%8.8%1.2%E (kJ/mol)population

0 kJ/mol: 65.98% · 2.5 kJ/mol: 24.07% · 5 kJ/mol: 8.78% · 10 kJ/mol: 1.17%

Barrier to rate


Eyring or Arrhenius: activation barrier to rate constant, waiting time and half-life.

A barrier height sets how often a reaction or conformational change happens. The Eyring equation, k = (kBT / h) exp(-ΔG‡ / RT), comes from transition state theory and needs only the free energy of activation. The prefactor kBT / h is about 6 × 10¹² s⁻¹ at room temperature.

The empirical Arrhenius form, k = A exp(-Ea / RT), swaps that for a fitted pre-exponential factor. Either way, every 5.7 kJ/mol added to the barrier slows the rate tenfold. The mean waiting time 1/k tells you whether an event is reachable in an MD run.

Rate constant k:191.3 s⁻¹
Mean waiting time 1/k:5.23 ms
Half-life (first order):3.62 ms

Rate against barrier height at 298.15 K

-50510020406080100120barrier (kJ/mol)log₁₀ k (s⁻¹)

Rate against temperature at 60 kJ/mol

-8-6-4-2024150200250300350400T (K)log₁₀ k (s⁻¹)

Eyring assumes a transmission coefficient of 1 and a unimolecular process. Both plots use a log scale for k, so a straight line against barrier height is the exponential at work.