The effective temperature of a body such as a star or planet is the temperature of a black body that would emit the same total amount of electromagnetic radiation. Effective temperature is often used as an estimate of a body's temperature when the body's emissivity curve (as a function of wavelength) is not known.
When the star's or planet's net emissivity in the relevant wavelength band is less than unity (less that that of a black body), the actual temperature of the body will be higher than the effective temperature. The net emissivity may be low due to surface or atmospheric properties, including greenhouse effect.
The effective temperature of a star is the temperature of a black body with the same luminosity per surface area () as the star and is defined according to the Stefan–Boltzmann law . Notice that the total (bolometric) luminosity of a star is then , where is the stellar radius. The definition of the stellar radius is obviously not straightforward. More rigorously the effective temperature corresponds to the temperature at the radius that is defined by the Rosseland optical depth. The effective temperature and the bolometric luminosity are the two fundamental physical parameters needed to place a star on the Hertzsprung–Russell diagram. Both effective temperature and bolometric luminosity actually depend on the chemical composition of a star.
The effective temperature of our Sun is around 5780 kelvin (K). Stars actually have a temperature gradient, going from their central core up to the atmosphere. The "core temperature" of the sun—the temperature at the centre of the sun where nuclear reactions take place—is estimated to be 15 000 000 K.
The color index of a star indicates its temperature from the very cool—by stellar standards, that is—red M stars that radiate heavily in the infrared to the very blue O stars that radiate largely in the ultraviolet. The effective temperature of a star indicates the amount of heat that the star radiates per unit of surface area. From the warmest surfaces to the coolest is the sequence of star types known as O, B, A, F, G, K, and M.
A red star could be a tiny red dwarf, a star of feeble energy production and a small surface or a bloated giant or even supergiant star such as Antares or Betelgeuse, either of which generates far greater energy but passes it through a surface so large that the star radiates little per unit of surface area. A star near the middle of the spectrum, such as the modest Sun or the giant Capella radiates more heat per unit of surface area than the feeble red dwarf stars or the bloated supergiants, but much less than such a white or blue star as Vega or Rigel.
Surface Temperature of a Planet 
The surface temperature of a planet can be calculated by equating the power received by the planet with the power emitted by a blackbody of temperature T.
Take the case of a planet at a distance D from a star of luminosity L.
Here the area of the planet that absorbs the power from the star is Aabs which is some fraction of the total surface area where r is the radius of the planet. This area intercepts some of the power which is spread over the surface of a sphere of radius D. We also allow the planet to reflect some of the incoming radiation by incorporating a parameter a called the albedo. An albedo of 1 means that all the radiation is reflected, an albedo of 0 means all of it is absorbed. The expression for absorbed power is then:
The next assumption we can make is that the entire planet is at the same temperature T and the power is radiated over an area Arad which is again some fraction of the total area of the planet where r is the radius of the planet. There is also a factor ε, which is the Emissivity and represents atmospheric effects. ε ranges from 1 to 0 with 1 meaning the planet is a perfect blackbody and emits all the incident power. The Stefan–Boltzmann law gives an expression for the power radiated by the planet:
Equating these two expressions and rearranging gives an expression for the surface temperature:
Note the ratio of the two areas. Common assumptions for this ratio are 1/4 for a rapidly rotating body and 1/2 for a slowly rotating body. This ratio would be 1 for the subsolar point, the point on the planet directly below the sun and gives the maximum temperature of the planet.
Lets look at the Earth. The Earth has an albedo of about 0.367. The emissivity is dependent on the type of surface and many climate models set the value of the Earth's emissivity to 1. However, a more realistic value is 0.96. The Earth is a fairly fast rotator so the area ratio can be estimated as 1/4. The other variables are constant. This calculation gives us an effective temperature of the Earth of 252K or -21°C. The average temperature of the Earth is 288K or 15°C. One reason for the difference between the two values is due to the Greenhouse effect, which increases the average temperature of the Earth's surface.
Also note here that this equation does not take into account any effects from internal heating of the planet, which can arise directly from sources such as radioactive decay and also be produced from frictions resulting from tidal forces.
See also 
- Archie E. Roy, David Clarke (2003). Astronomy. CRC Press. ISBN 978-0-7503-0917-2.
- Tayler, Roger John (1994). The Stars: Their Structure and Evolution. Cambridge University Press. p. 16. ISBN 0-521-45885-4.
- Böhm-Vitense, Erika. Introduction to Stellar Astrophysics, Volume 3, Stellar structure and evolution. Cambridge University Press. p. 14.
- Baschek (June 1991). "The parameters R and Teff in stellar models and observations". Astronomy and Astrophysics 246 (2): 374–382. Bibcode:1991A&A...246..374B.
- "Section 14: Geophysics, Astronomy, and Acousticse". Handbook of Chemistry and Physics (88 ed.). CRC Press. Unknown parameter
- Jones, Barrie William (2004). Life in the Solar System and Beyond. Springer. p. 7. ISBN 1-85233-101-1.
- Swihart, Thomas. "Quantitative Astronomy". Prentice Hall, 1992, Chapter 5, Section 1.
- Jin, Menglin and Shunlin Liang, (2006) “An Improved Land Surface Emissivity Parameter for Land Surface Models Using Global Remote Sensing Observations” Journal of Climate, 19 2867-81. (www.glue.umd.edu/~sliang/papers/Jin2006.emissivity.pdf)
- Effective temperature scale for solar type stars
- Surface Temperature of Planets
- Planet temperature calculator