Solenoid Electromagnet Simulator: Field Strength & Force Calculator

simulator beginner ~8 min
Loading simulation...
B = 12.6 T with iron core (μ_r = 1000) — powerful electromagnet

A 500-turn solenoid carrying 2 A over 10 cm length with a μ_r = 1000 iron core produces a central field of approximately 12.6 T (limited by saturation in practice to ~2 T).

Formula

B = μ₀ × μ_r × N × I / L
L_ind = μ₀ × μ_r × N² × A / L
F = B² × A / (2 × μ₀) (Maxwell stress)

The Electromagnetic Workhorse

The solenoid electromagnet — a coil of wire wound around a core — is perhaps the most important electromagnetic device ever invented. From the humble doorbell relay to 20-tesla MRI magnets, the solenoid converts electrical current into controllable magnetic fields and mechanical forces. Understanding the relationship between coil geometry, current, core material, and resulting field is fundamental to electrical engineering.

Field Inside a Solenoid

Inside a long solenoid, the magnetic field is remarkably uniform and depends only on the number of turns per unit length and the current: B = μ₀nI. This elegant result from Ampere's law means that field strength is independent of solenoid diameter — only the turn density and current matter. Adding a ferromagnetic core with relative permeability μ_r multiplies the field by this factor, which is why even a modest coil wrapped around an iron nail becomes a powerful magnet.

Core Materials and Saturation

The choice of core material determines the electromagnet's performance envelope. Soft iron (μ_r ~ 1000-5000) is the standard choice, offering high permeability and low cost. Silicon steel (μ_r ~ 5000-10000) reduces eddy current losses for AC applications. However, all ferromagnetic cores saturate — typically around 1.5-2.0 T for iron, 2.4 T for iron-cobalt alloys. Above saturation, the core's effective permeability drops toward 1 and the field barely increases with more current.

Force and Applications

Electromagnets produce force through the Maxwell stress: F = B²A/(2μ₀). The B-squared dependence means force is always attractive (independent of field direction) and grows rapidly with field strength. This force drives relays, contactors, solenoid valves, magnetic brakes, MRI machines, particle accelerators, and fusion reactors. The ability to turn magnetism on and off with a switch — impossible with permanent magnets — makes the electromagnet uniquely versatile in engineering.

FAQ

How does a solenoid create a magnetic field?

A solenoid is a helical coil of wire. When current flows, each loop produces a magnetic field; inside the solenoid, these fields add constructively to create a nearly uniform field along the axis. The field strength is proportional to the number of turns per unit length times the current (B = μ₀nI for an air-core solenoid). Adding a ferromagnetic core multiplies the field by the core's relative permeability.

What is relative permeability?

Relative permeability (μ_r) measures how much a material concentrates magnetic flux compared to vacuum. Air has μ_r ≈ 1, soft iron 1000-5000, silicon steel 5000-10000, and supermalloy up to 100000. A core with μ_r = 1000 amplifies the solenoid field by 1000 times, which is why iron-core electromagnets are far more powerful than air-core coils at the same current.

What limits electromagnet field strength?

Three factors limit practical electromagnets: (1) core saturation — above ~2 T for iron, additional current gives no benefit; (2) Joule heating — resistive wire dissipates I²R power as heat; (3) mechanical stress — magnetic forces on the coil scale as B² and can physically deform or destroy the winding. Superconducting magnets (zero resistance) achieve 10-20 T for MRI and particle accelerators.

How is electromagnet force calculated?

The attractive force of an electromagnet on a ferromagnetic surface is F = B²A/(2μ₀), where B is the flux density at the pole face and A is the pole area. This Maxwell stress formula shows force scales as the square of field strength — doubling the field quadruples the force. Practical forces range from millinewtons (relay) to meganewtons (scrapyard lifting magnet).

Sources

Embed

<iframe src="https://homo-deus.com/lab/magnetism/electromagnet-design/embed" width="100%" height="400" frameborder="0"></iframe>
View source on GitHub