Chemistry · Intermediate

Lennard-Jones potential

Written by SignalsLab

Early edition: these lessons are being reviewed.

Content

Summary

The Lennard-Jones potential is a simple model for the interaction energy between two neutral atoms or molecules as a function of their separation. It combines a steep short-range repulsion with a weaker long-range attraction, giving an energy minimum at an equilibrium distance. It is widely used in molecular simulations of gases, liquids and biomolecules.

Intuition

Two neutral atoms feel two competing effects. Far apart, fluctuating electron clouds create temporary dipoles that attract each other (London dispersion), and this attraction falls off quickly, as 1/r6. When the atoms get very close, their electron clouds overlap and the Pauli exclusion principle makes the energy shoot up extremely steeply. The Lennard-Jones form models this with a 1/r12 term, chosen mostly for computational convenience since it is the square of the r6 term. The sum gives a curve that is strongly positive at small r, crosses zero at r=σ, dips to a minimum of depth ϵ at r=21/6σ, and then slowly rises toward zero at large r. ϵ sets how strongly the atoms bind; σ sets how large they are.

Key equations

V(r)=4ε[(σr)12−(σr)6]
(1)

Lennard-Jones potential energy at separation r; ϵ is well depth, σ is the distance where V=0.

rmin=21/6σ
(2)

Separation at the energy minimum, where the force is zero.

V(rmin)=−ε
(3)

Depth of the potential well.

F(r)=−dVdr=24εr[2(σr)12−(σr)6]
(4)

Force between the particles; positive means repulsive.

Derivation

  1. Start from V(r) = 4ε[(σ/r)^12 − (σ/r)^6].
  2. Zero crossing: set V = 0, so (σ/r)^12 = (σ/r)^6, which gives r = σ.
  3. Differentiate: dVdr=4ε[−12σ12r13+6σ6r7].
  4. Set dV/dr=0 for the minimum: 12σ12/r13=6σ6/r7, so r6=2σ6.
  5. Therefore r_min = 2^(1/6)σ ≈ 1.122σ.
  6. Substitute: (σ/r_min)^6 = 1/2 and (σ/r_min)^12 = 1/4, so V = 4ε(1/4 − 1/2) = −ε.
  7. The force is F = −dV/dr = (24ε/r)[2(σ/r)^12 − (σ/r)^6], which is zero at r_min, repulsive for r < r_min and attractive for r > r_min.

Worked example

Problem

For argon, ε/k_B ≈ 120 K and σ ≈ 0.34 nm. Find the equilibrium separation and the well depth in joules, and the potential energy at r = 0.40 nm.

  1. r_min = 2^(1/6) × 0.34 nm = 1.122 × 0.34 ≈ 0.382 nm.
  2. ε = k_B × 120 K = 1.38×10^-23 J/K × 120 ≈ 1.66×10^-21 J, so V(r_min) = −1.66×10^-21 J.
  3. At r = 0.40 nm: σ/r = 0.85.
  4. (0.85)^6 ≈ 0.377 and (0.85)^12 ≈ 0.142.
  5. V = 4ε(0.142 − 0.377) = 4ε(−0.235) = −0.94ε.
  6. V ≈ −0.94 × 1.66×10^-21 ≈ −1.56×10^-21 J.

Answer r_min ≈ 0.38 nm, well depth ε ≈ 1.66×10^-21 J, and V(0.40 nm) ≈ −1.6×10^-21 J (just above the minimum).

Common mistakes

  • Confusing σ with the minimum position: V=0 at r=σ, while the minimum is at 1.122σ.
  • Forgetting that epsilon is the depth, so the minimum energy is −ε, not −4ε.
  • Thinking the r12 term has a rigorous physical basis; it is a convenient approximation, and exponential repulsion is more realistic.
  • Mixing up the sign of the force: repulsive at r < r_min, attractive at r > r_min.
  • Applying it to charged or strongly polar species, where Coulomb terms dominate and must be added.

Animation

Animation coming soon

The animated version of this lesson is being prepared for the web. In the Signals AI app, lessons are drawn step by step.

Code

scene.py(89 lines)
import sys
import numpy as np
from manim import *
from blocks import *

