# 20 × 30 mm solenoid

On-axis magnetic field of an air-core solenoid 20 mm across and 30 mm long, solved from its geometry alone. 34.85 µT at the centre per amp-turn; the field holds within 1% of that over 5.3 mm of the axis and falls to 0.570 of it at the coil mouth.

Canonical page: https://makerportal.ai/lab/solenoid/20x30mm
Page title: 20 × 30 mm Solenoid Field — 34.85 µT per amp-turn

This markdown document and the HTML page above are rendered from the same solved values at build time, by the same functions. Nothing here is written by a language model and nothing is fetched at request time.

## Key figures

- **Geometry:** 20 × 30 mm — diameter × length, aspect ratio 1.50
- **Centre field:** 34.85 µT / A·turn — B = µ0·N·I / sqrt(L² + D²), exactly linear in turns × current
- **µ0·n·I overstates by:** 20.2% — the infinite-solenoid shortcut predicts 41.89 µT per amp-turn here
- **Field at the mouth:** 0.570 × centre — a long solenoid tends to 0.500; a short one keeps more
- **Within 1% of centre:** 5.3 mm — 17.5% of the winding length
- **Within 5% of centre:** 11.4 mm — 38.1% of the winding length
- **Closed form usable from:** 4 turns — below this a discrete winding is more than 1.0% from the current-sheet value
- **At 1,000 amp-turns:** 34.85 mT — 500 turns at 2 A, or 100 turns at 10 A — the field only sees the product

## Field along the axis

Field on the axis, per amp-turn, measured from the centre of the 30 mm winding. Positive and negative z are symmetric.

| z from centre | Field per A·turn | Fraction of centre | |
|---|---|---|---|
| 0.0 mm | 34.85 µT | 1.000 | centre |
| 3.8 mm | 34.13 µT | 0.979 |  |
| 7.5 mm | 31.71 µT | 0.910 |  |
| 11.3 mm | 26.93 µT | 0.773 |  |
| 15.0 mm | 19.87 µT | 0.570 | coil mouth |
| 22.5 mm | 7.67 µT | 0.220 |  |
| 30.0 mm | 3.02 µT | 0.087 |  |
| 45.0 mm | 0.79 µT | 0.023 |  |

## Turns and current

The centre field is exactly linear in the product of turns and current, so only that product appears here.

| Amp-turns (N × I) | Centre field |
|---|---|
| 100 | 3.49 mT |
| 500 | 17.43 mT |
| 1,000 | 34.85 mT |
| 5,000 | 174.26 mT |

## Questions this page answers

### What is the magnetic field inside a 20 × 30 mm solenoid?

34.85 µT at the centre of the winding, per amp-turn, solved as B = µ0·N·I / sqrt(L² + D²). The field scales exactly with the product of turns and current, so 34.85 mT at 1,000 amp-turns — 500 turns at 2 A, or 100 turns at 10 A, give the same number. This is an air core: no ferromagnetic material is assumed anywhere on this page.

### How wrong is µ0·n·I for a 20 × 30 mm coil?

It overstates the centre field by 20.2%. The infinite-solenoid shortcut predicts 41.89 µT per amp-turn against the finite coil's 34.85 µT, and the whole difference is the factor 1/sqrt(1 + (D/L)²) that the infinite form drops. This coil is stubby at an aspect ratio of 1.50 (length ÷ diameter), and the shortcut gets worse the shorter and fatter the coil is.

### How uniform is the field along the axis of a 20 × 30 mm solenoid?

The on-axis field stays within 1% of its centre value over 5.3 mm — 17.5% of the 30 mm winding — and within 5% over 11.4 mm. At the mouth of the coil it has fallen to 0.570 of the centre value. A long solenoid tends to exactly 0.5 there; a short one keeps much more, because both ends of a short winding are close to the point being measured.

### How many turns does a 20 × 30 mm coil need before the closed-form field is trustworthy?

4 turns. Below that the winding is a stack of separated rings rather than a sheet of current, and the closed form is out by more than 1.0%. At that count the discrete sum lands 0.4% from it, and it stays inside the band out to 12 turns. This is checked against an independent Biot–Savart sum over the individual turns, not against the same formula rearranged.

### Does another coil size give the same field as a 20 × 30 mm one?

Yes — a 30 × 20 mm coil has exactly the same centre field of 34.85 µT per amp-turn, because the closed form depends on the two dimensions only through sqrt(L² + D²), which is symmetric in them. Everything else differs: that coil holds 0.721 of its centre field at its own mouth against this one's 0.570.

## Method and limits

The on-axis field is the current-sheet solenoid solved in closed form: B(z) = (µ0·n·I/2)·[(L/2 - z)/sqrt(R² + (L/2 - z)²) + (L/2 + z)/sqrt(R² + (L/2 + z)²)], which at the centre reduces to µ0·N·I / sqrt(L² + D²). The model is a uniform cylinder of azimuthal current, so it assumes an air core (µr = 1 — a ferromagnetic core multiplies the field by an effective permeability that depends on the core's own shape and is not computable from the winding), a single layer of closely spaced turns, and no end plates or return path. Only the axis is solved: off-axis the field is lower near the mouth and the radial component is not zero. The turn-count floor is measured against an independent Biot–Savart sum over discrete turns rather than against a rearrangement of the same formula. Nothing on this page is fetched, interpolated or recalled; it is solved from the two dimensions in the URL and µ0.

## Related tool

[Magnetic Field Simulator](https://makerportal.ai/lab/magnetic-field-tracer) — Trace field lines through a loop, Helmholtz pair, magnetic bottle, solenoid or dipole with exact Biot–Savart and RK4. Free, runs in your browser.

---

Source: MakerPortal — https://makerportal.ai/lab/solenoid/20x30mm. Free to quote and cite with attribution and a link to the canonical page.
