---
title: Shielding and electromagnetic compatibility
heading: Keeping fields in, keeping fields out
eyebrow: C10 · Lesson 48 · Shielding and electromagnetic compatibility
xp: 40
---

::: hook
Every product that switches current fast is a radio transmitter by accident, and every circuit with a wire longer than a few centimeters is a receiver. **Electromagnetic compatibility** is the engineering of making them neither: staying under the emission limits regulators set, and shrugging off the fields from phones, motors and lightning. A metal enclosure helps enormously, but only if its seams and holes are smaller than the wavelengths involved, and the most common failure isn't the box at all: it's a few microamps of current flowing the wrong way on a cable, turning it into an antenna.
:::

::: play
- A metal sheet of thickness t blocks a plane wave by reflecting it at its surface (R) and absorbing what gets in (A). The curves are the two contributions and their sum, the **shielding effectiveness**, in dB against frequency.
- Absorption grows with frequency, as the skin depth shrinks: thicker sheets absorb more. Reflection is largest at low frequency, where the metal's impedance is lowest.
- Start with 0.5 mm of aluminum (σ = 3.5 × 10⁷ S/m). Even at 1 MHz it gives over 150 dB, far more than any seam or hole will let you keep.
:::
:::

```sim plot
view: graph
x: f = 10k..10G Hz log
y: SE = 0..300 dB
slider: t = 0.01..2 = 0.5 mm log
slider: s = 1e6..6e7 = 3.5e7 log
plot: 8.686*t*1e-3*sqrt(pi*f*4e-7*pi*s) | label: absorption A
plot: 20*log(376.73/(4*sqrt(2*pi*f*4e-7*pi/s))) | label: reflection R
plot: 8.686*t*1e-3*sqrt(pi*f*4e-7*pi*s) + 20*log(376.73/(4*sqrt(2*pi*f*4e-7*pi/s))) | dashed | label: total
readout: skin depth at 1 MHz, µm = 1e6/sqrt(pi*1e6*4e-7*pi*s) | digits: 3
```

::: predict
## A shielded box's metal walls give 120 dB at 1 GHz, but one seam has a 5 cm slot. Roughly what shielding does the box give?

- [ ] Still about 120 dB
- [ ] About 60 dB
- [x] About 10 dB
- [ ] None at all

::: reveal
About 10 dB. A slot acts as an antenna; one of length l leaks as if its shielding were about $20\log_{10}(\lambda/2l)$, which at 1 GHz (λ = 30 cm) is $20\log_{10}(3) = 9.5$ dB. The walls hardly matter: the holes and seams set the real performance.
:::
:::

::: nameit
## Shielding effectiveness

For a plane wave (far from its source) hitting a solid sheet of thickness t:

$$\text{SE} = A + R \text{ (dB)}, \qquad A = 8.686\,\frac{t}{\delta}, \qquad R = 20\log_{10}\frac{\eta_0}{4\lvert\eta_s\rvert}$$

with δ the skin depth and $\lvert\eta_s\rvert = \sqrt{2\pi f\mu/\sigma}$ the metal's wave impedance (lesson 30). A correction for multiple internal reflections matters only when A is below about 10 dB.

Close to a source the wave impedance isn't 377 Ω. **Magnetic** near fields (from loops and transformers) have low impedance, reflect poorly from metal, and are blocked mainly by absorption, so at low frequencies they need thick sheets or high-permeability materials like steel or mu-metal. **Electric** near fields reflect very well.

## Holes and seams

An opening of largest dimension l leaks roughly as an antenna; its shielding is about

$$\text{SE}_\text{slot} \approx 20\log_{10}\frac{\lambda}{2l}$$

and zero above the frequency where l reaches λ/2. Many small holes are far better than one long slot of the same area, and holes deeper than they are wide add waveguide-below-cutoff attenuation (lesson 36).

## Cables and common mode

Most emissions come from **common-mode current**, current flowing the same way on all of a cable's conductors and returning through stray capacitance. A short cable of length L carrying common-mode current I radiates, at distance r,

$$E \approx 1.26 \times 10^{-6}\,\frac{fLI}{r} \text{ V/m}$$

(f in hertz, L and r in meters, I in amperes). A ferrite choke around the cable, a shield bonded all the way around at the connector (not through a pigtail wire), and avoiding ground loops are the usual cures.
:::

::: example
## How well does 0.5 mm of aluminum shield a 1 MHz plane wave?

::: solution
1. **Absorption.** δ = 85 µm, so t/δ = 5.9 and
   $$A = 51\ \text{dB}$$