# Lennard-Jones Potential: V(r) = 4*epsilon * ((sigma/r)^12 - (sigma/r)^6)
# Standard reduced units: epsilon = 1, sigma = 1
# V(r) = 4 * ( (1/r)^12 - (1/r)^6 )

def lj_potential(r, epsilon=1.0, sigma=1.0):
    """Calculate Lennard-Jones potential energy."""
    if r <= 0:
        return np.inf
    sr6 = (sigma / r) ** 6
    return 4 * epsilon * (sr6**2 - sr6)

# Analytical minimum: r_min = 2^(1/6) * sigma
R_MIN_ANALYTICAL = 2**(1/1/6)
V_MIN_ANALYTICAL = -1.0  # In reduced units

class Main(Scene):
    def construct(self):
        TitleCard(self, "Lennard-Jones Potential", "Intermolecular interaction")

        # Equation
        eq = MathTex(r"V(r) = 4\epsilon \left[ \left(\frac{\sigma}{r}\right)^{12} - \left(\frac{\sigma}{r}\right)^6 \right]", font_size=32)
        eq.to_edge(UP, buff=0.5)
        self.play(Write(eq), run_time=1.5)

        # Plot: V(r) vs r
        # x_range: 0.8 to 3.5
        # y_range: -1.5 to 5.0 (to show repulsion and asymptote)
        plot = CurvePlot(
            lambda r: float(lj_potential(r)),
            x_range=(0.8, 3.5, 0.5),
            y_range=(-1.5, 5.0, 1.0),
            x_label=r"r / \sigma",
            y_label=r"V(r) / \epsilon",
            color=C_MAIN,
            x_length=8.0,
            y_length=4.5
        )
        plot.move_to(ORIGIN)
        
        self.play(Create(plot.axes), FadeIn(plot.labels), run_time=1.5)
        self.play(Create(plot.curve), run_time=2)

        # Highlight equilibrium point
        dot_eq = plot.dot_at(R_MIN_ANALYTICAL, color=C_ACCENT)
        self.play(FadeIn(dot_eq), run_time=0.5)
        label_eq = Text(f"r_min = 2^(1/6) \\u2248 1.12", font_size=24, color=C_ACCENT)
        label_eq.next_to(dot_eq, UP, buff=0.1)
        self.play(FadeIn(label_eq), run_time=0.5)

        # Highlight repulsive wall
        dot_rep = plot.dot_at(1.0, color=C_BAD)
        self.play(FadeIn(dot_rep), run_time=0.5)
        label_rep = Text("Repulsion", font_size=24, color=C_BAD)
        label_rep.next_to(dot_rep, LEFT, buff=0.1)
        self.play(FadeIn(label_rep), run_time=0.5)

        # Highlight attractive well
        dot_att = plot.dot_at(2.0, color=C_GOOD)
        self.play(FadeIn(dot_att), run_time=0.5)
        label_att = Text("Attraction", font_size=24, color=C_GOOD)
        label_att.next_to(dot_att, RIGHT, buff=0.1)
        self.play(FadeIn(label_att), run_time=0.5)

        StepCaption(self, "Balance of repulsion and attraction defines molecular bonding.")
        self.wait(1.5)


if __name__ == "__main__" and "--selftest" in sys.argv:
    # Test 1: Potential at equilibrium distance should be -epsilon
    assert abs(lj_potential(R_MIN_ANALYTICAL) - V_MIN_ANALYTICAL) < 1e-9
    
    # Test 2: Potential at sigma should be 0
    assert abs(lj_potential(1.0) - 0.0) < 1e-9
    
    # Test 3: Potential goes to 0 at large distances
    assert abs(lj_potential(10.0)) < 1e-9
    
    # Test 4: Repulsive region (r < sigma) should be positive
    assert lj_potential(0.9) > 0
    
    # Test 5: Attractive region (sigma < r < r_min) should be negative
    assert lj_potential(1.05) < 0
    
    print("selftest ok")

The Manim scene code that draws this lesson's animation in the Signals AI app (Python, Manim Community).

ccBYNC© 2026 SignalsLab. Lesson text shared as is under CC BY-NC 4.0.