Home / Electricity & Magnetism / Magnetic Field of a Conductor

Magnetic Field of a Current-Carrying Conductor

Class 10CBSE
Field at marked point: 0 µT

The physics

Any current-carrying conductor creates a magnetic field around it — a straight wire produces concentric circular field lines, while a circular loop produces a field that's strongest and most uniform right at its center, along the loop's axis.

Straight wire: B = μ₀I / (2πr)  (field decreases with distance from the wire)
Circular loop (at center): B = μ₀I / (2r)
Right-hand (grip) rule: thumb along current, curled fingers show field direction

Compass needles placed near a current-carrying wire genuinely deflect to align with the local field direction — this simulation's needle arrows are computed from the real field direction at each point, not placed by hand.

Exam tip: a very common Class 10 exam question shows a wire with current in a given direction and asks you to mark field direction at specific points using the right-hand rule — practice going directly from current direction to field direction without writing out the formula each time.

Sample data: field of a straight wire and of a circular loop

Straight wire at distance r: B = μ₀I/(2πr). At the centre of a circular loop of radius r: B = μ₀I/(2r). The current is 5 A.

Distance or radius rStraight wire at rCentre of loop of radius r
1 cm100.0 μT314.2 μT
5 cm20.0 μT62.8 μT
10 cm10.0 μT31.4 μT

Conditions: I = 5 A, long straight wire, single-turn loop, in air.

Notice: the field at the centre of a loop is π times the field of a straight wire at the same distance, because every part of the loop contributes in the same direction. Moving the wire from 1 cm to 10 cm away cuts its field by a factor of 10.

Quick answers

What is the right-hand thumb rule?
Hold the wire in your right hand with the thumb along the current. The curled fingers show the direction of the magnetic field lines around it.
How does the field depend on current and distance?
For a long straight wire B = μ₀I/2πr. The field is directly proportional to the current and falls as the distance from the wire grows.
What is the field inside a solenoid?
B = μ₀nI, uniform along the axis, where n is the number of turns per metre. Putting an iron core inside makes an electromagnet with a much stronger field.
What is the unit of magnetic field?
The tesla (T), where 1 T = 1 N/(A·m). A smaller unit, the gauss, equals 10⁻⁴ T. Earth's field is about 5×10⁻⁵ T.

🎯 Practice Zone

Puzzle 1. ⭕ The magnetic field around a straight current-carrying wire forms complete CIRCLES around the wire, rather than pointing directly toward or away from it (like an electric field around a point charge). Why does current specifically produce this circular field pattern?

This circular pattern is a direct, fundamental consequence of how magnetic fields relate to moving charge (current) — unlike electric fields (which point radially toward/away from their source charges), magnetic fields are always oriented PERPENDICULAR to the current direction that creates them, wrapping around the wire in circles. This perpendicular relationship is captured mathematically in the Biot-Savart law's cross-product structure, and is precisely what the right-hand rule (thumb pointing along current, fingers curling to show field direction) helps you quickly determine without working through the full vector mathematics each time.

Puzzle 2. 🧭 Hans Christian Ørsted's original 1820 discovery — a compass needle deflecting near a current-carrying wire — happened completely by accident during an unrelated lecture demonstration. Why had this connection between electricity and magnetism remained undiscovered for so long, despite both phenomena being independently well-studied for centuries?

Prior to Ørsted, electricity (static charge, batteries) and magnetism (lodestones, compasses) were considered entirely separate, unrelated phenomena by the scientific community of the era — there was no theoretical reason to expect any connection, so few researchers thought to specifically test for magnetic effects near current-carrying wires. Ørsted's discovery was genuinely accidental (he noticed a compass needle nearby twitch during an unrelated demonstration) precisely because this connection wasn't predicted by any existing theory — it took this chance observation to reveal that electricity and magnetism were actually two aspects of a single, unified electromagnetic phenomenon.

Puzzle 3. 📏 The magnetic field strength around a straight wire falls off as 1/r (inverse distance), while a point charge's electric field falls off as 1/r² (inverse square). Why do these two seemingly similar "field around a source" scenarios have genuinely different distance-dependence?

This difference stems from the different geometric "shapes" of the two sources — a point charge is a genuinely zero-dimensional source, with its field spreading out over an expanding SPHERE (surface area scaling as r²) as distance increases, diluting field strength as 1/r². A long, straight current-carrying wire is effectively a one-dimensional (line) source, with its field spreading out over an expanding CYLINDER around the wire (circumference scaling only as r, not r²) — this more gradual geometric spreading is exactly why the field weakens more slowly, as only 1/r, rather than 1/r².

