The Core Inductance Formula Solenoid Builders Use
If you are winding your own chokes, designing custom transformers, or building sensor coils, you need to know exactly how many turns of wire to lay down. The fundamental inductance formula solenoid equation gives you that answer, provided your coil is longer than it is wide.
The direct answer for the inductance of a long, tightly wound solenoid is:
L = (μ0 · μr · N2 · A) / l
Before you plug numbers into your calculator, you must understand what each symbol represents and the strict SI units required. Using centimeters instead of meters is the most common reason DIY inductors fail to match their theoretical designs.
| Symbol | Parameter | Standard SI Unit | Notes & Constants |
|---|---|---|---|
| L | Inductance | Henries (H) | Realistic bench magnitudes: 1 μH to 100 μH for air cores; 1 mH to 50 mH for ferrite cores. |
| μ0 | Permeability of free space | H/m | Constant: 4π × 10-7 H/m (approx. 1.2566 × 10-6 H/m). |
| μr | Relative permeability | Dimensionless | Air = 1. Ferrite = 20 to 10,000 depending on material mix (e.g., Mix 43 vs Mix 77). |
| N | Number of turns | Dimensionless | Total count of wire loops. Note that N is squared in the formula. |
| A | Cross-sectional area | Square meters (m2) | Calculated as π · r2. Must convert from mm2 or cm2 to m2. |
| l | Length of the coil | Meters (m) | The physical length of the wound section, not the total wire length. |
For a deeper theoretical background on how magnetic flux links these variables, the HyperPhysics inductance calculation pages provide excellent interactive derivations.
Rearranging the Equation for Bench Design
On the workbench, you rarely solve for L directly. Usually, you have a target inductance and a specific core, and you need to find out how many turns to wind. Here are the rearranged forms solving for each variable:
- Solving for Turns (N): N = √[(L · l) / (μ0 · μr · A)]
- Solving for Area (A): A = (L · l) / (μ0 · μr · N2)
- Solving for Length (l): l = (μ0 · μr · N2 · A) / L
- Solving for Core Permeability (μr): μr = (L · l) / (μ0 · N2 · A)
Solved Problems: Tracking Units from Paper to Breadboard
Let’s run two real calculations. The critical step in both is tracking the unit conversions explicitly. Skipping the conversion from centimeters to meters will throw your answer off by orders of magnitude.
Problem 1: Air-Core RF Choke
Given: You are winding an air-core solenoid for an AM radio antenna. You use 50 turns of 24 AWG magnet wire. The coil form has a diameter of 2 cm (radius = 1 cm), and the wound section is 10 cm long.
Find: The inductance (L).
- Convert to SI units:
Radius (r) = 1 cm = 0.01 m.
Length (l) = 10 cm = 0.1 m.
μr for air = 1. - Calculate Area (A):
A = π · r2 = π · (0.01 m)2 = 3.14159 × 10-4 m2. - Plug into the formula:
L = [ (4π × 10-7) · 1 · (50)2 · (3.14159 × 10-4) ] / 0.1 - Compute intermediate values:
Numerator = (1.2566 × 10-6) · 2500 · (3.14159 × 10-4) = 9.869 × 10-7 H·m. - Final Division:
L = (9.869 × 10-7) / 0.1 = 9.869 × 10-6 H.
Answer: 9.87 μH. This is a highly realistic magnitude for an air-core RF coil.
Problem 2: Finding Turns for a Ferrite Rod
Given: You need a 5 mH inductor for an audio crossover. You have a ferrite rod (μr = 1200) with a 1 cm diameter and a 5 cm winding length.
Find: The number of turns (N) required.
- Convert to SI units:
Target L = 5 mH = 0.005 H.
Radius = 0.5 cm = 0.005 m.
Length (l) = 5 cm = 0.05 m. - Calculate Area (A):
A = π · (0.005)2 = 7.854 × 10-5 m2. - Use the rearranged formula for N:
N = √[ (L · l) / (μ0 · μr · A) ] - Compute the denominator:
(4π × 10-7) · 1200 · (7.854 × 10-5) = 1.184 × 10-7. - Compute the numerator:
0.005 · 0.05 = 0.00025. - Divide and take the square root:
N = √(0.00025 / 1.184 × 10-7) = √(2111.4) = 45.95.
Answer: Wind 46 turns. Always round to the nearest whole integer for physical windings, then verify with an LCR meter.
Real-World Scenario: The Flyback Snubber That Fried a MOSFET
Formulas assume ideal conditions. When you ignore the physical reality of magnetic components, the math will lie to you. Here is a bench failure that cost a $15 power MOSFET and three hours of debugging.
The Setup: A hobbyist was building a 100W boost converter to drive a high-power LED array. The design required a 2.2 mH inductor capable of handling 4A of peak current without saturating. They selected a high-permeability ferrite rod (μr = 2500) to keep the turn count low and minimize copper losses (DCR).
The Numbers: Using the standard solenoid formula with μr = 2500, they calculated that exactly 18 turns would yield 2.2 mH. They wound the coil, measured it on a cheap handheld multimeter (which only tests at low frequencies and low signal levels), and got a reading close to 2.1 mH. Confident, they soldered it into the circuit.
The Outcome: Upon powering the 50 kHz PWM drive, the main switching MOSFET instantly overheated and shorted out, taking the gate driver with it. When they probed the circuit with an oscilloscope, the inductor current was ramping up violently, acting almost like a dead short. An LCR meter tested at 100 kHz revealed the actual inductance under operating conditions was barely 0.3 mH.
What Went Wrong: The builder ignored core saturation. A solid ferrite rod with μr = 2500 will saturate at a very low magnetic flux density (typically around 0.3 to 0.4 Tesla). At 4A, the core was fully saturated, causing the relative permeability to crash from 2500 down to roughly 1 (the permeability of air). To handle 4A, the core required a physical air gap.
However, introducing an air gap drastically reduces the effective permeability (μeff) of the core. If they had gapped the core to prevent saturation, the effective μr in the formula would have dropped from 2500 to perhaps 120. To get 2.2 mH with a gapped core, they would have needed closer to 80 turns, not 18. The All About Circuits guide on inductance factors details how physical core geometry and gaps alter these baseline assumptions.
Assumptions, Edge Cases, and Unit Traps
The solenoid formula is an approximation. It works beautifully when you respect its boundaries, but it breaks down if you treat it as an absolute law of physics. Keep these constraints in mind when designing your next coil.
When the Formula Applies (and When it Doesn’t)
The primary assumption of this formula is that the solenoid is "long"—meaning its physical length (l) is significantly greater than its diameter. This ensures the magnetic field inside is uniform and that "fringe fields" leaking out the ends are negligible.
If you are winding a short, fat coil (where length is less than or equal to the diameter), this formula will overestimate your inductance. For short coils, you must apply Nagaoka’s correction factor (a dimensionless multiplier less than 1.0) to account for the fringing flux at the ends of the coil.
Unit Mistakes That Break the Math
- The Area Trap: The formula requires Area in square meters. If your core diameter is 10 mm, the radius is 5 mm (0.005 m). Squaring 0.005 gives 0.000025 m2. Many builders calculate the area in mm2 (78.5 mm2) and forget to multiply by 10-6 to convert to m2, resulting in an inductance calculation that is a million times too high.
- Radius vs. Diameter: Calipers measure diameter. The area formula uses radius. Forgetting to divide your caliper reading by two before squaring it will quadruple your calculated area, and consequently, quadruple your calculated inductance.
- Treating μr as a Unit: Relative permeability is a ratio. It has no units. Do not attempt to cancel it out with meters or Henries during dimensional analysis.
By tracking your units explicitly, respecting the physical limits of your core materials, and verifying your final windings with a proper LCR meter at your circuit’s operating frequency, the solenoid inductance formula transitions from a textbook abstraction to a reliable bench tool.






