How To Create Shallow Depth Of Field With The iPhone

The iPhone’s small sensor renders almost everything in focus by default, but several techniques, both optical and computational, let you produce genuinely shallow depth of field rather than the flat look that often betrays a phone-captured image.

Using Portrait Mode and Its Depth Controls

Portrait Mode on iPhone XS and later uses dual cameras and a depth map to simulate shallow depth of field. Open the Camera app, swipe to Portrait, and select your subject. The yellow box that appears confirms the depth map is locked. After shooting, open the image in the Photos app and tap Edit. A slider labeled “f/” appears at the bottom of the screen, running from f/1.4 to f/16. Drag it toward f/1.4 to increase background blur, or toward f/16 to flatten it back out. This is non-destructive, meaning the original depth data is retained and you can re-edit later. For best results the subject should be between 0.5 m and 1.2 m from the lens. Beyond about 2 m the depth separation becomes inconsistent and edge fringing appears around hair and glasses. Portrait Mode also applies one of six lighting effects including Natural Light, Studio Light, and Stage Light Mono. Natural Light is the closest to a real optical blur and the safest choice for most situations.

Getting Optical Blur Without Portrait Mode

Portrait Mode is a software composite. You can get a more optically honest shallow depth of field by understanding how physical proximity affects blur even on a phone sensor. Move your iPhone as close as 10 to 15 cm from a small subject, such as a flower or a product on a table. At minimum focus distance the background falls out of focus because even a small sensor has a narrow depth of field when the magnification ratio is high. This is macro-style technique and it works well for food photography or small objects. Place the subject at least 1 m from the background, ideally more, to increase subject-to-background separation. The further the background is from the focused subject, the more it blurs in the out-of-focus rendering. A flat wall 20 cm behind the subject will barely blur at all. A garden 4 m behind the subject will soften noticeably even on an iPhone.

Use the telephoto lens when available (1x, 2x, or 3x depending on your iPhone model) rather than the wide main lens. A longer focal length gives shallower depth of field at the same subject distance. On iPhone 15 Pro, the 5x 120mm equivalent telephoto gives the shallowest natural depth of field of any built-in lens.

Third-Party Lenses and App Controls

Clip-on macro lenses from brands like Moment increase the optical magnification beyond what the built-in lenses offer, narrowing depth of field to a few millimeters at close range. Moment’s 10x Macro lens attaches via a phone case and focuses at around 15 mm from the front element, producing visible bokeh in the out-of-focus regions. Moment’s own camera app lets you manually set focus by tapping and dragging, which is critical when the subject and background are both within the phone’s standard autofocus zone.

Halide and ProCamera both offer manual focus control with a focus peaking overlay, which highlights in-focus edges in red or yellow. This lets you precisely set the focal plane on a single subject plane rather than letting the autofocus average across the frame. These apps also shoot in ProRAW on supported devices, which gives you more latitude in post to adjust sharpening and local contrast without amplifying noise in the already-processed blur areas.

Common mistakes to avoid

  • Shooting Portrait Mode through glass or mesh. The depth sensor reads the surface in front rather than the actual subject and produces incorrect blur maps with sharp patches in the background and blurred areas on the foreground subject.
  • Relying on Portrait Mode for moving subjects. The depth-mapping algorithm struggles with motion between frames and produces visible artifacts around the edges of anything that moved between the two camera captures. Use continuous shooting and select the sharpest frame after.
  • Keeping the background too close to the subject. A background only 30 cm behind your subject will barely blur even with f/1.4 applied in Portrait Mode. Physical distance between subject and background is the most important factor.
  • Using the ultra-wide lens for close-ups expecting blur. The ultra-wide has a very deep depth of field at all distances. Even at minimum focus distance everything appears sharp. Use the telephoto or main lens instead.

FAQ

Why does Portrait Mode blur look fake on some shots? The depth map the iPhone creates is derived from dual-camera parallax or LiDAR, not true optical defocus. Complex edges like curly hair, translucent fabric, or objects overlapping the subject boundary confuse the segmentation. This produces a hard, pasted-on blur edge rather than the gradual optical falloff you get from a fast lens. Shooting against a background with low contrast to the subject amplifies the problem. Choosing high-contrast backgrounds like dark walls behind a light subject helps the algorithm separate subject from background more cleanly.

Can I add background blur in editing after the fact without Portrait Mode? Yes, with limitations. Apple Photos’ built-in editing does not add blur retroactively. In Snapseed, the Lens Blur tool applies a radial or linear blur you can center manually. It works reasonably well for scenes with a clear subject in the center, but it cannot detect depth, so it will blur parts of the subject that happen to fall in the blur radius. For a more precise result, use a Photoshop-style selection-based approach in an app like Darkroom or Pixelmator Photo, masking the subject and applying Gaussian blur only to the background layer.