Magnetic Field Calculator
Calculate magnetic field strength from current in wires, solenoids, and current loops. Essential for electromagnetism, motor design, and physics applications.
What is a magnetic field?
A magnetic field is a region where magnetic forces act on moving charges and magnetic materials. Field strength B (measured in Tesla or Gauss) indicates the force on a moving charge or current-carrying wire. Magnetic fields are produced by moving charges and intrinsic magnetic moments.
What is the formula for magnetic field around a wire?
For a long straight wire carrying current I, the magnetic field at distance r is B = μ₀I/(2πr), where μ₀ = 4π×10⁻⁷ T·m/A is the permeability of free space. The field forms circular loops around the wire (right-hand rule).
How do I calculate the magnetic field of a solenoid?
Inside a long solenoid with n turns per meter carrying current I, the field is uniform: B = μ₀nI. For N total turns over length L: B = μ₀NI/L. Outside an ideal solenoid, the field is nearly zero.
What is the difference between Tesla and Gauss?
Tesla (T) and Gauss (G) both measure magnetic field strength. 1 Tesla = 10,000 Gauss. Tesla is the SI unit, used for strong fields (MRI: 1-3 T). Gauss is convenient for weaker fields (Earth: ~0.5 G, refrigerator magnet: ~100 G).
What is magnetic permeability μ₀?
Magnetic permeability of free space μ₀ = 4π×10⁻⁷ T·m/A (or H/m) relates magnetic field to current. In materials, relative permeability μᵣ modifies this: B = μ₀μᵣH. Ferromagnetic materials (iron) have μᵣ >> 1.
How does the right-hand rule work for magnetic fields?
For a straight wire: point your right thumb in the current direction; fingers curl in the field direction. For a solenoid: curl fingers in current direction through loops; thumb points to north pole (field direction inside).
What is the magnetic field in a current loop?
At the center of a circular loop of radius R carrying current I: B = μ₀I/(2R). For N loops: B = μ₀NI/(2R). The field is strongest at the center and weakens with distance along the axis.
How strong are typical magnetic fields?
Earth's field: ~50 μT (0.5 G), Refrigerator magnet: ~5 mT (50 G), MRI machine: 1-3 T (10,000-30,000 G), Sunspot: 0.3 T, Neutron star: 10⁸ T, Large Hadron Collider magnets: 8 T, Strong lab magnets: up to 45 T.
What is the force on a current-carrying wire in a magnetic field?
The force is F = BIL sin(θ), where B is field strength, I is current, L is wire length in the field, and θ is the angle between field and current. Maximum force occurs when perpendicular (θ = 90°).
Can magnetic fields do work on charged particles?
No! Magnetic force is always perpendicular to velocity (F = qv×B), so it can't change kinetic energy, only direction. This is why particles move in circles in uniform magnetic fields. Electric fields do work and change energy.
What is the difference between B and H fields?
B (magnetic flux density, in Tesla) is the total field including material effects. H (magnetic field intensity, in A/m) is the field from currents alone. In vacuum: B = μ₀H. In materials: B = μ₀μᵣH. B is what forces act on; H is what currents create.
How do I calculate the field at the end of a solenoid?
At the end face of a semi-infinite solenoid, the field is exactly half the interior value: B = μ₀nI/2. This is because the field lines spread out from one end, rather than being confined inside the solenoid.