---
title: Magnetic force and actuators
heading: Magnetic pressure, relays and solenoid plungers
eyebrow: B6 · Lesson 9 · Magnetic force and actuators
xp: 40
---

::: hook
A relay's coil pulls its armature across a gap of half a millimeter with a few hundredths of a newton, then, once the gap has closed, holds it with a hundred times the force. A lifting electromagnet in a scrapyard holds a car. Both rely on the energy stored in the magnetic field across an air gap: the field pulls the two faces together as if the gap were full of compressed spring. That "magnetic pressure", $\frac{B^2}{2\mu_0}$, about 4 atmospheres at 1 T, is the key to sizing every electromagnetic actuator.
:::

::: play
- A relay coil of $NI$ ampere-turns pulls on an armature across a gap $g$ with pole area $A$. The curve is the force against the gap.
- The force grows as $1/g^2$: once the armature starts to move, the force rises faster than any spring holding it back, so it snaps shut.
- The readouts give the force when open (1 mm) and nearly closed (0.1 mm).
:::
:::

```sim plot
view: graph
x: g = 0.1..2 mm
y: F = 0.001..100 N log
slider: NI = 5..100 step 5 = 25 A
slider: A = 0.1..1 step 0.05 = 0.2 cm²
plot: 4*pi*1e-7*NI^2*A*1e-4/(2*(g/1000)^2) | label: pull on the armature
readout: force at 1 mm, N = 4*pi*1e-7*NI^2*A*1e-4/(2*0.001^2) | digits: 3
readout: force at 0.1 mm, N = 4*pi*1e-7*NI^2*A*1e-4/(2*0.0001^2) | digits: 3
readout: field in the gap at 1 mm, T = 4*pi*1e-7*NI/0.001 | digits: 3
```

::: predict
## A relay pulls with 0.03 N across a 0.5 mm gap. Once the gap closes to 0.05 mm, with the same coil current, about how hard does it pull?

- [ ] 0.03 N, the same
- [ ] 0.3 N
- [x] 3 N
- [ ] 30 N

::: reveal
About 3 N, a hundred times more. With the gap dominating the magnetic circuit, the field across it goes as $1/g$, and the force as $B^2$, so as $1/g^2$: ten times smaller gap, a hundred times the force. That's why a relay snaps shut once it starts moving, and why it can be held closed with far less current than it took to pull in.
:::
:::

::: nameit
## Magnetic pressure

The field in a gap stores energy at density $\frac{B^2}{2\mu_0}$. Pulling two faces apart by $dx$ adds a sliver of gap and so takes extra energy; that work is done against an attractive force

$$F = \frac{B^2A}{2\mu_0}$$

on a pole face of area $A$. The **magnetic pressure** $\frac{B^2}{2\mu_0}$ is about 400 kPa at 1 T: 40 N per square centimeter. Saturation of the iron, near 1.5 to 2 T, caps it.

## Relays and solenoid actuators

When an air gap $g$ dominates the magnetic circuit (B5.11), $B \approx \frac{\mu_0NI}{g}$, so

$$F \approx \frac{\mu_0(NI)^2A}{2g^2}$$

The steep $1/g^2$ gives **snap action**, and it means the **hold current** can be far below the **pull-in current**. Relay datasheets give both; drivers often apply full voltage to pull in, then reduce it to save power and heat.

## The energy method

In general, with the current held constant, an actuator's force is the rate its inductance changes with position:

$$F = \frac{I^2}{2}\frac{dL}{dx}$$

Anything that moves to increase the inductance is pulled that way: a plunger drawn into a coil, an armature closing a gap.
:::

::: example
## What pressure does a 1 T field exert across a gap, and what force does that give on a 1 cm² pole?

::: solution
1. **Magnetic pressure.**
   $$\begin{aligned} p &= \frac{B^2}{2\mu_0} \\ &= \frac{1}{2 \times 4\pi \times 10^{-7}} \\ &= 3.98 \times 10^5\ \text{Pa} \end{aligned}$$
   about 4 atmospheres.
2. **Force on 1 cm².**
   $$\begin{aligned} F &= 3.98 \times 10^5 \times 10^{-4} \\ &= 40\ \text{N} \end{aligned}$$
   the weight of a 4 kg mass.

**Answer:** the field exerts $3.98 \times 10^5$ Pa, about 4 atmospheres, which gives 40 N on a 1 cm² pole.
:::
:::

::: example
## A relay coil gives 25 ampere-turns across a 0.5 mm gap with a 0.2 cm² pole. Find the field and force, and the force when the gap closes to 0.05 mm.

::: solution
1. **Field in the gap.**
   $$\begin{aligned} B &= \frac{4\pi \times 10^{-7} \times 25}{5 \times 10^{-4}} \\ &= 0.063\ \text{T} \end{aligned}$$
2. **Force.**
   $$\begin{aligned} F &= \frac{0.063^2 \times 2 \times 10^{-5}}{2 \times 4\pi \times 10^{-7}} \\ &= 0.031\ \text{N} \end{aligned}$$
3. **Gap closed to 0.05 mm.** The field is ten times higher, 0.63 T, and the force a hundred times larger:
   $$100 \times 0.031\ \text{N} = 3.1\ \text{N}$$

