In astronomy, surface brightness (SB) quantifies the apparent brightness or flux density per unit angular area of a spatially extended object such as a galaxy or nebula, or of the night sky background. An object's surface brightness depends on its surface luminosity density, i.e., its luminosity emitted per unit surface area. In visible and infrared astronomy, surface brightness is often quoted on a magnitude scale, in magnitudes per square arcsecond (MPSAS) in a particular filter band or photometric system. Measurement of the surface brightnesses of celestial objects is called surface photometry. General description The total magnitude is a measure of the brightness of an extended object such as a nebula, cluster, galaxy or comet. It can be obtained by summing up the luminosity over the area of the object. Alternatively, a photometer can be used by applying apertures or slits of different sizes of diameter. The background light is then subtracted from the measurement to obtain the total brightness. The resulting magnitude value is the same as a point-like source that is emitting the same amount of energy. The total magnitude of a comet is the combined magnitude of the coma and nucleus. The apparent magnitude of an astronomical object is generally given as an integrated value—if a galaxy is quoted as having a magnitude of 12.5, it means we see the same total amount of light from the galaxy as we would from a star with magnitude 12.5. However, a star is so small it is effectively a point source in most observations (the largest angular diameter, that of R Doradus, is 0.057 ± 0.005 arcsec), whereas a galaxy may extend over several arcseconds or arcminutes. Therefore, the galaxy will be harder to see than the star against the airglow background light. Apparent magnitude is a good indication of visibility if the object is point-like or small, whereas surface brightness is a better indicator if the object is large. What counts as small or large depends on the specific viewing conditions and follows from Ricco's law. In general, in order to adequately assess an object's visibility one needs to know both parameters. This is the reason the extreme naked eye limit for viewing a star is apparent magnitude 8, but only apparent magnitude 6.9 for galaxies. Calculating surface brightness Surface brightnesses are usually quoted in magnitudes per square arcsecond. Because the magnitude is logarithmic, calculating surface brightness cannot be