You asked

Does a 50mm f 1 8 still give soft backgrounds in a small room?

A 50mm f/1.8 still gives soft backgrounds in a small room, but less of them. Blur depends on focal length, on how close you stand, and most of all on the distance between your subject and the background. The portraits guide notes that moving your subject away from a wall often does more than a faster lens. In a small room the wall is close, so you'll need to pull your subject as far from it as you can.

The lens also gives less blur on smaller sensors. The focal length converter says f/1.8 on APS-C behaves like about f/2.7 on full frame, and on Micro Four Thirds like about f/3.6. The 7Artisans 50mm f/1.8 is made for APS-C and fits these mounts: Sony E, Fujifilm X and Micro Four Thirds. It is manual focus and not stabilised, so it suits deliberate, slower portraits.

Three cameras it fits:

If your room is really small, a longer lens such as an 85mm-equivalent would separate the subject from the background more, but the guide doesn't give a pick for that here.

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