ThisCalculator

Conversions

Black Body Fraction Calculator

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

Black Body Fraction Calculator

This calculator works out the fraction of a black body’s total radiated power that falls within a specified wavelength range, using Planck’s law. You enter the temperature of the black body, the lower and upper wavelengths of interest, and the calculator returns the fraction (0 to 1) as well as the power per unit area in that band. The result is the ratio of the spectral radiance integrated over your chosen interval to the total radiance over all wavelengths.

Formula

The fraction \(F\) of a black body’s total emitted power that lies between wavelengths \(\lambda_1\) and \(\lambda_2\) is given by:

\(F = \frac{\int_{\lambda_1}^{\lambda_2} B_{\lambda}(T) \, d\lambda}{\sigma T^4}\)

where \(B_{\lambda}(T)\) is Planck’s law:

\(B_{\lambda}(T) = \frac{2hc^2}{\lambda^5} \cdot \frac{1}{e^{hc/(\lambda k_B T)} – 1}\)

  • \(\lambda\) – wavelength (m)
  • \(T\) – absolute temperature (K)
  • \(h\) – Planck constant, \(6.62607015 \times 10^{-34}\) J·s
  • \(c\) – speed of light, \(2.99792458 \times 10^8\) m/s
  • \(k_B\) – Boltzmann constant, \(1.380649 \times 10^{-23}\) J/K
  • \(\sigma\) – Stefan–Boltzmann constant, \(5.670374419 \times 10^{-8}\) W/(m²·Kâ�´)

The numerator is the integral of Planck’s law over the wavelength interval; the denominator is the total power per unit area emitted over all wavelengths (the Stefan–Boltzmann law). The fraction is dimensionless.

Worked Example

Using the default values – temperature \(T = 5800\) K (about the Sun’s effective temperature), lower wavelength \(\lambda_1 = 400\) nm, upper wavelength \(\lambda_2 = 700\) nm (the visible band):

  1. Convert wavelengths to meters: \(400\,\text{nm} = 4.00 \times 10^{-7}\) m, \(700\,\text{nm} = 7.00 \times 10^{-7}\) m.
  2. Compute the integral of Planck’s law from \(4.00 \times 10^{-7}\) to \(7.00 \times 10^{-7}\) m. This requires numerical integration (e.g., Simpson’s rule or a built-in integrator). The result is approximately \(1.41 \times 10^7\) W/m².
  3. Compute the total power: \(\sigma T^4 = 5.670374419 \times 10^{-8} \times 5800^4 \approx 6.42 \times 10^7\) W/m².
  4. Divide: \(F = 1.41 \times 10^7 / 6.42 \times 10^7 \approx 0.2196\).

The calculator shows a fraction of about 0.2196 (21.96%) and a power in the band of about \(1.41 \times 10^7\) W/m². This matches the well-known fact that roughly 44% of the Sun’s energy reaches the visible range when integrated over the full spectrum; here the 400–700 nm band captures about half of that.

When to Use This Calculator

This tool is useful in astronomy, climate science, lighting design, and thermal engineering. For example:

  • Estimating what fraction of a star’s radiation is in the visible band, given its effective temperature.
  • Finding how much of a hot object’s infrared radiation falls within a detector’s spectral range.
  • Calculating the fraction of solar energy that lies in the photosynthetically active radiation (PAR) band (400–700 nm) for plant growth.
  • Checking how much of a lamp’s radiation (approximated as a black body) is in the visible region versus infrared.

The result is a fraction between 0 and 1. Multiply by 100 to get a percentage. The power output is the actual intensity in that band, which is useful for energy flux calculations.

