LazyTools

🔒 Every tool runs in your browser, the files and values you enter are never uploaded to any server. How it works

explainer

How to Blur the Background: The 4 Keys to Depth of Field

By Uttam Regmi · Published 2026-07-12 · Updated 2026-08-23 · 6 min read · Fact-checked, sources cited

Four controls of depth of field: aperture, focal length, subject distance and sensor size

That gorgeous blurred background, the one that makes a subject pop, is a shallow depth of field, and it’s controlled by just four things. Master them and you can dial in exactly how much of a photo is sharp: a paper-thin slice for a dreamy portrait, or everything from the flowers at your feet to the distant peaks.

Four controls of depth of field: 1) aperture, wider (f/1.8) is shallower; 2) focal length, longer is shallower; 3) distance, closer is shallower; 4) sensor size, bigger is shallower. Recipes: for blur use wide aperture, long lens, close, big sensor; for sharp use small aperture, wide lens, step back, hyperfocal focus.
Shrink the depth of field with all four and the background melts away.

What “depth of field” actually means

Depth of field (DoF) is the range of distances in a scene that appears acceptably sharp. Only a single plane is ever in perfect focus; everything in front of and behind it gets progressively softer. The zone where that softening is small enough to still read as “sharp” is your depth of field. Make that zone thin and the background dissolves into blur; make it deep and everything from the foreground to the horizon looks crisp.

Because “acceptably sharp” is a judgement, not a hard edge, DoF is defined against a circle of confusion, the largest blur spot that still looks like a point at normal viewing size. A common convention sets it to the sensor diagonal divided by about 1500, which is the value our calculators use. That is why the same lens can look “sharp enough” in a small web image and slightly soft in a large print: the standard assumes a typical print and viewing distance.

Four things move that zone, and nothing else does. Here they are in order of how directly you can reach for them.

1. Aperture, the big one

The aperture is the adjustable opening in the lens, measured in f-numbers. It’s the most direct control: a wide aperture (a low f-number like f/1.8) gives a shallow depth of field and a soft background; a small aperture (a high f-number like f/16) keeps far more in focus. Confusingly, smaller f-numbers mean bigger openings, f/1.8 is a wide aperture, f/16 is a narrow one. Start here: to blur a background, open up.

Each full stop halves or doubles the light and changes the depth of field. As a rough feel, moving from f/2.8 to f/5.6 (two stops) roughly doubles the depth of field for the same shot. Worked example: a 50mm lens on a full-frame camera, subject 2 m away, gives a total depth of field of only a few centimetres at f/1.8, but well over a foot once you stop down to f/8, same lens, same distance, just a smaller opening.

2. Focal length, longer blurs more

For the same aperture and subject size in the frame, a longer lens gives a shallower depth of field. An 85mm portrait lens throws a background far more out of focus than a 24mm wide-angle at the same f-stop. It’s a big reason portrait photographers reach for 50mm, 85mm and 135mm lenses.

There is a subtlety worth knowing: if you keep the subject the same size in the frame, stepping back as you zoom in, the near-to-far focus zone changes only modestly with focal length. What the long lens really does is magnify and compress the background, so out-of-focus areas are blown up larger and read as much blurrier. In practice the effect is the same: reach for a longer lens when you want a creamier background.

3. Subject distance, get close

The closer you focus, the shallower the depth of field. Move in tight on your subject and the background dissolves; back away and more comes into focus. This is why macro photos have razor-thin focus, at a few centimetres, the depth of field can be millimetres. It also means distance between the subject and the background matters: the farther the background, the blurrier it renders. A portrait shot against a wall a foot away will never blur like the same portrait shot in an open field with the trees fifty metres back.

4. Sensor size, bigger blurs more

For the same framing, a larger sensor gives a shallower depth of field. A full-frame camera blurs backgrounds far more easily than a phone, because to get the same field of view a phone uses a very short lens, and short lenses have enormous depth of field. That’s the whole reason your phone fakes the blur with a software “portrait mode” instead of doing it optically. The crop factor calculator shows the equivalent aperture across formats.

