When an electric current flows through a conductor, each moving charge experiences a magnetic force given by the Lorentz expression . In a straight wire of length , the velocities of countless charges average to the drift velocity along the wire. Summing the individual forces on all carriers leads to a macroscopic relation , where is the current and is a vector whose magnitude is the length of the wire and direction follows conventional current flow. The magnitude of this force reduces to with the angle between the wire and the magnetic field.
The direction of the force is given by the right-hand rule: point your thumb along current, index finger along the magnetic field, and your palm pushes in the direction of force for positive charge carriers. If either the current or field reverses, the force direction flips accordingly. This vector nature explains why the force is zero when the wire runs parallel to the field () and maximal when it is perpendicular ().
Our form lets you determine any one of the five quantities involved. Select the unknown from the dropdown and supply the remaining values. For instance, to compute the magnetic force, enter current, length, field strength, and orientation angle. Press the button to evaluate . Solving for current rearranges the expression to . Each branch of the code follows similar algebraic manipulation, ensuring consistent units: newtons for force, amperes for current, meters for length, tesla for field strength, and degrees for angle. Calculations are performed locally within your browser for immediate feedback.
The tesla is a relatively strong magnetic field; Earth's surface field is roughly 50 µT, or five ten-thousandths of a tesla. Laboratory electromagnets commonly generate fields in the range of 0.1 T to 1 T, while powerful MRI machines achieve several tesla. For current, the ampere corresponds to one coulomb per second. Length should represent the portion of wire exposed to the field. The angle input must be between the direction of current and the direction of the magnetic field. Because the sine function is periodic, an angle of 180° yields the same magnitude as 0°, but the right-hand rule determines the sign of the force, something this simple calculator reports only in terms of magnitude.
The table summarizes representative magnetic field magnitudes encountered in various contexts. Comparing these values can help you gauge whether a calculation is realistic:
Environment | Field B (T) |
---|---|
Earth surface | 5×10−5 |
Fridge magnet at surface | 0.01 |
Strong laboratory magnet | 1 |
MRI scanner | 3 |
Particle accelerator dipole | 5 |
The force on a current-carrying conductor underlies the operation of electric motors. In a simple motor, coils of wire reside within a magnetic field created by permanent magnets or electromagnets. When current flows, each segment experiences a force, and the combined effect produces torque that turns a rotor. Magnetic levitation systems harness the same principle to suspend vehicles above guideways, eliminating mechanical contact. Even household devices like loudspeakers rely on the interaction: a coil attached to the speaker cone feels a force in the presence of a permanent magnet, causing the cone to vibrate and generate sound.
Railguns represent an extreme application. Two parallel conducting rails form part of a circuit containing a massive current. A conductive armature bridges the rails, and when current flows, magnetic forces accelerate the armature along the rails, launching a projectile at high speed. The simple ILB sinθ equation offers a first approximation to the enormous forces involved, though real systems require detailed analysis of inductance, plasma effects, and rail erosion.
Consider a 0.15 m segment of wire carrying 12 A placed in a 0.2 T magnetic field at a 30° angle. The force magnitude is N. Rotating the wire to 90° would double the force because the sine term becomes 1. This simple dependence illustrates how orientation matters just as much as field strength or current.
The calculator assumes a uniform magnetic field across the length of wire and neglects edge effects. In many practical systems the field varies with position, requiring integration along the wire path. Additionally, the derivation presumes a straight wire segment; if your conductor is curved, the direction of changes along its length, complicating the analysis. In AC circuits, the force oscillates with the current, potentially producing vibration rather than steady deflection. These subtleties are beyond the scope of this tool but are important in precise engineering applications.
André-Marie Ampère first documented the mutual forces between current-carrying conductors in the early 1820s, laying the groundwork for electrodynamics. His experiments revealed that parallel currents attract while antiparallel currents repel. Later, James Clerk Maxwell unified electricity and magnetism into his famous equations, from which the Lorentz force law emerges naturally. Every time you calculate the force on a wire, you tap into a lineage of discovery stretching back two centuries and foundational to modern technology.
By encapsulating the interplay between current, magnetic field, and geometry, the relation provides a versatile tool for analyzing electromagnetic systems. Whether you are studying for an exam, designing a motor, or simply curious about the forces at play in electric circuits, this calculator offers a quick way to explore how each parameter influences the outcome. Experiment with different values, consult the table of field strengths for context, and deepen your intuition about the magnetic forces that quietly power much of the modern world.
Calculate the magnetic field strength produced by a current-carrying long straight wire using Ampère's law.
Compute the magnetic field near a straight finite wire or solve for current, distance, or endpoint angles.
Compute the magnetic force per unit length or total force between two long parallel current-carrying wires.