You asked

Is a used 50mm f 2 better than a new 50mm f 1 8 for portraits?

The guide can't say whether a used f/2 beats a new f/1.8, because it has no used prices and no price for either lens in this answer. Check the shops for current prices, and remember prices change. On the lens itself, the gap is small. f/1.8 and f/2 differ by about a third of a stop, so for portraits the choice matters less than the lens's mount and focus. The portraits page calls the 50mm the cheapest great portrait lens and says to buy one if you buy only one for people.

The guide doesn't list a new full-frame 50mm f/1.8. Its closest pick is the 7Artisans 50mm f/1.8, made for APS-C cameras and fitting Sony E, Fujifilm X and Micro Four Thirds. On APS-C it frames like 75mm, which suits headshots well. It is manual focus only, so it asks more of you when people move.

If you shoot full frame, the TTArtisan 50mm f/2 is the guide's full-frame option. It is also manual focus, and it fits many mounts, including Sony E, Nikon Z, Canon RF and L-Mount. The guide's notes on the Leica Summicron-M 50mm f/2 and Zeiss Loxia 50mm f/2 give little beyond "full frame 50mm f/2", so the guide can't say how they compare for portraits.

My view: buy whichever 50mm matches your camera's mount and sensor, and buy used only if the saving is clear. Autofocus will help more with portraits than the extra stop of speed would.

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