---
title: Shielding and Faraday cages
heading: A metal box keeps fields out, and sometimes in
eyebrow: B2 · Lesson 12 · Shielding and Faraday cages
xp: 40
---

::: hook
A car struck by lightning protects the people inside. A cable's braided shield keeps interference off the signal. A microwave oven's door mesh keeps the microwaves in while letting you see the food. All of these use the rule from lesson 8: charges in a conductor rearrange until the field inside the metal is zero. Make the conductor a closed shell and the space inside it is protected too, but whether fields from *inside* get out depends on one thing: whether the shell is grounded.

::: play
- A charged wire sits inside a round metal shell. The shading is the voltage; the arrows show the field.
- With the shell floating ($g = 0$), is there any field outside? Now ground it ($g = 1$). What changes outside, and what stays the same inside?
- Move the charge off center. Does the outside field (when floating) care where the charge is?
:::
:::

```sim plot
view: flow
x: x = -3..3 cm
y: y = -2..2 cm
slider: g = 0..1 step 1 = 0
slider: c = -0.8..0.8 step 0.1 = 0 cm
dx: ((x - c)/((x - c)^2 + y^2) - (x - 2.25/(c + 1e-9))/((x - 2.25/(c + 1e-9))^2 + y^2))*step(1.5 - sqrt(x^2 + y^2)) + (1 - g)*x/(x^2 + y^2)*step(sqrt(x^2 + y^2) - 1.7)
dy: (y/((x - c)^2 + y^2) - y/((x - 2.25/(c + 1e-9))^2 + y^2))*step(1.5 - sqrt(x^2 + y^2)) + (1 - g)*y/(x^2 + y^2)*step(sqrt(x^2 + y^2) - 1.7)
arrows: scaled
grid: 18
path: 1.5*cos(u), 1.5*sin(u) | over: u = 0..2*pi | color: ch3
path: 1.7*cos(u), 1.7*sin(u) | over: u = 0..2*pi | color: ch3
dot: c, 0 | label: +λ
```

::: predict
## A charged object hangs inside a closed metal shell that isn't connected to anything. Is there a field outside the shell?

- [ ] No: metal blocks electric fields
- [x] Yes: the same as if the charge were at the shell's center, with no shell at all
- [ ] Yes, but weaker
- [ ] Only if the charge touches the shell

::: reveal
Yes. The charge inside pulls an equal and opposite charge onto the shell's inner surface, which cancels its field in the metal. But the shell is neutral, so an equal charge of the same sign is pushed to the outer surface, spread evenly. That outer charge makes a field outside as if the inside charge sat at the center. Grounding the shell lets that outer charge drain away, and then the outside sees nothing. Note that the inside charge's position doesn't show outside at all: the shell hides it.
:::
:::

::: nameit
## Shielding

**Keeping fields out.** A closed conducting shell has zero field inside its empty interior, whatever the field outside. Charges on the outer surface rearrange to cancel the outside field everywhere inside. That's a **Faraday cage**, and it's why a car (mostly) or an aircraft protects its occupants from lightning, and why sensitive measurements are made in shielded rooms.

