Skip to main content

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.

Skip to calculator
Astronomy & Space Science

Hertzsprung Russell Diagram Plotter

Plot a star on the HR diagram using its luminosity and surface temperature. Calculate spectral class, stellar radius, estimated mass, and evolutionary classification.

Last updated: December 2025Reviewed by NovaCalculator Mathematics Team

Calculator

Adjust values & calculate
5,778 K
1 L_sun
Sun
G-type Main Sequence
Peak wavelength: 502 nm
HR Diagram
Temperature (K) Hot --- Cool
Luminosity
Red Giants
Supergiants
White Dwarfs
Main Sequence
Radius
1.000
Solar Radii
Abs. Magnitude
4.83
Mv
Est. Mass
1.000
Solar Masses
Main Sequence Lifetime
10.00 Gyr
Surface Gravity (vs Sun)
1.000x
Note: Mass and lifetime estimates use main sequence approximations (L proportional to M^3.5). For evolved stars like red giants or white dwarfs, these estimates may differ significantly from actual values. Professional stellar modeling requires detailed evolutionary codes.
Your Result
Sun: G-type Main Sequence | Radius: 1.000 R_sun | Magnitude: 4.83
Share Your Result
Understand the Math

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).

Last reviewed: December 2025

Worked Examples

Example 1: Plotting the Sun on the HR Diagram

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

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
Expert Insights

Background & Theory

The Hertzsprung Russell Diagram Plotter applies the following established principles and formulas. Astronomy and space science rely on a set of precisely defined physical relationships that allow distances, sizes, motions, and energies of celestial objects to be calculated from observational data. Kepler's three laws of planetary motion, derived empirically in the early seventeenth century, describe elliptical orbits, equal areas swept in equal times, and the harmonic law Tยฒ = aยณ, where T is the orbital period in Earth years and a is the semi-major axis in astronomical units (AU). This relationship holds for any object orbiting the Sun and can be generalized using Newton's law of gravitation. Distances in astronomy are expressed in multiple units: one light-year equals approximately 9.461 ร— 10ยนโต meters, one parsec equals 3.086 ร— 10ยนโถ meters or about 3.26 light-years, defined as the distance at which one AU subtends one arcsecond of parallax. Angular size is calculated as ฮธ = 206,265 ร— (d / D) arcseconds, where d is the physical diameter and D is the distance. The stellar magnitude system uses Pogson's formula: m1 โˆ’ m2 = โˆ’2.5 ร— log10(F1 / F2), where F represents flux. Each magnitude step corresponds to a flux ratio of approximately 2.512, meaning a first-magnitude star is 100 times brighter than a sixth-magnitude star. Hubble's Law relates recessional velocity to distance: v = Hโ‚€d, where the Hubble constant Hโ‚€ is approximately 70 km/s/Mpc. Escape velocity from any body is given by v = โˆš(2GM/r), yielding 11.2 km/s for Earth. Orbital period for a circular orbit follows T = 2ฯ€โˆš(rยณ/GM). Luminosity and distance are linked by the inverse square law: F = L / (4ฯ€dยฒ). Stars are classified by spectral type using the mnemonic OBAFGKM, corresponding to surface temperatures from approximately 30,000 K (O-type) to under 3,500 K (M-type). Each type reflects characteristic absorption spectra tied to ionization states of elements in the stellar photosphere.

History

The history behind the Hertzsprung Russell Diagram Plotter traces back through the following developments. The history of astronomy is one of progressive scale โ€” each era expanding humanity's conception of the universe's size and structure. The Copernican revolution of 1543, when Nicolaus Copernicus published De revolutionibus orbium coelestium, displaced Earth from the center of the cosmos and placed the Sun at the center of the planetary system. Decades later, Galileo Galilei turned a Dutch-invented telescope toward the sky in 1609, discovering the moons of Jupiter, the phases of Venus, and the cratered surface of the Moon โ€” observations that provided compelling evidence for the heliocentric model and led to his conflict with the Catholic Church. Johannes Kepler, working from Tycho Brahe's meticulous naked-eye observations, derived his three laws of planetary motion between 1609 and 1619. Isaac Newton unified celestial and terrestrial mechanics with his law of universal gravitation in 1687, explaining the cause behind Kepler's empirical laws and enabling precise prediction of planetary positions. The eighteenth and nineteenth centuries brought systematic sky surveys, stellar parallax measurements, and the discovery that the Milky Way is itself a galaxy among many. Edwin Hubble's 1929 observations using the 100-inch Hooker Telescope at Mount Wilson demonstrated that galaxies are receding from us at velocities proportional to their distance โ€” the first direct evidence for an expanding universe and the empirical basis for Big Bang cosmology. NASA was founded in 1958 following the Sputnik shock, and the Apollo 11 mission landed humans on the Moon on July 20, 1969. The Hubble Space Telescope, launched in 1990, revolutionized observational astronomy by operating above Earth's atmosphere and producing imagery from ultraviolet to near-infrared wavelengths. The first confirmed exoplanet around a Sun-like star was detected in 1995 by Michel Mayor and Didier Queloz using the radial velocity method. The James Webb Space Telescope, launched in December 2021 and fully operational by 2022, extended infrared observations to probe the earliest galaxies formed after the Big Bang.

Share this calculator

Explore More

Frequently Asked Questions

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.
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.
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.
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.
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.
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.
Educational Note: This calculator is provided for educational and informational purposes. Results are based on the formulas and inputs provided. Always verify important calculations independently. NovaCalculator processes calculator inputs client-side; optional analytics follow visitor consent settings.Reviewed by: NovaCalculator Mathematics Team โ€” Verified against standard mathematical and scientific references. Last reviewed: December 2025. ยฉ 2024โ€“2026 NovaCalculator.

Share this calculator

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)\nLuminosity: 1 L_sun (absolute magnitude = 4.83)\nRadius: sqrt(1) x (5778/5778)^2 = 1.000 R_sun\nMass estimate: 1^(1/3.5) = 1.000 M_sun\nLifetime: (1/1) x 10 = 10.00 billion years\nSpectral class: G (yellow-white)\nPosition: 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)\nLuminosity: 100,000 L_sun\nRadius: sqrt(100000) x (5778/3500)^2 = 316.2 x 2.726 = 862 R_sun\nAbsolute magnitude: 4.83 - 2.5 x log10(100000) = 4.83 - 12.5 = -7.67\nClassification: Supergiant (far above main sequence)\nPeak 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 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.

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.

References

Reviewed by Daniel Agrici, Founder & Lead Developer ยท Editorial policy