Long Exposure Noise Reduction and Dark Frames Explained

Long streaks of orange, white and red light from passing traffic converging along a dark road at night
Photo: Truckers Passing In The Night by Duncan Rawlinson. 80mm, f/14, 10s, ISO 100. A 10 second night exposure, long enough that sensor heat noise and the camera’s dark frame matter.

Long exposure noise reduction (LENR) makes your camera take a second exposure, the same length as the first, with the shutter closed. That black “dark frame” records only the sensor’s own heat noise and hot pixels, and the camera subtracts it from your photo. It cleans single long exposures well, but it doubles the wait, so turn it off for star trails, timelapses and stacking and shoot your own dark frames instead.

Why long exposures get speckled

A sensor does not only collect light. Each photosite also slowly fills with electrons made by heat, even in total darkness. This is called dark current, and the electrons it produces look exactly like signal from light. The longer the exposure runs, the more of them pile up. A 1/250 second shot gives them no time to matter. A 4 minute exposure gives them 60,000 times as long.

Dark current is not the same in every photosite. Most photosites leak a little, and a few leak a lot. Those few are the bright red, green, blue or white dots you see scattered across a long night exposure at 100% view. They are hot pixels, and they sit in the same place on your sensor every time you shoot under the same conditions. That fixed pattern is the key to removing them.

Heat makes it worse. Dark current rises steeply with sensor temperature, roughly doubling for every several degrees Celsius of warming. Two things raise the temperature: the weather, and the camera itself. Long live view sessions, video, and shooting frame after frame for an hour all warm the sensor. The same 2 minute exposure can look clean on a frosty night and speckled on a warm summer evening, or clean at the start of a session and noisier an hour in.

It helps to separate the two kinds of noise in a long exposure, because only one of them can be subtracted:

  • Fixed pattern noise. Hot pixels, warm pixels and any glow from the sensor’s edges or circuitry. They repeat from frame to frame at the same exposure time, ISO and temperature. A dark frame records them, so they can be removed.
  • Random noise. Shot noise from the light itself and the random part of the thermal noise. It is different in every frame, so a dark frame cannot predict it. Only more light, more frames averaged together, or noise reduction in editing can reduce it.

If you want the wider picture of where noise comes from, the guide to digital noise covers shot noise and read noise, and the pages on luminance noise and color noise explain the grain and the coloured blotches you see in shadows. This page is about the part that grows with time and heat.

What the camera does when LENR is on

With the setting on, here is what happens when you take a long exposure:

  1. The camera makes your exposure as normal, say 120 seconds.
  2. The shutter closes and the camera immediately makes a second 120 second exposure at the same ISO, with no light reaching the sensor. The screen usually shows a “busy” or “processing” message and a countdown.
  3. The camera subtracts the dark frame from your photo, pixel by pixel. Wherever the dark frame has a hot pixel, that brightness is taken away from the real image.
  4. It saves one file. On most cameras the subtraction is applied to the raw file too, not only the JPEG, so you cannot undo it later.

Because the dark frame is shot seconds after the real one, the sensor is at almost exactly the same temperature, and the match is very good. That is the strength of the in-camera method. The cost is time: a 2 minute photo takes 4 minutes, and you cannot take another picture until the dark frame finishes. Most cameras only apply LENR above a certain shutter speed, often around one second or longer, so it does nothing to ordinary handheld shots.

That is the whole answer to “why does my camera take twice as long on long exposures”. It is not frozen and it is not slow at saving. It is taking a second, invisible photo. If you switch the camera off or open the battery door during that time, you lose the dark frame and, on some cameras, the photo too.

LENR is not high ISO noise reduction

Many cameras have two separate menu items with similar names. Long exposure noise reduction is the dark frame subtraction described here, and it depends on exposure time. High ISO noise reduction is smoothing software that blurs fine grain in JPEGs, and it depends on ISO. High ISO noise reduction usually does nothing to raw files, while LENR usually does. You can have one on and the other off.

When to leave it on, and when to turn it off

The choice comes down to one question: can you afford to wait as long again after every frame?

Leave LENR on when:

  • You are making single long exposures, such as a 3 minute seascape behind an ND filter or a 90 second exposure of a lit building at night, and you have time between frames.
  • The night is warm, or the sensor has been working hard, and you can already see hot pixels at 100% on test frames.
  • You want a clean file without extra editing work, and you will not be stacking several frames together.
  • You are using bulb mode for exposures of several minutes, where hot pixels are most obvious.

