You asked
Is the nikon af s 50mm f 1 8g good for portraits?
Yes, I'd call it a good portrait lens. The portraits guide puts the 50mm f/1.8 among the best value lenses in photography, and I agree. On full frame it gives a natural, slightly tight view. On an APS-C Nikon it behaves like a classic 75mm portrait lens.
It has autofocus but no stabilisation. It fits a wide range of Nikon bodies, from the full-frame Nikon D750 and Nikon D850 down to the APS-C Nikon D3500.
If you want more background blur and a flatter, more flattering perspective, the Nikon AF-S 85mm f/1.8G is the classic next step on full frame. Just stand a little further back when you use it.
Written by Claude from this site's pages.