Stars differ in temperature primarily because of differences in their mass: more massive stars have stronger gravitational compression in their cores, which drives faster nuclear fusion and produces far more energy, resulting in much higher surface temperatures. Less massive stars burn cooler and live longer. This mass–temperature relationship is the single most important reason why some stars are thousands of degrees hotter than others.
The Mass–Luminosity Relationship
A star's mass determines almost everything about its life, including its temperature. The more mass a star has, the more gravity squeezes its core. That compression raises the core temperature and density, which dramatically increases the rate of nuclear fusion. The energy generated must eventually escape through the star's outer layers, and the rate at which energy flows outward sets the surface temperature. In simple terms, a massive star is like a furnace running at full blast, while a low-mass star is like a furnace barely ticking over.
The relationship between mass and luminosity is steep: roughly, luminosity increases with the mass raised to the power of about 3.5. So a star with twice the Sun's mass is not twice as bright but roughly 11 times as bright. That extra energy output forces a higher surface temperature. The most massive stars known have surface temperatures above 40,000 K, while the least massive stars are cooler than 3,000 K. The Sun, a middle-of-the-road star, has a surface temperature of about 5,800 K.
How Fusion Creates a Star's Temperature
All stars are held together by gravity and supported against collapse by the pressure of hot gas and radiation from fusion in their cores. The core temperature needed to fuse hydrogen into helium is around 10 million K for a star like the Sun. More massive stars achieve much higher core temperatures—tens of millions of kelvin—because their greater weight compresses the core more. At these higher temperatures, fusion proceeds through a different reaction chain (the CNO cycle rather than the proton–proton chain) that is far more temperature-sensitive, so the star generates energy at a prodigious rate. This energy flows outward and ultimately sets the surface temperature we observe.
It is important to note that a star's surface temperature is not the same as its core temperature. The core is always much hotter—millions of degrees—while the surface is thousands of degrees. The surface temperature is what astronomers measure from a star's light, and it is the key quantity that places a star on the Hertzsprung–Russell diagram.
Stellar Classification and Temperature
Astronomers classify stars by their surface temperature using spectral types, traditionally denoted by the letters O, B, A, F, G, K, and M, from hottest to coolest. Each spectral type corresponds to a range of temperatures and is characterized by which absorption lines appear in the star's spectrum.
- O-type: hottest stars, surface temperatures above about 30,000 K, appear blue.
- B-type: 10,000–30,000 K, blue-white.
- A-type: 7,500–10,000 K, white.
- F-type: 6,000–7,500 K, yellow-white.
- G-type: 5,200–6,000 K, yellow (the Sun is a G-type star).
- K-type: 3,700–5,200 K, orange.
- M-type: coolest stars, below about 3,700 K, red.
This sequence is a direct temperature ranking. The colors are a consequence of blackbody radiation: hotter objects emit more of their light at shorter wavelengths, so hot stars look blue and cool stars look red. This is the opposite of everyday language, where "red-hot" sounds hotter than "white-hot," but in astronomy blue means hotter.
Why Color Reveals Temperature
The color of a star is a direct indicator of its surface temperature. This is described by Wien's law, which states that the wavelength at which an object emits most strongly is inversely proportional to its temperature. A star at 30,000 K peaks in the ultraviolet and appears blue-white to the eye; a star at 3,000 K peaks in the red and appears orange-red. By analyzing a star's spectrum—spreading its light into a rainbow and looking at the dark absorption lines—astronomers can determine its temperature precisely, because the pattern of lines depends on which elements are ionized at that temperature.
This method is reliable and does not depend on distance, which is why it is a cornerstone of stellar astronomy. Even a star too faint to measure directly can have its temperature estimated from its spectrum if enough light can be collected.
Other Factors That Affect a Star's Temperature
While mass is the dominant factor, other circumstances can influence a star's surface temperature:
- Age and evolutionary stage: As a star exhausts its core hydrogen, it expands into a red giant and its surface cools, even though its core becomes hotter. Later, some stars become hotter again as they shed their outer layers.
- Metallicity: Stars with fewer heavy elements (low metallicity) tend to be slightly hotter and bluer at a given mass, because their atmospheres are more transparent and radiate energy more efficiently.
- Rotation and magnetic activity: Rapid rotation and strong magnetic fields can create hot spots and influence the overall energy balance, though these effects are usually modest.
- Companionship: In close binary systems, mass transfer from one star to another can alter both stars' masses and temperatures, sometimes creating exotic objects like blue stragglers.
These secondary effects are important for understanding individual stars, but they do not overturn the basic rule: mass sets the temperature.
Common Misconceptions About Star Temperature
One common misconception is that a star's temperature is determined by its age—that older stars are hotter. In fact, the opposite is often true for main-sequence stars: more massive stars are hotter but burn out faster, so the hottest stars are typically the youngest. Another misconception is that all stars with the same color have the same temperature; while color is a good guide, interstellar dust can redden starlight, making a hot star appear cooler than it really is. This is called interstellar reddening and must be corrected for when measuring temperatures.
A third misconception is that the Sun is an average star in every sense. It is average in mass and temperature among main-sequence stars, but the most common stars in the galaxy are much cooler and less massive M-dwarfs. So the Sun is actually on the warmer, more massive side compared with the majority of stars.
Frequently Asked Questions
Why do hotter stars appear blue?
Hotter stars emit more of their light at shorter wavelengths, including blue and ultraviolet. Our eyes perceive this as blue or blue-white. Cooler stars emit more red light and appear orange or red. This is a direct consequence of blackbody radiation and Wien's law.
Can a low-mass star ever be hotter than a high-mass star?
In rare cases, yes. For example, a low-mass star that has lost its outer layers (a white dwarf) can have a very hot surface, but it is no longer fusing hydrogen in its core. Among main-sequence stars, mass and temperature are tightly correlated, so the rule holds.
How do astronomers measure a star's temperature?
They analyze the star's spectrum. The pattern of absorption lines and the overall shape of the spectrum reveal the surface temperature. This method is independent of distance and is the standard technique.
Is the Sun hotter than most stars?
The Sun is hotter than most stars because most stars are cool, low-mass M-dwarfs. The Sun's surface temperature of about 5,800 K is above the median for main-sequence stars, though it is far from the hottest.
Do stars get hotter as they age?
For main-sequence stars, the opposite is generally true: more massive stars are hotter but have shorter lives. As a star like the Sun ages, its core contracts and heats up, but its surface remains roughly constant until it becomes a red giant and cools. So age alone does not determine temperature.
What is the hottest type of star?
The hottest known stars are Wolf–Rayet stars and some O-type stars, with surface temperatures exceeding 40,000 K, sometimes over 100,000 K in rare cases. These are massive stars near the end of their lives.