Skip to content
Omnikalc

Star temperature calculator: what is the surface temperature from the B−V color index?

Enter the B−V color index of a star to get its surface temperature, the peak wavelength of its light, and its spectral class.

Updated on
Your inputs

Value out of range

Results

Surface temperature

5,778 K

Class G: yellow, like the Sun
Surface temperature in Fahrenheit
9,941 °F
Peak wavelength of the light (Wien’s law)
501 nm

The colour of a star tells its temperature: blue stars are hot and red stars are cool. The star temperature calculator takes the B−V color index of a star and gives its surface temperature in kelvin and in degrees Fahrenheit, the wavelength of the peak of its light by Wien’s law, and a plain statement of its spectral class and colour.

How the calculation works

  • Enter the B − V color index of the star, the difference between its magnitude in blue light (B) and in visual light (V). Blue stars have negative or small values and red stars have large ones.
  • The calculator uses the formula of Ballesteros (2012), which treats the star as a black body: T = 4600 × (1 / (0.92 (B−V) + 1.7) + 1 / (0.92 (B−V) + 0.62)) kelvin.
  • It gives the surface temperature, in kelvin and in Fahrenheit, and the wavelength of the peak of the light with Wien’s law, λmax = 2,897,772 nm·K / T.
  • A short statement names the spectral class (O, B, A, F, G, K or M) and the colour of the star.

Example

The Sun has a color index of B − V = 0.65. The formula gives T = 4,600 × (1 / 2.298 + 1 / 1.218) = 5,778 K, which is 9,941 °F. The peak of its light is at 2,897,772 / 5,778 = 501 nm, in the blue-green, and the star is of class G, yellow.

Why it matters

The colour index is one of the first things measured about a star, and it is the base of the Hertzsprung–Russell diagram, which classifies the stars. Amateur and professional astronomers use it to find the temperature, and with the brightness it gives the radius and the luminosity. The calculator makes the link clear for students and for observers who read catalogues.

Good to know

The formula is a calibration for stars of the main sequence, valid for B−V between about −0.4 and 2.0, and it treats the star as a black body, which is only approximate. It does not correct for the reddening by interstellar dust or for the metal content, and it can be several hundred kelvin off for red giants and for very cool stars. The spectral classes given are the main classes without the subtypes.

The stellar luminosity calculator gives the power of a star from its size and temperature, the star distance calculator gives the distance from parallax, the black hole temperature calculator covers a very cold object, and the photon energy calculator links wavelength to energy.

Frequently asked questions

What is the B−V color index?

It is the difference between the magnitude of a star measured through a blue filter (B) and through a yellow-green filter (V) that matches the eye. Because hot stars emit relatively more blue light, they have a small or negative B−V, while cool stars, rich in red light, have a large one. It is one of the easiest properties of a star to measure.

Why can I get a temperature from a color?

A star shines roughly like a black body, and the colour of a black body depends only on its temperature: hotter bodies are bluer. By measuring the ratio of the light in two filters, astronomers fit a temperature without the need for a spectrum. The calibration of Ballesteros gives it to within a few percent.

How accurate is the result?

For stars of the main sequence, with B−V between about 0 and 1.5, the error is about 100 to 200 K. It is worse for very hot or cold stars, for giants of different metal content, and when the dust between the stars reddens the light. The interstellar reddening makes a star look cooler than it is unless it is corrected.

What are the spectral classes?

Stars are classed by temperature as O, B, A, F, G, K and M, from the hottest to the coolest, remembered by the phrase Oh Be A Fine Girl (or Guy), Kiss Me. Class O is blue and above 30,000 K, G, like the Sun, is yellow at 5,200 to 6,000 K, and M is red and below 3,700 K. Most stars in the Galaxy are red dwarfs of class M.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.