PPolySim OS

Hertzsprung-Russell Diagram

The single most important diagram in stellar astronomy. Plot temperature against luminosity and stars sort themselves into the main sequence, giants, and white dwarfs.

Hertzsprung-Russell DiagramLive

Controls

Presets

The H-R diagram plots stars by temperature and luminosity, revealing the main sequence (a diagonal band), red giants, supergiants, and white dwarfs. Your star (pink ring) sits on the main sequence where luminosity scales as T⁴.

▶ Run in Python

Data Inspector

Spectral classG
Luminosity1.00 L☉
Temperature5,778 K

Governing equation

Reading this result: A cool orange K-type star: lower temperature places it low-right on the main sequence, dimmer and longer-lived than the Sun.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →
★ Sign in to save this setup
Save your tuned setup, or drop this simulation into your own site, docs, or course page.

How it works

The H-R diagram reveals the life stages of stars. Most spend their lives on the main sequence, a diagonal band where hotter stars are more luminous. Red giants and supergiants sit above it, white dwarfs below. Set a temperature to see the spectral class (OBAFGKM) and where that star lands.

Ask the AI about this model

The math, the assumptions, real-world uses, or a code translation — explained for this exact simulation.

More Astronomy simulations

Frequently asked questions

Is this Hertzsprung-Russell diagram tool really free?
Yes. Hertzsprung-Russell Diagram runs entirely in your browser using your device's own compute, so local use is free forever. You only pay Compute Tokens if you scale a job to the cloud.
Do I need to install anything?
No. Everything runs client-side in a modern browser — no downloads, no license, no account required to start.
Can I save or share my simulation?
Create a free account to save projects, and use a shareable embed or minted DOI to publish a live, interactive version anywhere.
How accurate are the results?
The solver uses established numerical methods, but results are for research and educational purposes and should be validated against experiment or professional review before you rely on them.