**Answer:** at 0.5 mm the field is 0.063 T and the force 0.031 N; at 0.05 mm they rise to 0.63 T and 3.1 N.
:::
:::

::: check
given: B = 0.5 | 0.8 | 1.5
answer: B^2/(2*4*pi*1e-7)/1000
unit: kPa
tolerance: 0.5%

## What magnetic pressure does a {B} T field exert across a gap?

::: right
Right. $\frac{B^2}{2\mu_0}$ = {answer}.
:::

::: misses
- [B^2/(4*pi*1e-7)/1000] Include the factor $\frac12$.
- [B/(2*4*pi*1e-7)/1000] Pressure goes as $B^2$.
- [any] Not yet. Energy density $\frac{B^2}{2\mu_0}$.
:::
:::

::: check
given: B = 0.5 | 1.2; A = 1 | 10
answer: B^2*A*1e-4/(2*4*pi*1e-7)
unit: N
tolerance: 0.5%

## A {B} T field crosses a gap between pole faces of {A} cm². What force pulls them together?

::: right
Right. $\frac{B^2A}{2\mu_0}$ = {answer}.
:::

::: misses
- [B^2*A/(2*4*pi*1e-7)] Convert cm² to m².
- [any] Not yet. Magnetic pressure times area.
:::
:::

::: check
given: NI = 20 | 100; g = 0.2 | 1
answer: 4*pi*1e-7*NI/(g/1000)
unit: T
tolerance: 0.5%

## A coil of {NI} ampere-turns drives flux across a {g} mm gap that dominates its magnetic circuit. What field is in the gap?

::: right
Right. $B \approx \frac{\mu_0NI}{g}$ = {answer}.
:::

::: misses
- [4*pi*1e-7*NI/(2*g/1000)] With one gap dominating, all the ampere-turns drop across it.
- [any] Not yet. $Hg = NI$, so $B = \mu_0NI/g$.
:::
:::

::: check
given: NI = 20 | 60; A = 0.2 | 0.5; g = 0.3 | 1
answer: 4*pi*1e-7*NI^2*A*1e-4/(2*(g/1000)^2)
unit: N
tolerance: 0.5%

## A relay has {NI} ampere-turns, a {A} cm² pole and a {g} mm gap. What force does it pull with?

::: right
Right. $\frac{\mu_0(NI)^2A}{2g^2}$ = {answer}.
:::

::: misses
- [4*pi*1e-7*NI^2*A*1e-4/(2*(g/1000))] The force goes as $1/g^2$.
- [any] Not yet. $B = \mu_0NI/g$, then $\frac{B^2A}{2\mu_0}$.
:::
:::

::: check
given: g1 = 0.5 | 1; g2 = 0.05 | 0.1
answer: (g1/g2)^2
tolerance: 0.5%

## A relay's gap closes from {g1} mm to {g2} mm at the same current. By what factor does its force grow?

::: right
Right. $F \propto 1/g^2$: {answer}.
:::

::: misses
- [g1/g2] Force goes as the square of the field, so $1/g^2$.
- [any] Not yet. $\left(\frac{g_1}{g_2}\right)^2$.
:::
:::

::: check
given: B = 0.5 | 1; A = 1 | 4; g = 0.5 | 2
answer: B^2/(2*4*pi*1e-7)*A*1e-4*g/1000*1000
unit: mJ
tolerance: 0.5%

## A {g} mm gap between {A} cm² poles carries {B} T. How much energy is stored in the gap?

::: right
Right. $\frac{B^2}{2\mu_0} \times Ag$ = {answer}.
:::

::: misses
- [B^2/(2*4*pi*1e-7)*A*1e-4*1000] Multiply by the gap's volume, area times length.
- [any] Not yet. Energy density times volume.
:::
:::

::: explain
## Why can a relay be held closed with much less current than it takes to pull it in?

::: model
The force on the armature depends on the field in the air gap, and with the gap dominating the magnetic circuit, that field is roughly the ampere-turns divided by the gap length. When the relay is open, the gap is large, so a lot of current is needed to make enough field and force to overcome the return spring. Once it closes, the gap is tiny, so the same field, and even more force, comes from a small fraction of the current. Many relay drivers exploit this to cut the holding power by a large factor.
:::
:::

::: practice

::: check
given: F = 10 | 100; B = 0.8 | 1.2
answer: F/(B^2/(2*4*pi*1e-7))*1e4
unit: cm²
tolerance: 0.5%

## What pole area gives {F} N of pull at {B} T?

::: misses
- [any] $A = F/(B^2/2\mu_0)$.
:::
:::

::: check
given: k = 2..10 int
answer: k^2
tolerance: 0.5%

## A relay's coil current is multiplied by {k}, with the gap unchanged. By what factor does its force grow?

::: misses
- [k] $F \propto (NI)^2$.
- [any] $k^2$.
:::
:::

::: check
given: I = 0.5 | 2; dL = 10 | 50
answer: I^2/2*dL*1e-3
unit: N
tolerance: 0.5%

## A plunger's coil carries {I} A, and its inductance grows by {dL} mH per meter of travel. What force pulls it in?

::: misses
- [any] $F = \frac{I^2}{2}\frac{dL}{dx}$.
:::
:::
:::
