HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Measuring Stars: Distance, Luminosity and Temperature
  1. 1Parallax, the parsec and the light-year
  2. 2Luminosity, flux and the magnitude scale
  3. 3Black-body radiation, temperature and the size of a star
  1. Physics
  2. /Measuring Stars: Distance, Luminosity and Temperature
  3. /Black-body radiation, temperature and the size of a star

Course 31.1·Lesson 3 of 3

Black-body radiation, temperature and the size of a star

A star radiates nearly like a black body. Wien's law λmax⁡T=2.898×10−3 m K\lambda_{\max}T = 2.898 \times 10^{-3}\ \text{m K}λmax​T=2.898×10−3 m K

Lesson 3 of 3Show all lessonsHide
Measuring Stars: Distance, Luminosity and Temperature
  1. 1Parallax, the parsec and the light-year
  2. 2Luminosity, flux and the magnitude scale
  3. 3Black-body radiation, temperature and the size of a star

Try the code and the simulations beside the lesson.

The colour of hot things

Heat an iron rod in a flame. First it glows dull red, then orange, then yellow-white. The hotter it is, the shorter the wavelength of the light it gives out. Stars show the same colours: red stars are cool, blue-white stars are hot.

Black bodies

A black body absorbs all the radiation that falls on it. When it is hot it also radiates, with a spectrum that depends only on its temperature. Stars are not perfect black bodies, but the curve fits their light well. The temperature that gives the best fit is the star's surface temperature, also called its effective temperature.

A graph of the radiation given out by three black bodies, the power per unit wavelength against the wavelength from 0 to 2000 nm. A blue curve for 9000 K rises steeply to a tall peak at 322 nm, in the ultraviolet, and falls away. An orange curve for 5770 K, the Sun, peaks lower at 502 nm, in the visible band. A red curve for 3500 K is much lower and flatter, with its peak at 828 nm, in the infrared. The visible band from 400 nm to 700 nm is shaded with the colours of the rainbow. A dashed grey line joins the three peaks: hotter bodies peak at shorter wavelengths, and their curves are higher everywhere.

The picture shows two facts about black bodies. As the temperature rises, the peak moves to shorter wavelengths. And the curve rises everywhere, so the total power grows very fast.

Wien's displacement law

The wavelength of the peak, λmax⁡\lambda_{\max}λmax​, obeys Wien's displacement law:

λmax⁡T=b\displaystyle \lambda_{\max}T = bλmax​T=b

with b=2.898×10−3 m Kb = 2.898 \times 10^{-3}\ \text{m K}b=2.898×10−3 m K. For the Sun, T⊙=5770 KT_\odot = 5770\ \text{K}T⊙​=5770 K, so

λmax⁡=2.898×10−3 m K5770 K\displaystyle \lambda_{\max} = \dfrac{2.898 \times 10^{-3}\ \text{m K}}{5770\ \text{K}}λmax​=5770 K2.898×10−3 m K​
λmax⁡=502 nm\displaystyle \lambda_{\max} = 502\ \text{nm}λmax​=502 nm

That is green light, near the middle of the visible band. The Sun looks white because it gives out all the visible colours strongly.

The Stefan-Boltzmann law

Each square metre of a black body at temperature TTT radiates the power σT4\sigma T^4σT4. Here σ\sigmaσ (sigma) is the Stefan-Boltzmann constant, 5.67×10−8 W m−2 K−45.67 \times 10^{-8}\ \text{W m}^{-2}\ \text{K}^{-4}5.67×10−8 W m−2 K−4. A star is a sphere of area 4πR24\pi R^24πR2, so its luminosity is

L=4πR2σT4\displaystyle L = 4\pi R^2\sigma T^4L=4πR2σT4

Check it for the Sun, with R⊙=6.96×108 mR_\odot = 6.96 \times 10^8\ \text{m}R⊙​=6.96×108 m:

L=4π(6.96×108 m)2 σ\displaystyle L = 4\pi (6.96 \times 10^8\ \text{m})^2\ \sigmaL=4π(6.96×108 m)2 σ
×(5770 K)4\displaystyle \qquad \times (5770\ \text{K})^4×(5770 K)4
L=3.83×1026 W\displaystyle L = 3.83 \times 10^{26}\ \text{W}L=3.83×1026 W

Comparing stars with the Sun

Dividing the law for a star by the law for the Sun takes away 4πσ4\pi\sigma4πσ:

LL⊙=(RR⊙)2(TT⊙)4\displaystyle \dfrac{L}{L_\odot} = \left(\dfrac{R}{R_\odot}\right)^2\left(\dfrac{T}{T_\odot}\right)^4L⊙​L​=(R⊙​R​)2(T⊙​T​)4

We usually want the radius, so

RR⊙=LL⊙(T⊙T)2\displaystyle \dfrac{R}{R_\odot} = \sqrt{\dfrac{L}{L_\odot}}\left(\dfrac{T_\odot}{T}\right)^2R⊙​R​=L⊙​L​​(TT⊙​​)2

This is how astronomers measure the sizes of stars that look like points. The luminosity comes from the flux and the distance. The temperature comes from the colour or the spectrum.

Worked example: a hot star

