Hertzsprung Russell Diagram Plotter Calculator
Plot a star on the H-R diagram using its luminosity and surface temperature. Enter values for instant results with step-by-step formulas.
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer
Hertzsprung Russell Diagram Plotter Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: R/R_sun = sqrt(L/L_sun) x (T_sun/T)^2
Worked example โ Sun plots as a G-type main sequence star with absolute magnitude 4.83, exactly as expected
Formula
R/R_sun = sqrt(L/L_sun) x (T_sun/T)^2
Derived from the Stefan-Boltzmann law: L = 4 pi R^2 sigma T^4. The stellar radius relative to the Sun is calculated from the luminosity ratio and temperature ratio. Absolute magnitude is computed as Mv = 4.83 - 2.5 log10(L/L_sun).
Worked Examples
Example 1: Plotting the Sun on the HR Diagram
Problem:Place our Sun on the HR diagram with a surface temperature of 5,778 K and luminosity of 1 solar luminosity.
Solution:Temperature: 5,778 K (G-type spectral class) Luminosity: 1 L_sun (absolute magnitude = 4.83) Radius: sqrt(1) x (5778/5778)^2 = 1.000 R_sun Mass estimate: 1^(1/3.5) = 1.000 M_sun Lifetime: (1/1) x 10 = 10.00 billion years Spectral class: G (yellow-white) Position: center of main sequence
Result:Sun plots as a G-type main sequence star with absolute magnitude 4.83, exactly as expected
Example 2: Plotting Betelgeuse as a Red Supergiant
Problem:Plot Betelgeuse with a surface temperature of 3,500 K and luminosity of 100,000 solar luminosities.
Solution:Temperature: 3,500 K (M-type spectral class) Luminosity: 100,000 L_sun Radius: sqrt(100000) x (5778/3500)^2 = 316.2 x 2.726 = 862 R_sun Absolute magnitude: 4.83 - 2.5 x log10(100000) = 4.83 - 12.5 = -7.67 Classification: Supergiant (far above main sequence) Peak wavelength: 2,897,771 / 3500 = 828 nm (near-infrared)
Result:Betelgeuse plots in the upper right as a red supergiant with radius approximately 862 times the Sun
Frequently Asked Questions
What is the Hertzsprung-Russell diagram?
The Hertzsprung-Russell diagram, commonly called the HR diagram, is one of the most important tools in stellar astrophysics. Developed independently by Ejnar Hertzsprung and Henry Norris Russell in the early 1900s, it plots stars according to their luminosity (or absolute magnitude) on the vertical axis and their surface temperature (or spectral class) on the horizontal axis. The temperature axis runs from hot to cool (left to right), which is the reverse of what most people expect. When many stars are plotted on this diagram, they do not scatter randomly but instead cluster into distinct groups that reveal the physical relationships between stellar properties and evolutionary stages.
What is the main sequence on the HR diagram?
The main sequence is a prominent diagonal band running from the upper left (hot, luminous stars) to the lower right (cool, dim stars) of the HR diagram. Approximately 90 percent of all stars fall on the main sequence, including our Sun. Stars on the main sequence are in the stable hydrogen-burning phase of their lives, fusing hydrogen into helium in their cores. A star position on the main sequence is primarily determined by its mass: more massive stars are hotter, more luminous, and located higher on the main sequence, while less massive stars are cooler, dimmer, and located lower. The mass-luminosity relationship follows approximately L proportional to M raised to the power of 3.5.
What are red giants and where do they appear on the HR diagram?
Red giants appear in the upper right region of the HR diagram, characterized by high luminosity but relatively low surface temperature. These are evolved stars that have exhausted the hydrogen fuel in their cores and expanded enormously. When a main sequence star runs out of core hydrogen, the core contracts and heats up while the outer layers expand and cool, producing a large red star with surface temperatures between 3,000 and 5,000 Kelvin but luminosities tens to thousands of times greater than the Sun. Our Sun will become a red giant in approximately 5 billion years, expanding to engulf the orbits of Mercury, Venus, and possibly Earth.
What are white dwarfs and their position on the HR diagram?
White dwarfs occupy the lower left region of the HR diagram, having high surface temperatures between 8,000 and 40,000 Kelvin but very low luminosities, typically less than one percent of the Sun. They are the remnant cores of stars that have shed their outer layers after the red giant phase. A typical white dwarf has a mass comparable to the Sun but compressed into a volume roughly the size of Earth, resulting in extraordinary density of about one million grams per cubic centimeter. White dwarfs are supported against gravitational collapse by electron degeneracy pressure and slowly cool over billions of years, eventually fading to become hypothetical black dwarfs.
How is a star spectral class determined?
Spectral classification is based on the absorption lines visible in a star spectrum, which directly correlate with surface temperature. The modern system uses the letters O, B, A, F, G, K, and M, often remembered by the mnemonic Oh Be A Fine Girl Kiss Me. O-type stars are the hottest at over 30,000 Kelvin with strong ionized helium lines, while M-type stars are the coolest at under 3,700 Kelvin with prominent molecular absorption bands. Each spectral class is further subdivided by numbers 0 through 9, with 0 being the hottest within each class. Our Sun is classified as a G2V star, meaning it is a G-type star in the second subdivision on the main sequence.
How does the Stefan-Boltzmann law relate to the HR diagram?
The Stefan-Boltzmann law provides the fundamental physical relationship between a star luminosity, temperature, and radius: L equals 4 times pi times R squared times sigma times T to the fourth power. This means that for a given temperature, larger stars are more luminous, and for a given size, hotter stars are more luminous. On the HR diagram, lines of constant radius run diagonally from upper left to lower right, allowing you to read a star approximate size from its position. This relationship explains why red giants are luminous despite being cool (they are enormous) and why white dwarfs are dim despite being hot (they are tiny). The calculator uses this law to derive the stellar radius from luminosity and temperature inputs.
What determines how long a star lives on the main sequence?
A star main sequence lifetime is determined primarily by its mass, but in a counterintuitive way. Although more massive stars have more hydrogen fuel, they burn through it far more rapidly because their core temperatures and pressures are much higher. The lifetime scales approximately as the mass divided by the luminosity, and since luminosity scales as mass to the 3.5 power, lifetime scales as mass to the negative 2.5 power. A star with 10 solar masses lives only about 20 million years, while a star with 0.5 solar masses will live for roughly 50 billion years. Our Sun with a main sequence lifetime of about 10 billion years is roughly halfway through its hydrogen-burning phase.
What is Wien displacement law and how does it relate to star color?
Wien displacement law states that the peak wavelength of electromagnetic radiation emitted by a blackbody is inversely proportional to its temperature: peak wavelength equals 2,897,771 nanometer-Kelvin divided by temperature. This law explains why hot stars appear blue-white and cool stars appear red-orange. An O-type star at 40,000 Kelvin has a peak wavelength around 72 nanometers in the ultraviolet, making it appear blue-white in visible light. Our Sun at 5,778 Kelvin peaks at about 501 nanometers, which is green-yellow, though it appears white due to the broad spectrum of emitted light. An M-type star at 3,000 Kelvin peaks around 966 nanometers in the near-infrared, making it appear deep red.
Can binary stars be plotted on the HR diagram?
Binary stars present interesting challenges and opportunities for the HR diagram. Each component of a binary system can be individually plotted if their temperatures and luminosities can be separated, which is possible for visually resolved or spectroscopic binaries with well-determined orbital parameters. Binary stars are actually essential for calibrating the HR diagram because they provide one of the few direct methods for measuring stellar masses. By analyzing the orbits of binary pairs using Kepler laws, astronomers can determine precise masses and then correlate these with positions on the HR diagram. Eclipsing binaries are particularly valuable because they also allow direct measurement of stellar radii.
How do astronomers use the HR diagram for star clusters?
The HR diagram is especially powerful when applied to star clusters because all stars in a cluster formed at approximately the same time from the same molecular cloud. When plotted on an HR diagram, cluster stars reveal a main sequence that terminates at a specific point called the main sequence turnoff. Since more massive stars evolve off the main sequence faster, the location of this turnoff directly indicates the cluster age. Young clusters like the Pleiades at about 100 million years old have turnoffs at hot, luminous B-type stars, while old globular clusters at 10 to 13 billion years have turnoffs near the Sun spectral type. This technique called isochrone fitting is one of the primary methods for determining stellar ages.
References
Background & Theory
History
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer ยท Editorial policy
Related Calculators
๐งฎSpace Mission Cost Calculator
Estimate space mission costs from payload mass, orbit, and launch vehicle selection.
๐งฎSpace Suit Air Supply Calculator
Calculate breathable air supply duration for EVA from tank pressure, volume, and consumption rate.
๐งฎBlackbody Peak Wavelength Calculator
Calculate blackbody peak wavelength with inputs, formulas, and instant results.
๐งฎParallax Distance Calculator
Calculate parallax distance with inputs, formulas, and instant results.
๐งฎRedshift Calculator
Calculate redshift with inputs, formulas, and instant results.
๐งฎField of View Calculator
Calculate field of view with inputs, formulas, and instant results.
๐งฎLimiting Magnitude Calculator
Calculate limiting magnitude with inputs, formulas, and instant results.
๐งฎTelescope Magnification by Eyepiece & Focal Length
Calculate telescope magnification with inputs, formulas, and instant results.