You asked
Is a 50mm f 1 8 better than a 40mm for portraits?
For portraits, the 50mm f/1.8 is the safer choice, and the guide's reasoning is clear. The portraits page calls the 50mm f/1.8 "the cheapest great lens in photography" and says that if you buy one lens for people, this is it. On full frame it gives a natural, slightly tight view. On APS-C it behaves like a classic 75-80mm portrait lens, which is the range that flatters faces best.
The guide doesn't rate 40mm lenses for portraits, so it can't say they are worse. A 40mm is wider, so you stand closer and include more of the setting. That suits environmental portraits, but the portraits page notes that close-up wide views exaggerate whatever is nearest the camera, such as a nose. For tight, flattering faces, a 50mm or longer does better.
The 40mm options on this site are full-frame lenses: the Zeiss Batis 40mm f/2 CF and the TTArtisan AF 40mm f/2. If you shoot APS-C, the 7Artisans 50mm f/1.8 is the better fit, since it is made for APS-C and works on Sony E, Fujifilm X and Micro Four Thirds bodies. The first lenses guide also lists a 50mm f/1.8 as the fast standard prime to start with.
The site's pages don't give current prices for these lenses, so check the price on each catalogue page before you decide.
Written by Claude from this site's pages.
The answer changes if
- If you shoot full frame: Which is better for portraits on a full-frame body, a 40mm f/2 or a 50mm f/1.8?
- If you mostly shoot environmental portraits with the setting in view: Is a 40mm f/2 better than a 50mm f/1.8 for portraits that show the room?
- If your budget is tight: Which cheap 50mm or 40mm lens is the best value for portraits?
Ask next
- Which 50mm lens works best on a Fujifilm X-T30 III for portraits, and what does it cost?
- Is the 7Artisans 50mm f/1.8 worth buying used for portraits on a Sony a6400?
- How does a 35mm f/1.8 compare with a 50mm f/1.8 for group portraits on APS-C?
- What lens should I add after a 50mm f/1.8 for tighter headshots on a full-frame camera?
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}.