You asked

How far should I stand back to keep five people sharp at f 4?

The guide doesn't give a distance for keeping five people sharp at f/4, so check the exact figure with a depth-of-field calculator for your focal length. What it does say is that depth of field depends on three things: aperture, focal length and distance. f/4 is far more forgiving than the f/1.4 to f/1.8 settings the portrait pages warn about, where the sharp zone can be thinner than a face. At f/4 the main risk is the group's depth, not the aperture.

Stand back rather than close in. The portrait lens guide notes that very wide lenses exaggerate whatever is nearest the camera, so the person in front can look large while those at the back shrink. Standing further away with a moderate focal length keeps faces in proportion and makes it easier to fit everyone into one focus zone. The guide suggests a 35mm lens for groups, and for a tighter, more flattering group a longer lens works better, as long as you have room to step back.

Keep the group on one plane where you can. The guide's advice on background blur applies here too: if people stand at different distances, stop down further, or arrange them in a shallower line. Focus on the middle person, then check the edges at full magnification before you shoot.

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