Ever stuck a compass near a wire and watched the needle swing like it had somewhere to be? That little twitch is the whole story of the magnetic field inside a current carrying wire — except most people only ever talk about the field around the wire, not what's happening in the metal itself.
Not obvious, but once you see it — you'll see it everywhere And that's really what it comes down to..
Here's the thing — if you've done any physics class, you've probably drawn circles around a wire with arrows showing the magnetic field looping outside. But the field doesn't just vanish at the edge of the copper. It keeps going. And inside, it looks completely different than you'd guess And that's really what it comes down to. Took long enough..
What Is the Magnetic Field Inside a Current Carrying Wire
So picture a straight wire. Not a thin ideal line from a textbook — a real one, with thickness. Because of that, current flows down the middle, electrons drifting along. Worth adding: that moving charge creates a magnetic field. Think about it: outside the wire, the field wraps around it in concentric circles. Inside, the field also circles the axis, but its strength changes depending on how far you are from the center.
This is where a lot of people lose the thread.
The short version is: inside a current carrying wire, the magnetic field isn't constant. It grows as you move outward from the center, hits its max right at the surface, then falls off outside. That's the part most diagrams skip Turns out it matters..
A Solid Cylinder, Not a Pipe
Most wires we care about are solid cylinders of conductor. Because the current is distributed, only the charge moving inside your radius contributes to the field at that point. Current is spread through the whole cross-section (assuming it's not AC at super high frequency, where skin effect pushes it outward — more on that later). That's a direct consequence of Ampère's law, and it's why the inside field behaves the way it does.
Uniform vs Non-Uniform Current
If the current density is uniform — same amount of current per square millimeter everywhere — the math is clean. The field inside scales linearly with distance from the center. If current clumps or flows unevenly, the picture distorts. But for learning the concept, uniform is the right place to start.
Why It Matters / Why People Care
Why does this matter? Because most people skip it — and then they get confused when real-world coils, cables, and busbars don't behave like the "infinitely thin wire" model they memorized.
Turns out, the field inside the wire affects things like resistive heating, inductance, and how nearby conductors talk to each other. In high-current applications — think power distribution or motor windings — the internal field is part of what determines the wire's own inductance and energy storage. Ignore it and your model is wrong.
And look, even if you're not designing transformers, understanding the inside field builds intuition. They live in the same space the current does. Worth adding: it shows you that magnetic fields aren't just "outside" phenomena. That mental shift makes electromagnetism feel less like magic and more like geometry.
How It Works (or How to Do It)
Let's actually break down the magnetic field inside a current carrying wire. I'll use the classic case: a long straight cylindrical wire, radius R, carrying total current I spread evenly.
Start With Ampère's Law
Ampère's law says the line integral of magnetic field around a closed loop equals μ₀ times the current enclosed. Because of that, for a circle of radius r inside the wire (r < R), symmetry tells us the field B is tangent to the loop and same magnitude all the way around. So B times 2πr equals μ₀ times the current inside that radius No workaround needed..
Find the Enclosed Current
Since current density J is uniform, J = I / (πR²). The area of our smaller circle is πr². So enclosed current I_enc = J times πr² = I (r² / R²). Plug that into Ampère's law and you get B = (μ₀ I r) / (2π R²). That's it. Inside the wire, B grows linearly with r.
At the Surface and Beyond
At r = R, the formula gives B = μ₀ I / (2π R) — the same as the thin-wire formula. Nice, it matches at the edge. Even so, outside (r > R), all the current is enclosed, so B = μ₀ I / (2π r), the familiar inverse drop. So the field peaks at the surface and then falls. In practice, the inside field is small compared to what you'd measure a few millimeters away if the wire is thick — but it's not zero, and it's not uniform And that's really what it comes down to..
No fluff here — just what actually works.
What About the Direction
Right-hand rule. Which means thumb along current, fingers curl in the direction of B. Inside or outside, the field circles the wire axis. No radial component, no along-axis component (for a straight wire). Just loops.
Skin Effect Changes the Story
Real talk — at DC and low frequency, uniform current is a fine assumption. But at high AC frequency, current crowds toward the surface. That's skin effect. When that happens, the current density isn't uniform, so the inside field is weaker than the linear model predicts. Also, at extreme frequencies, almost no current flows in the core, and the internal field nearly disappears. Worth knowing if you work with RF.
Hollow or Coaxial Cases
A coaxial cable carries current one way on the inner conductor, back on the shield. On top of that, inside the shield's thickness, it falls back to zero at the outer edge. Now, the net external field is zero — that's why coax doesn't radiate much. Inside the inner conductor, same linear rise. Here's the thing — between conductors, field follows the thin-wire rule. The inside of a current carrying wire is just one piece of a bigger field map.
Common Mistakes / What Most People Get Wrong
Honestly, this is the part most guides get wrong. They draw the field outside and stop. Or they say "the field is μ₀I/2πr" for all space, which is only true outside.
Another mistake: assuming the field is strongest at the center. Nope. Symmetry cancels it. People picture a glowing core of magnetism. Also, the field is zero on the axis and climbs to the surface. At the exact center (r = 0), B = 0. It's the opposite.
And here's what most people miss — direction of integration. Beginners often plug in total I for an inside point. That's why when you use Ampère's law inside, you must only count current enclosed by your loop. That gives a field larger outside than inside, which is nonsense and breaks continuity at the boundary.
I know it sounds simple — but it's easy to miss that current density, not total current, drives the inside field. Get that and the rest follows And that's really what it comes down to. And it works..
Practical Tips / What Actually Works
If you're trying to learn this or apply it, a few things that actually help:
- Sketch the cross-section. Draw the wire circle, mark r, and shade the enclosed area. Visualizing I_enc stops most errors.
- Memorize the shape, not just the formula. Linear rise inside, 1/r fall outside. If your graph isn't continuous at R, you messed up.
- Use real numbers. A 2 mm copper wire carrying 10 A: surface field is about 1 mT. Inside at half radius, half that. Tiny but measurable with a good sensor.
- Don't ignore frequency. If it's AC above a few kHz in thick wire, look up skin depth before trusting the uniform model.
- Teach it. Explain to a friend why center field is zero. If you can, you understand it.
One more: when building anything with multiple wires, remember each wire's internal field adds to the total inductance. Day to day, parallel conductors close together — like in a cable — have fields that partially cancel. Now, that's why twisting pairs reduces inductance and interference. The inside field is quiet, but it's part of the noise story Worth knowing..
FAQ
What is the magnetic field at the center of a current carrying wire? Zero. By symmetry, at r = 0 the enclosed current is zero, so Ampère's law gives B = 0. The field rises linearly from there to the surface.
Is the magnetic field inside a wire uniform? No. For uniform current density, it increases linearly with distance from the center. It's only uniform in weird engineered cases, not normal solid wires Small thing, real impact. That's the whole idea..
How does the field inside compare to outside? Inside, B grows with r up to the surface. Outside, it drops as 1/r. The surface is the peak. Inside is weaker than the outside value at the same radius would be if the wire were thin.
**Does AC
Does AC Change Anything?
When the current is alternating, the magnetic field no longer settles into a steady‑state shape. Two extra ingredients appear:
- Skin Effect – At frequencies above a few kilohertz in copper or aluminum, the current crowds toward the outer shell. The effective cross‑section shrinks to a layer whose thickness is roughly the skin depth
[ \delta = \sqrt{\frac{2\rho}{\omega\mu}} ]
where ρ is resistivity, ω the angular frequency, and μ the permeability. Inside the skin layer the field still follows the linear‑rise law, but the “core” of the wire carries almost no current. Consequently the external field is a little weaker than the DC prediction, and the inductance drops as the wire behaves more like a hollow tube Still holds up..
Quick note before moving on.
- Displacement Current – Maxwell’s correction adds a term to Ampère’s law that becomes noticeable when the electric field inside the conductor varies rapidly. In most low‑frequency circuits (audio, power‑line) this effect is negligible, but at tens of megahertz it can shift the phase of the magnetic field relative to the current, especially in tightly coupled loops or printed‑circuit traces.
Putting those together, the simple formulas you learned for DC still give a useful first approximation, provided you check two boxes:
- Frequency low enough that δ ≫ wire radius (skin effect negligible).
- Magnitude low enough that the electric field inside the metal stays quasi‑static (displacement current negligible).
If either condition fails, you need a full‑wave solver or at least the concept of complex‑permeability to keep the math honest No workaround needed..
Real‑World Example: A Telephone‑Cable Pair
Imagine a twisted pair of 0.That said, the inductance per unit length can be estimated by integrating the field over the cross‑section, and you’ll find it’s roughly half of what a DC calculation would suggest. 5 mm copper wires carrying a 100 mA differential signal at 1 MHz. On top of that, the magnetic field inside each conductor is therefore confined to that shell, and the external field is weaker than the textbook 1 mT surface value you’d compute for DC. On top of that, because the wires are thin, skin depth at that frequency is about 20 µm—roughly 4 % of the radius—so the current effectively flows in a thin shell. That reduction is why high‑speed data lines often use wider traces or microstrip geometries: they keep the effective inductance low while still providing the needed return path That's the part that actually makes a difference. Worth knowing..
Measuring the Inside Field
In practice you rarely need the exact B‑field at a point inside a conductor. Most engineers care about two things:
- Total inductance of a coil or a loop, which can be extracted from the external field pattern and the known geometry.
- Core saturation in magnetic devices, where the internal flux density must stay below a material‑specific limit (typically 1.5–2 T for silicon steel). If the calculated internal B approaches that threshold, designers either increase the wire cross‑section, reduce the turn count, or switch to a material with higher saturation.
A Hall probe placed just outside the wire can give you the surface field, and from there you can back‑calculate the enclosed current using Ampère’s law. If you need the field at a specific radius inside, a magnetic‑field sensor with a fine tip (e.g., a micro‑SQUID) can be inserted through a tiny drilled hole—though that’s more of a laboratory curiosity than a field‑service tool Simple, but easy to overlook..
Quick Checklist for Applying the Theory
| Situation | What to verify |
|---|---|
| DC in a solid cylindrical conductor | Use (B = \mu_0 I r / (2\pi R^2)) for (r \le R); (B = \mu_0 I / (2\pi r)) for (r \ge R). Now, |
| Magnetic core or ferromagnetic material | Remember that µ is no longer constant; use B‑H curves or complex permeability. Consider this: |
| Multiple nearby conductors | Superpose each wire’s field; account for mutual inductance and possible cancellation. |
| High‑frequency (> 10 kHz) in copper/aluminum | Compute δ, shrink the effective cross‑section, recalc (I_{\text{enc}}). |
| AC at low frequency | Confirm skin depth δ ≫ wire radius; otherwise adjust current distribution. |
| Design of inductors or transformers | Check that the calculated internal B stays below saturation; consider Litz wire to mitigate skin effect. |
Bottom Line
The magnetic field inside a current‑carrying wire is a neat, linear ramp that starts at zero and climbs to the surface value, after which it falls off as 1/r. The key to getting it right is to treat current density—not the total current—as the source of the field, and to remember that the field’s direction is set by the right‑hand rule around the wire’s axis Still holds up..
You'll probably want to bookmark this section.
When you move
When you move beyond a solitary straight conductor, the same principle—field proportional to the enclosed current—still governs the magnetic landscape, but the geometry dictates how the current distribution reshapes the field. In a multi‑turn coil, each loop contributes additively to the axial field inside the winding while the circumferential components largely cancel, yielding a nearly uniform B‑field in the core that scales with the ampere‑turn product (NI). For a solenoid of length L and radius a, the on‑axis field approximates
[ B_{\text{axis}} \approx \mu_0 \frac{NI}{L}\left[ \frac{z+L/2}{\sqrt{a^2+(z+L/2)^2}} - \frac{z-L/2}{\sqrt{a^2+(z-L/2)^2}} \right], ]
which reduces to the familiar (\mu_0 n I) (with (n=N/L)) for points far from the ends Not complicated — just consistent..
In printed‑circuit‑board (PCB) traces, the return‑path geometry—often a ground plane or a neighboring trace—creates a microstrip or stripline configuration. Here the magnetic field is largely confined between the signal conductor and its return, and the effective inductance per unit length can be extracted from the transverse electromagnetic (TEM) mode solution:
[ L' = \frac{\mu_0}{2\pi} \ln!\left(\frac{w+h}{h}\right) \quad\text{(microstrip)}, ]
where (w) is trace width and (h) the dielectric thickness. The internal field inside the trace still follows the linear‑ramp law for the portion of current that actually flows within the skin depth at the operating frequency; the remainder of the cross‑section carries negligible current and thus contributes little to B It's one of those things that adds up..
This is where a lot of people lose the thread.
When ferromagnetic materials are introduced, the permeability (\mu) becomes a function of the local B‑field, and the simple linear relationship (B=\mu H) no longer holds. So naturally, designers then rely on the material’s B‑H curve (or complex permeability (\mu' - j\mu'') for AC) to iterate: guess a field distribution, compute H from Ampère’s law, obtain B from the curve, and repeat until convergence. This iterative approach is essential for avoiding saturation in transformers, inductors, and magnetic shielding applications.
Practical tips for engineers
- Start with the current density – Whenever the cross‑section is not uniformly occupied (skin effect, plating, hollow conductors), compute (J(r)) first and then integrate (J) over the Amperian loop to find (I_{\text{enc}}).
- Use symmetry – Circular symmetry gives the simple (B \propto r) inside; rectangular or elliptical cross‑sections require numerical integration (e.g., finite‑element methods) but the same Ampere‑law principle applies.
- Check frequency effects – Compare skin depth (\delta = \sqrt{2/(\omega\mu\sigma)}) to the smallest dimension of the conductor; if (\delta) is less than ~½ the radius, treat the conductor as a thin shell.
- Validate with measurement – A Hall sensor clamped around the conductor yields the line integral (\oint B\cdot dl = \mu_0 I_{\text{enc}}); dividing by the known path length gives an average surface field that can be compared to the theoretical value.
- Account for mutual coupling – In bundles or PCB stacks, superpose fields from each conductor and subtract where currents flow opposite directions; this often reduces net inductance and can be exploited for differential signaling.
By treating the distribution of current as the true source of magnetic field and applying Ampère’s law with the appropriate geometry and material properties, engineers can predict internal B‑fields accurately enough for both low‑frequency power design and high‑frequency signal integrity work Worth keeping that in mind..
Conclusion
The magnetic field inside a current‑carrying wire rises linearly from the centre to the surface, then decays as (1/r) outside—a direct consequence of the enclosed current scaling with the area of the Amperian loop. When frequency pushes the current toward the skin, the effective conducting radius shrinks, preserving the linear‑ramp shape but within a thinner shell. Extending the concept to coils, transmission lines, and magnetic cores merely requires accounting for how the current density is redistributed by geometry, frequency, and material permeability. Armed with this mindset—current density first, symmetry second, and material response last—engineers can reliably estimate internal fields, prevent saturation, and optimize inductance across the full spectrum of electronic and electromechanical systems.