Drawing the invisible field

Magnetic Field Lines

Magnetic field lines are imaginary curves drawn so that, at every point, they run in the direction a compass needle would point, and their spacing shows how strong the magnetic field is. Outside a magnet they leave the north pole and enter the south pole, they always form closed loops, and they never cross. Where the lines crowd together the field is strong; where they spread apart it is weak.

Iron filings on white card forming curved chains that trace the magnetic field lines of a hidden bar magnet
Iron filings line up with the field and trace its lines, crowding where the field is strongest.

At a Glance

Magnetic field lines are a map of a magnetic field: the direction of a line at any point is the direction of the field there, and the closer the lines, the stronger the field. They run from north to south outside a magnet, continue from south to north inside it, form closed loops and never cross. Around a straight wire they are circles whose field strength falls as B = μ0 I / (2πr).

Shows
Direction (tangent) and strength (line density) of B
Direction outside a magnet
North pole to south pole
Shape
Always closed loops, never crossing
Field quantity
Magnetic field B, a vector, in teslas (T)
Around a straight wire
Circles, B = μ0I / (2πr)
Idea introduced by
Michael Faraday ("lines of force")
On this page
  1. What Are Magnetic Field Lines?
  2. Magnetic Field Lines Explained Simply
  3. What Are the Rules of Magnetic Field Lines?
  4. What Do the Field Lines of a Bar Magnet Look Like?
  5. What Do Magnetic Field Lines Look Like Around a Wire?
  6. What Is the Field Line Pattern of a Coil or Solenoid?
  7. How Do Field Lines Show the Strength of a Magnetic Field?
  8. How Can You See Magnetic Field Lines?
  9. How Are Magnetic Field Lines Different From Electric Field Lines?
  10. Who Came Up With the Idea of Field Lines?
  11. How Can You Practice Drawing Field Lines?
  12. Common Misconceptions
  13. Key Facts
  14. Quiz
  15. FAQ

What Are Magnetic Field Lines?

A magnetic field fills the space around a magnet or a current, but you cannot see it. Field lines are a drawing tool that makes it visible. Each line is traced so that a tiny compass placed anywhere on it would line up with the line, and an arrow on the line shows the way the compass's north end would point.

The lines carry two pieces of information at once. Their direction at any point is the direction of the field there. Their spacing shows the strength: packed tightly where the field is strong, spread out where it is weak. A single picture can therefore show both what a field does and where it is most intense.

Field lines are a model, not physical strings. The field exists everywhere between the lines too; we just draw a selection of them so the pattern is readable.

Magnetic Field Lines Explained Simply

Imagine scattering a thousand tiny compasses around a magnet. Each one swings until it points along the field. If you join up the needles head to tail, you get smooth curves looping from one end of the magnet to the other. Those curves are the field lines.

Near the ends of the magnet, the needles are pulled hard and the curves bunch up. Far away, the pull is weak and the curves spread out. That is all a field-line picture is: a map that shows which way a compass would point and how hard it would be pulled.

What Are the Rules of Magnetic Field Lines?

  1. They point from north to south outside a magnet. Inside the magnet they continue from south back to north.
  2. They always form closed loops. A line never starts or stops in empty space, because no isolated north or south pole has ever been found.
  3. They never cross. At a crossing point the field would have two directions at once, which is impossible. A compass can only point one way.
  4. Closer lines mean a stronger field. The number of lines passing through a small area is proportional to the field strength there.
  5. The field points along the tangent. On a curved line, the direction of the field is the direction of the line at that exact point.
  6. Parallel, evenly spaced lines mean a uniform field. The field has the same size and direction everywhere in that region.

What Do the Field Lines of a Bar Magnet Look Like?

Around a single bar magnet the lines bulge out of the north pole, sweep around the sides in wide arcs and curve back into the south pole. The pattern is crowded at the two ends and thin along the middle of the sides, which matches the everyday fact that paper clips stick to the poles but barely to the center of the magnet. You can learn more about where this field comes from on our page about how magnets work.