2. **The metal's wave impedance.**
   $$\begin{aligned} \lvert\eta_s\rvert &= \sqrt{\frac{2\pi \times 10^6 \times 4\pi \times 10^{-7}}{3.5 \times 10^7}}\ \Omega \\ &= 0.475\ \text{m}\Omega \end{aligned}$$
3. **Reflection.** Here $4\lvert\eta_s\rvert$ = 0.0019 Ω:
   $$\begin{aligned} R &= 20\log_{10}\frac{\eta_0}{4\lvert\eta_s\rvert} \\ &= 20\log_{10}\frac{376.7}{0.0019} \\ &= 106\ \text{dB} \end{aligned}$$
4. **Total.**
   $$51 + 106 = 157\ \text{dB}$$

**Answer:** about 157 dB, 51 dB of it from absorption and 106 dB from reflection.
:::
:::

::: example
## A 1 m cable carries 1 µA of common-mode current at 100 MHz. What field does it make at 3 m?

::: solution
1. **Field at 3 m.** With f = 10⁸ Hz, L = 1 m, I = 1 µA and r = 3 m,
   $$\begin{aligned} E &= 1.26 \times 10^{-6}\,\frac{fLI}{r} \\ &= 42\ \mu\text{V/m} \end{aligned}$$
2. **Compare with the limit.** The FCC's limit for household products at 3 m in that band is about 150 µV/m, so a few microamps, far too small to matter for the signal, can fail an emissions test.

**Answer:** 42 µV/m at 3 m.
:::
:::

::: example
## A shield has a 5 cm slot. How much does it shield at 300 MHz and at 3 GHz?

::: solution
1. **How a slot leaks.** A slot leaks roughly like an antenna:
   $$SE \approx 20\log_{10}\frac{\lambda}{2l}$$
2. **At 300 MHz.** λ = 1 m:
   $$20\log_{10}\frac{1}{0.1} = 20\ \text{dB}$$
3. **At 3 GHz.** λ = 10 cm and $\lambda/2l = 1$, so the shielding is 0 dB: the slot is a resonant antenna.
4. **What sets the shielding.** However thick the metal, the seams set the shielding at high frequencies.

**Answer:** about 20 dB at 300 MHz, and none at all (0 dB) at 3 GHz.
:::
:::

::: check
given: t = 0.1 | 0.5 | 2; f = 0.01 | 1 | 100; s = 3.5e7 | 5.8e7
answer: 8.686*t*1e-3*sqrt(pi*f*1e6*4e-7*pi*s)
unit: dB
tolerance: 0.5%

## A {t} mm metal sheet (σ = {s} S/m) faces a {f} MHz wave. What is its absorption loss?

::: right
Right. $8.686\,t/\delta$ = {answer} dB.
:::

::: misses
- [t*1e-3*sqrt(pi*f*1e6*4e-7*pi*s)] That's in nepers: multiply by 8.686.
- [any] Not yet. $A = 8.686t/\delta$.
:::
:::

::: check
given: f = 0.1 | 10 | 1000; s = 1e7 | 5.8e7
answer: 20*log(376.73/(4*sqrt(2*pi*f*1e6*4e-7*pi/s)))
unit: dB
tolerance: 0.5%

## What is a metal's (σ = {s} S/m) reflection loss for a {f} MHz plane wave?

::: right
Right. $20\log_{10}(\eta_0/4\lvert\eta_s\rvert)$ = {answer} dB.
:::

::: misses
- [any] Not yet. $\lvert\eta_s\rvert = \sqrt{2\pi f\mu_0/\sigma}$.
:::
:::

::: check
given: f = 0.3 | 1 | 2.4; l = 1 | 3 | 10
answer: 20*log(299.792458/f/(2*l*10))
unit: dB
tolerance: 0.5%

## About how much shielding does a {l} cm slot give at {f} GHz?

::: right
Right. $20\log_{10}(\lambda/2l)$ = {answer} dB.
:::

::: misses
- [20*log(299.792458/f/(l*10))] The slot resonates at λ/2: divide by 2l.
- [any] Not yet. $20\log_{10}(\lambda/2l)$.
:::
:::

::: check
given: f = 30 | 100 | 300; L = 1 | 2; I = 1 | 5; r = 3 | 10
answer: 1.26e-6*f*1e6*L*I*1e-6/r*1e6
unit: µV/m
tolerance: 0.5%

## A {L} m cable carries {I} µA of common-mode current at {f} MHz. What field does it make {r} m away?

::: right
Right. $1.26 \times 10^{-6}fLI/r$ = {answer} µV/m.
:::

::: misses
- [any] Not yet. Use the common-mode radiation estimate.
:::
:::

