December 5, 2026

Finding the Five Lagrange Points Numerically, and Why Webb Lives at L2

A gold-mirrored space telescope with a layered sunshield

The James Webb Space Telescope orbits a point in space about 1.5 million kilometers from Earth, on the side facing away from the Sun. Nothing is there. The spot is the second Lagrange point of the Sun-Earth system, L2, one of five places where the pull of the Sun, the pull of Earth and the motion of orbiting combine so that a small object can keep pace with Earth. Solving for all five with a root finder and NASA’s planetary data puts L2 at 1,501,538 km from Earth. A simulation of the same system shows why Webb has to fire its thrusters to stay there, and why two of the other points need no thrust at all.

Video: Scott Manley on YouTube

What a Lagrange point is

Balance in a rotating frame

Picture the Sun and Earth fixed in place in a frame of reference that turns once a year with Earth’s orbit. An object at rest in that frame feels the Sun’s gravity, Earth’s gravity and an outward centrifugal effect from the rotation. At five points the three exactly cancel. An object placed there stays put relative to the Sun and Earth.

Where they sit

L1 lies between the Sun and Earth. L2 lies beyond Earth on the far side from the Sun. L3 sits on the opposite side of the Sun from Earth. L4 and L5 sit on Earth’s orbit, 60 degrees ahead of and behind Earth, each forming an equilateral triangle with the Sun and Earth.

Webb’s location

NASA’s Webb orbit page puts the telescope about 1.5 million km (1 million miles) from Earth at L2, and notes that it orbits around L2 rather than sitting exactly on it, with each loop taking about six months.

A galaxy in deep space

The inputs

Masses and distances from NASA fact sheets

Quantity Value Source
Sun’s mass 1.9884 × 10³⁰ kg NASA Sun fact sheet
Earth’s mass 5.9722 × 10²⁴ kg (5.9724 on the Moon sheet) NASA Earth fact sheet
Earth’s orbital semimajor axis 149.598 million km NASA Earth fact sheet
Moon’s mass 0.07346 × 10²⁴ kg NASA Moon fact sheet
Moon’s orbital semimajor axis 384,400 km NASA Moon fact sheet

The method

Along the line through the two bodies, the condition for balance is a single equation in one unknown. The script used a bracketing root finder on that equation in three intervals, one for each of L1, L2 and L3, treating both orbits as circular. L4 and L5 need no solving; their positions follow from the equilateral geometry.

The results

Sun-Earth system

Point Distance from Earth Distance from the Sun
L1 1,491,557 km 148,106,443 km
L2 1,501,538 km 151,099,538 km
L3 299,195,738 km 149,597,738 km
L4, L5 149,598,000 km (60° ahead and behind) 149,598,000 km

Earth-Moon system

Point Distance from the Moon Distance from Earth
L1 58,019 km 326,381 km
L2 64,515 km 448,915 km
L3 766,075 km 381,675 km
L4, L5 384,400 km (60° ahead and behind) 384,400 km

A shortcut that nearly works

For a small body orbiting a much larger one, L1 and L2 sit at roughly a × (μ/3)^(1/3), where a is the orbital distance and μ is the small body’s share of the total mass. For Sun-Earth that gives 1,496,563 km, between the exact L1 and L2. For Earth-Moon, where the Moon is a larger share of the mass, the shortcut gives 61,274 km and misses both points by several thousand kilometers.

L1 and L2 aren’t symmetric

In both systems L2 lies farther from the smaller body than L1. For Sun-Earth the difference is about 10,000 km; for Earth-Moon, about 6,500 km. The pulls don’t mirror each other: at L1 the Sun and Earth tug in opposite directions, while at L2 they pull the same way, and the balance works out a little farther from Earth on the outside.

A close-up of a leather saddle

Checking the balance with forces

Accelerations at each point

The numbers can be checked without the rotating frame. An object circling the Sun once a year at distance r needs an inward acceleration of ω²r, where ω is the angular speed of a 365.256-day orbit. Using Newton’s gravitational constant, 6.6743 × 10⁻¹¹ in SI units, the script compared what each body supplies with what’s needed:

Location Sun’s pull (m/s²) Earth’s pull (m/s²) Needed for a one-year orbit (m/s²)
Earth’s orbit, no Earth 0.0059300 n/a 0.0059301
L1 0.0060501 0.0001792 (outward, toward Earth) 0.0058710
L2 0.0058128 0.0001768 (inward, toward Earth) 0.0059896