Two magnets change the picture. With opposite poles facing, lines run straight across the gap and the magnets pull together. With like poles facing, the lines from each magnet bend away from each other, and between them is a neutral point where the two fields cancel and a compass would not settle in any particular direction.

Magnetic field lines of a bar magnet looping from the north pole to the south pole, closest together at the poles
The classic bar-magnet pattern: lines leave N, loop around and enter S, bunching up where the field is strongest.

What Do Magnetic Field Lines Look Like Around a Wire?

A straight wire carrying current has no poles at all. Its field lines are circles centered on the wire, lying in planes at right angles to it. The right-hand grip rule gives the direction: point your right thumb along the current and your fingers curl the way the field circles.

The circles get farther apart as you move away from the wire, because the field strength falls in proportion to 1/r. Double the distance from the wire and the field halves. The table below shows this for a 10 A current, and the magnetic field calculator works it out for any current and distance.

This formula sets how quickly the circular lines around a long straight wire thin out with distance. Here it is with each symbol and its SI unit.

B=μ0I2πr
What each symbol means
SymbolQuantitySI unit
Bmagnetic field magnitudetesla (T)
μ0permeability of free space (4π × 10⁻⁷ T·m/A (approximately; 1.2566 × 10⁻⁶ T·m/A))tesla meter per ampere (T·m/A)
Icurrentampere (A)
rperpendicular distance from the wiremeter (m)

Rearranged to find another variable:

I=2πrBμ0r=μ0I2πB

Valid for: long straight wire; field lines are circles (right-hand rule).

Example 1 How strong is the field one ring out?

A long straight cable carries a steady 12 A. What is the magnetic field strength 3.0 cm (0.030 m) from its center? Use μ0 = 1.25663706127 × 10⁻⁶ T·m/A.

  1. Given:
    • permeability of free space: μ0=1.257×10−6 T·m/A
    • current: I=12 A
    • perpendicular distance from the wire: r=0.03 m
  2. Formula: B=μ0I2πr
  3. Substitute: μ0=1.257×10−6 T·m/A,I=12 A,r=0.03 m
  4. Answer: B=8×10−5 T

That is stronger than Earth's field at the surface, which is why a compass held this close to a current-carrying cable swings away from north.

Magnetic field around a long straight wire carrying 10 A
Distance from wireField B (T)Field B (μT)Compared with 1 cm
0.5 cm4.0 × 10⁻⁴4002×
1 cm2.0 × 10⁻⁴2001×
2 cm1.0 × 10⁻⁴1000.5×
5 cm4.0 × 10⁻⁵400.2×
10 cm2.0 × 10⁻⁵200.1×
20 cm1.0 × 10⁻⁵100.05×
Source: Computed with B = μ0I / (2πr), μ0 from NIST CODATA 2022 · Retrieved October 2026
Concentric circular magnetic field lines around a wire with current out of the page, spaced farther apart with distance
Around a straight wire the lines are circles, and they spread out because the field falls off as 1/r.

What Is the Field Line Pattern of a Coil or Solenoid?

Bend a wire into a loop and the circles from every part of the loop add up in the middle, so the lines pass straight through the center. Stack many loops into a long coil, called a solenoid, and the field inside becomes nearly uniform: straight, parallel, evenly spaced lines running along the axis.

Outside the solenoid the lines spread out and loop back around, giving almost exactly the same pattern as a bar magnet. One end acts as a north pole and the other as a south pole. That similarity is the basis of every electromagnet, which is simply a solenoid wrapped around an iron core.

How Do Field Lines Show the Strength of a Magnetic Field?

The strength of a magnetic field is the number of lines crossing each square meter of area at right angles to them. Physicists turn this picture into a quantity called magnetic flux, ΦB=BAcos⁡θ, which you can think of as the total count of field lines passing through a surface.

That is why field strength is sometimes called flux density, and why its unit, the tesla, equals one weber per square meter. A loop facing the field square-on catches the most lines. Tilt it and fewer lines pass through, which is the key idea behind every generator and transformer.

