Calculate magnetic moment, torque, and potential energy for current loops in external fields. Supports circular, square, and rectangular loops.
The magnetic moment of a current loop determines its interaction with external magnetic fields — specifically the torque it experiences and the potential energy stored in the system. This is the operating principle behind electric motors, galvanometers, compass needles, and many sensors. The magnetic moment m = NIA is possibly the most important single formula in electromagnetic device design.
When a current loop is placed in a uniform external magnetic field, it experiences a torque τ = m × B that tends to align the loop with the field. The torque is maximum when the loop is perpendicular to the field (θ = 90°) and zero when aligned (θ = 0° or 180°). This angular dependence drives the rotational motion in motors and the deflection in meter movements.
This calculator computes the magnetic moment for circular, square, and rectangular loops with any number of turns. It then calculates the torque and potential energy at any angle in a specified external field, complete with a visual torque-vs-angle chart and detailed tables for key orientations. Whether you are designing an electric motor winding, analyzing a compass needle, or studying loop dynamics, this calculator provides the complete interaction picture.
Magnetic moment calculations appear in motor design, sensor calibration, galvanometer sensitivity analysis, and physics education. Getting the moment, torque, and energy right requires careful handling of units and trigonometry that is easy to bungle by hand.
This calculator not only computes the key quantities but also provides the torque-vs-angle visualization that gives intuitive understanding of how the interaction changes with orientation — essential for designing commutation timing, understanding oscillation dynamics, and optimizing device performance.
Magnetic Moment and Interactions: • Moment: m = N × I × A (A·m²) • Torque: τ = m × B × sin(θ) • Potential Energy: U = −m × B × cos(θ) • Field at center (circular): B_center = µ₀NI / (2R) • Area: A = πr² (circle), a² (square), a×b (rectangle) Where N = turns, I = current (A), A = loop area (m²), B = external field (T), θ = angle
Result: m = 0.1963 A·m², τ = 9.817 mN·m at 90°
A 100-turn circular coil (5 cm diameter, 1A) has area π(0.025)² = 1.963 × 10⁻³ m². Moment = 100 × 1 × 1.963 × 10⁻³ = 0.1963 A·m². In a 0.05T field at 90°, torque = 0.1963 × 0.05 × sin(90°) = 9.817 mN·m — enough to noticeably deflect a meter needle.
The magnetic moment is a vector quantity: m = NIA n̂, where n̂ is the unit normal to the loop plane determined by the right-hand rule. The magnitude depends only on the total ampere-turns (NI) and the enclosed area (A). This product NIA is the single most important parameter for any electromagnetic rotary device.
In an external field B, the torque is τ = m × B = mB sin(θ)n̂, and the potential energy is U = −m · B = −mB cos(θ). These expressions show that the system naturally tends toward the minimum-energy state (aligned, θ = 0°), with the torque providing the driving force.
The basic DC motor consists of a rectangular coil (armature) rotating in the field of a permanent magnet or field winding. The torque peaks when the coil plane is parallel to the field (θ = 90°) and vanishes at the aligned positions (θ = 0° and 180°). A commutator switches the current direction at these dead spots, ensuring continuous rotation.
For continuous torque, multiple coils are distributed around the armature, each shifted by equal angles. With enough coils, the total torque is nearly constant, producing smooth rotation. The peak torque per coil is τ_max = NIAB, and the total motor torque scales with the number of coils and their combined ampere-turns.
When displaced from equilibrium (θ = 0°) by a small angle δ, the restoring torque is approximately τ ≈ −mBδ. Combined with the rotational inertia I_rot, this gives simple harmonic motion with period T = 2π√(I_rot/(mB)). This is exactly how a compass needle oscillates — the period depends on the needle\'s moment, the field strength, and the needle\'s moment of inertia.
They are the same quantity — the magnetic moment m = NIA. "Magnetic dipole moment" emphasizes that at large distances the loop looks like a idealized point dipole. Both terms are used interchangeably in physics.
At θ = 0°, the moment is aligned with the field, giving the lowest potential energy (U = −mB). At θ = 180°, the moment is anti-aligned, giving the highest energy (U = +mB). Any perturbation from 180° produces a restoring torque back toward 0°, making 0° stable and 180° unstable.
A DC motor has a coil (armature) in a permanent magnet field. Current through the coil creates a magnetic moment that experiences torque, rotating the armature. A commutator reverses the current direction every half-turn, ensuring the torque always drives rotation in the same direction.
The shape does not affect the magnetic moment directly — only the area matters (m = NIA). A circular loop and a square loop with the same area and current have identical moments. However, the shape affects the near-field distribution and the field at the center of the loop.
Maximum torque occurs at θ = 90°: τ_max = NIA × B. To increase torque, you can increase turns (N), current (I), coil area (A), or field strength (B). Practical limits include wire resistance (heating), core saturation, and mechanical constraints.
The work done rotating the loop from angle θ₁ to θ₂ equals the change in potential energy: W = −ΔU = mB(cos θ₂ − cos θ₁). The maximum work per revolution (useful energy) is 2mB, extractable between the aligned and anti-aligned positions.