PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

More from Astronomy & The Sky

Other simulators in this category — or see all 45.

View category →
NewSchool

Spectral Lines & Doppler

Absorption lines on a continuum shift with radial velocity (Δλ/λ ≈ v/c).

Launch Simulator
NewUniversity / research

Cosmic Distance Ladder

Log distance scale with parallax, standard candles, and Hubble-flow cartoon rungs.

Launch Simulator
NewUniversity / research

Black Hole Shadow (Schematic)

Silhouette and stylized ring; Rₛ scales with mass — not full GR ray tracing.

Launch Simulator
NewSchool

Sunset Atmospheric Refraction

Geometric vs apparent horizon: lift of the solar disk from a layered atmosphere model.

Launch Simulator
NewSchool

Comet Orbit, Coma & Tails

Eccentric orbit, coma brightening near the Sun, ion and dust tails, solar wind toggle.

Launch Simulator
NewKids

Aurora (Stylized)

Layered sine curtains; hue and drift — look only, not ionosphere physics.

Launch Simulator
PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Astronomy & The Sky/Hertzsprung–Russell Diagram

Hertzsprung–Russell Diagram

The Hertzsprung–Russell (HR) Diagram is a foundational tool in astrophysics, plotting stars according to their intrinsic brightness (luminosity or absolute magnitude) against their surface temperature (or spectral type/color). This simulator models the schematic regions of this diagram, allowing users to visualize the distinct populations of stars. The core physics is governed by the Stefan-Boltzmann law, L = 4πR²σT⁴, which relates a star's luminosity (L) to its radius (R) and surface temperature (T). By dragging a star across the diagram, one sees how its position dictates its evolutionary stage: the main sequence, where stars fuse hydrogen in their cores; the giant and supergiant branches, where expanded, cooler envelopes lead to high luminosity; and the white dwarf region, where small, hot stellar remnants have low total luminosity. The simulator simplifies real astrophysics by using schematic, static regions, ignoring the continuous motion of stars as they evolve and the complexities of stellar interiors and mass loss. Interacting with it teaches the correlation between stellar properties, the concept of stellar evolution pathways, and how astronomers use this two-dimensional plot to classify stars and infer their masses, sizes, and life stories.

Who it's for: High school and introductory undergraduate astronomy students learning stellar classification and evolution, as well as educators seeking a visual tool to explain the HR diagram.

Key terms

  • Hertzsprung–Russell Diagram
  • Luminosity
  • Absolute Magnitude
  • Spectral Type
  • Main Sequence
  • Stellar Evolution
  • Stefan-Boltzmann Law
  • White Dwarf

Star

Drag the marker on the diagram. Axes are schematic: temperature increases to the left (as in observational HR diagrams); luminosity increases upward. Real stars populate bands — especially the main sequence.

Shortcuts

  • •Drag on canvas to move the star

Measured values

RegionMain sequence — core H fusion

How it works

The HR diagram plots stellar luminosity (or absolute magnitude) against effective temperature (or spectral type). Most stars spend the longest time fusing hydrogen on the main sequence; giants and white dwarfs are later stages for many stars.

Frequently asked questions

Why is the main sequence a diagonal band and not a single line?
The main sequence is a band because stars on it have different masses. A star's mass is the primary factor determining its core temperature, luminosity, and lifespan. Higher-mass stars are hotter and more luminous, placing them at the top-left of the sequence, while lower-mass stars are cooler and dimmer, placing them at the bottom-right. The band reflects this continuous range of stellar masses.
Can a star be in the 'white dwarf' region and still be fusing elements?
No. White dwarfs are the exposed, inert cores of low-to-medium mass stars that have exhausted their nuclear fuel. They no longer undergo fusion and shine only due to residual thermal energy as they slowly cool. Their position on the HR diagram (high temperature, low luminosity) is a direct result of their extremely small size, as dictated by the Stefan-Boltzmann law.
Does the simulator show how stars move on the diagram over time?
This simulator uses static regions to illustrate classification. In reality, stars move along specific tracks as they evolve. For example, a Sun-like star will leave the main sequence, move right and upward to the red giant branch, and then left and downward to the white dwarf region. The simulator's drag interaction helps conceptualize these distinct phases, but does not animate the continuous evolutionary path.
Why are red giants so luminous if they are cool?
Luminosity depends on both temperature AND size. While red giants have relatively low surface temperatures, they are immensely large—their radii can be hundreds of times that of the Sun. According to the Stefan-Boltzmann law (L ∝ R²T⁴), this enormous increase in surface area more than compensates for the lower temperature, resulting in very high total luminosity.