A solar flare is a sudden flash of increased brightness on the Sun, usually observed near its surfaceand in close proximity to a sunspot group. Powerful flares are often, but not always, accompanied by a coronal mass ejection. Even the most powerful flares are barely detectable in the total solar irradiance (the 'solar constant'). A solar flare is a sudden flash of increased brightness on the Sun, usually observed near its surfaceand in close proximity to a sunspot group. Powerful flares are often, but not always, accompanied by a coronal mass ejection. Even the most powerful flares are barely detectable in the total solar irradiance (the 'solar constant'). Solar flares occur in a power-law spectrum of magnitudes; an energy release of typically 1020 joules of energy suffices to produce a clearly observable event, while a major event can emit up to 1025 joules. Flares are closely associated with the ejection of plasmas and particles through the Sun's corona into outer space; flares also copiously emit radio waves.If the ejection is in the direction of the Earth, particles associated with this disturbance can penetrate into the upper atmosphere (the ionosphere) and cause bright auroras, and may even disrupt long range radio communication. It usually takes days for the solar plasma ejecta to reach Earth. Flares also occur on other stars, where the term stellar flare applies.High-energy particles, which may be relativistic, can arrive almost simultaneously with the electromagnetic radiations. On July 23, 2012, a massive, potentially damaging, solar storm (solar flare, coronal mass ejection and electromagnetic radiation) barely missed Earth. In 2014, Pete Riley of Predictive Science Inc. published a paper in which he attempted to calculate the odds of a similar solar storm hitting Earth within the next 10 years, by extrapolating records of past solar storms from the 1960s to the present day. He concluded that there may be as much as a 12% chance of such an event occurring. Solar flares affect all layers of the solar atmosphere (photosphere, chromosphere, and corona). The plasma medium is heated to tens of millions of kelvins, while electrons, protons, and heavier ions are accelerated to near the speed of light. Flares produce electromagnetic radiation across the electromagnetic spectrum at all wavelengths, from radio waves to gamma rays. Most of the energy is spread over frequencies outside the visual range and so the majority of the flares are not visible to the naked eye and must be observed with special instruments. Flares occur in active regions around sunspots, where intense magnetic fields penetrate the photosphere to link the corona to the solar interior.Flares are powered by the sudden (timescales of minutes to tens of minutes) release of magnetic energy stored in the corona. The same energy releases may produce coronal mass ejections (CMEs), although the relationship between CMEs and flares is still not well understood. X-rays and UV radiation emitted by solar flares can affect Earth's ionosphere and disrupt long-range radio communications. Direct radio emission at decimetric wavelengths may disturb the operation of radars and other devices that use those frequencies. Solar flares were first observed on the Sun by Richard Christopher Carrington and independently by Richard Hodgson in 1859 as localized visible brightenings of small areas within a sunspot group. Stellar flares can be inferred by looking at the lightcurves produced from the telescope or satellite data of variety of other stars. The frequency of occurrence of solar flares varies, from several per day when the Sun is particularly 'active' to less than one every week when the Sun is 'quiet', following the 11-year cycle (the solar cycle). Large flares are less frequent than smaller ones. Flares occur when accelerated charged particles, mainly electrons, interact with the plasma medium. Evidence suggests that the phenomenon of magnetic reconnection leads to this copious acceleration of charged particles.On the Sun, magnetic reconnection may happen on solar arcades – a series of closely occurring loops following magnetic lines of force. These lines of force quickly reconnect into a lower arcade of loops leaving a helix of magnetic field unconnected to the rest of the arcade. The sudden release of energy in this reconnection is the origin of the particle acceleration. The unconnected magnetic helical field and the material that it contains may violently expand outwards forming a coronal mass ejection. This also explains why solar flares typically erupt from active regions on the Sun where magnetic fields are much stronger.