🔬
🔬 Science & engineering

Wien’s Law & Stefan-Boltzmann Star Calculator

Results update as you type.

Your numbers

Understanding the Wien's law and Stefan-Boltzmann star calculator — concept and principle

This calculator treats a star as a blackbody and uses two classic radiation laws. Wien's displacement law gives the wavelength at which the star's spectrum peaks, and the Stefan-Boltzmann law gives its total luminosity relative to the Sun from its radius and surface temperature. It is used to connect a star's colour, temperature, size and power output.

Wien peak wavelength and luminosityThe Sun at 5,772 K peaks at 502 nm; a star twice as hot peaks at 251 nm in the ultraviolet and, at the same radius, is 16 times as luminous.Hotter stars peak at shorter wavelengthsUVinfrared251 nm11,544 K502 nmSun 5,772 Kvisible lightλ_max = 2,897,772 ÷ T (nm, K)Sun: L = 1² × 1⁴= 1 L☉2× hotter: 1² × 2⁴= 16 L☉Luminosity L = R² × (T ÷ 5,772)⁴
Doubling the temperature halves the peak wavelength and multiplies the power by 2⁴ = 16.

How it is calculated

Enter R in solar radii and T as the effective (surface) temperature in kelvin.

The principle

Any hot, opaque body emits a continuous spectrum whose shape depends only on temperature (Planck's law). As temperature rises, the peak moves to shorter wavelengths: red stars are cool, blue stars hot. Wien's law is the position of that peak. Integrating Planck's law over all wavelengths gives σT⁴ watts per square metre (σ = 5.670374419 × 10⁻⁸ W m⁻² K⁻⁴), and multiplying by the surface area 4πR² gives total power. Because temperature enters to the fourth power, a small change in T has a large effect: doubling T multiplies luminosity by 16.

Worked example

  1. Defaults (the Sun): T = 5772 K, R = 1 R☉.
  2. λ_max = 2,897,771.955 ÷ 5772 = 502.0394932 nm, in the blue-green part of the visible spectrum.
  3. L = 1² × (5772 ÷ 5772)⁴ = 1 L☉, as expected.
  4. For comparison, a star with the same radius at 11,544 K would peak at about 251 nm and shine 16 times brighter.
How Peak wavelength (nm) changes with Surface temperature (K)How Peak wavelength changes with Surface…05001,0001,5002,0002,5001,4432,8864,3295,7727,2158,65811,544Example: 502.0394932Surface temperature (K)
Each point is the calculator re-run with only “Surface temperature (K)” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Surface temperature (K)Peak wavelength (nm)
1,4432,008.157973
2,8861,004.078986
4,329669.385991
5,772502.0394932
7,215401.6315946
8,658334.6929955
11,544251.0197466

How to read the result

Peak wavelengths below about 400 nm mean hot blue or white stars; above about 700 nm, cool red stars. Luminosity tells you the total energy output; main-sequence stars range from well under 0.01 L☉ for red dwarfs to many thousands of L☉ for massive blue stars. Giants can be very luminous despite low temperatures because R² is large.

Common mistakes

Keep in mind: Real stars are not perfect blackbodies; absorption lines and the atmosphere's structure shift the spectrum. Use effective temperature, and treat the results as approximations for physics learning.

Frequently asked questions

Why does the Sun look white or yellow, not green?

Its spectrum is broad, covering all visible colours, and the combination appears white; the atmosphere scatters blue light, making it look yellowish near the horizon.

Can I find a star's radius from L and T?

Yes: R/R☉ = √(L/L☉) × (5772/T)².

Does Wien's law work for planets and people?

Yes. A body at 300 K peaks near 9.7 µm in the infrared, which is why thermal cameras work in that band.

Sources: CODATA 2018 recommended values of the fundamental physical constants (NIST) · IAU 2015 Resolution B3 on nominal solar and planetary values · Carroll B.W. and Ostlie D.A., An Introduction to Modern Astrophysics, 2nd ed.

Checked 8 Nov 2026. Standard textbook formulas in SI units, computed in your browser. For learning and estimates — real designs must follow your local codes and be checked by a qualified engineer.

🔬 All science & engineering tools →🌍 Calculators by country →