You asked

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

The Nikon AF-S DX 35mm f/1.8G is a good portrait lens, with one caveat. On an APS-C body it frames like about 52mm on full frame, and f/1.8 gives roughly the depth of field of f/2.7. That is wide enough to show the subject's surroundings, which suits environmental portraits and groups. For tight headshots, the guide's classic choices are a 50mm or an 85mm (or about 56mm on APS-C), so this lens is a solid second portrait lens rather than the first one to buy for people.

Its wide aperture still gives background blur. Blur grows with focal length, with getting closer to your subject, and with more distance between the subject and the background, so moving your subject away from a wall often helps more than the lens does. At f/1.8 the focus is very thin, so for two people at different distances, stop down to around f/2.8.

It fits these bodies, and the best choice depends on the camera:

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