Solar wind and the magnetosphere
Schematic of Earth's magnetosphere

The Earth is constantly immersed in the solar wind, a rarefied flow of hot plasma (gas of free electrons and positive ions) emitted by the Sun in all directions, a result of the million-degree heat of the Sun's outermost layer, the corona. The solar wind usually reaches Earth with a velocity around 400 km/s, density around 5 ions/cm3 and magnetic field intensity around 2–5 nT (nanoteslas; Earth's surface field is typically 30,000–50,000 nT). These are typical values. During magnetic storms, in particular, flows can be several times faster; the interplanetary magnetic field (IMF) may also be much stronger.

The IMF originates on the Sun, related to the field of sunspots, and its field lines (lines of force) are dragged out by the solar wind. That alone would tend to line them up in the Sun-Earth direction, but the rotation of the Sun skews them (at Earth) by about 45 degrees, so that field lines passing Earth may actually start near the western edge ("limb") of the visible Sun.[10]

Earth's magnetosphere is formed by the impact of the solar wind on the Earth's magnetic field. It forms an obstacle to the solar wind, diverting it, at a distance of about 70,000 km, forming a bow shock 12,000 km to 15,000 km further upstream. The width of the magnetosphere abreast of Earth, is typically 190,000 km, and on the night side a long "magnetotail" of stretched field lines extends to great distances.

The magnetosphere is full of ions trapped as the solar wind passes the Earth. Perturbations in the solar wind increase this flow of ions. The excess moving along field lines and eventually accelerated toward the poles are responsible for changes in the aurora.