Turn LENR off when:

  • You are shooting star trails as a sequence of frames. With LENR on, every 30 second frame is followed by 30 seconds of blindness. The stars keep moving while the camera is not looking, so the trails come out as dotted lines with gaps. In a 2 hour session you would only collect 1 hour of trails.
  • You are shooting a timelapse. A night sky timelapse with 20 second frames and a 1 second gap gives one frame every 21 seconds. With LENR on it becomes one frame every 41 seconds, so a 3 hour session gives about 263 frames instead of about 514, and the motion jumps.
  • You are stacking frames for astrophotography or to cut random noise. Stacking software can subtract a set of your own dark frames from every light frame, which is faster and, done well, cleaner.
  • The light is changing fast, as at the end of twilight, and you need the next frame now rather than in 2 minutes.
  • The night is cold and exposures are short, say 15 to 25 seconds at a cool sensor temperature. Hot pixels may be few enough to fix in editing, and the wait costs you more than it saves.

A useful middle path: take one test frame with LENR off, zoom to 100% in a dark area, and look. If you see a handful of hot pixels, you can clone them out or let your raw editor handle them. If you see hundreds, turn LENR on or plan to shoot dark frames.

How to shoot your own dark frames

A manual dark frame is the same idea as LENR, done by you, on your schedule. The rule is that it must match your real photos in every way that changes the sensor’s own noise:

  • Same exposure time. A 30 second dark for 30 second lights. Dark current depends on time.
  • Same ISO. Gain changes how the noise is recorded.
  • Same temperature, as near as you can. Shoot the darks in the field, during or straight after the session, not at home the next day.
  • Same file type. Shoot raw for both, with the same in-camera settings, and LENR off for both.
  • No light at all. Put the lens cap on, and close or cover the optical viewfinder if your camera has one, because light can leak in through the eyepiece during a long exposure. In bright surroundings, wrap the camera in a dark cloth.

Aperture, focus and focal length do not matter for a dark frame, because no light reaches the sensor. Leave them alone anyway so you do not upset your setup.

How many dark frames to take

One dark frame removes hot pixels, but it also carries its own random noise, and subtracting it adds that noise to your photo. With a single dark the random thermal part of the noise rises by about 41%, because two equal random noises add to the square root of two times one. Averaging several darks into a “master dark” fixes this. The random noise in an averaged master falls with the square root of the number of frames:

Dark frames averaged Random noise in the master dark
1 100%
4 50%
9 33%
16 25%
25 20%

For most night work, 10 to 20 darks is a sensible number. For a star trail sequence of 30 second frames, 15 darks take 7.5 minutes, compared with doubling the length of a whole 2 hour session. A good habit is to shoot half the darks at the start of the sequence and half at the end, so the master reflects the sensor’s average temperature over the night.

How to apply a dark frame

There are two common ways, depending on what you are making.

For stacked frames: let the stacking software do it

Most astrophotography and star trail stacking programs have a slot for dark frames. You load your light frames and your darks, the software averages the darks into a master and subtracts it from every light before aligning and combining them. This is the cleanest route, and it is the reason serious astrophotographers keep LENR off. Some programs also take “flat” frames to correct dust and vignetting, and “bias” frames to remove the sensor’s baseline signal. Those are separate corrections and you do not need them to benefit from darks.

For a single photo: subtract it in a layer editor

  1. Process the photo and the dark frame from raw with identical settings. Turn off any automatic noise reduction, sharpening, lens corrections and hot pixel removal for both, so the pixels line up and are treated the same.
  2. Open them as layers in an editor that supports layers and blend modes, with the dark frame on top.
  3. Set the dark frame’s blend mode to Subtract. Difference also works for a dark frame, because the dark is darker than the photo in almost every pixel.
  4. Flatten, then carry on editing as usual.

Raw editors often hide the worst hot pixels automatically when they render the file, which is why a speckled frame on the camera’s screen can look cleaner on your computer. That helps with a few isolated pixels, but it does not remove warm pixels or edge glow the way a matched dark frame does.

