Photosphere

The photosphere is a star's outer shell from which light is radiated. It extends into a star's surface until the plasma becomes opaque, equivalent to an optical depth of approximately $2/3$, or equivalently, a depth from which 50% of light will escape without being scattered.

A photosphere is the region of a luminous object, usually a star, that is transparent to photons of certain wavelengths.

Etymology
The term photosphere is derived from Ancient Greek roots, φῶς, φωτός/phos, photos meaning "light" and σφαῖρα/sphaira meaning "sphere", in reference to it being a spherical surface that is perceived to emit light.

Temperature
The surface of a star is defined to have a temperature given by the effective temperature in the Stefan–Boltzmann law. Stars, except neutron stars, have no solid or liquid surface. Therefore, the photosphere is typically used to describe the Sun's or another star's visual surface.

Composition of the Sun
The Sun is composed primarily of the chemical elements hydrogen and helium; they account for 74.9% and 23.8%, respectively, of the mass of the Sun in the photosphere. All heavier elements, called metals in astronomy, account for less than 2% of the mass, with oxygen (roughly 1% of the Sun's mass), carbon (0.3%), neon (0.2%), and iron (0.2%) being the most abundant.

Sun


The Sun's photosphere has a temperature between 4400 and 6600 K (with an effective temperature of 5772 K) and a density of about 3 kg/m3; increasing with depth into the sun. Other stars may have hotter or cooler photospheres. The Sun's photosphere is 100–400 kilometers thick.

Photospheric phenomena
In the Sun's photosphere, the most ubiquitous phenomena are granules—convection cells of plasma each approximately 1000 km in diameter with hot rising plasma in the center and cooler plasma falling in the spaces between them, flowing at velocities of 7 km/s. Each granule has a lifespan of only about twenty minutes, resulting in a continually shifting "boiling" pattern. Grouping the typical granules are supergranules up to 30,000 km in diameter with lifespans of up to 24 hours and flow speeds of about 500 m/s, carrying magnetic field bundles to the edges of the cells. Other magnetically related phenomena in the Sun's photosphere include sunspots and solar faculae dispersed between granules. These features are too fine to be directly observed on other stars; however, sunspots have been indirectly observed, in which case they are referred to as starspots.