Tools / Physics

100% client-side · 5-way solver · right-hand-rule diagram

Magnetic Force on a Current-Carrying Wire Calculator

The Ampère force on a straight wire in a uniform magnetic field. Solve for any of the five quantities — force, current, length, field or angle — then switch to square-loop mode for the force on each side of a current loop plus its torque.

F = I·L·B·sinθ  ·  τloop = I·A·B
Scope boundary. This page is the force on a current-carrying wire (F = I·L×B) — the motor/rail effect. The force on a single moving point charge (F = q·v×B, cyclotron and mass-spec physics) lives in our Lorentz Force Calculator. Different formula, different use-case.
Anchor check. I = 5 A, L = 20 cm = 0.2 m, B = 0.5 T, θ = 90° → F = 5 × 0.2 × 0.5 × sin 90° = 0.5 N. The calculator reproduces this exactly — try the defaults below.

Mode 1 — Straight wire, 5-way solver

Solve for

Direction — right-hand rule

I B F — out of screen (⊙) B · θ = 90°
  1. Point the fingers of your right hand along the current I.
  2. Curl them toward the magnetic field B (through the smaller angle).
  3. Your thumb points along F — out of the screen here for 0° < θ < 180°.

Equivalent: Fleming's left-hand rule — forefinger along B, middle finger along I, thumb gives F. Same answer; it is the classic "motor rule".

Worked examples

Straight wire: I = 5 A, L = 20 cm = 0.2 m, B = 0.5 T, θ = 90° → F = 5 × 0.2 × 0.5 × sin 90° = 0.5 N, directed out of the screen by the right-hand rule.
Solve for θ: the same wire and field produce F = 0.25 N → sinθ = 0.25 / 0.5 = 0.5 → θ = 30° (or its supplement 150°).
Square loop: I = 2 A, L = 10 cm = 0.1 m, B = 0.5 T, α = 30° → sides 1 & 3 feel 0.05 N each (opposite), sides 2 & 4 feel 0.0866 N each (opposite). Net force 0 N; torque τ = I·A·B = 0.01 N·m.

Frequently asked questions

What is the formula for the magnetic force on a current-carrying wire?

F = I·L·B·sinθ, also called the Ampère force. I is the current in amperes, L the wire length in metres inside the field, B the magnetic flux density in tesla, and θ the angle between the current direction and B. In vector form F = I·(L × B): the force is perpendicular to both the wire and the field, and its size is in newtons.

Worked example: 5 A, 0.2 m, 0.5 T at 90°?

F = 5 × 0.2 × 0.5 × sin 90° = 1.0 × 0.5 × 1 = 0.5 N. That is the anchor this calculator reproduces exactly — the defaults on the straight-wire tab are these very numbers, so press Calculate to verify.

Why is the force zero when the wire is parallel to the field?

Because of the sinθ factor: at θ = 0° (or 180°) sinθ = 0, so a wire lying along the field lines feels nothing. Only the component of B perpendicular to the wire does work on the charges, which is why the force is maximal (F = I·L·B) at θ = 90°.

How do I find the direction of the force (right-hand rule)?

Point the fingers of your right hand along the current I, curl them toward the magnetic field B through the smaller angle, and your thumb points along F. For 0° < θ < 180° the force in this calculator's diagram comes out of the screen. Fleming's left-hand rule (forefinger B, middle finger I, thumb F) is the equivalent motor rule and gives the same answer.

How is this different from the Lorentz force on a moving charge?

F = q·v×B acts on one moving point charge (cyclotron, mass spectrometer, aurora physics) — that is our Lorentz Force Calculator. F = I·L×B acts on a current in a wire (motors, rails, galvanometers). They are the same physics summed up: a wire of cross-section A carries n·q·vd·A of drift charge per second, and adding q·vd×B over the n·A·L carriers in length L gives exactly I·L×B.

A square loop feels force on every side, yet the net force is zero — how?

In a uniform field, opposite sides of the loop carry antiparallel currents, so their forces are equal and opposite and cancel. With B in the loop's plane at angle α to side-pair A: sides 1 & 3 feel I·L·B·sinα each, sides 2 & 4 feel I·L·B·cosα each. Example: I = 2 A, L = 0.1 m, B = 0.5 T, α = 30° → 0.05 N per side on pair A, 0.0866 N per side on pair B, net force 0 N, torque τ = I·A·B = 0.01 N·m. That torque is what spins an electric motor.

How do I solve for the angle θ, and what if F is bigger than I·L·B?

Invert the formula: θ = arcsin(F / I·L·B). There are always two answers, θ and 180° − θ, because sinθ is symmetric — the calculator shows both. If F exceeds I·L·B the ratio is above 1 and no angle exists: such a force is physically impossible with those I, L and B, and the calculator rejects it instead of inventing a number.

Tesla vs gauss — how do the units convert?

1 tesla = 10,000 gauss (G). The calculator accepts T, mT, µT and G. A fridge magnet is about 5 mT = 50 G; Earth's field is roughly 25–65 µT — a 5 A, 0.1 m wire in a 50 µT field at 90° feels just 5 × 0.1 × 50×10⁻⁶ = 2.5×10⁻⁵ N = 25 µN.

Where is the force on a current-carrying wire actually used?

Everywhere current meets magnetism: the torque on rotor loops in electric motors, the moving coil of galvanometers and loudspeakers, railgun armatures, and the forces that circuit breakers must survive during a fault. Our Electric Motor Torque calculator continues where the square-loop mode here leaves off.

Related tools

Free tool by NRTechStudio