CCalclabhub

Science · 81 calculations

Optics

How To Calculate The Wien Displacement Law

Wien's displacement law answers a precise question: given the temperature of an ideal black body, at which wavelength does it radiate most intensely? The calculation is a single division, a constant divided by absolute temperature, yet it underpins how we estimate stellar surface temperatures and why hot objects change colour as they heat up. This page walks through the formula, the units and the pitfalls that can make the answer come out wrong by factors of a thousand.

Last updated

Quick Answer

λmax = b / T

λmax
Peak wavelength, in metres unless converted
b
Wien's displacement constant, 2.897771955×10⁻³ m·K
T
Absolute temperature in kelvin

Divide Wien's displacement constant, about 2.897771955×10⁻³ metre-kelvin, by the absolute temperature in kelvin. The result is the wavelength at which the black-body spectrum reaches its maximum, measured per unit wavelength. At 5,800 K the peak falls near 499.616 nm, in the green-blue part of the visible spectrum. Doubling the temperature halves that peak wavelength.

What Is The Wien Displacement Law?

Wien's displacement law links two quantities that, at first sight, seem unrelated: how hot an ideal black body is and where in the spectrum it glows brightest. In its usual form it says that the peak wavelength is a fixed constant divided by the absolute temperature. Heat the body up and the peak moves to shorter wavelengths; cool it down and the peak slides towards the red and then into the infrared. The relationship is an inverse one, so doubling the temperature halves the peak wavelength rather than changing it by some fixed amount. That single fact explains why a heating element shifts from dull red to orange as it gets hotter, and why the hottest stars look blue.

The law was established by Wilhelm Wien in 1893, from thermodynamic reasoning about how a cavity full of radiation behaves when it is compressed or expanded. Wien argued that the shape of the spectrum should keep the same form as the temperature changes, merely shifting along the wavelength axis, and that the shift must be proportional to temperature. His displacement law predates Planck's full radiation formula by several years and survived it unchanged. When Planck later derived the exact spectrum, differentiating it with respect to wavelength recovered Wien's result and fixed the value of the constant precisely. The historical route matters because it shows the law is a very general consequence of thermal equilibrium, not a fit to one particular material.

The constant in the formula is known as Wien's displacement constant and has the value 2.897771955×10⁻³ metre-kelvin. Because the numerator carries units of length times temperature, dividing by a temperature in kelvin leaves a wavelength in metres. The calculator stores the constant as 2.897771955e-3 and keeps full precision until the final display step, so the answer is not distorted by early rounding. Written out, the constant is about 2.898 millimetre-kelvin, which is a convenient form to remember when working in the infrared. The same number applies to every ideal black body regardless of its size, material or shape.

Temperature must be entered in kelvin, with no exceptions. The zero point of the Kelvin scale is absolute zero, and the displacement law is a statement about absolute thermal energy, so adding 273.15 to a Celsius reading is mandatory before dividing. Entering 25 for a room at 25 °C instead of 298.15 K gives a peak roughly twelve times too long, landing in the far infrared rather than the correct thermal band. Fahrenheit readings must first be converted to Celsius and then to kelvin. A quick sanity check is that the lower the temperature you type in, the longer the wavelength you should get.

There is a subtlety about what the word peak means here, and it causes genuine confusion. The common form of the law gives the maximum of spectral radiance plotted against wavelength, measured per unit wavelength interval. If you instead plot the same radiation per unit frequency interval, the maximum occurs at a different place, because the two axes are related nonlinearly rather than by a simple reciprocal. The frequency peak satisfies a different equation and is not obtained by dividing the wavelength peak into the speed of light. Always state which form of the spectrum you are using before comparing a published peak with a calculated one. This page and its calculator use the per-unit-wavelength convention throughout.

Take the surface of the Sun as the worked case. Using a temperature of 5,800 K, the division gives 4.99616×10⁻⁷ metre, which is 499.616 nanometres or about 0.4996 micrometres. That wavelength lies in the green-blue part of the visible spectrum, and it is why the Sun's radiation is strongest near the middle of the range our eyes detect. The Sun does not actually look green, because it emits across a very broad band and the mixture of all those wavelengths is perceived as nearly white. Atmospheric scattering removes some blue light, especially when the Sun is low, leaving the familiar yellow or orange appearance. The displacement law describes the peak only; it says nothing about the total brightness, which is governed by a different law.

