Frequently Asked Questions
Why does changing the current not change the inductance?
Inductance depends only on geometry, turns and core material. It describes how much flux the coil links per amp, so it is the same whether 0 A or 6 A flows. In the calculator, current enters only the field equation, which is why the inductance stays at 481.91 μH while the field moves. In a real iron-cored coil, saturation at high current does lower the effective inductance, which this tool does not model.
Why does a wider coil not give a stronger field?
For an ideal long solenoid the internal field depends on turns per metre and current only. Spreading the same turns around a bigger circle does not concentrate them, so the field stays at 11.78 mT when you change 25 mm to 50 mm. What a wider coil does change is the area the flux passes through, so the inductance rises with the square of the diameter.
How accurate is the inductance for a real coil?
It is the ideal long-solenoid figure, so it overstates real coils. For the default shape, about 3.2 times longer than wide, the true value is typically 10 to 15 percent lower. The gap widens for coils shorter than about twice their diameter. Multi-layer windings, wire spacing and a nearby metal case also shift the result, so measure the finished coil when the value matters.
Should I enter the inner or outer diameter of the winding?
The formula assumes a thin single layer, so for one layer use the diameter to the centre of the wire, which is the former diameter plus one wire thickness. For several layers, the mean diameter of the winding is a better compromise than the inner one. Entering the bare former diameter will slightly underestimate inductance for a thick multi-layer coil.
Is the field the same everywhere inside the coil?
No. The result is the field at the centre of an ideal long coil. In a real coil the field is close to that value through the middle section and falls toward the ends, reaching roughly half at each open face of a long solenoid. Outside the coil it drops away quickly. If you need a uniform field over a region, keep that region well inside the coil.
What value should I use for a ferrite rod?
Catalogue permeability for ferrite assumes a closed core, which a rod inside a coil is not. The effective permeability of an open rod is much lower and depends on its length to diameter ratio. Enter a modest value and treat the output as a rough guide, then measure. Very large μr values still produce impossible fields, which is why the page warns about saturation once B passes about 1.5 T.
Can I use this for a toroid?
Roughly, if you enter the mean circumference of the toroid as the coil length and the cross-section of the ring as the diameter. A toroid has no open ends, so the long-solenoid formula actually fits it better than it fits a short straight coil. For a round cross-section ring this gives a reasonable estimate; for a rectangular one, use a dedicated toroid formula.
How do I get a specific inductance with fewer turns?
Raise the area or shorten the coil, or add a magnetic core. Since inductance scales with N², halving the turns needs four times the area to compensate, which means doubling the diameter. Shortening the coil helps linearly but pushes you into the short-coil region where the formula overestimates. A core gives the biggest gain per turn but brings saturation limits.
Why does the page show magnetomotive force at all?
N × I is what actually drives flux around the magnetic circuit, so it lets you compare designs that trade turns for current. At 750 A·turns, 250 turns at 3 A and half that many turns at 6 A make the same field over the same length. The first design has four times the inductance, while the second carries twice the current through thicker wire.
Does the stored energy follow from these numbers?
Yes, with one more step you can do by hand. Stored energy is half of L times I squared. For the default, half of 481.91 μH times 9 is about 2.2 mJ. That matters when a coil is switched off quickly, because the energy has to go somewhere, which is why relay and solenoid drivers use a flyback diode.
The default coil: 250 turns, 80 mm long, 3 A
Out of the box the calculator describes a plain air-core coil. It has 250 turns wound over 80 mm, a core diameter of 25 mm, a current of 3 A and a relative permeability of 1, which means nothing but air or plastic inside the winding.
For that coil the headline result is 11.78 mT of flux density inside the winding. The supporting lines restate the same field as 117.81 Gauss, give the magnetomotive force as 750 A·turns (simply 250 times 3), and report the inductance as 481.91 μH.
You can check the field by hand. The permeability of free space is about 1.2566 × 10⁻⁶ H/m. Divide 250 turns by 0.08 m to get turns per metre, multiply by 3 A and by the constant, and you get 0.01178 T, which is 11.78 mT. The calculator works in metres internally, so the millimetre entries are divided by a thousand before anything else happens.
The inductance check is similar. The cross-section of a 25 mm core is π × 0.0125², about 4.91 × 10⁻⁴ m². Square the turns, multiply by that area and the constant, divide by 0.08 m, and the result is 4.82 × 10⁻⁴ H, the same 481.91 μH the page shows.
Two formulas, and which inputs each one ignores
The page runs two separate equations that share some inputs. The field uses B = μ0 × μr × N × I / length. The inductance uses L = μ0 × μr × N² × area / length. Seeing which inputs appear where explains most of the behaviour you will notice when you start changing numbers.
Current appears only in the field equation. Setting the current to 0 A drops the field to 0 mT, yet the inductance still reads 481.91 μH, because inductance is a property of the coil's shape and turns, not of whatever is flowing through it. Doubling the current to 6 A doubles the field to 23.56 mT and leaves the inductance alone.
Diameter appears only in the inductance equation. Doubling the core to 50 mm leaves the field at 11.78 mT but multiplies the inductance by four, to about 1.93 mH, since area grows with the square of the diameter. In an ideal long solenoid the field inside does not depend on how wide the coil is; it depends on turns per unit length and current.
Length divides both. Stretching the same 250 turns over twice the length halves the field to 5.89 mT and halves the inductance too. Spreading turns out thins them, and both results fall in proportion.
Turns count twice for inductance
The Lower and Higher presets on the page move only the turn count, and they show the most useful pattern in the tool. At 150 turns the field is 7.07 mT and the inductance is 173.49 μH. At 375 turns the field is 17.67 mT and the inductance is 1,084.31 μH.
The field follows the turns in a straight line. Going from 250 to 375 turns is a 50% increase, and 11.78 mT rises by 50% to 17.67 mT. The magnetomotive force follows the same line, from 750 to 1,125 A·turns.
Inductance does not. Because N is squared, a 1.5 times increase in turns gives a 2.25 times increase in inductance, which is why 481.91 μH jumps to 1,084.31 μH. Going down to 150 turns, 0.6 times the default, cuts inductance to 0.36 times, or 173.49 μH.
This is the practical lever if you are winding a coil to hit a target inductance. Adding turns is far more effective than adding diameter or shortening the coil, as long as you can fit them on the former. If you need a fixed number of microhenries, adjust the turns first and use length and diameter for fine tuning.
The long-solenoid assumption and short, fat coils
Both equations are the textbook result for an infinitely long solenoid. They assume the field inside is uniform and that all of it threads every turn. A real coil has ends, and near the ends the field spreads out and weakens. The shorter the coil is compared with its width, the more of its volume sits near an end.
The default coil is 80 mm long and 25 mm across, a ratio of about 3.2. That is long enough for the field formula to be a reasonable estimate at the middle of the coil, but the inductance formula already overstates the real value. For coils of this shape, correction factors from published tables put the true inductance roughly 10 to 15 percent below the ideal figure. Treat 481.91 μH as an upper bound rather than a measurement. The page adds a short-coil warning to its result sentence once the length falls below three times the diameter; the default sits just above that line, so no warning appears, but it is close.
The error grows quickly as the coil gets stubby. Enter a 10 mm length with the 25 mm diameter and the page reports 94.25 mT and about 3.86 mH. Neither number is trustworthy, because a coil wider than it is long behaves more like a flat loop. The page now says so in the result sentence, noting that the long-solenoid formula overstates both B and L, but it still prints the uncorrected figures.
A sensible rule: if the length is less than about twice the diameter, use the results only to compare designs with each other, and measure the finished coil with an LCR meter before relying on the value.
Relative permeability and iron cores
The μr field multiplies both results directly. Leave it at 1 for air, plastic, cardboard or any non-magnetic former. Raising it is meant to represent a ferromagnetic core such as soft iron or ferrite.
The formula itself has no ceiling. Enter a thousand for μr and the page reports 11.78 tesla, a thousand times the air-core field, along with an inductance near 0.48 H. No iron core reaches that field in a coil like this, and the result sentence warns that above about 1.5 to 2 T an iron core saturates, so the real field will be much lower. Ferromagnetic materials saturate, typically somewhere around 1 to 2 tesla for iron, and once saturated their effective permeability collapses toward that of air.
There is a second problem. The formula assumes the core fills the coil and is a closed, infinitely long rod. A short iron slug inside a coil, open at both ends, gives a much smaller boost than its catalogue μr suggests, because the air path outside the coil dominates the magnetic circuit.
So use μr above 1 only as a rough indication. When the saturation warning appears, the number on screen is no longer a prediction; saturation, not the formula, sets the real answer. The field cannot be set below 1, since no ordinary core material has a relative permeability lower than air in any useful sense.
Reading mT, Gauss and A·turns together
The page gives the field in two units because different sources use different ones. One millitesla equals 10 Gauss, so the default's 11.78 mT is 117.81 Gauss. Hall-effect probes and older magnet data sheets often read in Gauss; physics texts and most modern specifications use tesla.
For a sense of scale, the Earth's field at the surface is roughly 0.05 mT. The default coil produces a field a couple of hundred times stronger at its centre, which is plenty to deflect a compass or pull a small steel ball, but far below what a strong permanent magnet manages at its face.
The A·turns figure is the magnetomotive force. It is useful because it lets you trade current against turns. The default's 750 A·turns could come from 250 turns at 3 A or half as many turns at 6 A, and over the same length both give the same field. They do not give the same inductance or the same heat, though, which is why the choice matters.
Heat, wire size and what the coil can actually carry
Nothing in the calculator checks whether the winding can survive the current you type. A field figure of 23.56 mT at 6 A means nothing if the wire you plan to use overheats at 2 A. The safe current depends on wire gauge, how many layers are stacked, whether the coil is in free air and how long it runs.
Fitting 250 turns into 80 mm also constrains the wire. A single layer needs each turn to be about 0.32 mm wide, which is fine wire. Thicker wire means several layers, and once layers build up the effective diameter grows, so the inductance calculated from the inner core diameter becomes an underestimate for the outer turns.
Before you build, work out the wire length (turns times the circumference of each layer), look up its resistance, and use Ohm's law to see what voltage drives your target current and how much power the coil will dissipate. The electrical Ohm's law calculator on this site can handle that step.
Using the result to design an electromagnet or inductor
For a field target, start from the field equation, since diameter does not enter it. Decide the coil length the hardware allows, then pick turns and current so that N × I over the length gives the millitesla you need. Then check heating as above, and enter the diameter only to see what inductance you will end up with.
For an inductance target, the current field is irrelevant. Fix the length and diameter you can wind on, then adjust turns until the inductance line is a little above the value you want, to allow for the end effect described earlier. Wind the coil, measure it, and remove or add a few turns to trim.
In both cases the calculator is a fast first estimate. It is exact for the idealised long coil and gets less reliable as the coil gets shorter, fatter, multi-layered or iron-cored. A measurement of the finished part is the number to trust.