On this page
A glass lens focuses light because it is thicker in the middle than at the edge. Light going through the centre spends longer in slow glass, so it is held back just enough to arrive at the focus in step with light from the edge. A metalens does the same job with a flat surface covered in pillars about as tall as the wavelength, each of which delays the light by a chosen amount. This post works out exactly what delay each point needs, using Huygens' principle and one equation.
How can a flat surface bend light?
In Huygens' principle and wavefronts, refraction comes from the wavefront changing speed as it crosses a boundary. A metasurface adds something new: at each point it shifts the phase of the light by an amount φ that can vary along the surface.
Take two rays a short distance dr apart, crossing the surface at angle θ₁ from medium n₁ and leaving at θ₂ into medium n₂. For them to stay in step, the total phase along both routes must match. The extra path of n₁ dr sin θ₁ on one side, the extra n₂ dr sin θ₂ on the other, and the phase step dφ must balance. That gives the generalised law of refraction:
n₂ sin θ₂ − n₁ sin θ₁ = (λ₀/2π)·dφ/dr
Here λ₀ is the wavelength in vacuum. If φ is the same everywhere, dφ/dr = 0 and this is ordinary Snell's law, which you can try in the Snell's law simulation post. The law was set out and tested by Nanfang Yu and co-workers in Science in 2011. A phase that changes along the surface bends light, even when the surface is flat.
What phase does a focusing lens need?
Send a parallel beam straight at the lens (θ₁ = 0) and ask every ray to meet at a focus F, a distance f behind it. A ray crossing at radius r has to travel √(r² + f²) to reach F, while the ray on the axis travels only f. Its extra path is √(r² + f²) − f. The lens must give the central light a matching extra delay, so the phase it adds is
φ(r) = −(2π/λ)(√(r² + f²) − f)
Check it with the generalised law. dφ/dr = −(2π/λ)·r/√(r² + f²), so sin θ₂ = −r/√(r² + f²). The minus sign means the ray tilts towards the axis, and r/√(r² + f²) is exactly the sine of the angle needed to hit F. Every ray arrives, at every radius, with no small-angle approximation.
Since a phase of 2π is the same as zero, the pillars only need to provide phases between 0 and 2π. The profile is wrapped: it climbs to 2π, drops back to 0 and climbs again, like a sawtooth. Each wrap is the edge of a ring.
Worked example: a 1 mm metalens for 940 nm light
Design a metalens of radius 0.5 mm that focuses near-infrared light of λ = 940 nm at f = 1 mm.
Step 1: extra path at the edge. √(0.5² + 1²) − 1 = 1.11803 − 1 = 0.11803 mm = 118.03 µm.
Step 2: phase at the edge. 118.03 µm ÷ 0.940 µm = 125.6 wavelengths. The phase is 2π × 125.6 = 789 rad, so the wrapped profile goes through about 126 full turns from centre to edge.
Step 3: compare with the small-angle formula. The usual paraxial shortcut is extra path ≈ r²/2f = 125 µm, or 133.0 wavelengths. That is 7.4 wavelengths too many at the edge, enough to wreck the focus. At this size the exact square root is needed.
Step 4: how hard does the edge bend light? sin θ₂ = 0.5/1.118 = 0.447, so the edge ray turns through 26.6°. The numerical aperture is 0.447. The smallest spot it could make, the Airy radius 0.61λ/NA, is 0.61 × 0.94 µm ÷ 0.447 = 1.28 µm, as in resolving power of a microscope or telescope.
Step 5: how fast does the phase climb? The phase grows by 2π over a distance Λ = 2π/|dφ/dr| = λ√(r² + f²)/r. So:
at r = 0.1 mm, Λ = 0.94 × 1.005 ÷ 0.1 = 9.4 µm
at r = 0.25 mm, Λ = 3.9 µm
at r = 0.5 mm, Λ = 2.1 µm
Step 6: pillar spacing. Suppose the pillars sit 400 nm apart (an illustrative value). Near r = 0.1 mm each 2π cycle is built from about 24 pillars. At the edge there are only 2.1 ÷ 0.4 ≈ 5 pillars per cycle. The phase there is a rough staircase, which is why the edge of a fast metalens is the hardest part to make well. A lens with a larger numerical aperture needs a smaller period at the rim, and so pillars spaced even more closely.
In many designs a pillar sets its delay by its width: a wider pillar of high-index material holds more of the light inside it, so the light slows more. The first visible-light metalenses, made by Mohammadreza Khorasaninejad and co-workers at Harvard, used another trick: identical titanium dioxide nanofins, each rotated by a chosen angle, which shifts the phase of circularly polarised light (Science, 2016).
How is a metalens different from a zone plate?
A Fresnel zone plate uses the same path differences, but it can only pass or block light. Its zone edges sit where the extra path is a multiple of λ/2. For this lens that is 2 × 125.6 ≈ 251 zones, so about 126 clear rings, one for each wrap of the metalens phase. The zone plate blocks the zones that would arrive out of step, and much of the light goes into other orders, as that post explains.
The metalens shifts the phase smoothly instead of blocking. Within each ring it can bring all the light into step, so in principle it can send most of it to one focus.
What are the limits of a metalens?
It works at one wavelength. The phase φ(r) is fixed by the pillars, but the bending depends on λ·dφ/dr. Change the wavelength and the focal length changes roughly as 1/λ, like a zone plate. Light of 850 nm through this lens would focus near 1.1 mm, not 1 mm. Correcting this takes extra design tricks.
The pillars are not perfect phase shifters. Their delay depends on the angle of the light and on its polarisation in some designs.
Pillars must be closer than about a wavelength. Otherwise the regular array itself diffracts light in unwanted directions.
This problem, the modified law of refraction and the focusing phase, appeared at the Indian National Physics Olympiad (INPhO) 2025. The Concept Library covers Huygens' principle, wavefronts and Snell's law if you want to revise them first.
Quick checklist
A metasurface adds a phase φ along a flat surface.
Generalised Snell's law: n₂ sin θ₂ − n₁ sin θ₁ = (λ₀/2π) dφ/dr.
Focusing phase: φ(r) = −(2π/λ)(√(r² + f²) − f), exact, not paraxial.
For f = 1 mm, radius 0.5 mm, 940 nm: 789 rad, about 126 turns.
Local 2π period: λ√(r² + f²)/r, 2.1 µm at the edge.
Pillars must be much closer than that period, and the design works at one wavelength.