**Keeping fields in.** A charge inside a shell induces an equal and opposite charge on the inner surface. If the shell is isolated, the matching charge appears on the outer surface and makes a field outside. **Grounding** the shell drains that outer charge, and the outside field disappears. So a shield only contains a source's field when it's connected to ground (or to the circuit's reference).

**Holes and gaps.** A real cage is a mesh, not a solid shell. It still works if the holes are much smaller than the wavelength of the fields it must stop: a microwave door's holes are about 1 mm, against microwaves 12 cm long, while visible light, with wavelengths under a micron, passes straight through. A long slot can leak badly even if it's narrow, because it acts like an antenna.

**Changing fields.** For static fields any conductor shields perfectly. For fields that change quickly, the shield has to carry real currents to do the job, and those currents flow only within a thin layer near the surface, the **skin depth**. In copper it's about 9 mm at 50 Hz but 66 µm at 1 MHz, so thin shields work well at high frequencies and poorly at power-line frequencies, where magnetic shielding needs special high-permeability materials.

**In practice.** Coaxial cables, shielded twisted pairs, metal enclosures and the ground planes of circuit boards all apply these ideas, and the most common shielding mistake is a shield that isn't grounded properly.
:::

::: example
## A 5 nC charge sits inside a closed, uncharged metal box. What charges appear on the box, and what field is outside?

::: solution
1. **Inner surface.** −5 nC gathers on the inner surface, so a Gaussian surface inside the metal encloses zero.
2. **Outer surface.** The box is neutral, so +5 nC sits on the outer surface.
3. **Field outside.** Outside, the field is as if 5 nC sat in the box.
4. **Grounding.** Grounding the box drains the +5 nC away, and the outside field vanishes.

**Answer:** −5 nC appears on the inner surface and +5 nC on the outer one, so outside the field is that of 5 nC in the box (zero if the box is grounded).
:::
:::

::: example
## A microwave oven runs at 2.45 GHz. Why does its door's mesh, with 2 mm holes, keep the microwaves in?

::: solution
1. **Wavelength.**
   $$\begin{aligned} \lambda &= \frac{3 \times 10^8}{2.45 \times 10^9} \\ &= 12\ \text{cm} \end{aligned}$$
2. **Hole size.** Holes much smaller than half a wavelength (6 cm here) block the wave almost completely.
3. **Light.** Light has wavelengths below a micrometer, so 2 mm holes pass it while stopping the microwaves.

**Answer:** the 2 mm holes are far smaller than half the 12 cm wavelength, so the mesh stops the microwaves while light passes through.
:::
:::

::: check
given: q = 1..9 int; R = 5 | 10 | 20
answer: 8.99e9*q*1e-9/(R/100)^2
unit: V/m
tolerance: 1%

## A +{q} nC charge sits off center inside a floating (ungrounded) metal sphere of radius 2 cm. How strong is the field {R} cm from the sphere's center, outside it?

::: right
Right. The outer surface carries +{q} nC spread evenly, so outside it looks like a point charge at the center: $kq/r^2$ = {answer}.
:::

::: misses
- [0] The shell is floating: the induced charge on its outer surface makes a field outside.
- [8.99e9*q*1e-9/(R/100)] It's a point-charge field: $1/r^2$.
- [any] Not yet. Outside, the shell's outer charge acts like a point charge at the center.
:::
:::

::: check
kind: choice

## The same sphere is now connected to ground. What is the field outside?

- [x] Zero
- [ ] The same as before
- [ ] Half as strong
- [ ] Stronger, because ground adds charge

::: right
Right. Grounding drains the outer surface's charge, leaving only the inner induced charge, which cancels the inside charge's field beyond the shell.
:::

::: misses
- [2] Grounding removes the charge on the outer surface.
- [3] It's removed entirely, not halved.
- [4] Ground supplies or removes whatever charge is needed to bring the outside to zero.
:::
:::

::: check
given: f = 50 | 60 | 1000 | 1000000
answer: 0.066/sqrt(f)*1000
unit: mm
tolerance: 2%

## Copper's skin depth is about $66/\sqrt{f}$ mm (f in hertz). How deep is it at {f} Hz?

::: right
Right. {answer}.
:::

::: misses
- [0.066/f*1000] It goes as $1/\sqrt f$, not $1/f$.
- [any] Not yet. $66/\sqrt f$ mm.
:::
:::

::: check
given: f = 1 | 2.4 | 5 | 10
answer: 300/f
unit: mm
tolerance: 1%

## Mesh holes must be much smaller than the wavelength. What is the wavelength of a {f} GHz signal? ($c = 3 \times 10^8$ m/s.)

::: right
Right. $\lambda = c/f$ = {answer}. Holes a millimeter or so across block it well.
:::

::: misses
- [3e8/(f*1e9)] That's in meters. Convert to millimeters.
- [f/300] It's $c/f$, not $f/c$.
- [any] Not yet. $\lambda = c/f$.
:::
:::

::: check
kind: choice

## Why is a person inside a car relatively safe from a lightning strike?

- [ ] The rubber tires insulate the car from the ground
- [x] The metal body is a conducting shell: the current and the field stay on the outside of the metal
- [ ] Lightning can't hit moving objects
- [ ] The glass windows absorb the charge

::: right
Right. It's a Faraday cage. The tires are irrelevant: lightning has already crossed kilometers of air.
:::

::: misses
- [1] A few centimeters of rubber are nothing to a bolt that crossed kilometers of air.
- [3] Motion makes no difference.
- [4] Glass is an insulator; the protection comes from the metal.
:::
:::

::: check
given: L = 1 | 3 | 10 | 30
answer: 3e8/(2*L*1e-2)/1e9
unit: GHz
tolerance: 0.5%

## A metal enclosure has a slot {L} cm long. Taking a slot as an efficient leak once it's about half a wavelength long, above roughly what frequency does it stop shielding?

::: right
Right. $f = c/(2L)$ = {answer}: shields must keep every opening small compared with the wavelengths they block.
:::

::: misses
- [3e8/(L*1e-2)/1e9] Half a wavelength fits in the slot: $L = \lambda/2$.
- [any] Not yet. Set $L = \lambda/2$ and use $f = c/\lambda$.
:::
:::

::: explain
## Why does a grounded metal shell stop a charge inside it from producing any field outside, while a floating shell doesn't?

::: model
The charge inside pulls an equal and opposite charge onto the shell's inner surface, which cancels its field within the metal. If the shell is floating, it has no net charge, so a matching charge of the same sign as the inside one has to appear somewhere on the shell, and it goes to the outer surface, where it makes a field outside. When the shell is grounded, that outer charge can flow away to ground, leaving only the inner charge, so nothing is left to make a field outside.
:::
:::

::: practice

::: check
kind: choice

## A sensitive amplifier sits in a closed metal box. A noisy motor nearby makes a strong electric field. Inside the box, what is the motor's static electric field?

- [x] Zero
- [ ] The same as outside
- [ ] Half as strong
- [ ] Stronger near the walls

::: right
Right. A closed conducting shell has zero static field inside, whatever is outside.
:::

::: misses
- [2] The box's charges rearrange to cancel it inside.
- [3] It's cancelled completely, not partly.
- [4] Inside the empty interior it's zero everywhere.
:::
:::

::: check
given: f = 50 | 60 | 400 | 1000 | 10000 | 1000000
answer: 66/sqrt(f)
unit: mm
tolerance: 2%

## Roughly how thick is copper's skin depth at {f} Hz?

::: misses
- [any] $66/\sqrt f$ mm.
:::
:::

::: check
given: f = 100 | 300 | 900
answer: 300/f
unit: m
tolerance: 1%

## What is the wavelength of a {f} MHz radio signal?

::: misses
- [any] $\lambda = c/f$.
:::
:::
:::
