Solenoid Magnetic Field Calculator
Find internal field B = μ₀nI for ideal solenoid
Parameters
Controls
Calculated Values
Examples
n=500, I=2 A
Lab solenoid.
Visualization
Magnetic Field of a Solenoid
An ideal solenoid is a long helical coil with n turns per unit length carrying current I. Inside the mid-region (far from ends), the field is uniform, parallel to the axis, and given by B = μ₀nI. This is derived from superposing fields of many circular loops or by applying Ampère's law to a rectangular Amperian loop straddling the interior.
Turn density n = N/L where N is total turns and L is solenoid length in meters. Example: 500 turns/m with I = 2 A gives B = (4π×10⁻⁷)(500)(2) ≈ 1.26×10⁻³ T ≈ 1.3 mT — strong enough to pick up paper clips with an iron core.
Inserting a ferromagnetic core multiplies the field: B = μ₀μ_r nI where μ_r can exceed 1000 for soft iron at moderate fields. Electromagnets, relays, and doorbell ringer coils exploit this. Saturation limits B at high I when core domains align.
Outside an ideal infinite solenoid, B ≈ 0. Real finite solenoids show fringing at ends where field lines bulge outward. A toroid (coil bent into a donut) confines all field lines inside the core with negligible external field — used in transformers and inductors.
Solenoids are the magnetic analog of parallel-plate capacitors for uniform fields. MRI gradient coils, particle detector magnets, and lab demagnetizers all use solenoid geometry or stacks thereof.
Class 12 compares solenoid and toroid fields; JEE may ask to find n or I given target B inside a given geometry.
Key Concepts
- B = μ₀nI (ideal interior)
- n = N/L turns per meter
- B ∝ n and I
- Core: B = μ₀μ_r nI
- Fringing at ends of finite coil
- Toroid: field confined inside
Real-World Applications
- Electromagnets and relays
- MRI gradient and shim coils
- Inductors and transformers (toroid)
- Demagnetizing coils
- Class 12 solenoid numericals
Explore Further
- All Magnetism Calculators
Browse every magnetism solver in this category.
- Electricity & Magnetism Formulas
Ampère, Faraday, Lorentz force, and circuit relations.
- Magnetism Basics
Forces on charges and currents in magnetic fields.
- Lorentz Force
Step in Class 12 — Magnetism.
- Faraday's Induction
Step in Class 12 — Magnetism.
- Hall Effect
Step in Class 12 — Magnetism.
- Physics Constants Reference
SI values for c, G, k_B, ε₀, and more used across solvers.
More magnetism tools
- Magnetic Field
Calculate magnetic field strength, magnetic force, and magnetic flux using Ampere's Law.
- Lorentz Force
Find magnetic force on a moving charge: F = |q|vB.
- Force on Current Wire
Calculate F = BIL on a conductor in a magnetic field.
- Ampere's Law — Straight Wire
Magnetic field B = μ₀I/(2πr) around a long wire.
- Magnetic Flux
Flux through a surface: Φ = BA cos θ.
- Faraday's Induction
Induced EMF from changing flux: |ε| = N|ΔΦ/Δt|.
Physics Equations
Step-by-Step Solution
See how the main results are calculated.
Step 1: Ideal Solenoid Model
Equation:
Explanation:
n = turns per unit length (turns/m); field uniform and parallel inside.
Step 2: Relate n to Total Turns
Equation:
Explanation:
N total turns over solenoid length L (m).
Step 3: Given
Result:
Step 4: Calculate B
Calculation:
Result:
Step 5: With Iron Core
μ_r can be hundreds–thousands for soft iron.
Equation:
Explanation:
Electromagnets use cores to multiply field strength.
Step 6: Applications
Relays, MRI gradient coils, lab demagnetizers.
Explanation:
Outside ideal solenoid, B ≈ 0; ends show fringing.
Frequently Asked Questions (FAQ)
Short solenoid?
End corrections needed; field weaker at ends.
Toroid?
B = μ₀nI confined inside core; no external field.
Practice MCQs
- Ideal solenoid field:
- n is:
- Iron core:
- Double n and I:
- Outside ideal solenoid:
- Solenoid field direction:
Related Calculators
These tools connect to the same physics concepts used in this calculator.