Common mistakes with long exposure noise reduction

  • Thinking the camera has frozen. The wait after a long exposure is the dark frame. Let it finish. Turning the camera off throws it away.
  • Leaving LENR on for a star trail or timelapse sequence. This is the most common way people end up with dashed trails and jumpy timelapses. Check the setting before any interval shooting.
  • Expecting LENR to remove grain. It removes what repeats: hot pixels and fixed glow. Random grain stays, and a single dark frame can make it slightly worse. Grain is handled by more light, by stacking, or by AI noise reduction and other editing tools.
  • Shooting dark frames at home the next day. The sensor temperature is different, so the hot pixels are a different brightness and the subtraction leaves dark holes or misses dots.
  • Using a dark frame with a different exposure time or ISO. A 15 second dark under a 60 second photo removes too little, and the mismatch can leave a pattern.
  • Letting light leak in. An open optical viewfinder or a loose cap gives a dark frame with a faint glow, and subtracting it darkens and stains the photo.
  • Blaming the sensor for warmth you created. An hour of live view focusing and constant shooting heats the sensor. Turn the screen off between frames on warm nights.
  • Raising ISO to “fix” the problem. Hot pixels come from time and heat. A shorter exposure at a higher ISO can be cleaner, but the guide to ISO invariance explains why ISO itself is rarely the real lever.

Try this: see your own hot pixels in 10 minutes

You need a camera that can shoot raw with manual exposure, a lens cap, and somewhere to rest the camera. A phone with a manual mode that allows exposures of several seconds can join in for the first half.

  1. Set ISO to 1600, manual mode, raw, and turn LENR off.
  2. Put the lens cap on, cover the viewfinder, and take a 1/100 second exposure. This is your baseline.
  3. Take a 30 second exposure. If your camera allows, take a 2 minute exposure in bulb mode as well.
  4. Turn LENR on and take another 30 second exposure. Notice that the camera is busy for a further 30 seconds afterwards.
  5. Open all the files on a computer. Raise the exposure slider by 3 to 4 stops on each, identically, and look at them at 100%.

How to judge the result: the short exposure should look almost uniformly dark grey. The 30 second frame with LENR off will show scattered coloured dots, and the 2 minute frame many more, often with a faint glow along one edge. Note where three or four of the brightest dots sit, then check they are in the same place in both long frames. They will be, which proves they are fixed pattern noise. The LENR frame should show almost none of them but similar overall grain. If you repeat the test after an hour of shooting on a warm night, you will see more dots in the same 30 seconds, which is the temperature effect in action.

FAQ

Should I turn on long exposure noise reduction?

Turn it on for single long exposures when you have time to wait, especially on warm nights. Turn it off for star trails, timelapses and any frames you plan to stack, and shoot your own dark frames instead. If you are unsure, take a test frame with it off and look for hot pixels at 100%.

What is a dark frame?

A dark frame is an exposure made with no light reaching the sensor, at the same exposure time, ISO and temperature as your real photo. It records only the sensor’s own thermal noise and hot pixels. Subtracting it from the real photo removes those defects while leaving the picture.

Does long exposure noise reduction affect raw files?

On most cameras, yes. The dark frame is subtracted before the raw file is saved, so the change is part of the raw data and cannot be reversed. Check your camera’s manual if you need to be sure, because a few cameras handle it differently.

Why are some hot pixels red, green or blue?

Each photosite sits under one coloured filter. When one leaks heat electrons, the raw converter reads it as a strong signal in that one colour and spreads it into a small coloured dot during demosaicing. Very bright ones can look white because neighbouring pixels pick them up too.

Is a cold night better for long exposures?

Yes, for sensor noise. Dark current falls steeply as the sensor cools, so the same exposure shows far fewer hot pixels on a frosty night than a hot one. The trade-offs are shorter battery life and dew on the lens, so carry spare batteries and keep the lens warm.

Can I skip dark frames and just fix hot pixels in editing?

For a few isolated dots, yes. A spot healing tool or the raw editor’s automatic hot pixel handling is quick. Once there are hundreds of dots, or a glow along an edge, a matched dark frame does the job better and faster.

Seeing the same bright dot in every photo, even short ones?

Planning a star trail sequence and wondering how long each frame should be?

Want to shoot a night sky timelapse without gaps between frames?

Still seeing grain after the hot pixels are gone?

Ready to try an exposure of several minutes from start to finish?