You asked
Is the canon ef 40mm f 2 8 stm worth it?
The Canon EF 40mm f/2.8 STM is worth considering if you want a light, versatile lens for everyday shooting on a Canon EF camera. It is an autofocus prime with a 40mm focal length and an f/2.8 maximum aperture. It has no image stabilisation, so it steadies the camera but not the subject, and it isn't especially fast for dim light.
On a full-frame body such as the Canon EOS 5D Mark IV, it gives a natural, slightly wide view that suits street, travel and documentary work. On an APS-C body such as the Canon EOS 80D, it frames like about 64mm on full frame, which is closer to a classic portrait length. The focal length converter explains how the crop factor changes depth of field, so f/2.8 on APS-C blurs the background roughly like f/4.5 on full frame.
What it gives up is low-light speed and strong background blur. If people are your main subject, the guide's portrait lens advice favours a 50mm f/1.8, which is cheaper in spirit and far better for dim rooms. The lenses page explains why a wider aperture gives faster shutter speeds in dim light.
The catalogue page doesn't give a price for this lens, so the guide can't say whether it's good value at a particular cost. Check the current price in the shops before you buy.
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}.