The shorthand photographers use is equivalent aperture: multiply the f-number by the crop factor to compare blur across formats. An f/2.8 lens on Micro Four Thirds (crop factor ~2) blurs the background about like f/5.6 on full frame. It still gathers f/2.8 worth of light, but the look of the background matches the deeper f/5.6 on a bigger sensor.

Quick reference: which way to push each control

ControlFor a blurry backgroundFor front-to-back sharpness
ApertureWide, f/1.4, f/1.8, f/2.8Narrow, f/8 to f/16
Focal lengthLonger, 85mm, 135mmWider, 16mm, 24mm, 35mm
Subject distanceClose to subject, background far awayStep back; keep the scene distant
Sensor / formatLarger, full frame, medium formatSmaller sensors help, or just stop down
Where to focusOn the subject’s near eyeAt the hyperfocal distance

The two recipes

Put the four together and you get a simple recipe for either extreme:

  • For a blurry background: wide aperture (low f-number) · long lens · get close · big sensor · lots of distance to the background.
  • For everything sharp (landscapes): small aperture (f/8-f/16) · wide lens · step back · and focus at the hyperfocal distance rather than the horizon, to squeeze out the maximum front-to-back sharpness.

A worked portrait

Say you want a classic headshot with a melted background. Reach for an 85mm lens, open up to f/1.8 or f/2, and stand close enough to fill the frame with head and shoulders on a full-frame body. Place your subject well away from the background, a few metres is plenty. Focus on the near eye. The result is a razor-thin plane of sharpness across the face with a wash of soft colour behind.

A worked landscape

Now the opposite. Fit a 24mm lens, stop down to f/11, and instead of focusing on the distant mountains, focus at the hyperfocal distance, the closest point you can focus while still keeping the horizon acceptably sharp. Everything from roughly half that distance out to infinity lands inside the depth of field, so the pebbles at your feet and the ridge line are both crisp. Going past f/16 usually backfires: diffraction begins to soften the whole frame, so f/8-f/11 is the sweet spot on most lenses.

Want the exact numbers for your gear? The depth of field calculator gives the near and far limits for any sensor, lens and aperture, and the hyperfocal distance calculator finds the perfect landscape focus point, all worked out privately in your browser.


Depth-of-field figures use the standard optics equations with the circle of confusion set to the sensor diagonal ÷ 1500, and verified sensor dimensions. Results match established DoF calculators; treat “acceptably sharp” as a guideline that depends on print size and viewing distance.

Frequently asked questions

What is depth of field?

The range of distances in a photo that look acceptably sharp. A shallow depth of field has only a thin slice in focus (blurry background); a deep one keeps everything sharp from foreground to horizon.

How do I blur the background of a photo?

Use a wide aperture (a low f-number like f/1.8), a longer lens, and get close to your subject, and put distance between the subject and the background. A larger sensor helps too. All of these shrink the depth of field.

What aperture gives a blurry background?

A wide one, f/1.4, f/1.8 or f/2.8 give a noticeably shallow depth of field and soft background. The higher the f-number, the more comes into focus, so f/8-f/16 keeps backgrounds sharp.

Does focal length affect depth of field?

Yes, for the same aperture and framing distance, a longer lens (say 85mm) gives a shallower depth of field and more background blur than a wide lens (24mm). It's why portrait lenses are longer.

Why does my phone struggle to blur backgrounds?

Because its sensor is tiny. Small sensors use very short lenses to get their field of view, and short lenses have a lot of depth of field, so everything tends to look sharp. Phones fake the blur with software 'portrait mode.'

How do I get everything in focus for a landscape?

Use a small aperture (f/8-f/16), a wide lens, and focus at the hyperfocal distance rather than the horizon. That maximises the depth of field so foreground and background are both sharp.

What is bokeh?

The aesthetic quality of the out-of-focus blur, the soft rendering of background highlights into smooth circles. It comes with a shallow depth of field, and its look depends on the lens's aperture design.