::: check
given: A = 20 | 40 | 60; f = 1 | 100; s = 3.5e7 | 5.8e7
answer: A/8.686/sqrt(pi*f*1e6*4e-7*pi*s)*1e6
unit: µm
tolerance: 0.5%

## How thick must a sheet (σ = {s} S/m) be to absorb {A} dB at {f} MHz?

::: right
Right. $t = (A/8.686)\delta$ = {answer} µm.
:::

::: misses
- [any] Not yet. Each skin depth absorbs 8.686 dB.
:::
:::

::: check
given: Aw = 100 | 140; s1 = 20 | 30
answer: s1
unit: dB
tolerance: 0.5%

## A box's walls give {Aw} dB, but a ventilation slot alone gives only {s1} dB. About what does the box give overall?

::: right
Right. The weakest path wins: about {s1} dB.
:::

::: misses
- [Aw] Leakage through the slot far exceeds what gets through the walls.
- [Aw + s1] Shielding paths are in parallel; the leakiest one sets the total.
- [any] Not yet. The worst opening dominates.
:::
:::

::: check
kind: choice

## A transformer's 50 Hz magnetic field disturbs a sensitive circuit nearby. Which shield works best?

- [ ] A thin copper foil box
- [ ] A coat of conductive paint
- [x] A thick enclosure of high-permeability steel or mu-metal
- [ ] Aluminum mesh

::: misses
- [1] At 50 Hz copper's skin depth is about 9 mm, and a low-impedance magnetic field reflects poorly: thin copper barely helps.
- [2] Far too thin and lossy for a low-frequency magnetic field.
- [4] Mesh is aimed at high-frequency electric fields.
:::
:::

::: check
kind: parts
given: t = 0.1 | 0.5 | 2; d = 0.0085 | 0.082 | 0.26

## A shield {t} mm thick has a skin depth of {d} mm at the frequency of interest.

::: part
answer: 8.686*t/d
unit: dB
tolerance: 0.5%

### What is its absorption loss?

::: misses
- [any] 8.686 dB per skin depth.
:::
:::

::: part
answer: t/d
tolerance: 0.5%

### How many skin depths thick is it?

::: misses
- [any] t/δ.
:::
:::
:::

::: check
kind: parts
given: l = 1 | 5 | 20; f = 100 | 1000

## A shield has a slot {l} cm long. Consider {f} MHz.

::: part
answer: 20*log(29.98/(f/1000)/(2*l*1)/1)*step(29.98/(f/1000)/(2*l) - 1)
unit: dB
tolerance: 0.5%

### Estimate its shielding effectiveness, $20\log_{10}(\lambda/2l)$, or 0 if the slot is resonant or longer.

::: misses
- [any] λ = c/f, then $20\log_{10}(\lambda/2l)$.
:::
:::

::: part
answer: 29.98/(2*l)
unit: GHz
tolerance: 0.5%

### At what frequency does the slot become resonant?

::: misses
- [any] Where $\lambda = 2l$.
:::
:::
:::

::: explain
## Why does a long slot in a shield matter so much more than the metal's thickness?

::: model
A solid sheet blocks a wave by reflecting it and absorbing what enters, which for any practical metal at radio frequencies totals well over 100 dB. But a slot is a gap the wave can pass through without entering the metal at all. Currents induced in the shield must flow around the slot, and a slot whose length approaches half a wavelength acts as a resonant antenna, re-radiating on the far side. The leakage through the slot is then millions of times larger than what passes through the metal, so the shield's effectiveness is set by its worst opening, which is why seams, connectors and ventilation holes get the most attention.
:::
:::

::: practice

::: check
given: t = 0.2 | 1; f = 10 | 1000; s = 5.8e7
answer: 8.686*t*1e-3*sqrt(pi*f*1e6*4e-7*pi*s)
unit: dB
tolerance: 0.5%

## Absorption of {t} mm copper at {f} MHz?

::: misses
- [any] $8.686t/\delta$.
:::
:::

::: check
given: f = 2.4 | 5.8; l = 2 | 4
answer: 20*log(299.792458/f/(2*l*10))
unit: dB
tolerance: 0.5%

## Shielding of a {l} cm slot at {f} GHz?

::: misses
- [any] $20\log_{10}(\lambda/2l)$.
:::
:::

::: check
given: f = 50 | 200; I = 2 | 10
answer: 1.26e-6*f*1e6*1*I*1e-6/3*1e6
unit: µV/m
tolerance: 0.5%

## Field at 3 m from 1 m of cable with {I} µA common mode at {f} MHz?

::: misses
- [any] $1.26 \times 10^{-6}fLI/r$.
:::
:::
:::
