You asked
How does the 45mm f 1 8 compare for portraits on a nikon aps c camera?
The 45mm f/1.8 works for portraits on an APS-C Nikon, but it isn't the ideal length. The focal length converter explains the crop factor: on a Nikon APS-C body, 45mm frames roughly like a 68mm lens on full frame. The guide's portrait lens advice favours about 85mm on full frame, or 56mm f/1.2 to f/1.4 on APS-C. So a 45mm sits a little wide and close for tight headshots, but it's still a natural, flattering length for head-and-shoulders and half-length portraits.
The Tamron SP 45mm f/1.8 Di VC USD is the pick here. It's an autofocus prime with f/1.8 and image stabilisation, and it's made for Nikon F mounts, so it fits Nikon DSLRs. It's designed for full-frame sensors, and on APS-C it still works, though the crop factor is what gives it the 68mm-equivalent view. Because the crop factor also shrinks the background blur, f/1.8 on APS-C gives about the blur of f/2.7 on full frame, so you'll get softer backgrounds than a kit zoom but less than a true 85mm at f/1.8.
The guide's page on starting lenses suggests a fast standard prime for people in low light, which is the role this lens fills. The site's catalogue has other 45mm f/1.8 lenses, including the Samyang AF 45mm f/1.8 FE, but its page doesn't list a mount, so it can't be checked against a Nikon APS-C camera. The Laowa 45mm f/0.95 is a manual-focus lens for Sony E, Nikon Z and Canon RF mounts, so it doesn't suit a Nikon F body.
This site doesn't give prices on these pages, so check current prices with the shops linked from each catalogue page.
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}.