You asked

What are the alternatives to the pentax smc da 40mm f 2 8 xs?

The site's material here doesn't include other lenses for the Pentax K mount, so it can't name direct alternatives to this pancake. What it does give is the reasoning for choosing one. The 40mm f/2.8 XS is an ultra-thin pancake for APS-C bodies, and on the Pentax K system it frames like about 60mm on full frame, with depth of field close to f/4.2. Its f/2.8 maximum is modest, so it suits daylight and general walking-around shooting more than dim light or strong background blur. The Pentax smc DA 40mm f/2.8 XS page lists every Pentax K body it fits, from the K-x up to the K-3 Mark III and KP.

If you want a different look, the guide's portrait lens advice is the closest comparison. It suggests a 50mm f/1.8, which the guide calls the cheapest great lens in photography and made for almost every mount, and an 85mm f/1.8 for flattering portraits. Both are faster than this pancake. Check that a given version is made for the Pentax K mount before buying, since the guide doesn't confirm that for each.

To judge any alternative fairly, compare the f-number and the focal length on your sensor. The focal length converter explains how the crop factor changes background blur, and the lenses guide explains why a wider aperture helps in dim light.

Written by Claude from this site's pages.

The answer changes if

Ask next

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}.