**Magnetic Field Formula**

Magnetic field is a region surrounding a magnetic material or within a moving electric charge where the force of magnetism acts. Â In other words, the force experienced by the field due to the magnet is known as magnetic force and this kind of field is known as magnetic field.Â Magnetic field varies from one shape to another just like solenoid has a different magnetic field than toroid.

There are three magnetic field formulas:

**The magnetic field formula for current in an infinite straight filament is given by,**

Wherein,

B is the magnetic field,

r is the radius of the loop,

Î¼ is the permeability constant, and

i is the current

**Magnetic field formula in a solenoid is expressed by,**

**B = **Î¼o** i n.**

Wherein,

Î¼o is the constant of permeability,

i is current in amperes,

n is the number of turns done by the wire per unit length of the solenoid,

**Magnetic field formula in a toroid coil is given by,**

**B = **Î¼oiN / 2Ï€r

Wherein,

B is the magnetic field in teslas,

i is the current in amperes,

N is the total number of turns made by the wire in the toroid

**Example 1**

Determine the magnetic field in a solenoid having 20 turns and current of 5 A.

**Solution:**

Given:

Number of turns, n = 20,

Current I = 5 A.

Magnetic field formula in a solenoid is given by,

B = Â Î¼o i n

Â Â Â = 1.26 Ã— 10âˆ’6 H/m Ã— 5 Ã— 20

Â Â Â = 126 x 10-6 tesla

**Example 2**

A toroid of radius 5 cm has 30 turns. If a current of 5 A is passed through it, determine the magnetic field around it.

**Solution:**

Given:

No of turns, N = 30,

Radius r = 5 cm

Â Â Â Â Â Â Â Â Â Â = 0.05 m,

Current I = 5A.

Magnetic field formula in a toroid coil is given by,

B = Î¼oiN / 2Ï€r

= 1.26Ã—10âˆ’6 Ã— 5 Ã— 30 / 2Ï€ Ã— 0.05

Â Â Â = 1.504 x 10-6 tesla