How do I blur the background in a photo?

That soft, creamy background behind a portrait has a name — shallow depth of field — and it is not an effect added afterwards. It is decided while you shoot.

What is actually happening

A lens can only focus at one distance at a time. Everything nearer or further than that distance is slightly out of focus. How quickly that blur builds up as you move away from the focus point is called depth of field.

Shallow depth of field means the blur builds fast: your subject is sharp and the wall behind them melts. Deep depth of field means it builds slowly: the subject and the mountain behind them are both sharp.

Three controls, in the order that matters

Most people reach for aperture first. Start with distance instead — it is free, it is stronger, and it works on the phone in your pocket.

The f-number is backwards on purpose

f/1.8 sounds small but means a wide opening. f/16 sounds big but means a narrow one. The f-number is a ratio, not a size, so it runs the other way. Everyone finds this confusing at first and then stops noticing it.

Wide open also means more light reaches the sensor, so aperture changes brightness and blur at the same time. That is why it sits next to shutter speed and ISO — change one and the other two have to answer.

What phones can and cannot do

Most phone lenses have a fixed aperture. It physically cannot open or close. So a phone produces background blur by measuring the scene and blurring it in software — this is what portrait mode is.

It is genuinely useful and it is genuinely a simulation. It gets edges wrong on hair, glasses and leaves, because it has to decide where the subject stops. Knowing that tells you when to trust it and when to move your subject away from the wall instead.

Lensmera shows you the depth-of-field band as you turn the aperture wheel, and it says plainly when your device is simulating rather than opening a real iris. The principle is the same one you will use on a real lens later.

Written by the Lensmera team.