In the case of that the direction of the magnetic field coincides with the charged particle concentration gradient, the refractive index has been calculated. In this paper, the equation of the refractive index is derived in the case of that the direction of the magnetic field dose not coincide with the charged particle concentration gradient. Using this equation, the refractive index of the ionosphere for the middle latitude is given.