Blackbody spectrum and HR diagram explorer

Set a star's temperature and radius; watch its Planck spectrum and its place on the HR diagram.

Blackbody spectra at three temperatures Planck curves for 3000 K, 5772 K and 9900 K, each scaled to its own peak. Peaks fall at about 966, 502 and 293 nanometres: hotter stars peak at shorter wavelengths. visible 500100015002000 wavelength (nm) 1
  • 3000 K (red dwarf): peak ≈ 966 nm
  • 5772 K (Sun): peak ≈ 502 nm
  • 9900 K (hot star): peak ≈ 293 nm
Each curve is scaled to its own peak (dots). In absolute terms the hotter star emits far more at every wavelength.

What’s happening

A star’s light is close to that of a black body — an ideal object that emits a spectrum set only by its temperature. Planck’s law gives the brightness at each wavelength:

Bλ(T)=2hc2λ5 1ehc/(λkBT)−1.B_\lambda(T) = \frac{2hc^2}{\lambda^5}\,\frac{1}{e^{hc/(\lambda k_B T)} - 1}.

Two results follow, and both are in every school astrophysics syllabus:

  • Wien’s law — the peak wavelength is inversely proportional to temperature: λmax=b/T\lambda_\text{max} = b/T with b=2.898×10−3b = 2.898\times10^{-3} m K. Hot stars look blue-white, cool stars red.
  • Stefan–Boltzmann law — the total power from a star of radius RR is L=4πR2σT4L = 4\pi R^2 \sigma T^4. Doubling the temperature multiplies the luminosity by 16.

On the Hertzsprung–Russell diagram, stars are placed by temperature (decreasing to the right) and luminosity. Because LL depends on both TT and RR, a cool star can still be very luminous if it is huge (a giant), and a hot star can be faint if it is tiny (a white dwarf).

Assumptions and limits. Real stellar spectra have absorption lines and are not perfect black bodies, so a star’s colour from this model is only approximate.

Try this

Use L⊙=3.828×1026L_\odot = 3.828\times10^{26} W and R⊙=6.957×108R_\odot = 6.957\times10^{8} m.

  1. The Sun. With T=5772T = 5772 K, where does the Sun’s spectrum peak?
    Answerλmax≈502\lambda_\text{max} \approx 502 nm — in the green part of the visible band.
  2. A red dwarf. A star has T=3000T = 3000 K and R=0.3 R⊙R = 0.3\,R_\odot. Find its peak wavelength and luminosity.
    Answerλmax≈966\lambda_\text{max} \approx 966 nm (infrared); L≈0.0066 L⊙L \approx 0.0066\,L_\odot.
  3. A hot star. A star has T=9900T = 9900 K and R=1.7 R⊙R = 1.7\,R_\odot. Find LL.
    AnswerL=1.72×(9900/5772)4≈25 L⊙L = 1.7^2 \times (9900/5772)^4 \approx 25\,L_\odot.
  4. Same temperature, different radius. Two stars have the same temperature, but one is 100 times more luminous. How do their radii compare?
    AnswerL∝R2L \propto R^2 at fixed TT, so the brighter star is 10 times larger.

Want help with this topic?

A 30-minute trial costs €10. We set goals and you see how I teach. After that, lessons are €30 for 60 minutes, or less with a pack.