Magnetism and Induction Calculator

Enter current, distances, turns, field, angle, area and wire data to get magnetic fields, forces, torque, flux, induced EMF and wire resistance.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Enter current

    In amperes.

  2. 2
    Enter geometry

    Distance, turns and length.

  3. 3
    Enter field and angle

    For force, torque and flux.

  4. 4
    Enter area and time

    For induced EMF.

  5. 5
    Enter wire data

    Metal, length and diameter.

About this tool

Electric currents create magnetic fields, magnetic fields push on currents, and changing magnetic flux induces voltage. These three ideas explain motors, generators, transformers and loudspeakers. This calculator applies the standard results: fields of a straight wire, a loop and a solenoid, force on a wire, torque on a coil, magnetic flux, Faraday's law of induction, plus the resistance of a real wire and the surprisingly slow drift velocity of electrons.

Who this is for

Physics students, electronics hobbyists, teachers and anyone winding coils or building a simple motor.

Fields from currents

- Long straight wire: B = μ₀ I / (2π r). 10 A at 5 cm gives 40 µT, close to Earth's field. - Centre of a circular loop of N turns: B = μ₀ N I / (2R). - Inside a long solenoid: B = μ₀ n I, with n turns per metre. μ₀ = 1.25664 × 10⁻⁶ N/A² (CODATA 2022).

Forces and torques

A wire of length L carrying I in a field B feels F = B I L sin θ. A flat coil of N turns and area A feels a torque τ = N I A B sin θ, the principle of the electric motor.

Flux and induction

Magnetic flux through an area is Φ = B A cos θ, where θ is the angle between the field and the normal to the area. Faraday's law gives the induced EMF: ε = −N ΔΦ/Δt. The calculator shows the EMF when the full flux B·A through N turns appears or disappears in the time Δt; the minus sign (Lenz's law) means the induced current opposes the change.

Wire resistance

R = ρ L / A. Resistivities at 20 °C: silver 1.59, copper 1.68, gold 2.44, aluminium 2.65 × 10⁻⁸ Ω·m; nichrome about 1.1 × 10⁻⁶ Ω·m for heating elements.

Drift velocity

Electrons in a copper wire drift at only a fraction of a millimetre per second: v_d = I / (n q A), with about 8.5 × 10²⁸ free electrons per m³. The signal travels fast because the field propagates near the speed of light.

Impedance of free space

Z₀ = √(μ₀/ε₀) ≈ 376.73 Ω, the ratio of electric to magnetic field in a plane electromagnetic wave.

Good practice

Use SI units, distances in metres and areas in m². Real solenoids are short, so the field is somewhat lower near the ends.

Worked example

A 100-turn coil of 0.01 m² in a 0.5 T field: if the full flux disappears in 0.1 s, the EMF is 5 V. With 5 A at right angles it feels a torque of 2.5 N·m. A 10 m copper wire of 1.5 mm diameter has 0.095 Ω, and at 5 A the electrons drift at about 0.21 mm/s.

Limits

Idealised geometries, vacuum or air; not an electrical safety guide.

Worked example

A 100-turn coil losing 0.5 T over 0.01 m² in 0.1 s induces 5 V.

Quick facts

Frequently asked questions

What is the field around a straight wire?

B = μ₀I/(2πr).

What is Faraday's law?

The induced EMF equals minus the rate of change of flux linkage.

What is magnetic flux?

Φ = BA cos θ, measured in webers.

How fast do electrons move in a wire?

Fractions of a millimetre per second.

How do I calculate wire resistance?

R = ρL/A.

Is my data stored?

No. Everything is calculated in your browser.

Guides for this tool

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