Einstein Radius Lens Calculator

How far a mass bends the light behind it.

  • Einstein angle
  • Image positions
  • Mass from the ring
A small rounded clay table holding a soft clay ring around a rounded sphere, soft curved rays bending past it, and a few loose rounded beads.

The guide

A ring of light needs three distances, and two images always add up to one formula

Why light from behind a mass is bent into a ring, why the ring angle depends on a ratio of three distances, and why a point lens makes two images with a simple total magnification.

  • 2.2105 arcsec Einstein angle of the galaxy example, 1e12 solar masses
  • 10.717 kpc Einstein radius at the galaxy lens
  • 1.3416 total magnification at u = 1, from 1.1708 plus 0.1708
  • 1.0090 mas Einstein angle of a solar-mass lens at 4, 8, 4 kpc
  • 2.0179 arcsec wrong angle from D_LS = D_S minus D_L
Read the full guide Fold the guide 6 min · 14 sources

A mass bends the light that passes it. Line a distant source up exactly behind a lens and the bent light reaches the observer from every side at once, so the source appears as a ring. That ring is an Einstein ring, and its radius is the natural unit for the whole subject.

The calculation behind it is short. It takes the mass of the lens and three distances, and it is easy to get one of the three wrong.

Where the ring comes from

For a point mass M, a ray passing at impact parameter b is deflected by an angle of 4GM over c squared times b, in the small-angle limit. Newtonian physics also predicts bending, but only half of the general-relativity value, which is why a factor of 2 in place of 4 is the classic slip.

Now take the geometry. The observer sees an image at angle theta from the lens, so the ray passed the lens at b equal to theta times D_L, the distance to the lens. Following the ray on to the source, the source plane gives the lens equation: theta D_S equals the unlensed source angle times D_S plus the deflection times D_LS.

For a source exactly behind the lens the unlensed angle is zero, and solving gives the Einstein angle: theta_E is the square root of 4GM over c squared times D_LS over D_L D_S. The Einstein radius in the lens plane is theta_E times D_L. In terms of theta_E the lens equation becomes tidy: theta equals the source angle plus theta_E squared over theta.

Strong gravitational lensing is the regime where this applies: the lens is strong enough to produce multiple images, arcs or rings. For point-like background sources there are multiple images, and for extended sources there can be arcs or rings. Weak lensing, where the distortion is small and one-to-one, is a different regime and is not modelled here.

Three distances, not one

Look at the combination inside the square root: D_LS over D_L D_S. It involves the distance to the lens, the distance to the source, and the distance between them. A quick answer often uses the source distance alone, and that is wrong whenever the lens is not placed to make the combination equal to it.

The three distances here are angular-diameter distances. At cosmological scales these depend on the assumed cosmology: the angular-diameter distance of an object at redshift z is a coordinate distance divided by one plus z. So the distance between lens and source is not the difference of the two, and entering D_S minus D_L is only safe for nearby lenses in flat space.

Take a worked example with round illustrative numbers, not a real system: a lens of 1e12 solar masses, D_L of 1 Gpc, D_S of 2 Gpc and D_LS of 1.2 Gpc. The combination is 1.6667 Gpc, the Einstein angle is 2.2105 arcseconds or 1.0717e-5 radians, the ring diameter is 4.4210 arcseconds, and the Einstein radius at the lens is 10.717 kpc.

Swap in D_S minus D_L, which is 1 Gpc, and the answer drops to 2.0179 arcseconds. Use the Newtonian factor 2 and it becomes 1.5631, which is 0.7071 times the right value, the square root of one half. Mix up a unit and the result can be absurd: reading a mass of 1e12 kilograms as solar masses gives 1.568e-15 arcseconds.

A lens is most prominent when it sits about halfway. In flat space the Einstein radius in the lens plane is proportional to the square root of D_L times D_LS over D_S, and for a fixed D_S the product D_L times D_LS is largest at the midpoint. That product is why a lens about halfway between source and observer gives the most prominent ring.

Two images, always

For a source slightly off the line, the lens equation has two solutions. With the offset beta equal to u times theta_E, the images lie at theta_E times half of u plus or minus the square root of u squared plus 4. One is on the source side and one is on the other side of the lens, so the second position is negative.

At u equal to 1 the images sit at 1.6180 and minus 0.6180 Einstein angles, a separation of 2.2361. The magnification of an image at theta is one over the absolute value of one minus the fourth power of theta_E over theta. At u equal to 1 that gives 1.1708 and 0.1708.