The inverse relationship makes two further examples almost immediate. At a room temperature of 300 K the peak wavelength is about 9.659 micrometres, deep in the thermal infrared, which is why thermal cameras work in that band rather than in visible light. Double the solar temperature to 11,600 K and the peak halves to 249.808 nanometres, in the ultraviolet. Halve the temperature of the Sun instead and the peak doubles to roughly 999.2 nanometres, just beyond the red end of the visible range. None of these results requires new physics: the same constant and the same single division produce all of them. That is the practical appeal of the law for quick estimates.

Real objects are not perfect black bodies, and the deviations matter at the precision end of the subject. A black body is an idealised surface that absorbs every incident wavelength and emits the maximum possible radiation at each wavelength. Stars, incandescent filaments and glowing metals only approximate that ideal: their emissivity is less than one and varies with wavelength, and their atmospheres add absorption lines that puncture the smooth curve. The measured peak of such a source can shift slightly from the ideal prediction. For teaching estimates and for rough stellar temperatures the displacement law is still excellent, but precision work needs the full spectrum and a material-specific emissivity model. Treat the calculator output as the ideal reference against which real measurements are compared.

It helps to see where the law sits alongside the other radiation laws. Planck's law gives the entire spectral radiance curve at every wavelength, and Wien's law picks out the single wavelength where that curve reaches its maximum. The Stefan Boltzmann law integrates the same curve over all wavelengths to give total emitted power. Wien also proposed an approximation to Planck's formula that works well at short wavelengths but fails at long ones; that approximation is a different result and should not be confused with the displacement law. Together the three ideas form a compact toolkit for thermal radiation: shape from Planck, peak position from Wien, and total energy from Stefan Boltzmann. Each answers a different question, and mixing them up is the fastest way to get a plausible-looking but wrong answer.

Formula

λmax = b / T

Formula page →

The peak wavelength equals the displacement constant divided by absolute temperature. It is a purely inverse relationship, so equal proportional changes in temperature produce equal and opposite proportional changes in wavelength.

SymbolMeaning
λmaxWavelength of maximum spectral radiance
bWien's displacement constant
TAbsolute temperature

λ(nm) = λ(m) × 10⁹

Formula page →

The raw result is in metres. Multiply by one billion for nanometres or by one million for micrometres so the number sits in a readable range.

SymbolMeaning
λ(m)Peak wavelength in metres
λ(nm)Peak wavelength in nanometres

λmax(2T) = b / (2T) = λmax / 2

Formula page →

Because temperature sits in the denominator, doubling it halves the peak wavelength without any new constant.

SymbolMeaning
bWien's displacement constant
TOriginal absolute temperature

How To Calculate The Wien Displacement Law

  1. 1

    Confirm the temperature is absolute

    Read the temperature in kelvin. If the problem gives Celsius, add 273.15 before doing anything else; if it gives Fahrenheit, convert to Celsius first. The constant is defined with kelvin in its units, so a Celsius value fed in directly makes the answer far too long. Write the number down with its unit beside it so the division cannot go wrong.

  2. 2

    Recall the displacement constant

    Wien's constant is 2.897771955×10⁻³ metre-kelvin, which the calculator stores as 2.897771955e-3. Keeping the full value at this stage matters: rounding it to 0.003 changes the answer by roughly three per cent. The units are a useful check, because metre-kelvin divided by kelvin must leave metres.

  3. 3

    Divide the constant by the temperature

    Compute λmax = b / T. For T = 5,800 K this gives 4.996158543103448×10⁻⁷ metre. Notice that the answer is a very small number in metres, which is normal for visible light; scientific notation keeps the trailing digits honest and avoids mistaking the exponent for a multiplier.

  4. 4

    Convert to a readable unit

    Multiply the metre result by 1,000,000,000 for nanometres or by 1,000,000 for micrometres. The same peak is 499.6158543103448 nm and 0.49961585431034483 µm. Choose the unit that puts the answer between roughly 1 and 1,000, since that is far easier to read and compare with published values.

  5. 5

    Check the direction of the change

    Use the inverse relationship as a final sanity check. If you doubled the temperature you should halve the wavelength: at 11,600 K the peak is 2.498079271551724×10⁻⁷ metre, exactly half the 5,800 K value. If your two answers move in the same direction, something is wrong with the division or the units.

Examples

Example 1: The Sun's surface at 5,800 K

temperature
5800
StepCalculationResult
Start with the constantb2.897771955e-3 m·K
Divide by absolute temperatureb / T4.996158543103448e-07 m
Convert to nanometrespeak × 1000000000499.616 nm

