4.2 Magnetic Field due to a Current: Wire, Loop and Solenoid
Every electric current is surrounded by a magnetic field: circles round a straight wire, a concentrated field through a loop, and inside a solenoid a uniform field that makes the coil behave like a bar magnet โ an electromagnet you can switch on and off.
Press the button of an electric bell and a hammer hammers; switch on the crane in a scrapyard and a tonne of steel leaps up to a plate; at a station in Shanghai a train floats above its track. None of these machines contains a permanent magnet doing the work. Each uses a coil of copper wire, and the magnetism appears only when a current flows through it โ and vanishes the moment the current stops.
This is the discovery รrsted made in 1820: an electric current produces a magnetic field. In this section we map that field for the three shapes of wire that matter most โ a straight wire, a circular loop and a long coil called a solenoid โ learn the right-hand rule that gives the direction of the field in each case, and see how a solenoid wound on soft iron becomes an electromagnet.
The Magnetic Field of a Straight Wire
Stretch a straight wire northโsouth directly above a compass needle and close the switch: the needle swings to one side. Reverse the current and it swings the other way; open the switch and it returns to north. The current has made a magnetic field, and the direction of that field depends on the direction of the current.
To see the shape of the field, pass a thick straight wire vertically through a hole in a horizontal sheet of card, sprinkle iron filings on the card and switch on a large current. Tapped gently, the filings arrange themselves in concentric circles centred on the wire. A small compass placed on any circle sets along it, and when the current is reversed every compass turns round.
- The field lines are concentric circles centred on the wire, lying in planes perpendicular to it.
- Reversing the current reverses the direction of the field lines.
- The field at a given point is directly proportional to the current $I$: double the current, double the field.
- The field becomes weaker farther from the wire: it is inversely proportional to the distance $r$ from the wire, so the circles are drawn farther apart as $r$ increases.
Together, $B\propto\dfrac{I}{r}$, so that $\dfrac{B_2}{B_1}=\dfrac{I_2}{I_1}\times\dfrac{r_1}{r_2}$.
Imagine holding a current-carrying straight wire in your right hand with the thumb pointing in the direction of the current. Then your fingers curl round the wire in the direction of the magnetic field lines. (The same rule is sometimes stated as Maxwell's corkscrew rule: a right-handed screw driven forward in the direction of the current turns in the direction of the field.)
Two pictures make the rule easy to use. Looking at the end of a wire with the current coming towards you (drawn โ, the point of an arrow), the field lines go anticlockwise. With the current going away from you (drawn โ, the tail feathers of an arrow), they go clockwise.
The Field of a Circular Loop
Now bend the wire into a circle and pass a current round it. Every short piece of the loop is a little straight wire with its own circles of field round it. Near the wire the circles are small and clearly circles; farther in, they grow larger, and at the centre of the loop the arcs from all round the loop have become almost straight lines. The important point is that inside the loop every piece of the wire sends its field the same way โ use the thumb rule on the top and the bottom of the loop and you will find the fingers point in the same direction through the middle. So the fields add up, and the field at the centre is strong.
- Inside the loop the field lines all pass through in the same direction; near the centre they are nearly straight and parallel to the axis of the loop.
- The field at the centre is directly proportional to the current $I$ and, for a coil of $n$ turns all carrying the current the same way round, directly proportional to $n$: each turn adds the same field. It is larger for a smaller radius. In short, at the centre $B\propto\dfrac{nI}{r}$.
- Direction (right-hand rule for a loop): curl the fingers of your right hand round the loop in the direction of the current; your thumb points in the direction of the field through the centre.
- Which face is which pole (clock rule): looking at one face of the coil, if the current flows anticlockwise that face behaves as a north pole; if it flows clockwise the face is a south pole.
The Solenoid and the Electromagnet
Wind many turns of insulated copper wire closely, side by side, on a cylinder โ a pencil, a drinking straw, a cardboard tube. Each turn is a circular loop, and their fields add. Iron filings sprinkled round such a coil show a pattern you have seen before: exactly the pattern of a bar magnet. One end of the coil behaves as a north pole and the other as a south pole, and inside the coil the field lines run straight and parallel.
A solenoid is a coil of many circular turns of insulated copper wire wound closely in the shape of a cylinder.
- Outside, the field is like that of a bar magnet: one end of the solenoid is a north pole and the other a south pole (use the clock rule or the right-hand rule for a loop on either end).
- Inside, the field lines are straight, parallel and equally spaced: the field is uniform โ the same strength and direction at all points inside.
- The field is stronger when the current is larger and when there are more turns on each unit of length; placing a soft-iron core inside makes it very much stronger.
- Reversing the current reverses the field and swaps the poles.
An electromagnet is a solenoid wound on a core of soft iron. When a current flows, the field of the solenoid magnetises the core strongly; when the current is switched off, soft iron loses almost all its magnetism. (A steel core would stay magnetised โ that is how permanent magnets are made.)
| Electromagnet | Permanent magnet | |
|---|---|---|
| Magnetism | only while current flows โ can be switched on and off | always present |
| Strength | can be changed (current, turns); can be made very strong | fixed; usually weaker |
| Poles | reversed by reversing the current | fixed |
| Core | soft iron | steel or special alloys |
Electromagnets are everywhere: lifting magnets in scrapyards and steel works, electric bells and door locks, relays that let a small current switch a large one, loudspeakers, the huge solenoids of hospital MRI scanners, and the guide magnets of maglev trains.
1. Using the left hand. The thumb rule is a right-hand rule. (Fleming's left-hand rule, in Section 4.3, is for the force on a wire โ a different question.)
2. Thumb and fingers swapped. For a straight wire the thumb is the current and the fingers the field. For a loop or solenoid it is the other way round: fingers follow the current round the turns, thumb gives the field through the middle (the N end).
3. "The field lines of a straight wire point away from it." They are circles round the wire; they never start or end on it.
4. Distance and field. Doubling the distance from a straight wire halves the field (not a quarter): $B\propto\frac1r$.
5. Steel instead of soft iron. An electromagnet needs a core that loses its magnetism when the current stops. Steel keeps it โ good for permanent magnets, bad for a crane that must drop its load.
In JEE Main, NEET and JEE Advanced 2026; not in the CBSE Class 10 syllabus.
With $\mu_0=4\pi\times10^{-7}\ \text{T m/A}$ (the permeability of free space), the fields in tesla are:
$$B_{\text{wire}}=\frac{\mu_0 I}{2\pi r}$$ $$B_{\text{centre of coil}}=\frac{\mu_0 nI}{2r}$$ $$B_{\text{inside solenoid}}=\mu_0\,n'I$$where $n'$ is the number of turns per metre of the solenoid. For example, $10\ \text{A}$ in a long wire gives $B=\frac{4\pi\times10^{-7}\times10}{2\pi\times0.050}=4.0\times10^{-5}\ \text{T}$ at $5.0\ \text{cm}$ โ about the same as the Earth's field, which is why the compass under a wire swings so clearly. A solenoid with $1000$ turns per metre carrying $2.0\ \text{A}$ has $B=4\pi\times10^{-7}\times1000\times2.0\approx2.5\times10^{-3}\ \text{T}$ inside. You will derive these in Class 12 Physics, Moving Charges and Magnetism.
Exercises
- 1 Describe the pattern of the magnetic field lines round a long straight wire carrying a current.
- 2 State the right-hand thumb rule.
- 3 A vertical wire carries a current downwards. Seen from above, do its field lines go clockwise or anticlockwise?
- 4 A horizontal wire runs eastโwest with the current flowing from west to east. What is the direction of its field at a point directly below it? Directly above it?
- 5 The field at $3.0\ \text{cm}$ from a wire is $B$. What is it at $6.0\ \text{cm}$, for the same current?
- 6 The field at $1.0\ \text{cm}$ from a wire carrying $2.0\ \text{A}$ is $B$. What is the field at $2.5\ \text{cm}$ when the current is $5.0\ \text{A}$?
- 7 What happens to the field round a wire when the current is reversed?
- 8 Why are the circles that represent the field round a wire drawn farther apart as you go outwards?
- 9 A wire runs northโsouth directly above a compass. When the current is switched on, the north end of the needle turns east. In which direction does the current flow?
- 1 Sketch the field lines of a current-carrying circular loop, seen in a plane through its axis.
- 2 Why is the field at the centre of a loop stronger than near a single short piece of the same wire?
- 3 How does the field at the centre of a coil change if the number of turns is doubled, the current and radius staying the same?
- 4 A coil of $20$ turns carrying $1.5\ \text{A}$ has a field $B$ at its centre. What is the field at the centre of a coil of the same radius with $60$ turns carrying $0.50\ \text{A}$?
- 5 The radius of a coil is halved, the turns and current staying the same. How does the field at the centre change?
- 6 Looking at one face of a coil, you see the current flowing clockwise. Is that face a north or a south pole?
- 7 A loop lies flat on a table, and seen from above the current is anticlockwise. Which way does the field at the centre point?
- 8 A coil has a field of $12$ units at its centre when the current is $3.0\ \text{A}$. What current gives $20$ units?
- 1 What is a solenoid?
- 2 Draw the field lines of a current-carrying solenoid. What does the pattern show?
- 3 What kind of field exists inside a long solenoid, and how is it drawn?
- 4 State three ways of increasing the strength of the field of a solenoid.
- 5 What is an electromagnet? Why is its core made of soft iron and not steel?
- 6 Give two differences between an electromagnet and a permanent magnet.
- 7 Looking at end P of a solenoid, the current is clockwise. Name the poles at P and at the other end, Q.
- 8 A solenoid of $400$ turns carrying $0.50\ \text{A}$ has a field $B$ inside. It is rewound with $200$ turns on the same length. What current gives the same field?
- 1 Why does a scrapyard crane use an electromagnet rather than a permanent magnet?
- 2 In an electric bell, a soft-iron armature is pulled towards an electromagnet and then springs back. Why must the core be soft iron?
- 3 The two wires in a mains cable carry equal currents in opposite directions, very close together. Why does such a cable hardly affect a compass placed near it?
- 4 A compass $2\ \text{cm}$ below a wire is deflected only slightly by a current of $1\ \text{A}$. Suggest three ways of making the deflection larger.
- 5 The main magnet of an MRI scanner is a large solenoid that the patient lies inside. Why is a solenoid a good shape for this?
- 6 Challenge. Two long parallel wires are $10\ \text{cm}$ apart. Each, on its own, gives a field $B$ at the point midway between them. What is the field at the midpoint when (a) the currents are in opposite directions; (b) the currents are in the same direction?
E1. Board ยท 2 marks State the right-hand thumb rule. A long straight wire is vertical and the current in it flows upwards. What is the direction of its magnetic field at a point due east of the wire?
E2. Board ยท 3 marks Draw the pattern of magnetic field lines of a current-carrying solenoid. What does the pattern indicate? How can the solenoid be used to make an electromagnet?
E3. Board ยท AssertionโReason Assertion (A): The magnetic field inside a long current-carrying solenoid is uniform. Reason (R): The field lines inside a long solenoid are straight, parallel and equally spaced. (A) Both A and R are true and R explains A. (B) Both are true but R does not explain A. (C) A is true but R is false. (D) A is false but R is true.
E4. Board ยท Case study In a laboratory, a straight wire is stretched northโsouth $3.0\ \text{cm}$ above a compass needle, which points north when there is no current. (i) A current flows from south to north. Which way does the north end of the needle turn? Explain with a rule. [2 marks] (ii) The wire is moved to $6.0\ \text{cm}$ above the needle with the same current. How does the wire's field at the needle change? [1 mark] (iii) State one way of reversing the deflection without touching the wire. [1 mark]
E5. NEET The magnetic field at a distance $r$ from a long straight wire is $B$. If the current is doubled and the distance is made $3r$, the field becomes (A) $6B$ (B) $\dfrac{3B}{2}$ (C) $\dfrac{2B}{3}$ (D) $\dfrac{2B}{9}$
E6. JEE Main A wire bent into a single circular turn has a field $B$ at its centre. The same wire, carrying the same current, is rewound into a coil of $2$ turns. The field at the centre is now (A) $B$ (B) $2B$ (C) $4B$ (D) $\dfrac B2$
Research question. How does the lifting strength of a home-made electromagnet depend on the number of turns and on the current โ and is there a point where adding more stops helping?
Why it matters. Electromagnets lift scrap steel in recycling plants, sort cans from rubbish, hold fire doors open and guide maglev trains. Engineers must choose the turns and current that give enough force without wasting energy as heat in the coil. Every extra ampere costs electricity, and an iron core can only be magnetised so far before it "saturates" โ beyond that, more current gives little extra strength.
What to do.
- Wind $20$ turns of insulated copper wire round a large iron nail (about $10\ \text{cm}$). Connect it through a switch to one $1.5\ \text{V}$ cell; switch on only while testing (the wire warms up).
- Count how many small steel paper clips the nail can lift and hold. Repeat three times and take the average.
- Increase the turns to $40$, $60$ and $80$ on the same length of nail, recounting each time. Then, with $40$ turns, use one, two and three cells in series (more current).
- Plot the number of clips against the number of turns, and against the number of cells. Does the graph stay a straight line?
Tools: iron nail, enamelled or insulated copper wire, $1.5\ \text{V}$ cells and holder, switch, paper clips; optionally a phone magnetometer held at a fixed distance from the end of the nail.
Hand in: A table and two graphs, a sentence on whether strength is proportional to turns and to current in your data, and one reason why the results might level off.
Going further. Repeat with an aluminium rod, a steel bolt and no core at all. Which core gives the strongest magnet, and which keeps some magnetism after the switch is opened? Link your answer to the choice of soft iron for electromagnets.
๐งช Self-check quiz
Q1. The magnetic field lines round a long straight current-carrying wire are
Q2. In the right-hand thumb rule for a straight wire, the thumb shows
Q3. The field at $2\ \text{cm}$ from a long straight wire is $B$. With the same current, the field at $4\ \text{cm}$ is
Q4. The magnetic field inside a long current-carrying solenoid is
Q5. Looking at one end of a solenoid, you see the current flowing anticlockwise. That end is