A star has L=40 L⊙L = 40\ L_\odotL=40 L⊙​, and its spectrum peaks at 305 nm305\ \text{nm}305 nm.

  1. The temperature. T=b/λmax⁡=(2.898×10−3 m K)/(305×10−9 m)=9500 KT = b/\lambda_{\max} = (2.898 \times 10^{-3}\ \text{m K})/(305 \times 10^{-9}\ \text{m}) = 9500\ \text{K}T=b/λmax​=(2.898×10−3 m K)/(305×10−9 m)=9500 K.
  2. The radius. R/R⊙=40×(5770/9500)2=6.32×0.369=2.33R/R_\odot = \sqrt{40} \times (5770/9500)^2 = 6.32 \times 0.369 = 2.33R/R⊙​=40​×(5770/9500)2=6.32×0.369=2.33.
  3. Check. The star is 404040 times as luminous as the Sun but only 2.332.332.33 times as wide, because each square metre is (9500/5770)4=7.3(9500/5770)^4 = 7.3(9500/5770)4=7.3 times as bright.

Spectral classes

The dark lines in a star's spectrum also show its temperature. Stars are sorted into spectral classes O, B, A, F, G, K and M, from hottest to coolest.

ClassTemperature
Oabove 30 000 K30\,000\ \text{K}30000 K
B10 00010\,00010000 to 30 000 K30\,000\ \text{K}30000 K
A750075007500 to 10 000 K10\,000\ \text{K}10000 K
F600060006000 to 7500 K7500\ \text{K}7500 K
G520052005200 to 6000 K6000\ \text{K}6000 K
K370037003700 to 5200 K5200\ \text{K}5200 K
Mbelow 3700 K3700\ \text{K}3700 K

The Sun is a G star. Books give slightly different limits between the classes.

Where this sits in your syllabus. Wien's law and the Stefan-Boltzmann law are in Cambridge A-Level and IB (topics B.1 and E.5). The spectral classes are in IB and in the astronomy olympiads.

Set T=3500 KT = 3500\ \text{K}T=3500 K and find the peak. Then try T=20 000 KT = 20\,000\ \text{K}T=20000 K. Now keep T=5770 KT = 5770\ \text{K}T=5770 K and set the radius to 101010. How does the luminosity change?

Practise with new numbers

Try it in Python

The program finds the temperature and the radius of three stars from their peak wavelengths and luminosities.

Predict first. Which of the three stars is the largest? Then run it. Check with Show the answer.

1. Add a star with a peak at 950 nm and a luminosity of 0.05 times the Sun's. How large is it?

2. Double the luminosity of the first star. By what factor does its radius change?

Common mistakes

  • Using the wrong unit of wavelength. Wien's constant is in m K\text{m K}m K, so put λ\lambdaλ in metres.
  • Squaring instead of taking the fourth power. LLL grows as T4T^4T4: twice the temperature is 161616 times the power per square metre.
  • Forgetting the area. σT4\sigma T^4σT4 is the power per square metre. Multiply by 4πR24\pi R^24πR2.
  • Using the diameter for RRR. The area of a sphere uses the radius.
  • Thinking colour alone gives the luminosity. Colour gives the temperature. The luminosity also needs the size.

Remember these

  • Wien: λmax⁡T=2.898×10−3 m K\lambda_{\max}T = 2.898 \times 10^{-3}\ \text{m K}λmax​T=2.898×10−3 m K.
  • Stefan-Boltzmann: L=4πR2σT4L = 4\pi R^2\sigma T^4L=4πR2σT4, with σ=5.67×10−8 W m−2 K−4\sigma = 5.67 \times 10^{-8}\ \text{W m}^{-2}\ \text{K}^{-4}σ=5.67×10−8 W m−2 K−4.
  • In solar units: L/L⊙=(R/R⊙)2(T/T⊙)4L/L_\odot = (R/R_\odot)^2(T/T_\odot)^4L/L⊙​=(R/R⊙​)2(T/T⊙​)4.
  • The Sun: 5770 K5770\ \text{K}5770 K, 6.96×108 m6.96 \times 10^8\ \text{m}6.96×108 m, peak at 502 nm502\ \text{nm}502 nm.
  • Spectral classes, hot to cool: O B A F G K M.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. A star peaks at 1000 nm1000\ \text{nm}1000 nm. What is its surface temperature?
  1. Two stars have the same radius. One is twice as hot. Compare their luminosities.
  1. A red star and a blue star have the same luminosity. Which is larger?
  1. Why does the Sun look white and not green, although its spectrum peaks in the green?

References

  • OpenStax Astronomy 2e, Chapter 5 Radiation and Spectra, on radiation and temperature.
  • OpenStax Astronomy 2e, Chapter 18 The Stars: A Celestial Census, on the diameters of stars.

Enroll free in Measuring Stars: Distance, Luminosity and Temperature

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Take the tests of this lesson and its course.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (3)

A faint star near a bright one has a luminosity of only 0.030 times the Sun's…Hard · High School (11–12) · by StemPy Lab
Most stars are too far away to show a disc…Advanced · High School (11–12) · by StemPy Lab
The Earth absorbs sunlight on the disc it shows to the Sun, of area π R², and radiates from its…Hard · High School (11–12) · by StemPy Lab
That was the last lessonBack to the course: take the test
← Measuring Stars: Distance, Luminosity and Temperature
← Luminosity, flux and the magnitude scaleNext →

Discussion (0)

Log in to join the discussion.

Loading…

gives its surface temperature from its colour. The Stefan-Boltzmann law
L=4πR2σT4L = 4\pi R^2\sigma T^4L=4πR2σT4
then gives its radius.
about 30 min1 simulation2 practice questions1 Python program5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

Python Labs (1)

Stars as black bodies in codePython Lab · by StemPy Lab

Question Sets (1)

Measuring Stars: Concept Check10 questions · by StemPy Lab

Notes (1)

Measuring Stars: Quick RevisionNote · by StemPy Lab