Example 2 Counting the field through a small loop

A square loop of wire with an area of 0.0025 m² (5 cm by 5 cm) sits in a uniform 0.40 T field. The field lines make a 60° angle (1.0472 rad) with the loop's normal. What is the magnetic flux through the loop?

  1. Given:
    • magnetic field: B=0.4 T
    • area: A=0.0025 m2
    • angle between B and the normal to the area: θ=1.047 rad
  2. Formula: ΦB=BAcos⁡θ
  3. Substitute: B=0.4 T,A=0.0025 m2,θ=1.047 rad
  4. Answer: ΦB=5×10−4 Wb

Tilting the loop lets fewer field lines pass through it; at 90 degrees no lines would cross the loop at all and the flux would be zero.

Typical magnetic field strengths, from sparse to densely packed field lines
SourceTypical fieldField lines in a drawing
Earth's field at the surfaceAbout 25 to 65 μTVery widely spaced
Fridge magnet, at its surfaceAbout 5 mTSparse
Strong neodymium magnet, at its surfaceAbout 0.5 to 1 TDense
Hospital MRI scannerAbout 1.5 to 3 TVery dense, uniform
Strongest steady lab magnetsAbout 45 TExtremely dense
Source: Typical approximate values · Retrieved October 2026

How Can You See Magnetic Field Lines?

The easiest method is iron filings. Lay a sheet of card over a magnet, sprinkle filings on top and tap the card gently. Each filing becomes a tiny magnet, lines up with the field and links with its neighbors into chains that trace out the pattern.

A plotting compass gives the direction as well. Place it near the magnet, mark where the needle points, move the compass to that mark and repeat. Joining the dots builds one field line at a time. Both methods are described step by step in our magnetic field mapping experiment.

On a grand scale, the glowing curtains of the aurora trace field lines high above the poles, where Earth's field guides charged particles from the Sun into the atmosphere. Read more about the Earth's magnetic field.

Iron filing pattern between two like magnetic poles, with lines bending apart around an empty neutral point
With like poles facing, the field lines bend away from each other and leave a neutral point between the magnets.

How Are Magnetic Field Lines Different From Electric Field Lines?

Electric field lines start on positive charges and end on negative charges, so they have loose ends. Magnetic field lines have no ends at all; they always close on themselves. This difference reflects a deep fact: electric charges can exist on their own, but magnetic poles always come in north-south pairs.

Break a bar magnet in half and you do not get a lone north pole. You get two smaller magnets, each with both poles and its own set of closed loops. For a full side-by-side look, see electric field vs magnetic field.

Who Came Up With the Idea of Field Lines?

The English scientist Michael Faraday made field lines central to physics in the 1830s and 1840s. He called them "lines of force" and treated them as something close to real, using them to reason about induction long before the mathematics existed. James Clerk Maxwell later turned Faraday's pictures into the equations of electromagnetism.

The patterns themselves were noticed much earlier. People had sprinkled iron filings around lodestones for centuries, and the curved lines they formed hinted that the space around a magnet had a structure of its own.

How Can You Practice Drawing Field Lines?

Start with a single bar magnet, then two magnets with like and unlike poles facing, then a wire and a coil. Check every drawing against the rules: arrows from north to south, closed loops, no crossings, tighter spacing near poles. Our magnetism worksheets include field-line drawing tasks with answer keys, and the magnetism formula sheet collects the field equations for wires, loops and solenoids.

Common Misconceptions

Myth: Magnetic field lines are real physical objects, like strings.

Physics: They are a drawing convention. The field exists everywhere in the space, including between the lines we choose to draw.

Myth: The field is zero in the gaps between field lines.

Physics: The gaps only mean we did not draw a line there. The field is continuous, and its strength is shown by how close the drawn lines are.

Myth: Field lines start at the north pole and stop at the south pole.

Physics: They continue through the inside of the magnet from south to north, so every line is a closed loop with no start or end.

Myth: A charged particle always moves along a magnetic field line.

