Formula and Method for Solenoid Magnetic Field
A solenoid is a coil of wire wound in a tight helix; when current flows through it, the coil produces a magnetic field concentrated inside the windings. Applying Ampère's law to an idealized (infinitely long, tightly-wound) solenoid shows that the field inside is uniform and points along the coil's axis, with magnitude B = μ₀ × n × I, where μ₀ = 4π×10⁻⁷ T·m/A is the permeability of free space, n = N/L is the number of turns per meter of coil length, and I is the current in amperes. If the coil is wound around a magnetic core instead of air, the field scales up by the core's relative permeability: B = μ₀ × μr × n × I.
How the calculation works
Enter the total number of turns (N) and the coil's length (L), and the calculator first finds the turns density n = N/L in turns per meter. It multiplies n by the current I to get the magnetic field intensity H = n × I (in amperes per meter) — a quantity that depends only on the winding geometry and current, not on any core material. Multiplying H by μ₀ and the core's relative permeability μr gives the magnetic flux density B = μ₀ × μr × H in tesla, which the tool also converts to gauss (1 T = 10,000 G) for reference.
Common mistakes
- Using total turns instead of turns per length: the formula needs n = N/L, not N by itself — a coil with 500 turns over 1 m has a very different field than the same 500 turns over 10 cm.
- Mixing length units: keep the coil length in one consistent unit before computing n; convert inches or millimeters to meters first (this calculator's unit selector does that for you).
- Forgetting the core multiplier: a bare-wire estimate assumes μr = 1 (air/vacuum); an iron or ferrite core can multiply the field by a factor of 100 or more, so leaving μr at 1 for a cored coil drastically underestimates B.
- Trusting the formula for short, fat coils: B = μ₀nI is the infinite-solenoid limit; it overstates the field near the open ends of a real coil and loses accuracy when the length is not much greater than the diameter.
Real-world applications
- Electromagnet and solenoid-valve design uses B = μ₀μrnI to pick a turns count and current that hit a target force or flux without overheating the winding.
- Inductor and transformer coil design uses the same turns-density relationship to estimate the field (and, from it, inductance) inside a wound core.
- Physics lab experiments (e.g., measuring the field of a solenoid with a Hall probe or gaussmeter) use this formula as the theoretical prediction to check against a measured value.
- MRI and NMR magnet coils, relay coils, and speaker voice-coil actuators all rely on the same turns-per-length and permeability relationship at very different scales of current and field strength.
Frequently Asked Questions
What is the formula for the magnetic field inside a solenoid?
For an ideal (long, tightly-wound) solenoid, the field inside is B = μ₀ × n × I, where μ₀ = 4π×10⁻⁷ T·m/A is the permeability of free space, n = N/L is the number of turns per meter, and I is the current in amperes. If the coil is wound around a magnetic core, multiply by the core's relative permeability: B = μ₀ × μr × n × I.
Does adding an iron core increase the magnetic field?
Yes. A ferromagnetic core (soft iron, ferrite, etc.) multiplies the field by its relative permeability μr, which can range from about 100 to several thousand, producing a much stronger field than an air core (μr = 1) for the same current. This holds until the core saturates, after which further current gives little extra field.
Why is B = μ₀nI only accurate for long solenoids?
The formula comes from applying Ampère's law to an infinitely long solenoid, which produces a perfectly uniform field inside and zero field outside. Real solenoids are finite, so the field is strongest and most uniform near the center and drops off near the open ends (to roughly half the center value right at an end). The approximation is accurate when the coil's length is much greater than its diameter.
What is the difference between B and H in this calculator?
H is the magnetic field intensity (or magnetizing field), H = n × I, measured in amperes per meter — it depends only on the winding geometry and current, not the core material. B is the magnetic flux density, B = μ₀ × μr × H, measured in tesla — it includes the amplifying effect of any core material via μr.
Common Tip Percentages
| Service | Typical Tip Range | Notes |
| Restaurant (sit-down) | 15–20% | 20%+ for exceptional service |
| Food delivery | 10–20% | Consider extra for long distances |
| Taxi / rideshare | 10–20% | More for assistance with luggage |
| Hotel housekeeping | $2–5/night | Leave daily, not just at checkout |
| Barber / hair salon | 15–20% | On pre-discount total |
| Pizza delivery | 10–15% or $3–5 minimum | Higher in bad weather |
General Household Budget Ratios (50/30/20 Rule)
| Category | % of Net Income | Examples |
| Needs | 50% | Rent, groceries, utilities, insurance |
| Wants | 30% | Dining out, entertainment, hobbies |
| Savings / Debt | 20% | Emergency fund, retirement, extra payments |
Common Measurement Conversions for Everyday Use
| Quantity | US / Imperial | Metric Equivalent |
| 1 cup | 8 fl oz | 237 mL |
| 1 pint | 16 fl oz | 473 mL |
| 1 quart | 32 fl oz | 946 mL |
| 1 gallon | 128 fl oz | 3.785 L |
| 1 lb | 16 oz | 453.6 g |
| 1 ft | 12 in | 30.48 cm |