Canon EF 40mm f/2.8 STM review

Reading Time: 5 min read


At under an inch in thickness and just 4.6 ounces, the tiny Canon EF 40mm f/2.8 is meant to be an unobtrusive all-purpose lens. Given its ability to deliver extremely quiet and smooth continuous AF at a list price of about $200, it makes a perfect companion to video-oriented, entry-level DSLRs such as the Canon EOS Rebel T4i. With a bright f/2.8 aperture and optics that include an aspherical lens element, we’d expect solid image quality for the price, and we put it through its paces at DxO Labs to confirm this.

Sharp and bright, but strong vignetting at widest apertures


Considering its relatively low price, the EF 40mm f/2.8 STM was a solid performer on our DxOMark Camera Lens Ratings. When mounted on a Canon EOS 5D Mark II, it rates among the top seven standard prime lenses (with a focal range between 35mm and 85mm) achieving an overall DxOMark Score of 26.

Strengths of the Canon EF 40mm f/2.8 STM include resolution, as evidenced by its Sharpness score of 15P-Mpix. Additionally, our sharpness measurements and field maps (below) indicated that the lens delivered relatively consistent edge-to-edge sharpness from f/2.8 to f/11.

Canon EF 40mm f/2.8 STM: Acutance in the field

Other strengths include its low geometric distortion and well-controlled chromatic aberration as indicated by its low Chromatic Aberration score of 10µm.

The one weakness of the Canon EF 40mm f/2.8 STM was the strong vignetting evident at the widest apertures. You can see from the vignetting field maps below that at f/2.8, there is heavy shading across 2/3 of the field.

Canon EF 40mm f/2.8 STM: Shading in the field

Canon EF 40mm f/2.8 STM vs. Canon EF 50mm f/1.4 USM vs. Canon EF 50mm f/1.8 II mounted on Canon EOS 5D Mark II


Two other standard Canon EF lenses that you’re likely to consider instead of the 40mm f/2.8 STM are the Canon EF 50mm f/1.4 USM (which sells for almost twice the 40mm f/2.8 at $399.99) and the Canon EF 50mm f/1.8 II (which is priced lower than the others at $125.99).

We tested all three lenses mounted to a Canon EOS 5D Mark II and found that all three lenses scored similarly on our tests despite the price differentials, with the 50mm f/1.4 USM and 50mm f/1.8 II achieving Overall DxOMark Scores of 24 and 25 respectively—both very close to the 40mm f/2.8 STM’s Overall score of 26. In fact, all three achieved admirable Sharpness scores with 15P-Mpix for the two more expensive lenses and a 14P-Mpix for the 50mm f/1.8 II. You can see from our sharpness measurements and field maps (below) that all three lens delivered similarly consistent edge-to-edge sharpness at f/2.8.

Acutance in the filed

When it comes to vignetting, however, the 40mm f/2.8 STM did not perform as well as the other two Canon lenses, with shading that should be better controlled. At f/2.8 on the 40mm lens you can see noticable vignetting across approximately 2/3 of the field, whereas the 50mm f/1.4 USM displayed no significant vignetting at f/2.8 and the 50mm f/1.8 lens displayed vignetting that was only noticeable across 25 percent of the field.

Shading in the field

Canon EF 40mm f/2.8 STM mounted on Canon EOS 7D vs. Pentax smc DA 40mm f2.8 XS mounted on Pentax K-5

Another obvious competitor to the Canon EF 40mm f/2.8 STM is the even slimmer and lighter Pentax smc DA 40mm f2.8 XS, which was announced last year as a kit lens for the Pentax K-01 hybrid APS-C camera. We tested the two lenses side-by-side, mounting the Canon 40mm lens on an 18-megapixel Canon EOS 7D and the Pentax 40mm lens on the 16-megapixel Pentax K-5 (both APS-C DSLRs).


The Canon EF 40mm f/2.8 STM was able to outscore the Pentax smc DA 40mm f2.8 SX on the Overall DxOMark Score by two points, with its DxOMark Score of 18 (vs. 16 for the Pentax). The main difference was due to the better resolution of the Canon lens mounted on the EOS 7D. This is evidenced by the Sharpness scores of 9P-Mpix for the Canon vs. only 7P-Mpix for the Pentax. You can see from our sharpness measurements and field maps (below) that the Canon couple managed much more consistent edge-to-edge sharpness at f/2.8 and achieved a sharper image in the center of the field at f/4, though it did soften toward the edge of the frame, but at an acceptable level.


With strong performance across most of the DxOMark tests and a video-friendly ultra-quiet stepping AF motor, the Canon 40mm f/2.8 STM is a good choice for anyone looking for an entry-level standard prime lens. The 40mm lens delivers edge-to-edge sharpness at various apertures with no distortion and minimal chromatic aberration, and light transmission is accurate. The only downside is some strong vignetting at the widest apertures.

DXOMARK invites our readership (you) to post comments on the articles on this website. Read more about our Comment Policy.