📘 CodingMarble Learn

Magnetic Effect of Electric Current

A wire carrying electric current makes a magnetic field around itself. The field forms circles around a straight wire, becomes nearly straight at the centre of a loop, and is uniform inside a solenoid, which then acts like a bar magnet.

🎬 Step-by-step story

  1. Here is a bar magnet. The purple lines are magnetic field lines, and the grey dots are like iron filings sliding along them. Outside the magnet they run from the N pole to the S pole. The compass needle lines up with them.
  2. Look at the lines closely. Each one is a closed loop. No two lines ever cross. They are crowded near the poles, because the field is strongest there.
  3. Now a straight copper wire stands through a card. We switch the current on: the compass swings! Current makes a magnetic field. The lines are circles around the wire. Hold the wire in your right hand, thumb along the current, and your fingers curl the way the field goes.
  4. Bend the wire into a circular loop. Near the wire the lines are still small circles. At the centre of the loop they join up and become almost straight. More turns or more current make this field stronger.
  5. Wind many loops one after another: a solenoid. Inside, the lines are straight, parallel and evenly spaced, so the field is uniform. Outside it looks just like a bar magnet, with an N end and an S end.
  6. Your turn! Pick a magnet, wire, loop or solenoid. Slide the current up, down or to negative to reverse it, and move the compass around. Watch the needle and the field strength change.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Where do field lines start and end?

Nowhere. Outside the magnet they go N to S and inside they return S to N, so each line is a closed loop.

Why can't two field lines cross?

At a crossing point the field would have two directions, and a compass needle cannot point two ways at once.

How do I know the field is stronger near the wire?

The circles are packed closer near the wire. Move the compass closer in free play and watch the strength number rise.

What happens when the current is reversed?

The field circles reverse direction and the compass needle turns round. Drag the current slider below zero to see it.

Why are the lines straight at the centre of a loop?

Every part of the loop pushes the field at the centre the same way, so the lines there add up and run almost straight through.

Is a solenoid really like a bar magnet?

Yes. Compare step 1 and step 5: the outside pattern is the same, with N and S ends. Inside the solenoid the field is uniform.

Does a wire with no current make a magnetic field?

No. Set the current to 0 and the dots stop; the compass goes back to pointing towards Earth's north.

Magnet, magnetic field and compass

A magnet has two ends called poles: the north-seeking pole (N) and the south-seeking pole (S). Like poles repel and unlike poles attract. The space around a magnet where its pull or push can be felt is its magnetic field. A field has both strength and direction, so it is a vector quantity.

A compass is simply a tiny magnet (the needle) that can turn freely. Its N end points in the direction of the field at that place. With no magnet or current nearby, it points towards Earth's geographic north, because Earth itself behaves like a huge magnet.

We cannot see the field, so we draw magnetic field lines: paths along which a tiny free north pole would move. Sprinkle iron filings around a magnet and tap the card: the filings line up along these paths.

Properties of magnetic field lines

Field around a straight current-carrying wire

In 1820 Hans Christian Oersted noticed that a compass needle turned whenever current flowed in a nearby wire. This showed that electric current produces a magnetic field: electricity and magnetism are linked.

Around a long straight wire the field lines are concentric circles centred on the wire, lying in planes at right angles to it.

Right-hand thumb rule

Hold the wire in your right hand with the thumb pointing along the current. Your curled fingers show the direction of the field lines. Reverse the current and the field reverses too, so the compass swings the other way.

What the strength depends on

The field is stronger when the current is larger and weaker as you move away from the wire. Close to the wire the circles are crowded; far away they spread out. (The strength is directly proportional to current and inversely proportional to distance.)

Field due to a circular loop (coil)

Bend the straight wire into a circle. Every small piece of the loop still makes circles of field around itself. Near the wire they look like small circles; towards the centre they get bigger and, at the centre, the lines from all parts of the loop point the same way and look almost like straight lines.

The field at the centre becomes stronger if you increase the current or the number of turns (n turns act like n times one loop). A smaller loop also gives a stronger field at its centre. Seen from one face, anticlockwise current makes that face a north pole and clockwise current makes it a south pole.

Solenoid: a coil that acts like a bar magnet

A solenoid is a long coil of many closely wound turns of insulated copper wire, shaped like a cylinder. When current flows, its field pattern is just like that of a bar magnet: one end behaves as N and the other as S.