Physics: The magnetic force is at right angles to the field, so a charge crossing the lines is pushed sideways and usually spirals around them instead of following them.

Key Facts

  • Magnetic field lines show the direction of a magnetic field and, by their spacing, its strength.
  • Outside a magnet the lines run from the north pole to the south pole; inside they return from south to north.
  • Magnetic field lines always form closed loops because isolated magnetic poles have never been found.
  • Field lines never cross, since the field can only have one direction at each point.
  • Around a straight wire the lines are circles, and the field falls off as 1/r.
  • Inside a long solenoid the lines are straight and evenly spaced, showing a nearly uniform field.
  • Michael Faraday introduced field lines, calling them lines of force.
Did you know? Some bacteria that live in mud contain chains of tiny magnetite crystals that act like a built-in compass needle, so the cells swim along Earth's magnetic field lines to find the low-oxygen sediment they prefer.

Quick Quiz: How Well Do You Know Magnetic Field Lines?

6 questions. Tap an answer to check it.

  1. Outside a bar magnet, which way do the magnetic field lines point?

  2. What does it mean when field lines are drawn close together?

  3. Why can two magnetic field lines never cross?

  4. What shape are the field lines around a long straight wire carrying current?

  5. What do field lines inside a long solenoid look like?

  6. Why are magnetic field lines always closed loops?

Frequently Asked Questions

What are magnetic field lines?

Magnetic field lines are imaginary lines drawn to show a magnetic field. At every point, the line points in the direction a compass needle would point, and the spacing of the lines shows how strong the field is. They run from north to south outside a magnet, return through the magnet from south to north, never cross and always form closed loops.

Why do magnetic field lines never cross?

If two lines crossed, the field at that point would have two different directions at once. A compass placed there would have to point two ways, which is impossible. The magnetic field at any single point has exactly one direction, given by adding up the fields of every magnet and current nearby, so only one line can pass through each point.

Do magnetic field lines go from north to south?

Outside a magnet, yes: the lines leave the north pole and enter the south pole. Inside the magnet they continue from the south pole back to the north pole, completing a closed loop. The arrows on a field-line drawing therefore always show the direction a small compass's north end would point at that spot.

What does the spacing of magnetic field lines tell you?

Spacing shows field strength. Where lines are packed close together, such as near the poles of a magnet, the field is strong. Where they are far apart, the field is weak. Strictly, the number of lines crossing a unit area at right angles is proportional to the field strength, which is why the field is also called magnetic flux density.

Why are magnetic field lines closed loops?

Because magnetic poles always come in pairs. Electric field lines can begin on a positive charge and end on a negative one, but no one has ever found a lone north or south magnetic pole for a line to start or end on. Every magnetic field line must therefore loop back on itself, passing through the magnet or around the current that creates it.

What do magnetic field lines look like around a current-carrying wire?

They are circles centered on the wire, in planes at right angles to it. The direction follows the right-hand grip rule: point your right thumb along the current and your fingers curl in the direction of the field. The circles spread farther apart with distance, since the field strength drops in proportion to one over the distance from the wire.

How do you show magnetic field lines with iron filings?

Place a sheet of paper or card over a magnet, sprinkle a thin layer of iron filings on top and tap the sheet gently. Each filing becomes magnetized and lines up with the field, linking with others into chains that follow the field lines. The filings show the pattern but not the direction, so use a small plotting compass to add arrows.

Can magnetic field lines exist inside a magnet?

Yes. Inside a magnet the lines run from the south pole to the north pole, which is what makes every line a closed loop. The field inside a bar magnet is actually strong and fairly uniform. We usually leave these lines out of simple drawings because the magnet is shown as a solid block, but they are there.

Sources

Constants come from NIST CODATA 2022 (public domain) and unit definitions from the BIPM SI Brochure (CC BY 4.0). Text, diagrams and illustrations are original work by Physics Tribune.

Physics Tribune Editorial Team
Written by our editors and checked against NIST and BIPM reference data. Every worked example is recomputed in code. Read our editorial policy. Last updated October 2026.