Common Mistakes and Limits

  • Unit errors: Always enter wavelengths in nanometers as the calculator expects, but the formula uses meters. The calculator converts internally; if you do the math by hand, convert nm to m first.
  • Temperature in Celsius: The black body formula requires absolute temperature in kelvin. If you have Celsius, add 273.15.
  • Order of wavelengths: The lower wavelength must be less than the upper wavelength. If you swap them, the integral becomes negative, which is physically meaningless.
  • Real objects are not perfect black bodies: Emissivity is less than 1 and often wavelength-dependent. The calculator assumes emissivity = 1. For real surfaces, multiply the result by the average emissivity in that band.
  • Wavelength range too wide: If you enter a range that extends beyond 0 to infinity, the fraction may exceed 1 due to numerical error. The calculator clamps the integral to the physical range.

How to Choose the Wavelength Range

Choose the lower and upper wavelengths based on your problem:

  • Visible light: 380–750 nm (some definitions use 400–700 nm).
  • Photosynthetically active radiation (PAR): 400–700 nm.
  • Infrared thermography: often 8–14 µm (8000–14000 nm) for room-temperature objects.
  • Solar spectrum: roughly 300–2500 nm, but you can pick any sub-range.

For a quick check, remember Wien’s displacement law: the peak wavelength \(\lambda_{max} = 2898 \,\mu\text{m} \cdot \text{K} / T\). At 5800 K, the peak is about 500 nm, which is why the visible band captures a large fraction.

Comparison with Other Black Body Quantities

This calculator gives the fraction of power, not the fraction of photons. If you need the photon fraction, you must integrate Planck’s law in photon number density (divided by \(hc/\lambda\)) and divide by the total photon emission. The photon fraction is always different from the power fraction; for the Sun, the photon fraction in the visible is about 0.36, while the power fraction is about 0.22.

Also, the calculator gives the emitted power per unit area. To get the total power from a sphere of radius \(R\), multiply by \(4\pi R^2\). This is how the Sun’s luminosity is estimated.

Frequently Asked Questions

What does “black body fraction� mean?

It is the proportion of the total electromagnetic power radiated by an ideal black body that falls within a specific wavelength interval. The total power is given by the Stefan–Boltzmann law, and the fraction is the integral of Planck’s law over that interval divided by that total.

Why is the fraction less than 1?

Because the black body emits over all wavelengths from zero to infinity. Any finite wavelength range captures only a part of the total. The fraction approaches 1 only if you integrate over the entire spectrum.

Can I use this for the Sun?

Yes, the Sun’s spectrum is approximately a black body at 5800 K. For the visible band (400–700 nm), the fraction is about 0.22, meaning about 22% of the Sun’s total emitted power is in that range. For the full solar spectrum reaching Earth, the atmosphere absorbs some wavelengths, so the actual surface fraction differs.

What is the difference between power fraction and photon fraction?

Power fraction weights each wavelength by its energy (\(hc/\lambda\)); photon fraction counts each photon equally. Since shorter wavelengths carry more energy, the power fraction is higher for short-wavelength bands than the photon fraction. For the visible band of the Sun, the power fraction is about 0.22, while the photon fraction is about 0.36.

How accurate is the numerical integration?

The calculator uses an adaptive integration method with high precision, typically accurate to better than 0.01% for smooth black body curves. For very narrow wavelength ranges or very low temperatures, the result may have slightly larger relative error, but it is still reliable for most practical purposes.

Does emissivity affect the fraction?

If the emissivity is constant across the wavelength range, it cancels out in the fraction because both numerator and denominator are multiplied by the same factor. If emissivity varies with wavelength, you must include it inside the integral; the calculator assumes a constant emissivity of 1. For real materials, multiply the power output by the average emissivity in that band.

Related

Formula used
in t | Temperature | K | 5800 | 0
in l1 | Lower wavelength | nm | 400 | 0
in l2 | Upper wavelength | nm | 700 | 0
out f | Fraction of total power | - | (integral from l1 to l2 of B_lambda(T) d_lambda) / (sigma * T^4) | 4
out p | Power in band | W/m^2 | f * sigma * t^4 | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.