Download Careers360 App
Magnetic Field Due To Current In Straight Wire

Magnetic Field Due To Current In Straight Wire

Edited By Vishal kumar | Updated on Jul 02, 2025 08:06 PM IST

Introduction

When an electric current flows through a straight wire, it generates a magnetic field around the wire. This phenomenon is a result of Ampère's law, which states that electric currents create magnetic fields. The magnetic field produced by a straight current-carrying wire forms concentric circles around the wire, and its direction is determined by the right-hand thumb rule: if you point your right thumb in the direction of the current, your fingers will curl in the direction of the magnetic field. The strength of the magnetic field decreases as the distance from the wire increases. This principle is foundational in understanding electromagnetism and is applied in devices such as electromagnets, transformers, and motors.

This Story also Contains
  1. Introduction
  2. Magnetic Field Due To Current In a Straight Wire:
  3. Some Solved Examples
  4. Summary
Magnetic Field Due To Current In Straight Wire
Magnetic Field Due To Current In Straight Wire

Magnetic Field Due To Current In a Straight Wire:

Magnetic field lines around a current-carrying straight wire are concentric circles whose centre lies on the wire.

The magnitude of magnetic field B, produced by a straight current-carrying wire at a given point is directly proportional to the current I pairing through the wire i.e. B is inversely proportional to the distance 'r' from the wire $\left ( B\propto \frac{1}{r} \right )$ as shown in the figure given below.


Derivation:

The directions of magnetic fields due to all current elements are the same in the figure shown, we can integrate the expression of magnitude as given by Biot-Savart law for the small current element dy as shown in the figure


B=∫dB=μ04π∫Idysin⁡θx2


In order to evaluate this integral in terms of angle $ivarphi$, we determine đy, x and ltheta in terms of perpendicular distance " r " (which is a constant ′′ϕ". Here,

y=rtan⁡ϕdy=rsec2⁡ϕdϕx=rsecϕ⁡ϕθ=π2−ϕ


Substituting in the integral, we have :

⇒B=μ04π∫Irsec2⁡ϕdϕsin⁡(π2−ϕ)r2sec2⁡ϕ=μ04π∫Icos⁡ϕdϕr


Taking out I and rout of the integral as they are constant:

⇒B=μ0I4πr∫cos⁡ϕdϕ

Integrating between angle −ϕ1 and ϕ2, we have

⇒B=μ0I4πr∫−ϕ1ϕ2Icos⁡ϕdϕ⇒B=μ0I4πr(sin⁡ϕ2−sin⁡(−ϕ1))


Note: −ϕ1 is taken because it is measured in the opposite sense of ϕ2 with respect to the reference line ( negative x-axis here)

⇒B=μ0I4πr(sin⁡ϕ2+sin⁡ϕ1)


Magnetic field due to a current-carrying wire at a point P which lies at a perpendicular distance r from the wire, as shown, is given as:

B=μ04πir(sin⁡ϕ1+sin⁡ϕ2)

From figure, α=(90∘−ϕ1) and β=(90∘+ϕ2)
Hence, it can be also written as B=μo4πir(cos⁡α−cos⁡β)


Different cases:

Case 1: When the linear conductor XY is of finite length and the point P lies on it's perpendicular bisector as shown


B=μ04π⋅ir(2sin⁡ϕ)


Case 2: When the linear conductor XY is of infinite length and the point P lies near the centre of the conductor

ϕ1=ϕ2=90∘.B=μ04πir[sin⁡90∘+sin⁡90∘]=μ04π2ir

Case 3: When the linear conductor is of semi-infinite length and the point P lies near the end Y or X

ϕ1=90∘ and ϕ2=0∘B=μ04πir[sin⁡90∘+sin⁡0∘]=μ04πir

Case 4: When point P lies on the axial position of the current-carrying conductor then magnetic field at P,
- P
α=β=0∘

B=μo4πir(cos⁡α−cos⁡β)=μo4πir(cos⁡0−cos⁡0)=0

Note:

  • The value of magnetic field induction at a point, on the centre of separation of two linear parallel conductors carrying equal currents in the same direction, is zero.
  • If the direction of current in the straight wire the known then the direction of the magnetic field produced by a straight wire carrying current is obtained by maxwell's right-hand thumb rule.

Some Solved Examples

Example 1: A current of 1 A is flowing on the sides of an equilateral triangle of side 4.5×10−2 m. The magnetic field (in Wb/m2 ) at the centre of the triangle will be :

1) 4×10−5 2) 0 3) 8×10−5 4) 2×10−5

