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
- If you mostly shoot indoors or in dim light: Which lens with a wider aperture than f/2.8 would suit Pentax K APS-C shooting in low light?
- If you want to shoot people and blur backgrounds: Which lens would suit portraits on a Pentax K-3 Mark III at under a certain budget?
- If you need a wider view: Which wide-angle prime would pair with a Pentax KP for travel?
Ask next
- Which 50mm f/1.8 lens is made for the Pentax K mount and works on a Pentax KP?
- How does a 40mm f/2.8 pancake compare with a 35mm f/1.8 for street photography on APS-C?
- Would a used Pentax K-3 Mark III with a 40mm f/2.8 pancake be a good buy for portraits?
- How much background blur will I get from f/2.8 on an APS-C Pentax K body compared with full frame?
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}.