On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Physics · Fields & Magnetism · Grade 6-8

Magnetic Field

A vector field around magnets and moving charges that exerts force on other moving charges and magnetic materials.

B=μ0I2πr (field at distance r from a long straight wire)

Quick Answer

A vector field around magnets and moving charges that exerts force on other moving charges and magnetic materials. Use the idea whenever a magnet, a compass, or a wire carrying current affects something without touching it. The field has a direction at every point (the way a compass needle points, running from a magnet's north pole around to its south pole) and a strength measured in tesla. It is strongest close to the source and weakens with distance. Earth's own field, about 50 microtesla, is what turns every compass.

Why This Matters

The magnetic field explains how a compass finds north, why a fridge magnet holds through a sheet of paper but not through a thick book, and how a scrapyard electromagnet can drop a car at the flick of a switch. It is also the first step toward motors, generators and speakers, which all work by moving currents through magnetic fields.

Intuitive Explanation

Put a sheet of paper over a bar magnet and sprinkle iron filings on top. Tap the paper and the filings line up in curved lines that run from one end of the magnet to the other. Those lines are a picture of the magnetic field: the direction a tiny compass would point at each spot. They crowd together near the poles, where the field is strongest, and spread out further away, where it is weaker. Outside the magnet they run from the north pole to the south pole, and inside the magnet they carry on back to north, so every line is a closed loop.

Magnets are not the only source. In 1820 Hans Christian Ørsted noticed a compass needle twitch when he switched on a current in a nearby wire. Any moving electric charge makes a magnetic field. Around a straight wire the field lines are circles centred on the wire, and the field gets weaker further out: for a current I at distance r, B=μ0I2πr. Wind the wire into a coil and the circles add up into a field like a bar magnet's: an electromagnet you can switch off.

A magnetic field is not an electric field. A charged balloon pulls on bits of paper but does nothing to a compass; a magnet swings a compass but leaves a scrap of paper alone. Magnetic fields act on magnets, on iron, nickel and cobalt, and on moving charges; electric fields act on any charge, moving or not. Magnets also always have two poles: cut a bar magnet in half and you get two smaller magnets, each with its own north and south.

Think of it like this. A magnetic field is like the wind across a field of weather vanes: at every spot it has a direction and a strength, and each vane (a compass needle) swings to point along it. The wind is strongest in some places, just as the field is strongest near the poles. Unlike wind, field lines never start or stop; they always close into loops.

Core idea. Magnets and moving charges fill the space around them with a magnetic field that has a direction and a strength at every point; its lines always form closed loops, and it turns compasses and pushes on magnets, iron and moving charges.


When to Use

Use the magnetic field when something is affected by a magnet, a compass, or a wire carrying current without being touched: a needle turning, iron filings lining up, a paper clip pulled from a distance. Signals are north and south poles, field lines, and tesla. If the push comes from a still charge, like a rubbed balloon, use Electric Field; if the question asks for the push on a moving charge or a wire in the field, use Magnetic Force.

Tip. Ask: Is the question about which way a compass would point, and how strongly, at places near a magnet or a current?

How to Recognize It

A magnetic field question is about the space around a magnet or a wire, so check what is making the effect and what you are asked to say about that space.

  1. Is the source a magnet, a coil, or a wire with current flowing in it?

    Yes fits a magnetic field. If the source is a charged object sitting still, like a rubbed balloon, it makes an Electric Field instead.

  2. Is the answer a direction, such as which way a compass points, or a strength in tesla at some place?

    Yes fits. If the answer is the push on a moving charge or a wire placed there, that is Magnetic Force.

  3. Is the field steady, with nothing in the setup changing over time?

    Yes keeps it a magnetic field problem. If the field through a coil is growing or shrinking and a voltage appears, that is Electromagnetic Induction.

  4. Would a compass needle react, while small bits of paper would not?

    Yes means a magnetic field. Paper bits jumping up to a rubbed comb show an Electric Field, which does not turn a compass.

Magnetic Field vs Electric Field vs Magnetic Force vs Electric Current

A magnet, a charged balloon and a wire carrying current can all move things without touching, so their effects get mixed together. Ask what made the effect and whether you are describing the space or a push.

Magnetic Field

Meaning
The magnetic influence around a magnet or a current, which has a direction and a strength at every place.
Key test
It turns a compass, and you are describing the space, in tesla.
Formula
B=μ0I2πr
Example
Iron filings sprinkled around a bar magnet line up into curved loops running from its north pole to its south pole.

Electric Field

Meaning
The influence around a charged object that pushes or pulls other charges, even ones sitting still.
Key test
Made by charge, not by a magnet, and it does not turn a compass.
Formula
E=Fq
Example
A comb rubbed on a sweater makes small bits of paper jump up to it.

Magnetic Force

Meaning
The push a magnetic field gives to a moving charge or to a wire carrying current.
Key test
It asks for the push on one object, not the field around it.
Formula
F=BIL
Example
A wire carrying current between the poles of a horseshoe magnet jumps sideways.

Electric Current

Meaning
The flow of charge through a wire, measured in amperes, which is one way to make a magnetic field.
Key test
It asks how much charge flows each second; the field is its effect.
Formula
I=Qt
Example
Sending 2 A through a coil of wire makes it act like a bar magnet until you switch the current off.

Formula & Notation

B=μ0I2πr (field at distance r from a long straight wire)
The magnetic field due to a long straight current is B=μ0I2πr (from Ampère's law). For a solenoid, B=μ0nI, where n is the number of turns per unit length. Maxwell's equation ∇⋅B⃗=0 guarantees that magnetic field lines are always closed loops (no magnetic monopoles).

How to read it: B⃗ is the magnetic field in tesla (T), μ0=4π×10−7 T·m/A is the permeability of free space, I is the current in amperes, and r is the distance from the wire in metres.

Worked Examples

Example 1 — A wire's field compared with Earth's

Easy

A long straight wire carries a current of 10 A. Find the magnetic field 2.0 cm from the wire using B=μ0I2πr with μ0=4π×10−7 T·m/A. Compare it with Earth's field, about 50 μT.
Show the steps and the answer
  1. Simplify the constant: μ02π=4π×10−72π=2×10−7 T·m/A.

    The π cancels, which makes the arithmetic easy.

  2. Convert the distance: 2.0 cm =0.020 m.

    The formula needs metres.

  3. Calculate: B=2×10−7×100.020=1.0×10−4 T =100 μT.

    One microtesla is 10−6 T, so 10−4 T is 100 μT.

  4. Compare: 100÷50=2.

    The wire's field is twice Earth's here, so a compass held this close would swing well away from north.

Answer: B=1.0×10−4 T (100 μT), about twice Earth's field.

Takeaway: A wire with a current in it is a magnet too; close to the wire its field can beat Earth's, which is why compasses go wrong near wiring.

Example 2 — Charge alone is not enough

Standard

Which of these makes a magnetic field that would turn a compass 1.0 cm away? (a) a balloon charged by rubbing, held still; (b) a wire joined to a battery at one end only; (c) a wire carrying a current of 3.0 A. For the one that does, find the field strength at 1.0 cm.
Show the steps and the answer
  1. (a) The balloon's charge is not moving, so it makes an electric field but no magnetic field.

    Magnetic fields come from magnets and moving charges; a still charge only pulls on other charges and bits of paper.

  2. (b) With no complete loop, no current flows, so there is no magnetic field.

    A battery's push cannot move charge around without a closed path.

  3. (c) Current is moving charge, so it makes a field: B=2×10−7×3.00.010=6.0×10−5 T =60 μT.

    This uses the straight-wire formula with r=1.0 cm =0.010 m.

  4. Only (c) turns the compass, with a field a little stronger than Earth's 50 μT.

    Of the three, only (c) has charge actually on the move.

Answer: Only (c): its field is 6.0×10−5 T (60 μT). The still charge and the open wire make no magnetic field.

Takeaway: A magnetic field needs a magnet or moving charge; charge sitting still makes only an electric field.

Example 3 — Find the mistake: only permanent magnets?

Application

A coil of wire wrapped around an iron nail is connected to a battery, and the nail picks up 12 paper clips. Ravi writes: "The nail must already have been a magnet, because only permanent magnets make magnetic fields." When the battery is disconnected, most of the clips fall off. Find the mistake and explain what happened.
Show the steps and the answer
  1. Look at what changed when the battery was disconnected: the current stopped, and most clips fell.

    If the nail were a permanent magnet, it would hold the clips with or without the battery.

  2. Current in the wire makes a magnetic field, and each turn of the coil adds its field to the others.

    Moving charge is a source of magnetic field, and a coil lines up many loops so their fields point the same way through the middle.

  3. The iron nail lines up with the coil's field and becomes a temporary magnet, making the field much stronger.

    Iron is a magnetic material: its tiny magnetic regions turn to follow the coil's field while the current flows.

  4. With the current off, the coil's field disappears and the nail loses most of its magnetism.

    Iron keeps a little magnetism, so one or two clips may stay, but most fall.

Answer: The current in the coil made the field, and the nail was only a temporary magnet. Switch off the current and the field, and most of the clips, go.

Takeaway: Electric currents make magnetic fields; an electromagnet is a coil carrying current, and the iron inside only strengthens its field.

Where You'll See It

  • A compass needle pointing north

    Earth's magnetic field fills the space around the planet; the compass needle (a tiny magnet) aligns with that field, which is how it shows direction.

  • Iron filings forming loops around a bar magnet

    Sprinkle iron filings near a magnet and they line up along the magnetic field lines, which always loop from north pole to south pole outside the magnet and never just stop in mid-air.

  • An electromagnet lifting cars in a junkyard

    Current flowing through the coil creates a magnetic field (no permanent magnet needed); switch the current off and the field vanishes, dropping the car.

Common Mistakes

  1. The slip: Only permanent magnets make magnetic fields.

    Why it's tempting: Bar magnets and fridge magnets are the everyday examples students meet first.

    Instead: Any moving charge or electric current produces a magnetic field; this is how electromagnets, wires, and motors work without any permanent magnet.

  2. The slip: Magnetic field lines can start or stop at a point in space, like electric field lines start on charges.

    Why it's tempting: By analogy with electric field lines that begin on + charges and end on - charges, students draw magnetic lines that begin and end.

    Instead: There are no magnetic monopoles, so magnetic field lines always form continuous closed loops (they run through the magnet too).

  3. The slip: The force on a moving charge points along the magnetic field.

    Why it's tempting: For electric fields the force on a charge is along the field, so the same is assumed for magnetism.

    Instead: The magnetic force is perpendicular to both the velocity and the field (given by F⃗=qv⃗×B⃗ / the right-hand rule), not along B⃗.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. A bar magnet lies on a table with its north pole on the right. A small compass is placed 10 cm to the right of the north pole. Which way does the compass's north end point?

    Hint: A compass needle lines up with the field. Field lines come out of one pole and go into the other.

  2. The magnetic field near a straight wire is proportional to the current and inversely proportional to the distance. It is 40 μT at 1 cm from the wire when the current is 2 A. What is it at 1 cm with 4 A, and at 2 cm with 2 A?

    Hint: Change one thing at a time and scale the 40 μT up or down.

  3. An electromagnet made of 50 turns of wire on an iron nail lifts 10 paper clips. Another nail is wound with 100 turns and carries the same current. Roughly how many clips can it lift?

    Hint: More turns of current-carrying wire means a stronger field. By about how much?

  4. Earth's magnetic field at the surface is about 50 μT. A fridge magnet's field near its surface is about 5 mT. How many times stronger is the fridge magnet's field?

    Hint: Write both values in the same unit. 1 mT is 1,000 μT.

  5. A balloon rubbed on hair picks up tiny bits of paper. A magnet picks up steel paper clips but not bits of paper. Which one is acting through a magnetic field?

    Hint: Which objects does each one affect? Magnetic fields act on magnetic materials and moving charges.

  6. A student draws field lines that leave the north pole of a bar magnet and simply stop in the air 5 cm away. Correct the drawing.

    Hint: Magnetic field lines never have loose ends.

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Why does a compass point north if opposite poles attract?

A compass needle's north end is pulled toward a magnetic south pole. So the magnetic pole near Earth's geographic North Pole is really a magnetic south pole. The names came from the way the needle points, long before anyone understood this. That magnetic pole is also not exactly at the geographic pole, and it wanders tens of kilometres a year, which is why maps give a correction for compass readings.

If you cut a bar magnet in half, do you get a separate north piece and south piece?

No. Each half becomes a complete magnet with its own north and south pole. Cut a half again and the same thing happens, all the way down to single atoms, because the magnetism comes from electrons that each act like a tiny magnet. In a magnet, huge numbers of these tiny magnets point the same way, so cutting it just makes smaller groups that still line up.

Can a magnetic field pass through paper, wood or my hand?

Yes. Paper, wood, plastic, water and your body barely affect a magnetic field, which is why a fridge magnet can hold a sheet of paper and an MRI scanner can make images of the inside of your body. Iron and steel are different: they gather the field into themselves, so a sheet of iron can shield what is behind it. Shields for sensitive instruments are made from special iron and nickel alloys for this reason.

Why does a magnet stop being a magnet if you heat it?

Inside a permanent magnet, the tiny atomic magnets in each small region point the same way. Heating makes the atoms jiggle more and more, and above a temperature called the Curie point, about 770∘770^\circC for iron, the jiggling scrambles their directions and the magnetism disappears. Dropping or hammering a magnet hard can also knock some regions out of line and weaken it.

Learning Path

Magnetic Field

You are here

You need Electric Current (moving charge in a wire) and Electric Field (how a charge affects the space around it) first. The magnetic field is the field made by magnets and moving charges, with a direction at every point and lines that form closed loops. Next, Magnetic Force works out the push on wires and moving charges in the field, and Electromagnetic Induction shows how a changing field makes electricity.

See Also