You asked

Can I adapt the canon ef 40mm f 2 8 stm to sony e?

The guide doesn't cover adapting lenses to Sony E, so it can't say whether the Canon EF 40mm f/2.8 STM works on a Sony body. The Canon EF 40mm f/2.8 STM page lists only Canon EF-mount cameras, all from Canon, and it doesn't mention adapters or any Sony model. For an adapter's compatibility, check its maker's documentation and the Sony body's own specifications.

What the guide can tell you is how this lens would frame and blur on a camera. On full frame it's a 40mm, a standard wide view. On Canon APS-C it behaves like about 64mm on full frame, with f/2.8 giving roughly the depth of field of f/4.5. The focal length converter explains why: multiply the f-number by the crop factor to compare blur with a full-frame lens. Keep in mind that the lens has no stabilisation, so in dim light you'll need a fairly fast shutter speed.

If you're after a portrait or people lens, the guide suggests the 50mm f/1.8 or 85mm f/1.8 before a 40mm. Its portrait picks explain why longer focal lengths flatter faces. For how aperture affects exposure and background blur, see the lenses page.

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