Solution:


B→BC=μ0I4πa23(sin⁡60∘+sin⁡60∘)=μ0I2πa3(3)=3μ0I2πa=3∗2∗10−7∗14.5∗10−2=21.5∗10−5 Wb/m2

∴ Total Magnetic field

=3∗2∗10−51.5=4∗10−5 Wb/m2

Example 2: The magnetic field at the origin due to the current flowing in the wire as shown in the figure below is



1) −μ0I8πa(i^+k^) 2) μ0I2πa(i^+k^) 3) μ0I8πa(−i^+k^)μ0I8πa(i^−k^)


Solution:
Magnetic Field Due to a Straight Wire -

B=μoi4πr(sin⁡ϕ1+sin⁡ϕ2)


OR

B=μo4πir(cos⁡α−cos⁡β)


Here, the wire along the x -axis and the wire in the x -z plane pass through the origin.

So the magnetic field at the origin is zero.

Now for the wire parallel to the y-axis

ϕ2=0 and ϕ1=90∘


So

B0=μ0I4πa2

and its direction is along

B^o=dl^×r^=j^×(−i^+−k^)2=cos⁡45∘(^−i)+cos⁡45∘k^


So

B0=μ0I4πa2[cos⁡45∘(^−i)+cos⁡45∘k^)]=μ0I8πa(−i^+k^)

Example 2: Find the magnetic field at point P due to a straight line segment AB of length 6 cm carrying a current of 5 A. (see figure) (μ0=4π×10−7N−A−2)

1) 2.0×10−5 T
2) 1.5×10−5 T
3) 3.0×10−5 T
4) 2.5×10−5 T

Solution




sin⁡Θ=35 So Bp=μ0I4πd×2sin⁡ΘBp=107×4π4π×5×24×10−2×35Bp=1.5×10−5T

Summary

A current-carrying straight wire generates a magnetic field that forms circular loops around the wire. The direction of the magnetic field is given by the right-hand rule, with the magnetic field lines encircling the wire. The strength of the magnetic field depends on the current and the distance from the wire, decreasing as you move further away from the wire. This concept is key in explaining the interaction between electricity and magnetism, forming the basis of many practical applications in electrical engineering, such as in solenoids, inductors, and other devices that use magnetic fields generated by current-carrying wires.


Frequently Asked Questions (FAQs)

