A group photograph becomes easier when you reduce the distance between the nearest and farthest faces. Start with the arrangement, then choose aperture, focus, and shutter speed to support the people you actually have in front of you.
Counting heads alone does not tell you how much depth of field you need. Four people scattered deeply through a room can be harder to keep sharp than a larger group standing in a shallow row.
Choose the place before gathering everyone
Find even light, enough room for you to step back, and a background that does not cut through faces. Check the ground and walking route before asking people to move, especially when older relatives or small children are involved.
Make a test photograph with one willing person in the approximate group position. Look at the light on the face, the brightness behind them, and the shutter speed the camera can maintain before calling everyone over.
If you plan to join the picture, identify a stable camera position now. A safe support and a rehearsed timer are easier to arrange while people are relaxed than while an entire group waits and loses interest.
Keep the faces in a shallow arrangement
For a small group, begin with people beside one another rather than stretching backward along a sofa. Ask them to come closer together while keeping enough personal space to remain comfortable.
If you need two rows, keep them close front to back and stagger heads so that each face has a clear view of the camera. A second row several feet behind the first creates a different sharpness problem from two compact rows.
Check the ends of the group as well as the center. People often lean forward or backward to see around someone else, so a shallow arrangement on the ground may still contain a surprisingly deep spread of faces.

Give yourself enough working distance
Stepping back can help you include the group without placing the nearest person extremely close to a wide-angle lens. Check that you have room behind you and avoid backing toward steps, roads, or other hazards while looking through the camera.
Use the zoom to restore the framing after you choose a comfortable viewpoint. Your position affects the relative size of near and far people, so a zoom ring alone cannot solve every perspective problem.
Leave a little room around the group for straightening and print crops. Tight framing that looks efficient on the camera may make an 8×10 print awkward when a person's arm or head sits close to the edge.
Choose an aperture as a starting experiment
For a modest group in good light, f/5.6 or f/8 can be a useful starting range when your camera and lens offer it. Adobe's family-portrait guidance suggests that range for groups, but you still need to check your actual arrangement.
Do not select the smallest opening available simply because more people arrived. A very small aperture can require a longer exposure or higher ISO, and it does not excuse placing the back row much farther away than necessary.
Make one test frame and inspect faces across the depth of the group. Adjust aperture or arrangement according to the result, rather than treating a recommended f-number as a guarantee that every face must be sharp.
Put focus inside the group deliberately
Do not let the camera select a random face without checking it. Choose a visible face within the useful depth of the group, then inspect both a nearer and a farther face in the test photograph.
Avoid focusing on a hand, a shirt, or a person standing unusually far forward. If your camera detects eyes, confirm which person it selected and learn how to change the target when necessary.
There is no single focus fraction that works for every lens, distance, and row arrangement. Use a deliberate starting point and verify the actual faces, especially when you change position or add another row.
On a small screen, scroll the diagram sideways to read its labels.
Keep the shutter fast enough for people
A tripod reduces camera movement, but it does not stop a child swaying or someone turning toward a joke. Choose an exposure time that suits the group, raising ISO or finding more light when necessary.
Begin with a reasonably brisk shutter for a cooperative group and inspect the test at the faces. If children keep moving, shorten the exposure rather than assuming everyone will remain perfectly still because you announced a photograph.
Watch the readout after stopping down. In aperture priority, a smaller opening can produce a longer exposure unless ISO changes, so a depth-of-field improvement can accidentally introduce movement blur.
Look for faces you cannot actually see
Before shooting, scan from one end of the group to the other and check every pair of eyes. A person who can see only part of the camera may still be partly hidden behind the head in front.
Give one clear adjustment at a time, such as asking a back-row person to move slightly sideways. Large simultaneous instructions can make the arrangement worse because several people respond when you intended only one to move.
Check glasses, hair, and hats for practical obstructions without making anyone feel inspected or criticized. Your task is to help everyone be visible, not to demand a performance or change something personal about their appearance.
Make a short sequence with a real pause
Tell the group when you are ready, make a brief sequence, and then let them relax. A few frames improve your chances of a clear expression without requiring a long burst that becomes tedious to review.
Look at one image before repeating the sequence. Confirm framing, focus, and obvious closed eyes, because collecting another dozen versions of the same misplaced focus does not improve your options.
If someone needs a break, take it. A relaxed group in a simpler arrangement usually makes a more meaningful picture than a technically elaborate setup that has exhausted everyone's patience.
Rehearse the self-timer version
If you are joining the group, put a stand-in object or person where you will sit and check the framing first. Learn whether your camera will refocus at release and how its timer or remote behaves, using the model instructions.
Keep your route into the group clear and choose a position you can reach without rushing. Do not climb or run across uneven ground to beat a short countdown; extend the delay or use another trigger method if available.
After the first attempt, inspect the whole group before making more. Your own missing headroom or changed focus distance is easiest to solve while everyone remains in approximately the same place.
If the group includes different heights, solve visibility with comfortable seating and small position changes before asking anyone to stretch or crouch. A stable chair can be useful, while improvised risers or unstable furniture create a problem the photograph does not justify.
Check the final arrangement from the camera position after everyone settles. A row that looked clear while you stood beside the group can overlap differently from the viewpoint where the photograph will actually be made.
Review faces before applying a dramatic edit
Compare the near row, far row, and both ends at a sensible enlargement. If one depth is consistently softer, decide whether you need a shallower arrangement, a different focus distance, or more depth of field next time.
Keep the strongest expression even if a small hand moved, provided the picture works at its intended size. The goal is a photograph people will want to keep, rather than a laboratory chart that happens to contain relatives.
Write down the useful arrangement and setting combination for that place. When the family gathers again, you can begin with a tested position and spend more attention on including everyone than on rebuilding the technical setup from memory.