Add them and the total is 1.3416. A short derivation gives the closed form: the total magnification is u squared plus 2, over u times the square root of u squared plus 4. At u equal to 0.5 it is 2.1828. The two magnifications also differ by exactly 1.

Counting only one image is a recognised mistake, and it gives 1.1708 where the truth is 1.3416. A point lens makes two images, never one, and the total light is the sum. As u falls to zero the total grows without limit, and at u equal to zero the two images merge into the ring.

Over the range the page plots, from u of 0.05 to 5, the total magnification falls from about 20.02 to about 1.003. Far from the lens the light is barely changed, and close in it grows steeply. The two images are never both bright: the far-side image fades fast as u rises, which is why the total tends to the source-side image alone.

The formula also runs backwards. A measured ring angle and the three distances give the mass inside the ring: M is c squared times theta_E squared times D_L D_S over 4G D_LS. One arcsecond at a distance combination of 1 Gpc needs 1.228e11 solar masses. That is how a ring is turned into a mass, with the caution that it assumes a point mass and exact alignment.

Scales, microlenses and checks

The sizes span a huge range. By the standard calibration, a lens of 10 to the 11.09 solar masses and a distance combination of 1 Gpc gives about one arcsecond. A cluster of 1e15 solar masses with a combination of 1 Gpc gives 90.24 arcseconds, a little under the roughly 100 arcseconds quoted for such clusters; with the lens halfway, where the combination is 4 Gpc, it is 45.12.

A solar-mass lens at galactic distances is another world. With D_L of 4 kpc, D_S of 8 kpc and D_LS of 4 kpc the Einstein angle is 1.0090 milliarcseconds and the Einstein radius at the lens is 4.0358 astronomical units. That is why the two images of a microlens are generally unresolved, and only the brightening shows.

Mass units are another trap. The page takes a mass in solar masses, kilograms or Jupiter masses. One Jupiter mass, from the nominal Jovian mass parameter divided by G, is about 9.5459e-4 solar masses. A Jupiter-mass lens at the same 4, 8 and 4 kpc has an Einstein angle about 32 times smaller, near 31 microarcseconds, because the angle goes as the square root of the mass.

Constants matter too. The calculation uses G as 6.67430e-11 and the speed of light as 299792458 metres per second, both from NIST. The parsec is 648000 over pi astronomical units. The solar mass comes from the nominal solar mass parameter divided by G, giving 1.98841e30 kg, which matches the 1,988,400 times 10 to the 24 kg of the NASA fact sheet to five digits.

The images and magnifications were checked by solving the lens equation numerically: Python 3.13 with scipy brentq found the roots, and the magnification came from a numerical derivative of the lens map, in agreement to about 1e-10. The page repeats a bisection check on every change. It also runs the mass formula backwards: the galaxy example’s ring returns 1e12 solar masses.

This page treats only a point mass. Extended lenses, ellipticity and shear, time delays, binary-lens caustics and the size of the source are outside it, and it does not turn redshifts into distances. A distributed mass makes an Einstein ring only if it is axially symmetric. Within those limits the rule is simple: one ring, three distances, two images and a sum. The angle comes from one combination of distances, the image positions from one offset, and the total from one formula.

Sources

Every source consulted for this guide. Links checked November 21, 2026.

  1. Einstein radius Wikipedia (CC BY-SA)
  2. Gravitational lens Wikipedia (CC BY-SA)
  3. Einstein ring Wikipedia (CC BY-SA)
  4. Gravitational microlensing Wikipedia (CC BY-SA)
  5. Strong gravitational lensing Wikipedia (CC BY-SA)
  6. Angular diameter distance Wikipedia (CC BY-SA)
  7. Schwarzschild radius Wikipedia (CC BY-SA)
  8. Parsec Wikipedia (CC BY-SA)
  9. Solar mass Wikipedia (CC BY-SA)
  10. Jupiter mass Wikipedia (CC BY-SA)
  11. Newtonian constant of gravitation NIST Fundamental Physical Constants (US government)
  12. speed of light in vacuum NIST Fundamental Physical Constants (US government)
  13. Sun Fact Sheet NASA Space Science Data Coordinated Archive (US government)
  14. scipy.optimize.brentq SciPy documentation (BSD licence)