You asked

Is the nikon af s 85mm f 1 8g good for portraits?

Yes. The guide treats the Nikon AF-S 85mm f/1.8G as the classic full-frame portrait lens. Its flattering perspective, soft backgrounds and comfortable working distance match what the portraits guide asks for. It has autofocus but no stabilisation, which matters little for portraits, where you can use a faster shutter speed.

It is made for full frame, so the natural partners are the Nikon D750, Nikon D610 or Nikon D780. On these it frames as marked, at 85mm.

It also fits APS-C bodies such as the Nikon D5300, but there it frames like about 128mm. That is quite tight for portraits in small rooms, so on APS-C it is a stretch.

What it gives up is room. You need space to back away, and at f/1.8 the depth of field is thin. For two people at different distances, stop down to f/2.8, as the background blur section explains.

If you only want one lens for people, the guide calls the Nikon AF-S 50mm f/1.8G the better first buy. Add the 85mm once you know you want that tighter view.

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