{"id":811,"date":"2026-08-14T23:11:49","date_gmt":"2026-08-14T23:11:49","guid":{"rendered":"https:\/\/physicsfundamentalsinfo.com\/blog\/?p=811"},"modified":"2026-08-24T13:03:40","modified_gmt":"2026-08-24T13:03:40","slug":"solenoid","status":"publish","type":"post","link":"https:\/\/physicsfundamentalsinfo.com\/blog\/electromagnetism\/solenoid\/","title":{"rendered":"What Is a Solenoid and How Does It Work?"},"content":{"rendered":"\n<div class=\"pf-citation\"><div class=\"eyebrow\">Definition<\/div><p>\n\nA solenoid is a long coil of wire that produces an almost uniform magnetic field along its axis when an electric current flows through it. The field strength inside is given by B = \u03bc0nI, where n is the number of turns per metre and I is the current in amperes.\n\n<\/p><\/div>\n\n<p>Turn a key in a car and something clunks under the bonnet before the engine spins. That clunk is a coil of copper wire pulling a steel rod sideways \u2014 a solenoid doing in a few milliseconds what no permanent magnet could do, because a permanent magnet cannot be switched off.<\/p>\n\n<p>The same trick runs your washing machine&#8217;s water valve, your doorbell, the lock on an office door and the scanner that images a torn knee ligament. Wind wire into a tube, push current through it, and you have a magnet you control with a switch.<\/p>\n\n<h2>What Is a Solenoid?<\/h2>\n\n<p>A solenoid is a wire wound into a long helix so that current circles the same axis many times, creating a strong, nearly uniform magnetic field inside the coil. Outside it, the field spreads out and loops back \u2014 exactly the pattern a bar magnet makes.<\/p>\n\n<p>The word gets used two ways, and the difference trips people up. To a physicist, a solenoid is the <em>geometry<\/em>: a helical coil. To an engineer, a &#8220;solenoid&#8221; is often the whole component \u2014 coil plus a movable iron plunger that gets yanked inward when the current switches on.<\/p>\n\n<p>Both meanings share one idea. Stacking many current loops close together makes their individual <a href=\"https:\/\/physicsfundamentalsinfo.com\/blog\/electromagnetism\/magnetic-field\/\">magnetic field<\/a> contributions add up along the axis and cancel sideways.<\/p>\n\n<p>One loop of wire makes a weak, awkwardly shaped field. Two hundred loops, side by side, make a field that is strong, straight and \u2014 crucially \u2014 the same everywhere in the middle. That uniformity is rare in physics, and it is the whole reason solenoids matter.<\/p>\n\n<div style=\"background:#F5F2EA;border:1px solid #D9CFB8;border-radius:4px;padding:18px;margin:28px 0;\">\n<figure class=\"pf-figure\" style=\"margin:1.6em 0;\"><img src=\"https:\/\/physicsfundamentalsinfo.com\/blog\/wp-content\/uploads\/2026\/08\/solenoid-wire-cross-sections-uniform-magnetic.webp\" width=\"1400\" height=\"762\" alt=\"Diagram of a solenoid showing wire cross-sections, uniform magnetic field inside the coil and field lines looping outside from north to south pole\" loading=\"lazy\" decoding=\"async\" style=\"width:100%;height:auto;max-width:700px;display:block;margin:0 auto;\" \/><\/figure>\n<\/div>\n\n<p style=\"text-align:center;font-size:13px;color:#1F2E47;font-style:italic;margin-top:8px;\">Cross-section of a solenoid. Current flows out of the page along the top wires and into the page along the bottom, so the field inside points from the S end to the N end.<\/p>\n\n<h2>The Solenoid Formula: B = \u03bc<sub>0<\/sub>nI<\/h2>\n\n<p>The magnetic field inside a long solenoid is the product of three things: the permeability of free space, the turns per metre, and the current.<\/p>\n\n<div class=\"pf-formula\">B = \u03bc<sub>0<\/sub>nI<\/div>\n\n<div class=\"pf-table-scroll\" style=\"display:block;width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:1.5em 0;\">\n<table style=\"width:100%;border-collapse:collapse;\">\n<thead>\n<tr style=\"background:#0A1628;color:#FAF6EE;\">\n<th style=\"padding:10px;border:1px solid #D9CFB8;text-align:left;\">Symbol<\/th>\n<th style=\"padding:10px;border:1px solid #D9CFB8;text-align:left;\">Quantity<\/th>\n<th style=\"padding:10px;border:1px solid #D9CFB8;text-align:left;\">SI unit<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\"><strong>B<\/strong><\/td>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\">Magnetic flux density inside the coil<\/td>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\">tesla (T)<\/td>\n<\/tr>\n<tr style=\"background:#F5F2EA;\">\n<td style=\"padding:10px;border:1px solid #D9CFB8;\"><strong>\u03bc<sub>0<\/sub><\/strong><\/td>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\">Permeability of free space, 4\u03c0 \u00d7 10<sup>-7<\/sup> T\u00b7m\/A<\/td>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\">tesla metre per ampere (T\u00b7m\/A)<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\"><strong>n<\/strong><\/td>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\">Turns per unit length, n = N \/ L<\/td>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\">per metre (m<sup>-1<\/sup>)<\/td>\n<\/tr>\n<tr style=\"background:#F5F2EA;\">\n<td style=\"padding:10px;border:1px solid #D9CFB8;\"><strong>I<\/strong><\/td>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\">Current in the wire<\/td>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\">ampere (A)<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\"><strong>N<\/strong><\/td>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\">Total number of turns (dimensionless count)<\/td>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\">\u2014<\/td>\n<\/tr>\n<tr style=\"background:#F5F2EA;\">\n<td style=\"padding:10px;border:1px solid #D9CFB8;\"><strong>L<\/strong><\/td>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\">Length of the winding<\/td>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\">metre (m)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n\n<h3>A Footnote on \u03bc<sub>0<\/sub> That Older Textbooks Miss<\/h3>\n\n<p>For decades \u03bc<sub>0<\/sub> was <em>defined<\/em> as exactly 4\u03c0 \u00d7 10<sup>-7<\/sup> T\u00b7m\/A. That stopped being true in 2019, when the SI was revised and the ampere was pinned to a fixed value of the elementary charge instead.<\/p>\n\n<p>\u03bc<sub>0<\/sub> is now a measured quantity. The current CODATA value published by <a href=\"https:\/\/www.nist.gov\/pml\/fundamental-physical-constants\" target=\"_blank\" rel=\"noopener\">NIST<\/a> is 1.25663706127(20) \u00d7 10<sup>-6<\/sup> T\u00b7m\/A, which differs from 4\u03c0 \u00d7 10<sup>-7<\/sup> only in about the tenth significant figure.<\/p>\n\n<p>So keep using 4\u03c0 \u00d7 10<sup>-7<\/sup>. It is right to nine figures, and no solenoid you wind will be accurate to three.<\/p>\n\n<h3>n Is Turns Per Metre \u2014 Not Total Turns<\/h3>\n\n<p>This single confusion costs more exam marks than anything else in the topic. The formula wants <strong>n<\/strong>, turns per metre, but the question almost always hands you <strong>N<\/strong>, the total count.<\/p>\n\n<div class=\"pf-formula\">n = N \/ L<\/div>\n\n<p>So a 500-turn coil wound over 25 cm gives n = 500 \/ 0.25 = 2000 turns per metre. Miss that division and your answer is out by a factor of the coil&#8217;s length in metres \u2014 often a factor of four or five.<\/p>\n\n<p>In practice, write down n as its own line before you touch B. Substituting numbers into the <a href=\"https:\/\/physicsfundamentalsinfo.com\/calculators\/magnetic-field\">Magnetic Field Calculator<\/a> is a fast way to check your arithmetic, since it rearranges B = \u03bc0nI for the field, the turns per metre or the <a href=\"https:\/\/physicsfundamentalsinfo.com\/blog\/electromagnetism\/electric-current\/\">electric current<\/a>.<\/p>\n\n<h3>What the Formula Quietly Assumes<\/h3>\n\n<p>B = \u03bc<sub>0<\/sub>nI describes an <em>ideal<\/em> solenoid: infinitely long, tightly wound, with nothing but air or vacuum inside. Real coils are none of those things, so the formula is an approximation \u2014 a very good one, provided the coil is long compared with its width.<\/p>\n\n<ul>\n<li><strong>Length much greater than diameter.<\/strong> At ten times longer than it is wide, the centre field is within about 0.5% of \u03bc<sub>0<\/sub>nI.<\/li>\n<li><strong>Turns evenly and tightly spaced.<\/strong> Gaps let field leak sideways between the windings.<\/li>\n<li><strong>No magnetic core.<\/strong> Slide iron inside and the field multiplies (see below).<\/li>\n<li><strong>Measured near the middle.<\/strong> Towards the ends the field falls away sharply.<\/li>\n<\/ul>\n\n<h3>Adding a Magnetic Core<\/h3>\n\n<p>Fill the coil with a ferromagnetic material and the field grows by the relative permeability \u03bc<sub>r<\/sub> of that material.<\/p>\n\n<div class=\"pf-formula\">B = \u03bc<sub>r<\/sub>\u03bc<sub>0<\/sub>nI<\/div>\n\n<p>Soft iron has a \u03bc<sub>r<\/sub> in the hundreds or thousands, which is why a nail wrapped in wire lifts paperclips that bare copper coils cannot. There is a ceiling, though: every ferromagnet saturates, typically somewhere near 1.5 to 2 tesla, and beyond that point extra current buys almost no extra field.<\/p>\n\n<h2>How a Solenoid Works<\/h2>\n\n<p>A solenoid works because the magnetic fields of its individual current loops reinforce each other along the axis and cancel each other sideways, leaving one straight, uniform field down the middle.<\/p>\n\n<p>Picture a single loop first. Its field lines thread through the middle of the loop and flare out around the wire, strongest right at the centre and weakening fast.<\/p>\n\n<p>Now set a second loop next to the first. Between them, one loop&#8217;s returning field points backwards while the other&#8217;s forward field points ahead \u2014 and the two partly cancel. Down the shared axis, though, both point the same way and add.<\/p>\n\n<p>Keep stacking. With enough loops, the sideways leakage between neighbours is squeezed out almost entirely, and what survives is a clean axial field of constant strength.<\/p>\n\n<h3>Deriving B = \u03bc<sub>0<\/sub>nI With Amp\u00e8re&#8217;s Law<\/h3>\n\n<p>The formal derivation takes four steps and one clever choice of loop. Amp\u00e8re&#8217;s law says that the magnetic field summed around any closed path equals \u03bc<sub>0<\/sub> times the current threading that path.<\/p>\n\n<div style=\"background:#F5F2EA;border:1px solid #D9CFB8;border-radius:4px;padding:18px;margin:28px 0;\">\n<figure class=\"pf-figure\" style=\"margin:1.6em 0;\"><img src=\"https:\/\/physicsfundamentalsinfo.com\/blog\/wp-content\/uploads\/2026\/08\/solenoid-amperes-law-rectangular-loop-straddling.webp\" width=\"1400\" height=\"700\" alt=\"Ampere's law rectangular loop straddling the wall of a solenoid, showing which of the four sides contribute to the magnetic field integral\" loading=\"lazy\" decoding=\"async\" style=\"width:100%;height:auto;max-width:700px;display:block;margin:0 auto;\" \/><\/figure>\n<\/div>\n\n<p style=\"text-align:center;font-size:13px;color:#1F2E47;font-style:italic;margin-top:8px;\">The Amp\u00e8rian rectangle. Only the side running inside the solenoid contributes to the integral, which is what makes the derivation so short.<\/p>\n\n<p><strong>Step 1 \u2014 choose the loop.<\/strong> Draw a rectangle that straddles the wall of the solenoid: one long side inside, one long side outside, two short sides crossing the windings.<\/p>\n\n<p><strong>Step 2 \u2014 kill three sides.<\/strong> The outside side sits where the ideal field is zero. The two short sides run perpendicular to the field, so B and the path direction have no component along each other.<\/p>\n\n<p><strong>Step 3 \u2014 evaluate the survivor.<\/strong> Along the inside side, of length L, the field is constant and parallel to the path. That side contributes B\u00b7L, and it is the entire integral.<\/p>\n\n<p><strong>Step 4 \u2014 count the current.<\/strong> If N turns pass through the rectangle, each carrying I, the enclosed current is NI. Setting B\u00b7L = \u03bc<sub>0<\/sub>NI and dividing by L gives B = \u03bc<sub>0<\/sub>(N\/L)I = \u03bc<sub>0<\/sub>nI.<\/p>\n\n<p>Notice what never appeared: the radius. The algebra never asked how wide the coil was, which is why a narrow solenoid and a fat one with the same turns per metre and the same current produce identical interior fields. MIT&#8217;s OpenCourseWare notes work through the same derivation, along with the finite-length case, in <a href=\"https:\/\/ocw.mit.edu\/courses\/8-02-physics-ii-electricity-and-magnetism-spring-2007\/378f66ab154c54f34f58ab72fbcf9414_ch9sourc_b_field.pdf\" target=\"_blank\" rel=\"noopener\">Chapter 9, Sources of Magnetic Fields<\/a>.<\/p>\n\n<div class=\"pf-sim-slot\"><div class=\"pf-sim-slot-header\"><span class=\"icon-dot\"><\/span><span class=\"label\">Solenoid Lab<\/span><\/div><div class=\"pf-sim-slot-body\"><style>.pf-sim-frame{width:100%;border:none;height:600px}@media(max-width:760px){.pf-sim-frame{height:1000px}}<\/style><iframe src=\"\/labs\/solenoid.html?embed=1\" class=\"pf-sim-frame\" loading=\"lazy\"><\/iframe><\/div><\/div>\n\n<h2>Why Is the Field Weaker at the Ends of a Solenoid?<\/h2>\n\n<p>The field at the open end of a long solenoid is almost exactly half its value at the centre. It is one of the tidiest results in magnetostatics, and it follows from simple symmetry.<\/p>\n\n<p>Stand at the middle of the coil and you have windings pushing field at you from both sides. Stand at the mouth and half those windings have vanished \u2014 there is nothing beyond the rim. Half the sources, half the field.<\/p>\n\n<p>The curve below is computed for a solenoid five times longer than it is wide. The centre sits at 98% of the ideal \u03bc<sub>0<\/sub>nI, and both ends land within a whisker of 50%.<\/p>\n\n<div style=\"background:#F5F2EA;border:1px solid #D9CFB8;border-radius:4px;padding:18px;margin:28px 0;\">\n<figure class=\"pf-figure\" style=\"margin:1.6em 0;\"><img src=\"https:\/\/physicsfundamentalsinfo.com\/blog\/wp-content\/uploads\/2026\/08\/solenoid-magnetic-field-strength-along-axis.webp\" width=\"1400\" height=\"640\" alt=\"Graph of magnetic field strength along the axis of a solenoid, flat at the centre and falling to half strength at each end\" loading=\"lazy\" decoding=\"async\" style=\"width:100%;height:auto;max-width:700px;display:block;margin:0 auto;\" \/><\/figure>\n<\/div>\n\n<p style=\"text-align:center;font-size:13px;color:#1F2E47;font-style:italic;margin-top:8px;\">On-axis field of a solenoid whose length is five times its diameter: flat across the middle, dropping to about half at each open end.<\/p>\n\n<p>This matters more than it looks. If you are building a coil to sit a sample in a known field, put the sample in the middle third \u2014 not near the mouth, where a centimetre of position error changes the field by several percent.<\/p>\n\n<h2>Real-World Examples of Solenoids<\/h2>\n\n<p>Solenoids appear anywhere a device needs to convert an electrical signal into either a mechanical push or a controlled magnetic field.<\/p>\n\n<h3>1. Starter Solenoid in a Car<\/h3>\n\n<p>Turning the ignition key sends a small current through a coil, which drags an iron plunger inward. That plunger slams a heavy contact shut, connecting the battery to the starter motor through cables thick enough to carry hundreds of amps \u2014 a tiny current switching an enormous one.<\/p>\n\n<h3>2. Valves in Washing Machines and Sprinklers<\/h3>\n\n<p>A solenoid valve holds a spring-loaded plug against a water inlet. Energise the coil, the plug lifts, water flows; cut the current and the spring snaps it shut. No moving parts touch the outside world, which is why the seal lasts for years.<\/p>\n\n<h3>3. Door Locks and Doorbells<\/h3>\n\n<p>Electric strike locks use a solenoid to withdraw a bolt when a card is swiped. Old-fashioned doorbells use one to fling a small hammer at a chime bar \u2014 press, clunk, ding.<\/p>\n\n<h3>4. MRI Scanners<\/h3>\n\n<p>The bore of an MRI machine is a very large superconducting solenoid, and the uniformity is the entire point. Hydrogen nuclei in tissue only resonate at a sharply defined frequency if the field is the same everywhere, so the field must be flat to a few parts per million across the imaging volume.<\/p>\n\n<h3>5. Loudspeaker Voice Coils<\/h3>\n\n<p>A speaker&#8217;s voice coil is a short solenoid sitting in the gap of a permanent magnet. Feed it a rapidly reversing audio signal and it is pushed and pulled dozens to thousands of times a second, dragging the cone with it. This is one of the few solenoids designed to run on <a href=\"https:\/\/physicsfundamentalsinfo.com\/blog\/electromagnetism\/ac-vs-dc-current\/\">alternating current<\/a> rather than DC.<\/p>\n\n<figure style=\"margin:32px auto;max-width:640px;text-align:center;\">\n\n  <img decoding=\"async\" src=\"https:\/\/physicsfundamentalsinfo.com\/blog\/wp-content\/uploads\/2026\/08\/Screenshot_1.png\"\n\n       alt=\"Cutaway of a solenoid valve showing the wire coil and the iron plunger it pulls\"\n\n       loading=\"lazy\"\n\n       style=\"width:100%;height:auto;border-radius:4px;\" width=\"722\" height=\"794\">\n\n  <figcaption style=\"font-size:13px;color:#1F2E47;font-style:italic;margin-top:8px;\">A solenoid valve: energising the coil lifts the plunger and opens the flow path.<\/figcaption>\n\n<\/figure>\n\n<h2>Solenoid vs Other Current-Carrying Shapes<\/h2>\n\n<p>Bend a current-carrying wire differently and you get a completely different field. The comparison below is the quickest way to see what the solenoid geometry actually buys you.<\/p>\n\n<div class=\"pf-table-scroll\" style=\"display:block;width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:1.5em 0;\">\n<table style=\"width:100%;border-collapse:collapse;\">\n<thead>\n<tr style=\"background:#0A1628;color:#FAF6EE;\">\n<th style=\"padding:10px;border:1px solid #D9CFB8;text-align:left;\">Shape<\/th>\n<th style=\"padding:10px;border:1px solid #D9CFB8;text-align:left;\">Field formula<\/th>\n<th style=\"padding:10px;border:1px solid #D9CFB8;text-align:left;\">Where it applies<\/th>\n<th style=\"padding:10px;border:1px solid #D9CFB8;text-align:left;\">Uniform?<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\"><strong>Long straight wire<\/strong><\/td>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\">B = \u03bc<sub>0<\/sub>I \/ (2\u03c0r)<\/td>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\">Distance r from the wire<\/td>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\">No \u2014 falls as 1\/r<\/td>\n<\/tr>\n<tr style=\"background:#F5F2EA;\">\n<td style=\"padding:10px;border:1px solid #D9CFB8;\"><strong>Single circular loop<\/strong><\/td>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\">B = \u03bc<sub>0<\/sub>I \/ (2R)<\/td>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\">At the centre of the loop only<\/td>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\">No \u2014 drops off fast<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\"><strong>Solenoid<\/strong><\/td>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\">B = \u03bc<sub>0<\/sub>nI<\/td>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\">Anywhere well inside a long coil<\/td>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\">Yes \u2014 the key advantage<\/td>\n<\/tr>\n<tr style=\"background:#F5F2EA;\">\n<td style=\"padding:10px;border:1px solid #D9CFB8;\"><strong>Toroid<\/strong><\/td>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\">B = \u03bc<sub>0<\/sub>NI \/ (2\u03c0r)<\/td>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\">Inside the ring, radius r from its centre<\/td>\n<td style=\"padding:10px;border:1px solid #D9CFB8;\">No \u2014 varies as 1\/r<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n\n<p>The toroid is the interesting cousin. Bend a solenoid until its ends meet and the field is trapped entirely inside the ring, leaking almost nothing \u2014 but you lose uniformity, because the inner edge of the ring is closer to the axis than the outer edge.<\/p>\n\n<h2>Common Misconceptions About Solenoids<\/h2>\n\n<h3>&#8220;More turns always means a stronger field&#8221;<\/h3>\n\n<p>Not on its own. What matters is turns <em>per metre<\/em>. Double the turns while doubling the length and n is unchanged, so B is unchanged \u2014 you have simply used twice as much wire for the same field.<\/p>\n\n<p>Wind those extra turns into the same length, though, and the field really does double. The distinction is the whole content of the symbol n.<\/p>\n\n<h3>&#8220;A wider solenoid gives a stronger field&#8221;<\/h3>\n\n<p>The radius does not appear in B = \u03bc<sub>0<\/sub>nI at all. A coil the width of a pencil and one the width of a bucket give the same interior field, provided both have the same turns per metre and current.<\/p>\n\n<p>Width does change other things \u2014 the flux through the coil, the wire length needed, the resistance \u2014 but not the field strength inside.<\/p>\n\n<h3>&#8220;The field outside a solenoid is exactly zero&#8221;<\/h3>\n\n<p>Only for the idealised infinite coil. A real solenoid has ends, and field lines have to return through the outside space to close their loops. That external return field is precisely why a solenoid attracts a compass needle from across the bench and behaves like a bar magnet.<\/p>\n\n<h3>&#8220;An iron core multiplies the field without limit&#8221;<\/h3>\n\n<p>A core boosts B by \u03bc<sub>r<\/sub>, but only until the material saturates. Once every magnetic domain in the iron is aligned, there is nothing left to recruit, and further current raises the field only as fast as air would. Most soft irons run out of headroom somewhere around 1.5 to 2 tesla.<\/p>\n\n<h2>How Solenoids Relate to Induction, Inductance and Magnetic Fields<\/h2>\n\n<p>A solenoid sits at the junction of three ideas students usually meet separately, and it is the cleanest object on which to connect them.<\/p>\n\n<p>First, it is a field <em>source<\/em>. Everything the <a href=\"https:\/\/physicsfundamentalsinfo.com\/blog\/electromagnetism\/magnetic-field\/\">magnetic field<\/a> topic says about forces on moving charges applies inside the coil, with the convenient bonus that B is the same everywhere you might place a charge.<\/p>\n\n<p>Second, change the current and the flux through the coil changes with it \u2014 which is <a href=\"https:\/\/physicsfundamentalsinfo.com\/blog\/electromagnetism\/electromagnetic-induction\/\">electromagnetic induction<\/a> waiting to happen. The induced EMF follows <a href=\"https:\/\/physicsfundamentalsinfo.com\/blog\/electromagnetism\/faradays-law-formula\/\">Faraday&#8217;s law<\/a>, and because a solenoid&#8217;s flux is easy to write down, it is the standard worked example.<\/p>\n\n<p>Third, that self-induced EMF opposes the change that caused it, which is what we call inductance. A solenoid is the archetypal inductor for exactly this reason.<\/p>\n\n<p>There is a practical limit lurking here too. You cannot simply crank I upward to get more field, because the winding&#8217;s <a href=\"https:\/\/physicsfundamentalsinfo.com\/blog\/electromagnetism\/electrical-resistance\/\">electrical resistance<\/a> turns that current into heat at a rate proportional to I<sup>2<\/sup>, and the insulation has a temperature it will not survive.<\/p>\n\n<h2>Worked Problems<\/h2>\n\n<div class=\"pf-problem\"><div class=\"pf-problem-num\">Problem 1<\/div><div class=\"pf-problem-question\">A solenoid has 500 turns wound over a length of 25 cm and carries a current of 2.0 A. Find the magnetic field at its centre.<\/div><details><summary>Show Solution<\/summary><div class=\"pf-problem-solution\">\n\n<p><strong>Solution:<\/strong><\/p>\n\n<p>Step 1: The field inside a long solenoid is B = \u03bc0nI, where n = N \/ L.<\/p>\n\n<p>Step 2: n = N \/ L = 500 \/ 0.25 m = 2000 m<sup>-1<\/sup>.<\/p>\n\n<p>Step 3: B = (4\u03c0 \u00d7 10<sup>-7<\/sup> T\u00b7m\/A)(2000 m<sup>-1<\/sup>)(2.0 A) = 5.03 \u00d7 10<sup>-3<\/sup> T.<\/p>\n\n<p><strong>Answer: B = 5.0 \u00d7 10<sup>-3<\/sup> T (5.0 mT)<\/strong><\/p>\n\n<\/div><\/details><\/div>\n\n<div class=\"pf-problem\"><div class=\"pf-problem-num\">Problem 2<\/div><div class=\"pf-problem-question\">What current is needed to produce a 15 mT field inside a solenoid wound with 1200 turns per metre?<\/div><details><summary>Show Solution<\/summary><div class=\"pf-problem-solution\">\n\n<p><strong>Solution:<\/strong><\/p>\n\n<p>Step 1: Rearrange B = \u03bc0nI for the current: I = B \/ (\u03bc0n).<\/p>\n\n<p>Step 2: I = (15 \u00d7 10<sup>-3<\/sup> T) \/ [(4\u03c0 \u00d7 10<sup>-7<\/sup> T\u00b7m\/A)(1200 m<sup>-1<\/sup>)].<\/p>\n\n<p>Step 3: The denominator is 1.508 \u00d7 10<sup>-3<\/sup> T\u00b7m\/A \u00b7 m<sup>-1<\/sup>, so I = 9.95 A.<\/p>\n\n<p><strong>Answer: I = 9.9 A (2 s.f.)<\/strong><\/p>\n\n<\/div><\/details><\/div>\n\n<div class=\"pf-problem\"><div class=\"pf-problem-num\">Problem 3<\/div><div class=\"pf-problem-question\">A solenoid 0.40 m long must produce a field of 8.0 mT while carrying 3.0 A. How many turns of wire does it need?<\/div><details><summary>Show Solution<\/summary><div class=\"pf-problem-solution\">\n\n<p><strong>Solution:<\/strong><\/p>\n\n<p>Step 1: Find the required turns per metre first: n = B \/ (\u03bc0I).<\/p>\n\n<p>Step 2: n = (8.0 \u00d7 10<sup>-3<\/sup> T) \/ [(4\u03c0 \u00d7 10<sup>-7<\/sup> T\u00b7m\/A)(3.0 A)] = 2122 m<sup>-1<\/sup>.<\/p>\n\n<p>Step 3: Convert to a total count: N = nL = 2122 m<sup>-1<\/sup> \u00d7 0.40 m = 849 turns.<\/p>\n\n<p><strong>Answer: N = 849 turns (about 850)<\/strong><\/p>\n\n<\/div><\/details><\/div>\n\n<div class=\"pf-problem\"><div class=\"pf-problem-num\">Problem 4<\/div><div class=\"pf-problem-question\">For the solenoid in Problem 1, estimate the magnetic field just at its open end.<\/div><details><summary>Show Solution<\/summary><div class=\"pf-problem-solution\">\n\n<p><strong>Solution:<\/strong><\/p>\n\n<p>Step 1: At the end of a long solenoid, only half the windings lie to one side, so the field is about half the central value.<\/p>\n\n<p>Step 2: B_end = \u00bd B_centre = \u00bd (5.03 \u00d7 10<sup>-3<\/sup> T).<\/p>\n\n<p>Step 3: B_end = 2.51 \u00d7 10<sup>-3<\/sup> T.<\/p>\n\n<p><strong>Answer: B = 2.5 \u00d7 10<sup>-3<\/sup> T (2.5 mT), half the centre value<\/strong><\/p>\n\n<\/div><\/details><\/div>\n\n<div class=\"pf-problem\"><div class=\"pf-problem-num\">Problem 5<\/div><div class=\"pf-problem-question\">A coil wound at 500 turns per metre carries 0.50 A. Compare the field with an air core and with a soft-iron core of relative permeability 500.<\/div><details><summary>Show Solution<\/summary><div class=\"pf-problem-solution\">\n\n<p><strong>Solution:<\/strong><\/p>\n\n<p>Step 1: Air core: B = \u03bc0nI = (4\u03c0 \u00d7 10<sup>-7<\/sup>)(500)(0.50) = 3.14 \u00d7 10<sup>-4<\/sup> T.<\/p>\n\n<p>Step 2: With a core, B = \u03bcr\u03bc0nI, so multiply by \u03bcr = 500.<\/p>\n\n<p>Step 3: B = 500 \u00d7 3.14 \u00d7 10<sup>-4<\/sup> T = 0.157 T.<\/p>\n\n<p><strong>Answer: 3.1 \u00d7 10<sup>-4<\/sup> T in air, 0.157 T with the core \u2014 a 500-fold increase<\/strong><\/p>\n\n<p>Sanity check: 0.157 T is comfortably below iron&#8217;s saturation point of roughly 1.5\u20132 T, so treating \u03bcr as constant here is legitimate. Push the current ten times higher and it would not be.<\/p>\n\n<\/div><\/details><\/div>\n\n<div class=\"pf-problem\"><div class=\"pf-problem-num\">Problem 6<\/div><div class=\"pf-problem-question\">A 500-turn solenoid 25 cm long is unwound and rewound as two layers over 12.5 cm, using the same wire and the same 2.0 A current. What happens to the field inside?<\/div><details><summary>Show Solution<\/summary><div class=\"pf-problem-solution\">\n\n<p><strong>Solution:<\/strong><\/p>\n\n<p>Step 1: The total number of turns is unchanged at N = 500; only the length has halved.<\/p>\n\n<p>Step 2: n = N \/ L = 500 \/ 0.125 m = 4000 m<sup>-1<\/sup>, double the original 2000 m<sup>-1<\/sup>.<\/p>\n\n<p>Step 3: B = (4\u03c0 \u00d7 10<sup>-7<\/sup>)(4000)(2.0) = 1.01 \u00d7 10<sup>-2<\/sup> T.<\/p>\n\n<p><strong>Answer: The field doubles, from 5.0 mT to 1.0 \u00d7 10<sup>-2<\/sup> T (10 mT)<\/strong><\/p>\n\n<\/div><\/details><\/div>\n\n<div class=\"pf-problem\"><div class=\"pf-problem-num\">Problem 7<\/div><div class=\"pf-problem-question\">A solenoid of radius 2.0 cm has 2000 turns per metre and carries 2.0 A. Find the magnetic flux through one turn of the coil.<\/div><details><summary>Show Solution<\/summary><div class=\"pf-problem-solution\">\n\n<p><strong>Solution:<\/strong><\/p>\n\n<p>Step 1: Flux through a flat area perpendicular to a uniform field is \u03a6 = BA.<\/p>\n\n<p>Step 2: B = \u03bc0nI = (4\u03c0 \u00d7 10<sup>-7<\/sup>)(2000)(2.0) = 5.03 \u00d7 10<sup>-3<\/sup> T, and A = \u03c0r<sup>2<\/sup> = \u03c0(0.020 m)<sup>2<\/sup> = 1.257 \u00d7 10<sup>-3<\/sup> m<sup>2<\/sup>.<\/p>\n\n<p>Step 3: \u03a6 = (5.03 \u00d7 10<sup>-3<\/sup> T)(1.257 \u00d7 10<sup>-3<\/sup> m<sup>2<\/sup>) = 6.32 \u00d7 10<sup>-6<\/sup> Wb.<\/p>\n\n<p><strong>Answer: \u03a6 = 6.3 \u00d7 10<sup>-6<\/sup> Wb (6.3 \u03bcWb) per turn<\/strong><\/p>\n\n<\/div><\/details><\/div>\n\n<h2>Frequently Asked Questions<\/h2>\n\n<details class=\"pf-faq-item\"><summary>What is a solenoid in simple terms?<\/summary><div class=\"pf-faq-item-answer\">\n\nA solenoid is a coil of wire that acts like a magnet whenever electric current flows through it. Because the magnetism comes from the current rather than the material, it switches on and off with the circuit. Engineers also use the word for the complete device: coil plus a movable iron plunger that the coil pulls.\n\n<\/div><\/details>\n\n<details class=\"pf-faq-item\"><summary>What is the formula for the magnetic field inside a solenoid?<\/summary><div class=\"pf-faq-item-answer\">\n\nThe field inside a long solenoid is B = \u03bc0nI, where B is the flux density in tesla, \u03bc0 is the permeability of free space (4\u03c0 \u00d7 10<sup>-7<\/sup> T\u00b7m\/A), n is the turns per metre, and I is the current in amperes. Note that n is turns per metre, found from n = N \/ L, not the total number of turns N.\n\n<\/div><\/details>\n\n<details class=\"pf-faq-item\"><summary>Does the diameter of a solenoid affect the magnetic field inside it?<\/summary><div class=\"pf-faq-item-answer\">\n\nNo, the diameter does not appear in B = \u03bc0nI, so a narrow coil and a wide coil with the same turns per metre and current produce the same interior field. Diameter does change the total magnetic flux, because flux is field multiplied by cross-sectional area, and it changes how much wire the coil needs.\n\n<\/div><\/details>\n\n<details class=\"pf-faq-item\"><summary>Why is the magnetic field inside a solenoid uniform?<\/summary><div class=\"pf-faq-item-answer\">\n\nThe field is uniform because each turn contributes an almost identical axial field, and the sideways components from neighbouring turns cancel each other out. Applying Amp\u00e8re&#8217;s law to a rectangular loop shows the result contains no position variable at all, so B has the same value everywhere well inside a long coil.\n\n<\/div><\/details>\n\n<details class=\"pf-faq-item\"><summary>What is the difference between a solenoid and an electromagnet?<\/summary><div class=\"pf-faq-item-answer\">\n\nA solenoid is the coil geometry itself, while an electromagnet is any device that uses current to create a magnetic field, usually a coil wrapped around a ferromagnetic core. Every electromagnet built from a helical winding contains a solenoid, but a solenoid with nothing but air inside is still a solenoid.\n\n<\/div><\/details>\n\n<details class=\"pf-faq-item\"><summary>Is the magnetic field outside a solenoid actually zero?<\/summary><div class=\"pf-faq-item-answer\">\n\nOnly for an idealised infinitely long solenoid. A real coil has ends, and its field lines must loop back through the space outside to close, so a weak external field always exists. That return field is what makes a current-carrying solenoid deflect a nearby compass needle just as a bar magnet would.\n\n<\/div><\/details>\n\n<details class=\"pf-faq-item\"><summary>What happens when you put an iron core inside a solenoid?<\/summary><div class=\"pf-faq-item-answer\">\n\nThe field is multiplied by the core&#8217;s relative permeability, so B becomes \u03bcr\u03bc0nI. Soft iron has a relative permeability of several hundred to several thousand, which can raise the field by three orders of magnitude. The gain stops once the core saturates, typically near 1.5 to 2 tesla, after which extra current adds very little.\n\n<\/div><\/details>\n","protected":false},"excerpt":{"rendered":"<p>A solenoid is a coil of wire that produces an almost uniform magnetic field when current flows through it. This guide explains B = mu0nI, derives it with Ampere&#8217;s law, and works through seven problems, five real uses and the mistakes students make most.<\/p>\n","protected":false},"author":1,"featured_media":813,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-811","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-electromagnetism"],"_links":{"self":[{"href":"https:\/\/physicsfundamentalsinfo.com\/blog\/wp-json\/wp\/v2\/posts\/811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/physicsfundamentalsinfo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/physicsfundamentalsinfo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/physicsfundamentalsinfo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/physicsfundamentalsinfo.com\/blog\/wp-json\/wp\/v2\/comments?post=811"}],"version-history":[{"count":5,"href":"https:\/\/physicsfundamentalsinfo.com\/blog\/wp-json\/wp\/v2\/posts\/811\/revisions"}],"predecessor-version":[{"id":1442,"href":"https:\/\/physicsfundamentalsinfo.com\/blog\/wp-json\/wp\/v2\/posts\/811\/revisions\/1442"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/physicsfundamentalsinfo.com\/blog\/wp-json\/wp\/v2\/media\/813"}],"wp:attachment":[{"href":"https:\/\/physicsfundamentalsinfo.com\/blog\/wp-json\/wp\/v2\/media?parent=811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/physicsfundamentalsinfo.com\/blog\/wp-json\/wp\/v2\/categories?post=811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/physicsfundamentalsinfo.com\/blog\/wp-json\/wp\/v2\/tags?post=811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}