Result: At 5,800 K the peak wavelength is 499.616 nm (precisely 499.6158543103448 nm), in the green-blue part of the visible spectrum.

Example 2: A room-temperature object at 300 K

temperature
300
StepCalculationResult
Start with the constantb2.897771955e-3 m·K
Divide by absolute temperatureb / T9.65923985e-06 m
Convert to micrometrespeak × 10000009.659 µm

Result: At 300 K the peak wavelength is 9.659 µm (precisely 9.65923985 µm), well inside the thermal infrared band used by thermal cameras.

Example 3: A hotter star at 11,600 K

temperature
11600
StepCalculationResult
Start with the constantb2.897771955e-3 m·K
Divide by absolute temperatureb / T2.498079271551724e-07 m
Convert to nanometrespeak × 1000000000249.808 nm

Result: At 11,600 K the peak wavelength is 249.808 nm (precisely 249.807927155 nm), which is half the solar value and lies in the ultraviolet.

Calculator

Peak wavelength (metres)

4.996158543103448e-7

Peak wavelength (nanometres)
499.6158543103448
Peak wavelength (micrometres)
0.4996158543103448
Peak at double the temperature
2.498079271551724e-7

Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.

Prefer a full-width tool? Open the The Wien Displacement Law calculator page.

Common Mistakes

  • Using Celsius or Fahrenheit instead of kelvin

    The formula requires absolute temperature. Substituting 25 for a 25 °C room rather than 298.15 K makes the predicted peak about twelve times too long. Always convert first, and remember that 0 °C is 273.15 K, not zero.

  • Confusing the wavelength peak with the frequency peak

    Plotting radiance per unit frequency puts the maximum somewhere else, and dividing the wavelength peak into the speed of light does not give it. The two conventions answer different questions. State which spectrum you mean before comparing numbers.

  • Rounding the constant too early

    Using 0.003 instead of 2.897771955×10⁻³ shifts the result by about three per cent. That is small enough to look plausible and large enough to matter. Keep the constant at full precision and round only the displayed answer.

  • Forgetting that real sources are not ideal black bodies

    Stars and filaments have wavelength-dependent emissivity and absorption features that move the measured peak. The law gives the ideal reference point, not a perfect prediction for every material. Use it for estimates, then apply a material correction for precision work.

  • Misreading scientific notation

    An answer written as 4.99616e-07 metre means 4.99616×10⁻⁷ metre, not 4.99616 metres. The exponent is part of the number. Confusing it with a multiplier is an easy way to be wrong by seven orders of magnitude.

  • Assuming the peak tells you the total brightness

    Wien's law locates the maximum; it does not say how much energy is emitted. A cooler object radiates far less overall even if its peak is well placed. For total power use the Stefan Boltzmann law, which depends on the fourth power of temperature.

FAQ

What does Wien's displacement law calculate?

It gives the wavelength at which an ideal black body emits most strongly for a given absolute temperature. The result is the peak of the spectrum plotted per unit wavelength, not an average wavelength and not the total emitted power.

Why must temperature be in kelvin?

The displacement constant carries kelvin in its units, so the temperature must be on the absolute scale for those units to cancel. Using Celsius would imply that a body at 0 °C emits nothing, which is plainly false. Add 273.15 to a Celsius reading first.

What colour is a body at 5,800 K?

Its peak is near 499.616 nm, in the green-blue region. The body still looks nearly white because it emits a broad spread of wavelengths that the eye mixes together. The peak only tells you where the spectrum is strongest.

Does the law apply to the Sun exactly?

Only approximately. The Sun's photosphere is close to a black body, but absorption lines and a wavelength-dependent emissivity shift the measured peak slightly. Treating it as ideal gives an effective temperature that is accurate enough for most purposes.

What happens to the peak when temperature doubles?

It halves. Since lambda max equals b divided by T, multiplying T by two divides the wavelength by two. A body at 11,600 K peaks near 249.808 nm, half the 5,800 K value and over in the ultraviolet.

How is this related to Planck's law?

Planck's law describes the whole spectrum; Wien's law picks out the maximum of that spectrum. Differentiating the Planck expression with respect to wavelength and setting the derivative to zero recovers the displacement law and fixes the value of the constant.

References

  1. [1]Wikipedia, Wien's displacement law — https://en.wikipedia.org/wiki/Wien%27s_displacement_law
  2. [2]Wikipedia, Black body — https://en.wikipedia.org/wiki/Black_body
  3. [3]Wikipedia, Planck's law — https://en.wikipedia.org/wiki/Planck%27s_law