Magnetic Field Calculator

Magnetic Field - Perform scientific calculations with precision and accuracy.

Free to use
12,500+ users
Updated January 2025
Instant results

Magnetic Field Calculator

For common configurations

Field from a Long Straight Wire

B = (μ₀ * I) / (2π * r)

Understanding Magnetic Fields

The Invisible Force of Moving Charges.

What is a Magnetic Field?

A Magnetic Field (B) is a vector field that describes the magnetic influence on moving electric charges, electric currents, and magnetic materials. It is a region of space around a magnet or a current-carrying wire where a magnetic force can be detected.

Magnetic fields are created by two primary sources: moving electric charges (electric currents) and intrinsic magnetic moments of elementary particles (like electrons).

The direction of the magnetic field at any point is the direction that the north pole of a compass needle would point. The field is strongest where the field lines are closest together.

Example:[Image of magnetic field lines around a bar magnet] A bar magnet creates a magnetic field that loops from its north pole to its south pole. Iron filings sprinkled around the magnet will align with these invisible field lines.

Sources of Magnetic Fields

All magnetism originates from moving charges.

1. Permanent Magnets: In materials like iron, the magnetic properties arise from the collective alignment of the magnetic moments of their electrons. The spinning and orbiting of electrons within atoms create tiny current loops, turning each atom into a microscopic magnet. When these 'atomic magnets' align, they create a large-scale, persistent magnetic field.

2. Electric Currents: A fundamental principle of electromagnetism is that any moving electric charge (i.e., an electric current) creates a magnetic field that circles around the path of the current. This was discovered by Hans Christian Ørsted.

Example:An electromagnet is made by wrapping a wire around an iron core. When current flows through the wire, it generates a strong magnetic field, which is amplified by the iron core. Turning off the current causes the magnetic field to disappear.

Force on a Moving Charge (Lorentz Force)

A magnetic field exerts a force on a charged particle, but only if that particle is moving. The force is known as the Lorentz Force.

The magnitude of the force is given by: F = qvBsin(θ)

Where:

F: The magnetic force in Newtons (N).

q: The magnitude of the charge in Coulombs (C).

v: The speed of the charge in m/s.

B: The strength of the magnetic field in Teslas (T).

θ: The angle between the velocity vector (v) and the magnetic field vector (B).

The direction of the force is always perpendicular to both the velocity of the particle and the direction of the magnetic field, determined by the Right-Hand Rule.

Example:The force is maximum when the charge moves perpendicular to the field (sin(90°)=1) and is zero when the charge moves parallel to the field (sin(0°)=0).

Real-World Application: Electric Motors and MRI

Magnetic fields are essential to countless modern technologies.

Electric Motors: A motor works by placing a current-carrying loop of wire in a magnetic field. The magnetic field exerts a force on the wire, causing it to spin and create rotational motion. This is the basis for everything from fans to electric cars.

Medical Resonance Imaging (MRI): MRI machines use a very strong magnetic field to align the protons in the water molecules of the human body. Radio waves are then used to knock these protons out of alignment, and the signal they emit as they realign is used to create detailed images of soft tissues.

Earth's Magnetic Field: Generated by the molten iron core of our planet, the magnetosphere acts as a shield, deflecting harmful charged particles from the sun (the solar wind) and protecting life on Earth. It's also what makes compasses work.

Example:The beautiful auroras (Northern and Southern Lights) are caused by charged particles from the sun being guided by the Earth's magnetic field lines toward the poles, where they collide with atmospheric gases.

Key Summary

  • **Magnetic Fields** are created by moving electric charges and the intrinsic spin of particles.
  • They exert a force on other moving charges, described by the **Lorentz Force Law (F = qvBsinθ)**.
  • The force is always perpendicular to both the particle's velocity and the magnetic field.
  • This principle is the basis for electric motors, generators, and MRI technology.

Practice Problems

Problem: An electron (charge q = -1.6 x 10⁻¹⁹ C) moves at a speed of 2.0 x 10⁶ m/s perpendicular to a magnetic field with a strength of 0.5 T. What is the magnitude of the magnetic force on the electron?

Use the Lorentz force law: F = |q|vBsin(θ). Since it's perpendicular, θ = 90° and sin(90°) = 1.

Solution: F = (1.6 x 10⁻¹⁹ C) * (2.0 x 10⁶ m/s) * (0.5 T) * 1 = 1.6 x 10⁻¹³ N.

Problem: A proton moves parallel to the direction of a uniform magnetic field. What is the magnetic force on the proton?

Analyze the angle (θ) between the velocity and the magnetic field in the Lorentz force law.

Solution: Since the proton is moving parallel to the field, the angle θ is 0°. The sine of 0° is 0. Therefore, the magnetic force on the proton is F = qvB * (0) = 0 N. A magnetic field exerts no force on a charge moving parallel to it.

Frequently Asked Questions

What is the difference between a magnetic field and an electric field?

Electric fields are created by stationary charges and exert a force on other charges, whether they are moving or not. Magnetic fields are created by moving charges and exert a force only on other moving charges.

What is the Right-Hand Rule?

The Right-Hand Rule is a mnemonic used to find the direction of the magnetic force. If you point your fingers in the direction of the charge's velocity (v) and curl them in the direction of the magnetic field (B), your thumb will point in the direction of the force (F) for a positive charge. For a negative charge, the force is in the opposite direction.

Do magnetic poles always come in pairs?

Yes. As far as we know, every magnet must have both a north and a south pole. No 'magnetic monopole' (an isolated north or south pole) has ever been discovered, although some advanced physics theories predict they might exist.

The Other Half of Electromagnetism

The magnetic field is a fundamental aspect of the universe, inextricably linked to electricity. This profound connection forms the basis of electromagnetism, a force that governs everything from light to modern technology.

It is the force that turns electricity into motion.