Puzzle 4. 🔀 Two parallel wires carrying current in the SAME direction attract each other, while current in OPPOSITE directions causes repulsion — genuinely the reverse pattern from how electric charges behave (like charges repel, unlike attract). Why does current-current interaction follow this seemingly "backward" pattern?

This isn't actually backward at all — it's simply a different type of interaction (current-current via magnetic fields) than the familiar charge-charge interaction (via electric fields), following its own distinct geometric rules. Each wire's current creates a circular magnetic field at the other wire's location, and the resulting force on a current-carrying wire in that field (via F=IL×B) depends on the specific geometry involved — working through the actual vector directions using the right-hand rule confirms that same-direction currents genuinely do attract, and opposite-direction currents genuinely do repel, a real and correct (if initially counter-intuitive) result of electromagnetic theory.

Puzzle 5. 🌀 Wrapping a straight wire into a tight coil (solenoid) dramatically concentrates and strengthens the magnetic field inside, compared to the same wire left straight. Why does simply changing the wire's SHAPE (without changing the current or wire length) so dramatically boost field strength?

In a straight wire, the circular field patterns from different points along the wire's length don't reinforce each other in any particular region — the field simply wraps around the wire and weakens with distance in every direction equally. In a tightly-wound coil, each turn's circular field pattern aligns constructively with every other turn's field INSIDE the coil (all pointing the same direction along the coil's axis), while largely cancelling outside the coil — this constructive stacking of many individual turns' contributions inside the coil (rather than the field simply spreading out around a single straight segment) is precisely what produces the dramatically concentrated, strengthened field characteristic of solenoids and electromagnets.

Problem 1 (NEET level). 📘 Find the magnetic field at 5cm from a long straight wire carrying 5A.

B = μ₀I/(2πr) = (4π×10⁻⁷)(5)/(2π×0.05)
B = 20.0 μT

Problem 2 (JEE Main level). 📗 Find the magnetic field at the center of a circular loop of the same radius (5cm) carrying the same current (5A), and compare.

B = μ₀I/(2R) = (4π×10⁻⁷)(5)/(2×0.05)
B = 62.8 μT — about 3.14× (exactly π times) stronger than the straight-wire case, since every part of the loop contributes constructively at the center

Problem 3 (WBJEE level). 📙 Verify the inverse-distance scaling: find the field at 10cm from the wire in Problem 1, and confirm the ratio matches 1/2.

B(10cm) = μ₀I/(2π×0.1) = 10.0 μT
Ratio: B(10cm)/B(5cm) = 10.0/20.0 = 0.5 ✓ exactly confirming the 1/r (not 1/r²) inverse relationship for a straight wire

Problem 4 (CBSE Class 10 level). 📕 Find the magnetic field due to a semicircular arc of radius 5cm carrying 5A (half of a full circular loop).

B = μ₀I/(4R) = (4π×10⁻⁷)(5)/(4×0.05)
B = 31.4 μT — exactly half the full-loop value from Problem 2 (62.8μT), since only half the circle's worth of current contributes

Problem 5 (JEE Advanced style). 📓 Two parallel wires, each carrying 5A at 5cm separation, have fields adding constructively at the midpoint between them (if currents are in the same direction, fields from each wire point the same way there is a special case — let's instead find the combined field just outside both wires, adding directly). Find the total field 5cm to one side of a pair of wires each 5cm apart, both contributing in the same direction.

Using superposition, with both wires' fields adding at this point (each at their respective 5cm distance):
B_total = B_wire1 + B_wire2 = 20.0 + 20.0
B_total = 40.0 μT — a direct application of the superposition principle, treating each wire's contribution independently before summing
🧭
1820

Hans Christian Ørsted discovers, during a lecture demonstration, that a compass needle deflects near a current-carrying wire — the first direct evidence connecting electricity and magnetism as related phenomena.

🔬
1820 (same year)

Within weeks of Ørsted's announcement, André-Marie Ampère, Jean-Baptiste Biot, and Félix Savart independently conduct rigorous quantitative experiments, rapidly establishing the precise mathematical laws (Ampère's law, Biot-Savart law) governing exactly how current produces magnetic fields.

✋
Mid-to-late 1800s

The right-hand rule mnemonic becomes standardized as a practical teaching tool, letting students and engineers quickly determine field direction around a current-carrying conductor without needing to work through the full vector mathematics each time.

📡
1830s–1840s

This newly-understood relationship between current and magnetic field becomes essential to the rapidly developing telegraph industry, whose electromagnetic relays and sounders directly exploit current-generated magnetic fields for long-distance signal communication.

💻
Present day

The fundamental relationship between current and magnetic field, first revealed by Ørsted's 1820 accident, remains foundational to virtually all modern electric motors, generators, transformers, and electromagnetic devices — one of the most consequential accidental discoveries in the history of physics.