You asked

Which lens for portraits on the pentax k 5?

For portraits on the Pentax K-5, the guide points to lenses around 75 to 130mm in full-frame terms. On this APS-C body they frame like 1.5 times their focal length, so a 55mm lens behaves like an 82mm. That range gives flattering perspective and a comfortable working distance.

The guide's first pick is the Pentax smc DA* 55mm f/1.4 SDM. Its wide f/1.4 aperture blurs the background and handles dim indoor light well, which matters more for portraits than stabilisation. It is heavier and pricier than the others, and it is a fixed focal length, so you move your feet to frame.

For a smaller, lighter kit, the guide suggests the Pentax HD DA 70mm f/2.4 Limited. It frames like about 105mm and is easy to carry all day. It is slower than the 55mm, so it needs more light or a higher ISO indoors.

If you want to keep costs down, the Pentax smc DA 50mm f/1.8 is a sound choice. It frames like 75mm, is fast enough for most portrait work, and is the least expensive of these three. The catalogue page is the place to check current prices and shop links, since prices change.

Whichever lens you choose, a window or open shade will do more for your portraits than the lens itself. See light beats gear for placing your subject.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.