Magnetic Field Around a Wire and a Solenoid: Field Lines, the Grip Rule and Electromagnets
Learn how to read magnetic field lines, use the right-hand grip rule for a straight wire and a coil, explain why a solenoid acts like a bar magnet, and make an electromagnet stronger for relays, bells and cranes.
Published · 8 min read
On this page
Every electric current makes a magnetic field. Around a long, straight wire, the field lines are circles centred on the wire. The field is strongest close to the wire and weaker further away. A bigger current gives a stronger field, and reversing the current reverses the field's direction.
Wind the wire into a long coil, called a solenoid, and the fields of all the turns add together. Outside the coil, the field has the same shape as a bar magnet's field, with a north pole at one end and a south pole at the other. Inside, the field is strong and uniform. Put an iron core inside and you have an electromagnet: a magnet you can switch on and off.
What do magnetic field lines show?
A magnetic field is the region around a magnet where a magnetic material, or another magnet, feels a force. Field lines are a way to picture it.
- Direction. Outside a magnet, the arrows go from the north pole to the south pole. Each arrow shows the direction of the force on a north pole placed at that point. A small compass lines up with the field, its north end pointing along the arrow.
- Strength. Where the lines are close together, the field is strong. Where they spread out, it is weak. Around a bar magnet, the lines crowd together at the poles.
- No crossing. Field lines never cross, because the field can only point one way at any place.
To map a field, move a small plotting compass around the magnet and mark the way its needle points. Iron filings show the pattern but not the direction.
Explore the field of a permanent magnet in the bar magnet field simulation.
What is the field around a straight wire?
In 1820, the Danish scientist Hans Christian Ørsted noticed that a current in a wire made a nearby compass needle move.
Around a long, straight wire, the field lines are concentric circles: circles that share the same centre, the wire. They lie in planes at right angles to the wire.
- Closer to the wire, the circles are drawn closer together, because the field is stronger there.
- A bigger current makes the field stronger everywhere.
- Reversing the current reverses the arrows on the circles.
How do you use the right-hand grip rule?
Imagine gripping the wire in your right hand, with your thumb pointing along the conventional current, from positive to negative. Your fingers curl round the wire in the direction of the magnetic field.
Diagrams often show the wire end-on, as a small circle:
- A dot means the current is coming out of the page, towards you. The field lines go anticlockwise.
- A cross means the current is going into the page, away from you. The field lines go clockwise.
To remember the symbols, think of a dart. You see its point, a dot, as it flies towards you, and its feathers, a cross, as it flies away.
How strong is the field around a wire?
For a long, straight wire, the field strength is proportional to the current and inversely proportional to the distance from the wire. Double the current and the field doubles. Double the distance and it halves. Most GCSE and IGCSE courses only ask for the trend in words: a stronger field nearer the wire and with a bigger current. The proportions still help you compare values.
Field strength is measured in teslas (T). A microtesla (μT) is one millionth of a tesla. The Earth's field at the surface is roughly 25 to 65 μT, depending on where you are.
Worked example 1: a compass near a wire
A long, straight wire carries a current of 6.0 A. At 3.0 cm from the wire, the field strength is 40 μT. Find the field strength (a) at 12 cm from the wire, and (b) at 12 cm when the current is doubled to 12 A.
Given: field strength B = 40 μT at a distance of 3.0 cm, with a current of 6.0 A
Relationship: field strength ∝ current ÷ distance
(a) 12 cm is 12 ÷ 3.0 = 4 times further away, so the field is 4 times weaker:
(b) Doubling the current doubles the field:
Answer: (a) 10 μT and (b) 20 μT. These are similar in size to the Earth's field, which is why a compass near a wire carrying a few amps swings so clearly.
What is the field of a solenoid?
A solenoid is a long coil of wire. When a current flows, the circular fields around the turns combine.
- Inside, the field lines are straight, parallel and evenly spaced. The field is strong and uniform: away from the ends, it has the same strength and direction everywhere inside. (It weakens a little near the ends.)
- Outside, the pattern matches the field of a bar magnet. One end acts as a north pole and the other as a south pole.
- The lines form closed loops. Outside the coil they run from the north end to the south end. Inside, they carry on from south back to north.
Coiling the wire makes the field much stronger than the same wire laid out straight, because inside the coil the fields of all the turns point the same way.
Which end is the north pole?
Use the right-hand grip rule again, but now curl your fingers round the coil in the direction of the current. Your thumb points to the north pole.
You can also look straight at one end of the coil. If the current flows anticlockwise as you look, that end is a north pole. If it flows clockwise, that end is a south pole.
For example, suppose the current looks clockwise from end A of a coil. End A is then a south pole, and the far end is north. A compass just beyond end A has its north end pointing towards the coil, because a south pole attracts the north end of a compass.
Explore the fields of a wire and a coil in the field around a wire and solenoid simulation.
How can you make an electromagnet stronger?
An electromagnet is a solenoid wound around an iron core. The coil's field magnetises the iron, and the iron's own field adds to it, making the magnet many times stronger.
To make an electromagnet stronger:
- Increase the current in the coil.
- Wind more turns of wire onto the same length of core.
- Add an iron core, if there is not one already.
The core is made of soft iron. Here "soft" describes its magnetism, not its hardness. Soft iron is magnetised easily and loses almost all its magnetism when the current stops. A steel core would stay magnetised, so the magnet could not be switched off properly.
Where are electromagnets used?
Unlike a permanent magnet, an electromagnet can be switched off, and its strength can be changed.
- Scrapyard cranes. A large electromagnet lifts old cars and steel scrap, then drops them when the current is switched off. It also separates iron and steel from metals that are not magnetic, such as aluminium and copper.
- Electric bells. Pressing the switch powers an electromagnet, which pulls a soft iron armature so that a hammer strikes the gong. The movement breaks the circuit and switches off the electromagnet, so a spring pulls the armature back and remakes the contact. This repeats rapidly while the switch is held down.
- Relays. A relay is a switch worked by an electromagnet. A small current in its coil pulls an iron armature, which closes a separate pair of contacts. A small, safe current can then control a much larger current in another circuit.
- Other uses include loudspeakers, circuit breakers and hospital MRI scanners.
Worked example 2: why use a relay?
A car's starter motor takes a current of 120 A from the 12 V battery. It is switched on by a relay whose coil takes only 0.15 A from the same battery. Find the power in each circuit, and how many times bigger the motor current is.
Given: V = 12 V, motor current = 120 A, coil current = 0.15 A
Equation: P = IV
Coil:
Motor:
Ratio of currents: 120 ÷ 0.15 = 800
Answer: the coil uses 1.8 W and the motor about 1.4 kW, with 800 times the current. Only the small coil current flows through the key switch, so thin wires can run to it, while the thick motor cables stay short.
Common mistakes
- Drawing field lines from S to N outside a magnet. Outside a magnet, they go from N to S.
- Using your left hand. The grip rule uses the right hand. Fleming's left-hand rule is for the motor effect, which is a different idea.
- Spacing the circles around a wire evenly. They should get further apart as you move away from the wire.
- Saying the field inside a solenoid is weak. Inside, it is strong and uniform.
- Choosing a steel core for an electromagnet. Steel stays magnetised. Soft iron is used so the magnet switches off.
Key points
- Field lines go from N to S outside a magnet. Lines closer together mean a stronger field.
- A straight wire has circular field lines. The field is stronger near the wire and with a bigger current.
- Right-hand grip rule: thumb along the current, fingers curl in the direction of the field.
- A solenoid's field is like a bar magnet's outside, and strong and uniform inside.
- An electromagnet is a solenoid with a soft iron core. More current, more turns and an iron core make it stronger.
- Electromagnets are used in relays, electric bells, scrapyard cranes and loudspeakers.