1. How does the right-hand rule apply to a straight current-carrying wire?
The right-hand rule for a straight wire states that if you grasp the wire with your right hand, with your thumb pointing in the direction of the current flow, your fingers will naturally curl in the direction of the magnetic field lines around the wire. This rule provides an easy way to visualize and remember the relationship between current direction and magnetic field direction.
2. How does the magnetic field of a straight wire compare to that of a loop of wire?
While both create magnetic fields, the field patterns differ. A straight wire produces circular field lines around it, whereas a loop of wire creates a field similar to that of a bar magnet, with field lines emerging from one face of the loop and entering the other. The loop concentrates the field, making it stronger inside the loop compared to a straight wire carrying the same current.
3. Can the magnetic field of a straight current-carrying wire be used to deflect charged particles?
Yes, the magnetic field of a straight current-carrying wire can deflect charged particles. When a charged particle moves through a magnetic field, it experiences a force perpendicular to both its direction of motion and the magnetic field lines. This principle is used in various applications, including particle accelerators and mass spectrometers.
4. What is the significance of Ampère's law in understanding the magnetic field around a straight wire?
Ampère's law is crucial for understanding the magnetic field around a straight wire. It states that the line integral of the magnetic field around any closed loop is proportional to the total current passing through the loop. For a straight wire, this law allows us to calculate the magnetic field strength at any distance from the wire, given the current. It forms the basis for more complex electromagnetic calculations.
5. Can the magnetic field of a straight wire induce current in another nearby wire?
Yes, the magnetic field of a straight current-carrying wire can induce current in another nearby wire, a phenomenon known as electromagnetic induction. If the magnetic field around the first wire changes (due to changing current), it will induce an electromotive force (EMF) in the second wire. This principle is fundamental to the operation of transformers and many other electromagnetic devices.
6. What causes a magnetic field around a straight current-carrying wire?
A magnetic field around a straight wire is caused by the flow of electric current through the wire. As electrons move through the conductor, they create a circular magnetic field that surrounds the wire. This phenomenon is a fundamental principle of electromagnetism, demonstrating the relationship between electricity and magnetism.
7. How does the strength of the magnetic field change as you move away from a straight current-carrying wire?
The strength of the magnetic field decreases as you move farther away from the wire. Specifically, the magnetic field strength is inversely proportional to the distance from the wire. This means that if you double the distance from the wire, the magnetic field strength becomes half as strong.
8. What is the direction of the magnetic field lines around a straight current-carrying wire?
The magnetic field lines form concentric circles around the wire, perpendicular to the wire's length. The direction of these circular field lines can be determined using the right-hand grip rule: if you grip the wire with your right hand with your thumb pointing in the direction of the current, your fingers will curl in the direction of the magnetic field lines.
9. How does changing the current affect the magnetic field around a straight wire?
Increasing the current in the wire strengthens the magnetic field around it. The relationship is directly proportional, meaning that doubling the current will double the strength of the magnetic field at any given point around the wire. Conversely, decreasing the current will weaken the magnetic field proportionally.
10. Can a magnetic field exist around a wire if there's no current flowing?
No, a magnetic field only exists around a wire when there is a current flowing through it. Without current, there is no movement of electrons, and thus no magnetic field is generated. This underscores the fundamental connection between moving electric charges and magnetic fields.
11. Can the magnetic field of a straight wire be shielded or redirected?
Yes, the magnetic field of a straight wire can be shielded or redirected:
12. How does the magnetic field of a straight wire contribute to the understanding of magnetic domains in materials?
While the magnetic field of a straight wire doesn't directly create magnetic domains, understanding it is crucial for comprehending magnetic domains:
13. What is the shape of the magnetic field around a straight current-carrying wire?
The magnetic field around a straight current-carrying wire forms concentric circles centered on the wire. If you were to look at a cross-section of the wire, the field lines would appear as circles of increasing size as you move away from the wire. This circular pattern extends theoretically to infinity, though it becomes extremely weak at large distances.
14. What happens to the magnetic field if you reverse the direction of current in a straight wire?
If you reverse the direction of current in a straight wire, the direction of the magnetic field also reverses. The field lines will still form concentric circles around the wire, but they will circulate in the opposite direction. This demonstrates the direct relationship between current direction and magnetic field direction.
15. What is the relationship between the magnetic field strength and the distance from a straight current-carrying wire?
The magnetic field strength (B) around a straight current-carrying wire is inversely proportional to the distance (r) from the wire. Mathematically, this is expressed as B ∝ 1/r. This means that as you move twice as far from the wire, the magnetic field strength becomes half as strong. This relationship is known as the inverse distance law for straight current-carrying wires.
16. How does the magnetic field of a straight wire interact with Earth's magnetic field?
The magnetic field of a straight current-carrying wire interacts with Earth's magnetic field through superposition. The resulting field is the vector sum of both fields. This interaction can cause a compass needle near the wire to deviate from true north, as it responds to the combined field. The effect is more noticeable close to the wire where its field is stronger relative to Earth's field.
17. How does the concept of magnetic field lines help in visualizing the field around a straight wire?
Magnetic field lines are a visual representation that help us understand the direction and strength of a magnetic field. For a straight wire, these lines form concentric circles around the wire. The density of these lines indicates the field strength - closer lines mean a stronger field. This visualization helps in understanding how the field direction and strength vary around the wire without needing complex mathematical descriptions.
18. How does the thickness of a straight wire affect its magnetic field?
The thickness of a straight wire does not directly affect the strength or shape of its external magnetic field. The magnetic field outside the wire depends on the current, not the wire's thickness. However, thicker wires can generally carry more current safely, which would indirectly result in a stronger magnetic field. Inside the wire, the current distribution and thus the internal magnetic field can be affected by the wire's thickness.
19. What is the difference between the magnetic field inside and outside a straight current-carrying wire?
The magnetic field inside a straight current-carrying wire increases linearly from zero at the center to a maximum at the surface. Outside the wire, the field decreases inversely with distance from the wire's center. This difference arises because inside the wire, only the current enclosed by a given radius contributes to the field at that point, while outside, the entire current contributes to the field.
20. How does the magnetic field of a straight wire compare to that of a solenoid?
The magnetic field of a straight wire forms concentric circles around the wire and decreases with distance. In contrast, a solenoid (a coil of wire) produces a magnetic field similar to that of a bar magnet, with field lines running parallel inside the coil and spreading out at the ends. The solenoid's field is much stronger and more uniform inside the coil compared to the field around a straight wire carrying the same current.
21. Can the magnetic field of a straight wire be used for magnetic levitation?
While theoretically possible, using the magnetic field of a single straight wire for levitation is impractical due to its relatively weak and rapidly decreasing field strength. Magnetic levitation typically requires stronger, more uniform fields created by specially designed arrangements of conductors or permanent magnets. However, the principle of magnetic fields from current-carrying wires is fundamental to understanding more complex levitation systems.
22. How does the magnetic field of a straight wire affect nearby magnetic materials?
The magnetic field of a straight current-carrying wire can magnetize nearby magnetic materials through a process called magnetic induction. Ferromagnetic materials like iron will become temporary magnets, aligning their internal magnetic domains with the wire's field. This can cause attraction or repulsion between the wire and the material, depending on the current direction and the material's position relative to the wire.
23. What is the role of permeability in determining the magnetic field strength around a straight wire?
Permeability, a measure of how easily a material can be magnetized, plays a crucial role in determining the magnetic field strength around a straight wire. In a vacuum or air, the permeability is constant (μ0). However, if the wire is surrounded by a material with higher permeability (like iron), the magnetic field strength will be amplified. This principle is used in electromagnets to create stronger magnetic fields.
24. How does the magnetic field of a straight wire contribute to the operation of electric motors?
The magnetic field of straight wires is fundamental to the operation of electric motors. In a simple motor, current-carrying wires (often wound into coils) are placed in an external magnetic field. The interaction between the wire's magnetic field and the external field creates a force that causes the wire to move. By arranging multiple wires and switching current direction, continuous rotational motion can be achieved, forming the basis of electric motor operation.
25. Can the magnetic field of a straight wire be used to generate electricity?
While a single straight wire's magnetic field is not typically used to generate electricity directly, the principle behind it is crucial for electricity generation. In generators, relative motion between conductors and magnetic fields induces current. This often involves coils of wire rotating in magnetic fields, which is an extension of the straight wire concept. The fundamental relationship between moving charges (current) and magnetic fields is key to both the creation of magnetic fields by straight wires and the generation of electricity in more complex systems.
26. How does the magnetic field of a straight wire relate to Faraday's law of induction?
Faraday's law of induction states that a changing magnetic field induces an electromotive force (EMF) in a conductor. While a steady current in a straight wire produces a constant magnetic field, any change in this current will cause the magnetic field to change. This changing field can induce EMF in nearby conductors. Understanding the magnetic field of a straight wire is crucial for applying Faraday's law in more complex scenarios, such as transformers or generators where changing magnetic fields induce currents in other circuits.
27. What is the significance of the magnetic field's circular pattern around a straight wire?
The circular pattern of the magnetic field around a straight wire is significant for several reasons:
28. How does the magnetic field of a straight wire relate to Maxwell's equations?
The magnetic field of a straight wire is a direct application of Maxwell's equations, particularly Ampère's law (one of Maxwell's equations). Ampère's law relates the magnetic field around a closed loop to the current passing through it. For a straight wire, this law allows us to calculate the magnetic field strength at any point around the wire. The other Maxwell equations also apply: Faraday's law explains how changing this magnetic field can induce electric fields, while Gauss's law for magnetism confirms that magnetic field lines form closed loops around the wire.
29. How does the magnetic field of a straight wire contribute to the concept of electromagnetic waves?
The magnetic field of a straight wire is fundamental to understanding electromagnetic waves:
30. What is the relationship between the magnetic field of a straight wire and the Biot-Savart law?
The Biot-Savart law is fundamental in calculating the magnetic field produced by a current-carrying wire:
31. How does the magnetic field of a straight wire relate to the concept of magnetic flux?
Magnetic flux is a measure of the total magnetic field passing through a given area:
32. Can the magnetic field of a straight wire be used in magnetic resonance imaging (MRI)?
While MRI primarily uses strong, uniform magnetic fields, understanding the magnetic field of a straight wire is relevant:
33. How does the magnetic field of a straight wire relate to the Hall effect?
The Hall effect, which is the production of a voltage difference across a conductor when placed in a magnetic field, is closely related to the magnetic field of a straight wire:
34. What is the significance of the magnetic field of a straight wire in the design of electromagnets?
The magnetic field of a straight wire is fundamental to electromagnet design:
35. Can the magnetic field of a straight wire be used to create a magnetic bottle for plasma confinement?
While a single straight wire's magnetic field is not sufficient for plasma confinement, understanding it is crucial for more complex confinement systems:

Articles

Back to top