Lenses used in portrait photography are classically fast, medium telephoto lenses, though any lens may be used, depending on artistic purposes. See Canon EF Portrait Lenses for Canon lenses in this style; other manufacturers feature similar ranges. The first dedicated portrait lens was the Petzval lens developed in 1840 by Joseph Petzval. It had a relatively narrow field of view of 30 degrees, a focal length of 150mm, and a fast f-number in the f/3.3-3.7 range.
Portrait taken with an 18mm wide-angle lens with an aperture of ƒ/4.5, resulting in fairly large depth of field
Classic focal length is in the range 80–135mm on 135 film format and about 150-400mm on large format, which historically is first in photography. Such a field of view provides a flattening perspective distortion when the subject is framed to include their head and shoulders. Wider angle lenses (shorter focal length) require that the portrait be taken from closer (for an equivalent field size), and the resulting perspective distortion yields a relatively larger nose and smaller ears, which is considered unflattering and imp-like. Wide-angle lenses – or even fisheye lenses – may be used for artistic effect, especially to produce a grotesque image. Conversely, longer focal lengths yield greater flattening because they are used from further away. This makes communication difficult and reduces rapport. They may be used, however, particularly in fashion photography, but longer lengths require a loudspeaker or walkie-talkie to communicate with the model or assistants. In this range, the difference in perspective distortion between 85mm and 135mm is rather subtle; see (Castleman 2007) for examples and analysis.
Speed-wise, fast lenses (wide aperture) are preferred, as these allow shallow depth of field (blurring the background), which helps isolate the subject from the background and focus attention on them. This is particularly useful in the field, where one does not have a back drop behind the subject, and the background may be distracting. The details of bokeh in the resulting blur are accordingly also a consideration; some lenses, in particular the "DC" (Defocus Control) types by Nikon, are designed to give the photographer control over this aspect, by providing an additional ring acting only on the quality of the bokeh, without influencing the foreground (hence, these are not soft-focus lenses). However, extremely wide apertures are less frequently used, because they have a very shallow depth of field and thus the subject's face will not be completely in focus. Thus, f/1.8 or f/2 is usually the maximum aperture used; f/1.2 or f/1.4 may be used, but the resulting defocus may be considered a special effect – the eyes will be sharp, but the ears and nose will be soft.
Conversely, in environmental portraits, where the subject is shown in their environment, rather than isolated from it, background blur is less desirable and may be undesirable, and wider angle lenses may be used to show more context.
Finally, soft focus (spherical aberration) is sometimes a desired effect, particularly in glamour photography where the "gauzy" look may be considered flattering.
The Canon EF 135mm f/2.8 with Softfocus is an example of a lens designed with a controllable amount of soft focus.
Most often a prime lens will be used, both because the zoom is not necessary for posed shots (and primes are lighter, cheaper, faster, and higher quality), and because zoom lenses can introduce highly unflattering geometric distortion (barrel distortion or pincushion distortion). However, zoom lenses may be used, particularly in candid shots or to encourage creative framing.
Portrait lenses are often relatively inexpensive, because they can be built simply, and are close to the normal range. The cheapest portrait lenses are normal lenses (50mm), used on a cropped sensor. For example, the Canon EF 50mm f/1.8 II is the least expensive Canon lens, but when used on a 1.6× cropped sensor yields an 80mm equivalent focal length, which is at the wide end of portrait lenses.