# Solenoid Magnetic Field Calculator

The field around a magnet or electric charges where the region has the tendency of magnetism is called magnetic field. A solenoid is a coil that is tightly covered by helix. The magnetic field of straight solenoid based on the axis can be calculated using permittivity of vacuum, number of turns per unit length, current and the angles.

## Solenoid Magnetic Field Calculation

The field around a magnet or electric charges where the region has the tendency of magnetism is called magnetic field. A solenoid is a coil that is tightly covered by helix. The magnetic field of straight solenoid based on the axis can be calculated using permittivity of vacuum, number of turns per unit length, current and the angles.

Code to add this calci to your website

#### Formula:

B_{axis} = ((μ_{0}*n*I)/2) * (cos(x)-cos(y))
**Where,**
B_{axis} = Magnetic Field Of Straight Solenoid Based On Axis
μ_{o} = Permeability Of Vacuum
n = Number Of Turns
I = Current
x = Angle
y = Angle