Reading the table

At L1 the Sun pulls a little too hard for a one-year orbit at that radius, and Earth’s pull in the opposite direction takes off exactly the excess: 0.0060501 − 0.0001792 = 0.0058709. At L2 the Sun pulls too weakly, and Earth’s pull in the same direction makes up the shortfall: 0.0058128 + 0.0001768 = 0.0059896. In both places Earth contributes only about 3 percent of the total, which is why the points sit so close to Earth relative to the Sun’s distance: that’s where a small planet’s pull is just strong enough to matter.

Radio delay

At 1,501,538 km, a radio signal from Webb at L2 takes about 5.0 seconds to reach Earth, compared with about 1.3 seconds from the Moon.

L2 won’t hold still

Unstable along the line

L1, L2 and L3 are balance points, but not stable ones. An object nudged slightly along the Sun-Earth line drifts away, like a ball balanced on a ridge. NASA’s orbit page calls L2 metastable and says it takes “relatively little rocket thrust” to keep the spacecraft in orbit around it.

How fast the drift grows

Linearizing the equations of motion around Sun-Earth L2 gives an instability that grows by a factor of e (about 2.7) every 23.4 days. At that rate a 1 km error grows a thousandfold in about 162 days, and to 100,000 km in about 269 days. Without regular corrections, an object at L2 would leave within a year.

Why that’s acceptable

The growth is slow enough that small, occasional thruster burns can cancel it, and the burns can be timed in advance. That’s the trade Webb makes for the location’s other advantages.

The Earth and the Moon seen from space

Why Webb went to L2

One side for everything hot

NASA’s orbit page explains that from L2, the Sun, Earth and Moon all stay in roughly the same direction, so Webb’s sunshield can block all three at once. The telescope operates at about 225 degrees below zero Celsius, cold enough to observe infrared light without being swamped by its own heat.

Staying close to home

At 1.5 million km, L2 is about four times as far as the Moon, far enough to escape Earth’s heat and glare but close enough for steady communication. NASA notes that Webb took roughly 30 days to reach the start of its orbit at L2, passing the Moon’s orbital distance in only 3.

Orbiting, not sitting

Webb’s six-month loop around L2 keeps it out of Earth’s shadow, so its solar panels stay lit, while keeping the Sun, Earth and Moon behind the sunshield.

L4 and L5: stable, under one condition

A test particle at L4

A second simulation placed a test particle slightly off L4, displaced by 0.1 percent of the orbital radius, and followed it for 200 orbits in the rotating frame.

System Mass ratio of larger to smaller body Farthest drift from L4 over 200 orbits (units of orbital radius) Outcome
Sun-Earth about 332,940 0.91 stays near Earth’s orbit, swinging between 31° and 114° ahead of Earth
Earth-Moon about 81 0.016 stays close to L4
Hypothetical 30 0.022 stays close to L4
Hypothetical 10 121 flung far away

Wandering but captured

In the Sun-Earth case, the particle’s distance from the Sun stayed within 0.35 percent of 1 AU for all 200 orbits, but it swung back and forth along Earth’s orbit in a long arc. That kind of tadpole-shaped path is how objects trapped near L4 and L5 move.

When the smaller body is too big

With a mass ratio of 10, the particle escaped entirely. With 30 it stayed put. The real systems, at 81 for Earth-Moon and over 300,000 for Sun-Earth, are both on the stable side, which is why L4 and L5 can hold natural objects for long periods without any thrust, something L1, L2 and L3 can’t do.

Sources

  • NASA Science, “Webb’s Orbit”: https://science.nasa.gov/mission/webb/orbit/
  • NASA NSSDCA, “Sun Fact Sheet”: https://nssdc.gsfc.nasa.gov/planetary/factsheet/sunfact.html
  • NASA NSSDCA, “Earth Fact Sheet”: https://nssdc.gsfc.nasa.gov/planetary/factsheet/earthfact.html
  • NASA NSSDCA, “Moon Fact Sheet”: https://nssdc.gsfc.nasa.gov/planetary/factsheet/moonfact.html

719 Posts

Peter Kalafatis writes and edits X9M8. He holds a bachelor's degree from LIU Post and a master's in Media Studies from The New School, with academic work in the philosophy of science, human behavior, AI, and memetics.

View All Posts

Leave a Reply

Your email address will not be published. Required fields are marked *