Magnetic Force Between Parallel Wires Calculator

JJ Ben-Joseph headshot JJ Ben-Joseph

Enter currents, separation, and length to compute the attractive or repulsive force.

The Ampère Force Law

When two long, straight, parallel conductors carry electric currents, each wire generates a magnetic field that exerts a force on the other. The magnitude of this force per unit length is given by the Ampère force law, FL=\mu_0 I_1 I_22\pir, where \mu_0 is the permeability of free space, I_1 and I_2 are the currents, and r is the distance separating the wires. If the currents flow in the same direction, the force is attractive; if they flow in opposite directions, the force is repulsive. This principle forms the basis for defining the ampere in the International System of Units and underlies the operation of devices like railguns and electromagnetic actuators.

Underlying Physics

The force arises from the interaction of magnetic fields produced by moving charges. Each current-carrying wire produces a circular magnetic field described by Biot–Savart law or Ampère's circuital law. The field from wire 1 at the location of wire 2 is B_1=\mu_0 I_12\pir. Wire 2 experiences a Lorentz force due to this field, yielding FL=I_2 B_1. Substituting gives the symmetric expression involving both currents. The direction of the force can be determined using the right-hand rule: point your thumb in the direction of current, curl your fingers to show the magnetic field loops, and the resulting force follows from another application of the rule.

Using the Calculator

Provide the magnitudes of the two currents, their center-to-center separation in meters, and the length of wire segments under consideration. The script uses the constant \mu_0 = 4π × 10⁻⁷ N/A² to compute both the force per unit length and the total force, presenting both values. The output also indicates whether the force is attractive or repulsive based on current directions. Negative total force is displayed for repulsion in keeping with vector sign conventions.

Practical Significance

Understanding forces between parallel conductors is essential in power transmission, where large currents in nearby cables can lead to significant attraction or repulsion, affecting mechanical stability. In particle accelerators, magnetic forces from parallel wires or strips help guide beams. Laboratory demonstrations often use two suspended wires connected to a power supply, showing the wires move together or apart depending on current directions. Such experiments historically defined the ampere before more advanced quantum standards emerged.

Worked Example

Suppose two wires each carry 10 A and are separated by 0.05 m. For a 2 m length, the force magnitude is computed as F=4\pi\times10^{-7} \times 10 \times 10 \times 22\pi\times0.05, which simplifies to about 8.0 × 10⁻⁵ N. If the currents run in the same direction, the wires attract with this force; if opposite, they repel.

Sample Values

I₁ (A)I₂ (A)r (m)L (m)F (N)
550.1015.0×10⁻⁶
10150.020.57.5×10⁻⁴
20250.0536.0×10⁻³
8120.0322.6×10⁻³

Historical Context

The quantitative study of forces between currents dates back to André-Marie Ampère in the early 19th century. Ampère’s experiments involved long wires and delicate balances to observe tiny attractions and repulsions. His work established foundational laws of electromagnetism, predating Maxwell’s synthesis by decades. The definition of the ampere was historically based on the force between two parallel conductors: one ampere is the current that produces a force of 2 × 10⁻⁷ newtons per meter between two infinitely long wires separated by one meter. Though modern definitions rely on the elementary charge, the concept remains pedagogically valuable.

Limitations and Assumptions

The formula assumes infinitely long, straight, thin wires in vacuum, conditions approximated but never met exactly in real systems. At finite lengths, edge effects and nonuniform magnetic fields introduce corrections. If wires are placed in a medium other than vacuum, the permeability changes accordingly. Despite these simplifications, the equation yields accurate results when the wire separation is small compared to their length and when currents are steady and uniform.

Connections to Other Concepts

The force between parallel wires illustrates the unity of electric and magnetic phenomena. Moving charges produce magnetic fields; magnetic fields act on moving charges. The interaction also parallels Coulomb’s law between electric charges, though magnetism arises from movement rather than static properties. Exploring these analogies deepens understanding of Maxwell's equations and the broader electromagnetic framework that governs much of modern technology.

Further Exploration

Beyond straight wires, the same underlying principles extend to coils, solenoids, and complex conductor geometries. Students interested in advanced topics can analyze how force densities lead to magnetic pressure or explore how superconductors eliminate resistive heating while preserving strong magnetic interactions. Such inquiries connect the simple parallel-wire case to magnetic levitation trains, particle beam steering, and even astrophysical jets where enormous currents flow through plasma. Investigating these systems highlights the ubiquity of the Ampère force law across scales from laboratory devices to cosmic phenomena.

Conclusion

This calculator makes it easy to estimate the mechanical effect of electric currents flowing in parallel wires. Whether analyzing power transmission lines, classroom experiments, or theoretical scenarios, the tool provides quick numeric results and reinforces the Ampère force law through interactive exploration.

Related Calculators

Magnetic Force on a Current-Carrying Wire Calculator

Evaluate the force on a wire in a magnetic field or solve for current, field strength, length, or angle using F = I L B sin θ.

magnetic force wire calculator ILB sin theta magnetism physics

Force Converter - Newtons, Pounds-Force, Kilograms-Force, Dynes, Poundals

Convert force units including newtons, kilonewtons, pounds-force, kilograms-force, dynes, and poundals with this force converter.

force converter newtons to pounds kilogram-force dynes poundals

Gravitational Force Calculator - Calculate Attraction Between Masses

Quickly compute gravitational force between two masses with our Gravitational Force Calculator. Perfect for physics students and science enthusiasts.

gravitational force calculator gravity calculator Newton's law physics calculator