You asked
What aperture should I use on the canon rf 50mm f 1 8 stm to keep two people sharp at a fixed distance?
For two people, the guide's answer is to stop down to f/2.8. At f/1.8, the depth of field on this lens can be thinner than a face, so if one person's eyes are sharp, the other's may not be. f/2.8 gives you more room for both faces to fall inside the sharp zone. The portraits guide notes that f/1.4 and wider can be this thin, and recommends f/2.8 specifically for two people at different distances.
If both people sit at exactly the same distance from the camera, f/2.8 still gives you a safer margin. Going to f/4 would add more depth, but it also reduces the light and the background blur you bought a fast prime for, so f/2.8 is the usual balance.
The Canon RF 50mm f/1.8 STM is built for full frame cameras, where the numbers above apply directly. On an APS-C Canon RF body, it frames like 80mm, and f/1.8 gives about the depth of field of f/2.9. In that case, f/2.8 on this lens behaves more like f/4 on full frame, so you can stop down a little less.
For spacing, the guide also says that moving your subjects away from a wall often separates them from the background more than a faster lens does. You can use the same idea to keep the two of them at a comfortable distance from each other.
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}.