Inside a long solenoid the field lines are straight, parallel and equally spaced. This means the field is uniform: the same strength and direction at every point inside. To find the N end, curl the fingers of your right hand along the current in the turns; the thumb points to the N end.

The field becomes stronger with (1) more turns, (2) more current and (3) a soft iron core placed inside.

Electromagnet vs permanent magnet

Put a soft iron rod inside a solenoid and pass current: the rod becomes a strong magnet called an electromagnet. Switch off the current and it loses almost all its magnetism.

ElectromagnetPermanent magnet
Magnet only while current flowsStays magnetised all the time
Strength can be changed (current, turns)Strength is fixed
Poles can be reversed by reversing currentPoles are fixed
Core: soft ironMade of steel, alnico, ferrite, neodymium
Can be made very strongUsually weaker

Uses of electromagnets: cranes for scrap iron, electric bells, relays, loudspeakers, motors, MRI machines and magnetic-levitation trains. Steel is used for permanent magnets because it keeps its magnetism; soft iron for electromagnets because it loses it quickly.

What comes in the board exam

Expect diagrams of field lines (bar magnet, straight wire, loop, solenoid), the right-hand thumb rule, reasons why field lines never cross, factors affecting field strength, and differences between an electromagnet and a permanent magnet. These are usually 1 to 3 mark questions; diagram questions carry marks for arrows showing direction, so always draw them.

Key formulas and definitions

Worked examples

1. A compass is placed just east of a vertical wire. Current flows upward in the wire. Which way does the compass N end point? (Look from above.)

Use the right-hand thumb rule: thumb up, fingers curl anticlockwise when seen from above. On the east side, anticlockwise motion is towards the north. So the needle's N end points north (the wire's field and Earth's field agree here).

2. At 5 cm from a long straight wire the field has some value B. What is the field at 10 cm if the current is doubled at the same time?

B ∝ I/r. Doubling I doubles B, doubling r halves B. So B stays the same: 2 × ½ = 1, the field is still B.

3. A student looks at one face of a coil and sees the current flowing clockwise. What pole is this face? What if the current is reversed?

Clockwise current makes the face a South pole. Reversing the current makes it anticlockwise, so the face becomes a North pole.

4. Give two ways to make a solenoid's magnetic field stronger without changing the coil's length.

Pass more current, add more turns, or put a soft iron core inside. Any two of these.

5. Why does a long solenoid make a uniform field inside but a coil of one turn does not?

In a long solenoid the fields of many turns add up side by side. Inside, the pieces that would bend the lines cancel out, and the lines become straight, parallel and evenly spaced. A single loop is straight only near its centre and curves elsewhere.

Common mistakes

Practice quiz

1. The magnetic field lines around a long straight current-carrying wire are:
2. Magnetic field lines never cross because:
3. The field inside a long current-carrying solenoid is:
4. Which change will weaken the field near a straight wire?
5. The core of an electromagnet is made of soft iron because soft iron:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is the magnetic effect of electric current in simple words?

Whenever current flows in a wire, the wire behaves like a weak magnet and creates a magnetic field around it. A compass kept near the wire moves when the current is switched on.

What is the right-hand thumb rule?

Hold a current-carrying wire in your right hand with the thumb along the current. The direction in which your fingers curl is the direction of the magnetic field lines around the wire.

Why is a solenoid used to make an electromagnet?

A solenoid gives a strong, uniform field inside it. A soft iron rod placed there becomes strongly magnetised, and the magnetism can be switched on, off or reversed with the current.

Where this is taught

PolandSzkoła podstawowa, klasa VIIIMagnetism
RomaniaClasa a VIII-aElectric and magnetic phenomena
Spain2º BachilleratoElectromagnetic field
Ukraine9 класElectromagnetic phenomena; electromagnetic oscillations and waves
CBSE (India)Class 8Electricity: Magnetic and Heating Effects
CBSE (India)Class 10Effects of Current
England (GCSE, A level)Year 9Physics: Electricity and electromagnetism
England (GCSE, A level)Year 114.7 Magnetism and electromagnetism
USA (Common Core, NGSS, AP)Grade 8MS-PS2 Motion and stability: forces
Japan中学2年Field 1 (3): Electric current and its uses
Germany (Bavaria)Jahrgangsstufe 10Electromagnetism
Russia8 классElectric and magnetic phenomena
Russia8 классElectric and magnetic phenomena
China九年级(初三)Ch.20 Electricity and magnetism

Learn first

Learn next

Related lessons

All Physics lessons