Study and Productivity

Magnetic Fields and Induction: From a Wire to a Generator

How currents create magnetic fields in wires, loops and solenoids, how fields push on currents, and how changing flux induces voltage under Faraday's law.

Saizul Amin
Saizul Amin30 Oct 2026 · 3 min read
Magnetic Fields and Induction: From a Wire to a Generator

Magnetic Fields and Induction: From a Wire to a Generator

In 1820 Hans Christian Ørsted noticed a compass needle twitch near a wire carrying current. Within a decade, Ampère, Faraday and others had discovered the laws that today run every motor, generator and transformer. This guide explains the key results and how to use them, and you can compute them with the magnetism and induction calculator.

Fields from currents

The magnetic field B, measured in teslas, depends on the current and geometry:

  • long straight wire: B = μ₀ I / (2π r). At 5 cm from a wire carrying 10 A, B = 40 µT, about Earth's field.
  • centre of a circular loop with N turns: B = μ₀ N I / (2R).
  • inside a long solenoid: B = μ₀ n I, with n turns per metre. A 100-turn, 20 cm coil carrying 5 A gives 3.1 mT.

μ₀ = 1.25664 × 10⁻⁶ N/A² is the magnetic constant. Iron cores multiply the field hundreds of times.

Forces on currents

A wire of length L carrying current I in a field B feels a force F = B I L sin θ, where θ is the angle between wire and field. This force drives every electric motor and loudspeaker.

Torque on a coil

A flat coil of N turns and area A in a field feels a torque τ = N I A B sin θ. Commutators or alternating current keep the torque in the same direction so the motor keeps turning.

Magnetic flux

Flux measures how much field passes through an area: Φ = B A cos θ, where θ is the angle between the field and the normal to the area. Its unit is the weber.

Faraday's law of induction

A changing flux through a coil induces an electromotive force:

ε = −N ΔΦ / Δt.

The minus sign is Lenz's law: the induced current opposes the change that caused it. If a 100-turn coil of 0.01 m² in a 0.5 T field loses all its flux in 0.1 s, the average EMF is 5 V. Generators produce voltage by rotating coils in fields; transformers by changing the current in a nearby coil.

Resistance of a wire

R = ρ L / A, with ρ the resistivity:

Metalρ at 20 °C (Ω·m)
silver1.59 × 10⁻⁸
copper1.68 × 10⁻⁸
aluminium2.65 × 10⁻⁸
nichrome1.1 × 10⁻⁶

A 10 m copper wire of 1.5 mm diameter has about 0.095 Ω.

How fast do electrons move?

Surprisingly slowly. The drift velocity is v_d = I / (n q A), with n about 8.5 × 10²⁸ electrons per cubic metre in copper. At 5 A in that wire, electrons creep at about 0.2 mm per second. A lamp still lights instantly because the electric field travels through the wire at close to the speed of light.

The impedance of free space

The ratio of electric to magnetic field strength in an electromagnetic wave in vacuum is √(μ₀ / ε₀) ≈ 376.73 Ω, a constant that appears in antenna design.

Using the calculator

  1. Enter the current and geometry: distance, turns, coil length.
  2. Enter the field, wire length in the field and angle.
  3. Enter the coil area and the time of flux change.
  4. Choose a metal and enter wire length and diameter.
  5. Read fields, forces, torque, flux, EMF, resistance and drift velocity.

Safety note

Strong magnets and large inductive circuits can be hazardous: magnets pinch fingers and affect pacemakers, and switching inductive loads causes voltage spikes.

Limits

The formulas assume ideal long wires and solenoids in air. Short coils have weaker fields near their ends.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages