DigitHelm

Magnetic Force Calculator | Lorentz

Calculate the magnetic force on a moving charge (Lorentz force) F = qvB sin(θ).

Mode

Presets

Enter key calculates · Escape resets

What Is the Magnetic Force Calculator | Lorentz?

This calculator covers all three fundamental magnetic force scenarios: the Lorentz force on a moving charged particle, the force on a current-carrying wire, and the force per unit length between two parallel current-carrying wires. Unit conversion is built in, and step-by-step working is available for every calculation.

  • Three modes, moving charge (F = qvB sin θ), current wire (F = BIL sin θ), and parallel wires (F/L = μ₀I₁I₂/2πd).
  • Unit conversion, charge in C, μC, nC, or elementary charges (e); velocity in m/s, km/s, or km/h; B-field in T, mT, μT, or Gauss.
  • Angle presets, quick buttons for 0°, 30°, 45°, 60°, 90°, 180° with notes on special cases (θ=90° maximum, θ=0°/180° zero force).
  • Force in multiple units, result shown in N, mN, and μN for convenient reading.
  • Attraction/repulsion indicator, parallel wires mode shows whether the force is attractive or repulsive based on current directions.
  • Preset examples, realistic scenarios (MRI electron, motor conductor, power lines).
  • localStorage persistence, inputs are restored on return.

Formula

Mode 1, Force on Moving Charge (Lorentz Force)

F = |q| × v × B × sin(θ)

Mode 2, Force on Current-Carrying Wire

F = B × I × L × sin(θ)

F/L = B × I × sin(θ) (force per unit length)

Mode 3, Force Between Two Parallel Wires

F/L = μ₀ × I₁ × I₂ / (2π × d)

μ₀ = 4π × 10⁻⁷ T·m/A (permeability of free space)

SymbolNameDescription
qCharge (C)Charge of the particle. |q| (absolute value) is used.
vVelocity (m/s)Speed of the charge, not the full velocity vector
BMagnetic field (T)Magnitude of the magnetic flux density
θAngle (degrees)Angle between the velocity vector v and field B (or I and B for wire)
ICurrent (A)Conventional current through the wire
LLength (m)Length of the wire segment in the field
dSeparation (m)Distance between the two parallel wires (Mode 3)
μ₀Permeability4π × 10⁻⁷ T·m/A, fundamental constant of electromagnetism
F/LForce per lengthUsed in Mode 2 and Mode 3, force per metre of wire

How to Use

  1. 1
    Select a mode: Choose Force on Moving Charge (F = qvB sin θ), Force on Current Wire (F = BIL sin θ), or Parallel Wires (F/L = μ₀I₁I₂/2πd).
  2. 2
    Load a preset (optional): Click a preset button to load a realistic worked example, such as an electron in an MRI field or a motor conductor.
  3. 3
    Enter values with units: Type each value and select the unit using the unit buttons. For charge, choose C, μC, nC, or elementary charges (e).
  4. 4
    Set the angle: Enter the angle between v and B (or I and B). Use the quick-select buttons for common angles. 90° gives maximum force; 0° gives zero force.
  5. 5
    Press Enter or click Calculate Force: The force magnitude appears with a note about the angle (maximum, zero, or partial force).
  6. 6
    Read the result: The force is displayed in N and automatically converted to mN or μN for readability. For parallel wires, attraction/repulsion is also stated.
  7. 7
    Expand Step-by-step: Click the collapsible panel to see every intermediate calculation including unit conversions.

Example Calculation

Mode 1, Electron moving in an MRI magnetic field

Given: q = 1 elementary charge (e), v = 1 km/s, B = 1.5 T, θ = 90°

Step 1: Convert units

q = 1 e = 1.60218 × 10⁻¹⁹ C

v = 1 km/s = 1,000 m/s

B = 1.5 T

Step 2: Apply formula F = |q| × v × B × sin(θ)

sin(90°) = 1.0000

F = 1.60218×10⁻¹⁹ × 1000 × 1.5 × 1

F = 2.4033 × 10⁻¹⁶ N ≈ 0.24 fN

Angle θsin(θ)ForceNote
0.0000 NVelocity parallel to field, zero force
30°0.5001.20 × 10⁻¹⁶ NHalf maximum force
45°0.7071.70 × 10⁻¹⁶ N70.7% of maximum
60°0.8662.08 × 10⁻¹⁶ N86.6% of maximum
90° ★1.0002.40 × 10⁻¹⁶ NMaximum force, perpendicular
180°0.0000 NAnti-parallel, zero force again

The right-hand rule for direction

Point your right-hand fingers in the direction of velocity v (or current I for a wire). Curl them toward B. Your thumb points in the direction of force on a positive charge. For a negative charge (like an electron), the force is in the opposite direction.

Understanding Magnetic Force | Lorentz

The Lorentz Force, Physics Behind the Formula

The complete Lorentz force on a charged particle in both electric and magnetic fields is: F = q(E + v × B). The magnetic term v × B is a cross product, meaning the force is always perpendicular to both the velocity and the field.

This perpendicularity has a crucial consequence: the magnetic force does no work. Work = F · d (force dot displacement). Since the force is perpendicular to velocity (and therefore displacement), the dot product is zero. The magnetic force changes the direction of motion but never the speed or kinetic energy.

Cyclotron Motion, When Force = Centripetal

When a charged particle moves perpendicular to a uniform magnetic field (θ = 90°), the constant perpendicular force causes uniform circular motion. The magnetic force provides the centripetal acceleration:

F = qvB = mv²/r (centripetal condition)

Solve for radius: r = mv / (qB)

Cyclotron frequency: f = qB / (2πm) (independent of speed!)

  • The cyclotron frequency is independent of speed, faster particles orbit in larger circles but at the same frequency.
  • MRI machines use this principle: proton spins precess at the Larmor frequency proportional to B.
  • Particle accelerators (cyclotrons, synchrotrons) exploit cyclotron motion to steer and accelerate beams.
  • Mass spectrometers measure m/q by measuring the radius of curvature in a known B field.

Force on a Wire, Motors and Generators

The force on a current-carrying wire, F = BIL sin(θ), is the foundation of the electric motor. Current in a conductor represents moving charge carriers (electrons), each experiencing the Lorentz force. The collective effect on all carriers in length L produces a macroscopic force.

  • DC motor, a current-carrying coil in a permanent magnet field experiences a torque, causing rotation.
  • Loudspeaker, an alternating current in a voice coil in a radial magnetic field creates oscillating force, driving the cone.
  • Linear actuators (maglev), long conductors carrying current in strong magnetic fields generate linear thrust forces.
  • Rail guns, extremely large currents through rail conductors generate enormous forces on a conducting projectile.

Force Between Two Parallel Wires, Defining the Ampere

Two parallel wires carrying currents create magnetic fields that interact. The force per unit length is: F/L = μ₀I₁I₂/(2πd).

  • Same-direction currents attract each other, each wire is in the other's magnetic field, and the force is inward.
  • Opposite-direction currents repel each other, the forces are outward.
  • This formula was historically used to define the Ampere: 1 A is defined as the current that produces a force of 2 × 10⁻⁷ N/m between two parallel wires 1 m apart.
  • In the 2019 SI revision, the Ampere is now defined by fixing the elementary charge e = 1.60218 × 10⁻¹⁹ C.

Magnetic field strengths in context

Earth's surface: ~25–65 μT. Fridge magnets: ~1–5 mT. MRI (clinical): 1.5–3 T. Research magnets: up to 45 T. Strongest sustained lab fields: ~100 T. Neutron star surface: up to 10¹¹ T.

Frequently Asked Questions

Why is the magnetic force perpendicular to velocity?

The magnetic force is F = q(v × B), a cross product. The cross product of two vectors is always perpendicular to both.

  • This means the force is always perpendicular to the velocity vector.
  • Therefore, the magnetic force can never do work on a charge (work requires a component of force parallel to displacement).
  • The magnetic force changes the direction of motion but never the speed or kinetic energy.
  • This is why magnetic fields are used to steer charged particles in accelerators without accelerating them.

What is the right-hand rule for magnetic force?

For a positive charge moving with velocity v in field B:

  • Point your right-hand fingers in the direction of v (velocity).
  • Curl your fingers toward B (magnetic field direction).
  • Your thumb points in the direction of force F on the positive charge.
  • For a negative charge (e.g., electron), the force is in the opposite direction, use your left hand, or flip the result.

For a wire: point fingers in the direction of conventional current I, curl toward B, thumb gives force direction (Fleming's left-hand rule in UK notation).

When is the magnetic force zero?

The magnetic force F = qvB sin(θ) is zero when sin(θ) = 0, which occurs when:

  • θ = 0°, the velocity (or current) is parallel to the magnetic field.
  • θ = 180°, the velocity is anti-parallel to the field.
  • v = 0, a stationary charge experiences no magnetic force (only electric force if E ≠ 0).
  • q = 0, a neutral particle experiences no magnetic force.

Maximum force occurs at θ = 90° (perpendicular), where sin(90°) = 1.

What is cyclotron motion?

When a charged particle moves perpendicular to a uniform magnetic field, the constant perpendicular Lorentz force curves its path into a circle:

  • Radius: r = mv / (qB), larger for faster or heavier particles, smaller for larger B or charge.
  • Cyclotron frequency: f = qB / (2πm), constant regardless of speed.
  • Period: T = 2πm / (qB), independent of speed (key to cyclotron operation).

Cyclotrons exploit this: the particle spirals outward as it gains energy but completes each orbit in the same time, allowing synchronised radio-frequency acceleration.

Why do parallel wires with same-direction currents attract?

Each wire creates a magnetic field around itself. The other wire sits in that field and carries a current, so it experiences a force.

  • Wire 1 creates a B field circling around it (by the right-hand rule).
  • At the location of Wire 2, Wire 1's field points in a direction such that F = I₂L × B₁ points toward Wire 1.
  • The same happens symmetrically, Wire 2's field pulls Wire 1 toward Wire 2.
  • Result: same-direction currents attract.

For opposite currents, the field directions reverse, making the forces repulsive. This is the physical basis of the original SI definition of the Ampere.

What are the units of magnetic field strength (Tesla vs Gauss)?

The SI unit is the Tesla (T): 1 T = 1 kg/(A·s²) = 1 V·s/m².

  • 1 Tesla = 10,000 Gauss (the CGS unit)
  • Earth's magnetic field: ~25–65 μT (microtesla)
  • Typical fridge magnet: ~1–5 mT
  • MRI scanner: 1.5 T to 3 T (clinical), up to 10.5 T (research)
  • Strongest sustained superconducting magnet: ~45 T
  • Neutron star surface: ~10⁸ to 10¹¹ T

How does the magnetic force apply to electric motors?

An electric motor works by placing current-carrying conductors in a magnetic field. The Lorentz force F = BIL sin(θ) on the conductors creates a torque that rotates the shaft.

  • The torque τ = nBIA sin(θ), where n = number of turns, A = coil area.
  • Maximum torque at θ = 90°, the plane of the coil parallel to the field.
  • A commutator (in DC motors) or AC supply (in AC motors) reverses the current at the right moment to maintain torque in one rotational direction.
  • Generator operation is the reverse: mechanical rotation induces current via electromagnetic induction.

Does the calculator save my inputs?

Yes, all inputs and the selected mode are saved to your browser's localStorage. They are restored when you return to the page. Click Reset to clear the form and remove saved data. Nothing is sent to any server.

Related Calculators