You asked

Is an 85mm or a 50mm better for portraits in a small apartment?

For a small apartment, the 50mm f/1.8 is the better choice. The portraits guide calls it the cheapest great lens in photography, and it is easier to use indoors. On full frame it gives a natural, slightly tight view. On APS-C it behaves like a classic 75-80mm portrait lens, so you still get a flattering look.

The 85mm f/1.8 is the classic full-frame portrait lens, with flattering perspective, soft backgrounds and a comfortable working distance. That distance is the problem in a small room. Longer lenses flatter faces because you stand further away, and a small apartment may not give you that space. You would have to back against the wall to frame a head and shoulders, which is awkward and can leave you with little room to move. On APS-C, the 56mm f/1.2 to f/1.4 plays the same role and has the same space problem.

A 35mm f/1.8 or f/1.4 is another option for a small room. It fits more of the room into the frame, which suits portraits that show where someone is. Very wide lenses exaggerate whatever is nearest the camera, so keep the subject a little back from the lens.

The lenses guide suggests a fast standard prime as a first lens for people and low light, and the 50mm is the usual pick for that. If you later move somewhere with more space, the 85mm becomes worth adding.

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