You asked
Can I adapt the pentax smc da 40mm f 2 8 xs to sony e?
The guide doesn't cover adapting this lens to Sony E. Its catalogue page lists only one mount, Pentax K, and the cameras it fits are all Pentax K bodies. So the guide can't say whether an adapter would work, or how a Sony body would handle it.
If you're deciding between the lens and a Sony system, the page's details still matter. The Pentax smc DA 40mm f/2.8 XS is an APS-C pancake: on a Pentax K APS-C body it frames like a 60mm lens on full frame and gives about the depth of field of f/4.2. It is not stabilised, so it steadies nothing but the framing. The guide's depth-of-field notes explain how the crop factor changes background blur, which helps if you're comparing it with lenses made for other systems.
If you want a lens that is native to a Sony body, the guide's lens notes can help you judge aperture and light, and the portrait guide shows which focal lengths suit people. Those pages don't name any Sony lenses, though, so the guide can't recommend one by name.
Written by Claude from this site's pages.
The answer changes if
- If you already own a Sony body: Which lenses made for Sony E would suit a 40mm-equivalent view for everyday photos?
- If you plan to shoot portraits: Is the 40mm pancake good enough for people, or should I look at longer lenses?
- If you want the Pentax system: Which Pentax K body pairs best with this 40mm pancake for travel?
Ask next
- Which Pentax K body pairs best with the 40mm f/2.8 pancake for travel photos under a set budget?
- How does the 40mm pancake compare with a 50mm f/1.8 for portraits on an APS-C camera?
- Are there any used Pentax K cameras that are good value to pair with the 40mm pancake?
- Which lens would give me the most background blur for portraits on a budget?
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}.