Works on this device
Magnetic Force On Wire Calculator
A wire that carries a current across a magnetic field is pushed sideways. Work out that force from the field, the current, the length and the angle, or solve for any one of them. You can also type the wire and the field as vectors, or find the pull between two parallel wires.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
How to use this calculator
- Choose a task: the force on a wire, the force as a vector, or the force between two parallel wires.
- For the force on a wire, choose under What do you want to find? the force, the field, the current or the length. Type the other values and the angle between the wire and the field.
- For one side of a coil in the field, open More options and type the number of turns.
- Choose Calculate. The answer shows the working, the force on each metre and the direction rule.
The magnetic force equation
- Force on a wire: F = B × I × L × sin θ. B is the magnetic field (flux density) in teslas, I the current in amperes, L the length of wire inside the field in metres and θ the angle between the wire and the field. The force is in newtons.
- As a vector: F = I × (L × B), where L points along the current. The cross product gives the direction too.
- Two parallel wires: F ÷ L = μ0 × I₁ × I₂ ÷ (2π × d). Currents the same way attract; opposite currents repel.
- Direction (right-hand rule): point the fingers of your right hand along the current and bend them towards the field. The thumb shows the force. It is at right angles to both the wire and the field.
- μ0 is the magnetic constant, 1.25663706127 × 10^-6 N/A² (CODATA 2022). Since 2019 it is measured and no longer exactly 4π × 10^-7 N/A².
Worked examples
A wire across a field. A wire 0.20 m long carries 3.0 A at right angles to a field of 0.50 T. F = 0.50 × 3.0 × 0.20 × sin 90° = 0.30 N, or 1.5 N on each metre. At 30° the force is half as large: 0.15 N.
As a vector. A current of 2.0 A flows along L = (0.50, 0, 0) m in a field B = (0, 0.30, 0.40) T. L × B = (0, −0.20, 0.15) T·m, so F = (0, −0.40, 0.30) N, with a size of 0.50 N.
Two wires. Wires 5.0 cm apart carry 10 A and 15 A the same way. F ÷ L = μ0 × 10 × 15 ÷ (2π × 0.05) = 6.0 × 10^-4 N on each metre, and they attract. Over 2.0 m that is 1.2 × 10^-3 N.
Limits you should know
- The field is taken as even along the whole wire, and the wire as straight. For a field that changes along the wire, split the wire into short pieces and add their forces as vectors.
- The parallel-wire formula is for long, thin, straight wires. Near the ends of short wires the force is smaller.
- This tool does not work out the pull of a permanent magnet (a neodymium or ceramic magnet) on steel or on another magnet. That force depends on the shape and grade of the magnet, the steel and the gap, and needs measured data or a field solver.
- Answers are shown to the significant figures of your least precise input. An angle of 0°, 90° or 180° counts as exact.
- For a single charged particle moving in a field see the Lorentz Force Calculator. For the field that a wire, a loop or a coil makes see the Magnetic Field Calculator and the Solenoid Magnetic Field Calculator.