Skip to content
RESEARCH-BASED GUIDES. PRACTICAL EVERYDAY ADVICE.How we pick products
RTReviewstookA clearer perspective
Photography Guides

How to Use Focus Stacking for Sharp Macro Shots Front to Back

Learn focus stacking for macro photography: how to shoot a sequence at shifting focus points and merge it for sharpness from front to back.

We may earn a commission from qualifying purchases. How we pick products

Where to buy

Check the latest price, availability and delivery on Amazon. Orders are placed on Amazon. We may earn a commission from qualifying purchases.

Read the full guide ↓

Focus stacking means taking several photos of a still subject, each focused at a slightly different distance, then merging them into one image that is sharp throughout. It solves the very thin depth of field that macro work produces. Once you learn the routine, it is a reliable way to get crisp insects, flowers and small objects.

Illustration of an unbranded mirrorless camera, interchangeable lenses and memory cards
AI-generated topic illustration; not a photograph of the specific products reviewed.

Why Macro Needs Stacking

At close distances, the zone of sharp focus can be only a millimeter or two deep, even at small apertures. Closing the aperture a lot adds diffraction, which softens fine detail. Stacking lets you use a moderate aperture and still record the whole subject sharply.

In this guide

What You Need

  • A sturdy tripod, or a stable surface, to keep framing identical.
  • A still subject, since movement between frames causes errors.
  • A remote release or a timer, to avoid shake.
  • Software that can merge stacks, such as common editors or dedicated stacking programs.

Step-by-Step Shooting

  1. Set up the camera on a tripod and compose the shot.
  2. Switch to manual focus and manual exposure, so brightness stays the same in every frame.
  3. Choose a mid-range aperture, often around f/5.6 to f/8, as a first guess.
  4. Focus on the nearest part of the subject and take the first frame.
  5. Move the focus a small step farther back and shoot again. Overlap each zone with the last one.
  6. Continue until the farthest part is sharp. Ten to fifty frames is common, depending on the subject.
  7. Take one extra frame beyond the end, to be safe.

Some cameras offer a built-in focus bracketing mode that does this automatically. Check your manual for details.

Merging the Frames

Load the files into your stacking software and let it align and blend them. Check the result at full size, looking for ghosting, halos around edges or soft patches. If the output has flaws, try a different blending method or retouch from the source frames.

  • Use consistent lighting, since flicker causes brightness shifts.
  • Avoid wind, which moves flowers and leaves between shots.
  • Clean the lens, because dust spots repeat in every frame.

Tips for Cleaner Stacks

Keep a steady rhythm while you shoot and avoid touching the tripod between frames. If you use a focusing rail, move it in equal small increments so the overlap stays even. Shoot in a sheltered spot, such as indoors or behind a windbreak, because even a slight breeze can ruin a long sequence. Always check the first and last frames to confirm the whole subject is covered.

Working Out How Far to Move Between Frames

The size of each focus step decides whether your stack has gaps. If the steps are too large, a band of the subject falls between two frames and appears soft in the final image. If they are too small, you shoot far more frames than needed, which wastes time, memory and processing effort. The right size depends on magnification, aperture and the lens, and no single number fits every situation.

A practical approach is to test. Mount the camera, focus on the nearest point and take a frame, then shift the focus a little and take another. Look at both at full magnification. The sharp zone of the second should overlap with the first. If there is a soft band between them, reduce the step. If the overlap is generous, you can increase it.

Wider apertures give thinner sharp zones, so they need smaller steps. Higher magnification does the same. Some cameras with focus bracketing let you set a step size from a scale, and the manual may suggest how to choose it. A focusing rail with a marked scale lets you move in repeatable increments.

  • Err toward overlap: extra frames cost little compared with a failed stack.
  • Keep the step size the same through the run, unless your software supports uneven spacing.
  • Record the settings that worked so you can reuse them for similar subjects.
  • Check the first and last frames to confirm they cover the whole depth.

Lighting for Macro Stacks

Lighting needs special attention in stacking because the sequence may take a minute or longer. Any change in brightness between frames can show up as bands or uneven patches in the merged result. Constant, controlled light helps. Indoors, use continuous lamps with stable output, and avoid sources that flicker. Check the lamp description or test a short sequence to see whether brightness varies.

Flash can work too, but the recycle time slows the sequence, and each pop must be consistent. Use a low power setting so the flash can recover quickly, and let the unit cool between runs. Always follow the maker’s guidance on use.

Think about light direction. Side light reveals texture, but it also creates shadows that can look different from frame to frame if the subject shifts slightly. Soft, diffused light reduces harsh contrast and hides small movements. A small diffuser close to the subject, made from translucent material, gives softer shadows. A reflector opposite the light brightens the dark side.

  • Block stray light from windows, which can change as clouds pass.
  • Keep reflective subjects such as dewdrops or metal under control with diffusion.
  • Use a plain, non-distracting background that stays the same throughout.
  • Switch off auto exposure and auto white balance so they stay constant.

Choosing a Blending Method in Your Software

Stacking programs offer several ways to merge frames, and the right choice depends on the subject. Many give a method that picks the sharpest areas from each frame and blends them smoothly, which works well for most solid objects. Another method builds a depth map and rebuilds the image from it, which can handle complex shapes, though it may create artifacts around edges. Which names and options appear depends on the program, so read its help pages.

Before merging, check alignment settings. Even on a tripod, the image size can change slightly as focus shifts, an effect called focus breathing. Software can correct for scale and position. Enable alignment if your files show any drift.

After the first merge, inspect the result closely. Common issues include halos around bright edges, soft areas where frames lacked overlap, and ghost patterns where something moved. If a flaw appears, try another method, or merge only part of the stack. Some programs let you retouch from individual source frames by painting in sharp areas.

  • Work from raw files converted with the same settings for every frame.
  • Keep the original frames until you are satisfied with the result.
  • Save the merged file at full quality before applying finishing edits.
  • Test more than one method on a short sample before processing a large set.

Stacking Live Subjects, Wind and Moving Parts

Stacking assumes the subject stays still, but in the field it rarely does. Flowers sway, insects crawl and water droplets shift. You can still obtain good results by adapting your approach.

For plants, shelter the subject from wind. Use a clear plastic sheet or a card to block moving air, or shoot indoors with a cut stem. Position the camera close to the ground and support the plant with a clamp or small stand. For insects, many photographers use a single frame or a short stack of a few frames on a cooperative, still subject, because a long sequence is impractical. Be considerate of living creatures, avoid harming them, and do not move or restrain them for a photograph.

When a small movement happens in the middle of a sequence, check which frames are affected. Remove them from the stack and merge the rest, or reshoot that portion. Software can sometimes compensate for small shifts, but large changes produce ghosting.

  • Shoot quickly with a burst or focus bracketing feature to reduce the time of movement.
  • Use a higher ISO or wider aperture if needed to keep the sequence short.
  • Take several complete stacks and pick the cleanest.
  • Be patient: early morning is often calmer outdoors.

Mistakes to Avoid and a Final Quality Check

Common errors can often be avoided with a little planning. Changing the aperture or exposure between frames alters brightness and depth of field, leading to uneven results. Touching the camera or tripod during the run shifts the framing. Allowing auto focus to engage between shots can move the focus point unpredictably. Leave everything on manual and make small, deliberate changes only.

Starting the stack too late or ending it too early leaves the nearest or farthest parts soft. Take a few extra frames at each end. Forgetting to clean the lens leaves repeated dust marks on every frame, which are difficult to remove from the merged image. A dirty sensor causes the same problem.

When the merge is complete, check the result in a structured way:

  • View the whole image at full size, scanning from one side to the other.
  • Look at fine edges for halos or doubled outlines.
  • Check the background for smearing or banding.
  • Compare with a single frame to confirm that detail improved.
  • Review the color and tone after merging, as blending can shift them slightly.

Keep notes of your settings and results. Over several projects, you will build a personal reference that shortens setup and improves reliability. If a subject proves too difficult, accept a single well-chosen frame, or use a smaller aperture with a compromise in detail. The aim is a convincing image, not technical perfection at any cost.

What Gear Do You Need for Focus Stacking Macro Shots?

You need a stable support, a way to shift focus in small repeatable steps and software that merges frames. Everything else is optional, and you can start with what you already own.

The support matters most. A heavy tripod with a solid head resists the tiny shifts that ruin alignment. Check that the head locks firmly, because a head that slowly sags under the weight of a camera and lens will drift during a long sequence. For tabletop work, a sturdy table and a clamp-based arm can do the job, as long as nothing wobbles when you walk past.

For moving focus, you have three common routes. The first is turning the focus ring by hand, which is cheap but hard to repeat evenly. The second is the camera’s own focus bracketing, where it takes a series of frames and shifts focus for you. The third is a focusing rail, which moves the whole camera forward in measured increments.

  • Manual focus ring: fine for loose, low-magnification work and for learning.
  • In-camera bracketing: convenient and quick, but options vary by camera, so check the manual.
  • Focusing rail: gives the most even steps at high magnification, at the cost of extra weight and setup time.

A remote release or a self-timer keeps your hands off the camera. A lens hood or a small card helps block stray light, and a blower brush keeps dust off the front element. Match the gear to the magnification you plan to use, and add pieces only when a specific problem calls for them.

Which Focus Stacking Method Should You Pick?

Pick in-camera bracketing for speed, a rail for high magnification and manual focusing for practice or simple scenes. The right choice depends on your subject and how much repeatability you need.

Use this as a rough guide, since this page names no specific products:

  • If you photograph flowers or small objects indoors and want a quick routine, a camera with focus bracketing and a steady tripod is often enough.
  • If you shoot at high magnification, where the sharp zone is very thin, a focusing rail gives even steps that are hard to match by hand.
  • If you are learning and own no extra gear, turn the focus ring a tiny amount between frames and take plenty of overlapping shots.
  • If you shoot outdoors, favor the fastest method your gear offers, because wind and light changes punish long sequences.
  • If you use a phone, check whether the camera app or a separate app offers a stacking or manual focus mode.

It also helps to consider your patience. A rail workflow can take careful setup for every subject. Bracketing is faster but can limit the number of frames or the step size. Neither is wrong; they suit different habits. Start with the simplest method that produces sharp results, and move up only if you keep hitting the same limit.

What Should You Check Before Buying Focus Stacking Equipment?

Check compatibility, build quality, the step control you will get and the return terms on the listing before you buy anything. Stacking gear is only useful if it fits your camera and lens.

Many stacking problems come from mismatched parts. A rail that carries a small camera may struggle with a heavy body and long lens. A bracketing feature may not work with every lens, especially older manual ones. Read the listing and the camera manual to confirm.

  • Camera support: does your model offer focus bracketing, and with which lenses?
  • Load rating: does the rail or tripod head state it can carry your camera and lens together?
  • Mounting: check the screw size and plate type, and whether adapters are included.
  • Step control: look for a marked scale or knob that lets you repeat the same movement.
  • Software: confirm that it reads your raw files, and check what trial or support terms apply.
  • Stability: look for locks that hold without creep.
  • Returns and warranty: read the terms so you can swap a part that does not fit.

Test any new gear with a simple subject before an important shoot. A coin or a small shell on a table shows quickly whether your steps overlap and whether the camera moves between frames.

How Do You Set Up a First Focus Stack to Practice On?

Practice on a small, still, textured object indoors, such as a shell, a coin or a flower stem in a jar. A simple first subject lets you learn the routine without fighting wind or movement.

Place the object on a plain surface and light it softly from one side with a steady lamp. Mount the camera on the tripod, frame the subject and lock every setting to manual, including focus, exposure and white balance. Take a test frame and check the brightness before you start the run.

Now shoot from the nearest edge to the farthest edge, moving focus a small step each time. After the run, look through the frames in order. The sharp area should slide smoothly from front to back with no jumps. If you see gaps, repeat the run with smaller steps.

  • Use a short delay or remote release so vibration settles before each frame.
  • Keep the room still: no walking, no fans, no passing vehicles close to the table.
  • Merge the frames, then compare the result with your single best frame.
  • Write down aperture, step size and frame count for the next attempt.

Your first result will probably show a few flaws, and that is normal. Each run teaches you something about step size, lighting or alignment, and the second attempt is almost always cleaner than the first.

Is Focus Stacking Worth the Effort, and Who Should Skip It?

Focus stacking is worth the effort when a single frame cannot hold the whole subject sharp, and it is not needed when a single frame already tells the story. Be honest about which case you face.

The benefits are clear. You can keep a moderate aperture, avoid the softness that very small apertures cause and reveal fine detail from front to back. For product shots, jewelry, flowers and specimens, that detail is often the point of the picture.

The costs are also real. Each image takes longer to shoot and process, and files pile up. Subjects must stay still, so living creatures and breezy outdoor scenes are difficult. Merges can produce halos and soft patches that need retouching, and the final file may look slightly artificial if the depth is flattened too much.

  • Skip stacking if a soft background is part of the look, as in many portraits and creative close-ups.
  • Skip stacking if the subject moves constantly and you cannot control it.
  • Try stacking if you shoot still subjects and want maximum detail for print or product use.

Deliberately leaving part of a macro image soft is a valid choice, and a single sharp frame can be more pleasing than a long stack. If you want to try it, set up a still subject, shoot a test sequence with overlapping steps, merge it and compare the result with a single frame, then decide whether the extra work earns its place in your routine.


Ready to Buy? Start Here — how to use focus stacking for sharp macro shots front to back

Ready to Buy? Start Here

If this guide helped you decide what to look for, these products are a place to start.

Sony FE 90mm F2.8 Macro G OSS Full-Frame Lens
Sony FE 90mm F2.8 Macro G OSS Full-Frame Lens

View Sony FE 90mm F2.8 Macro G OSS on Amazon

As an Amazon Associate we earn from qualifying purchases. Prices and availability are shown on Amazon.

Planning the Stack Before You Touch the Camera

Successful stacks are decided in the planning minute, not in the software. Begin by identifying the nearest and farthest points that must be sharp — the front leg of an insect and the far edge of its wing, the stamens at the front of a flower and the petals behind — and let that span, not habit, dictate the size of the job. A shallow subject at moderate magnification might need a handful of frames; a deep subject at high magnification can need scores. Knowing the count in advance tells you whether the light will hold, whether a live subject will cooperate, and whether your battery and card are ready. Photographers who skip this estimate discover the stack’s true length halfway through it, which is the worst moment to learn anything.

Next, choose the direction of travel. Focusing from near to far or far to near both work, but consistency matters because software and your own troubleshooting habits assume a direction. Many field photographers focus from the front of the subject backward, since the first frames establish the composition’s anchor and any subject movement later in the sequence ruins the least important frames rather than the most important ones. In the studio the logic reverses for some subjects: start at the back, and the reveal of the subject as focus advances lets you spot alignment problems early. Either way, write your direction into your routine and keep it, because a stack shot in mixed order is a small misery to sort later.

Finally, plan the frame’s edges. Focus stacking effectively crops the image slightly as magnification shifts between frames, so compose with a margin around the subject — a little more space than the final picture needs on every side. Beginners compose tightly in camera and then watch the merged result amputate an antenna or a petal edge. The margin feels wasteful at capture and priceless at the merge.

Depth of Field Arithmetic Without the Headache

The mathematics of stacking reduces to one friendly idea: each frame must overlap the sharp zone of the frame before it. If your aperture and magnification give you a thin slice of sharpness, your focus steps must be thinner still — overlap of roughly a third to a half between successive slices is the working rule that keeps transitions invisible. Too little overlap leaves soft bands running through the merged image like contour lines; too much overlap wastes frames, time and subject patience, and multiplies the chances of movement between frames.

You can calibrate this for your own setup without any formulas. Photograph a ruler or a textured object set at an angle, at your chosen aperture and magnification, and find the span that one frame renders acceptably sharp. That span, measured against your focus rail’s scale or your lens’s focus ring rotation, is your maximum step; use two-thirds of it as your working step and your stacks will overlap safely. Repeat the calibration when you change magnification significantly, because depth of field shrinks rapidly as magnification rises — a step that was generous at life size can be hopelessly coarse at twice life size.

Diffraction sets the other boundary. Stopping down increases each frame’s depth but softens every frame overall, so beyond a point you are trading the very sharpness the stack exists to create. Most macro stacks are therefore shot near the lens’s sweet apertures and rely on frame count, not small apertures, to build depth. If your merged results look uniformly soft rather than banded, suspect diffraction or missed focus steps; if they look sharp in stripes, suspect insufficient overlap.

Field Protocol for Insects and Other Living Subjects

Living subjects rewrite the rules. The studio stack assumes a patient world; the field offers early mornings, cold insects and luck. Shoot when the subject is naturally still — dawn, cool weather, the pause after feeding — and approach in a way that does not change its behavior: an insect that has decided to flee will move mid-stack no matter how quiet your shutter is. Work in short, complete sub-stacks where possible, covering the essential depth in the first sequence and adding refinement frames only if the subject stays. A complete shallow stack beats an abandoned deep one every time.

Ethical field practice matters here. Never chill, glue or otherwise manipulate a living creature into stillness for a photograph; the images carry the method in them, and the community rightly rejects them. Work with the behavior the animal offers, accept the stacks it permits, and let some subjects go. Interestingly, the constraint improves the photography: stacks made in genuine natural stillness have an authenticity of pose and setting that staged work rarely matches.

Wind is the field stacker’s constant opponent, and the countermeasures are humble: shield the subject with your body or a diffuser held to the windward side, brace the plant stem gently with a support that does not touch the subject, and shoot in the lulls with the camera already framed and focused at the starting plane. Burst discipline helps — short waits, decisive sequences. Review the first merged result’s problem areas mentally while still on site, because the field is the only place a failed stack can be reshot.

Retouching the Merge: The Last Ten Percent

Dedicated stacking software does the heavy lifting, but its first output is a draft, not a finish. The retouching stage — where the software lets you paint detail back from individual source frames — is where halos get cleaned, transparent edges get resolved, and the places where two depth zones overlap get their correct texture restored. Budget time for it in proportion to the subject’s complexity: a smooth beetle may need almost none, while a hairy bee against its own out-of-focus legs will need careful work along every boundary where hairs cross depth planes.

Work through the merge systematically rather than chasing the first flaw you see. Divide the frame into a grid mentally and inspect each cell at full magnification, asking one question: does this region show the texture of the correct depth? Soft ghosts, doubled edges and smeared detail each point to the source frame that actually holds that region sharply, and painting from it is usually a minute’s work per flaw. Save the fully retouched version alongside the untouched merge; if a competition, a client or your own future standards question the image, the untouched version documents exactly what the software did before your hand entered.

Finish with global restraint. Stacks tempt their makers into aggressive sharpening and clarity because the detail is so seductive, but the merged file is already the sharpest thing in your archive; heavy finishing makes it brittle and artificial. Judge the final image at the size it will be seen, and let some of the macro world’s natural softness survive at the edges of the frame, where it belongs.

Archiving Stacks So They Stay Usable

A stack is not one photograph but a small project, and it should be filed like one. Keep the source frames, the merged output and the retouched final together in a named folder or collection, because any of the three may be needed again: software improves, and re-merging an old stack with a newer algorithm can visibly improve it; a flaw noticed months later can only be fixed from the sources. Note the capture facts that the files do not record — magnification if it was set by extension or a reversed lens, the focus step used, the lighting arrangement — in the image’s metadata or a simple text note in the folder. Future you is a stranger; leave them the manual.

Storage discipline matters because stacks are heavy. A single deep stack can consume more card and disk space than an entire ordinary shoot. Cull ruthlessly at the frame level only after the merge is confirmed good — individual frames of a failed merge are worthless, but frames of a good merge are the project’s negatives. Many photographers keep sources for their best stacks permanently and delete sources for routine ones once the final is safely backed up, a compromise that keeps archives honest without letting them grow without limit.

Stacking Beyond Macro: Landscapes, Products and Focus Depth Everywhere

Although this article lives in the macro world, the technique’s logic — many slices of focus, merged into one depth — applies wherever depth of field runs out, and macro photographers who internalize it find uses everywhere. Landscape photographers stack foreground-to-background sharpness across scenes where a single aperture cannot hold both the near flowers and the far ridge, using the same overlap discipline at longer focus distances. Product photographers stack as a matter of routine. Even portrait photographers occasionally stack a still life detail within a scene. The transfers are not free — each genre has its own movement problems, its own software habits, its own ethics of disclosure — but the core judgment is identical: decide what must be sharp, measure the slices honestly, overlap them generously, and merge with the patience to retouch the seams. A photographer who has stacked a beetle at three times life size finds a landscape stack almost relaxing, because the slices are few and the subjects hold still; and a landscape stacker who tries macro discovers humility at the magnification where a breath moves the subject out of its slice. The technique is one; only the scale changes, and learning it at the hardest scale, as this article has asked you to do, makes you fluent at all of them.

Documenting and Sharing Your Stacks

A finished stack deserves an audience, and presenting macro work well is a craft of its own. Share the image at a size where its depth can actually be appreciated — macro stacks shown as thumbnails waste the very quality they exist for — and consider the powerful teaching format of the detail crop: the full frame accompanied by one or two full-magnification excerpts that show viewers the world the stack resolved, the facets and hairs and pollen grains that a single frame could not hold. When you describe the work, describe it honestly and completely: the number of frames, the method, the fact of the merge. Audiences for macro photography are knowledgeable and generous, and they reward transparency with trust; the photographer who presents a stack as a single lucky frame borrows credibility they will eventually have to repay. Competitions and exhibitions each carry their own rules about stacking, and entering them is good discipline — read the rules as carefully as you read your subject, enter only where the technique is welcome, and let the work stand in the company it belongs to. Finally, print your best stacks. Macro work prints with a presence that screens flatten — the depth becomes sculptural at scale — and a printed stack on the wall is both the technique’s best advertisement and its maker’s best reminder, on ordinary days, of what patience at small scales can build.

The Patience Economy: Time, Failure and Return

End with the economics nobody lists in a gear guide: stacking trades time for depth, and the exchange rate improves with practice in a predictable curve. Your first stacks will take an hour and fail in instructive ways; your twentieth will take minutes and succeed almost boringly; somewhere between, the technique stops being a project and becomes a tool your hand reaches for when a subject’s depth demands it. The failures along the curve are not waste — each one teaches the specific judgment, about overlap or movement or light, that its failure embodied, and a photographer who keeps the failed stacks and their notes owns a personal textbook no purchase can match. Set your expectations by that curve and protect your enthusiasm accordingly: choose forgiving subjects while the exchange rate is poor, save the once-a-season subject for when your hands are ready, and remember that the insects and flowers will return next year, more patient than any photographer. The depth was always there, in every small subject, waiting. Stacking is simply how we learned to afford it.

Stacking and the Ethics of the Perfect Specimen

A closing reflection belongs in any honest account of this technique, because stacking’s power to perfect can quietly change what a photograph claims. A stacked macro presents a specimen with a completeness no single moment of looking ever offered — every plane sharp at once, in a way the eye at that magnification could never experience — and viewers deserve to know that the image is a construction of moments, however faithful. The disclosure habits this article recommends are not bureaucratic; they are how a young technique keeps its credibility while it is still earning it. There is a second, quieter ethic: the specimen itself. The pursuit of the perfect stack must never become a reason to harm, harass or exhaust the small lives it celebrates — the field protocol’s rule bears repeating at the end, because it is the technique’s foundation: work with the stillness the animal offers, take the stack it permits, and let the rest go unphotographed. A macro photographer’s archive should be a record of encounters, not extractions. Master the slices, the overlaps, the merges and the retouching, by all means — and hold them inside that ethic, so that the smallest subjects in your photographs are also, visibly, the most respected.

Subject Studies: Where Stacking Earns Its Effort

Flowers and garden subjects

Flowers are the natural first subjects of stacking, and they teach its courtesies. A flower’s depth is deceptive — a seemingly flat bloom carries its center, its petals and its stamen tips in clearly separated planes — and a stack lets all of them hold at once, producing the botanical clarity that single frames at wide apertures sacrifice. Work early, when garden air is still and the light is soft; a diffuser between the flower and a hardening sun keeps contrast inside what the stack can render gracefully. Choose blooms without damage on the planes that matter, because stacking is mercilessly honest: every nibbled petal edge and pollen spill will be rendered in full focus, and retouching a stack is slower than choosing a cleaner flower. Garden stacks also teach background discipline — the merged depth makes backgrounds busier than a blurred single frame’s, so compose for a calm backdrop before you begin, since you cannot blur your way out afterward.

Products, food and the commercial stack

Commercial photography adopted stacking early because its subjects are patient and its standard is total legibility: a watch, a tool, a plated dish rendered sharp from front to back at an aperture whose rendering the art director loves. The studio stack follows the article’s main workflow with two adaptations. First, lighting is built for the stack from the start — large, stable sources that will not shift output between frames, since brightness changes between frames confuse merging software and show as patchiness. Second, the set is art-directed at the merge, not the capture: stylists arrange for the final deep-focus image, knowing nothing will hide in blur. Food stacking is the delicate member of this family, because dishes settle, steam, wilt and glisten their way through a long sequence; commercial food stacks are therefore shot fast, with the sequence planned to the frame, and sometimes composited from fewer, deeper frames. The home cook-photographer can borrow the principle at any scale: a stacked photograph of a finished dish, sharp across its whole depth, has a cookbook authority that snapshots never achieve.

Troubleshooting the Stubborn Cases

Some stacks resist the standard fixes, and their stubbornness is diagnostic. A merge that is sharp everywhere except one band through the middle, despite generous overlap, usually hides a focus step that was not what the photographer believed — a rail that slipped, a focus ring nudged the wrong way, a camera that refocused between frames because an autofocus setting survived into a manual workflow. The cure is procedural: lock everything that can be locked, and shoot a test sequence of a ruler before the real subject whenever the setup changes. A merge with correct focus but a strange, watery distortion in one region points to subject movement too subtle to notice — a plant growing toward light during a long sequence, a thawing frost subject, the photographer’s own floor vibrating — and the cure is speed, stability, or a shorter stack. A merge that fails differently every time it is run suggests corrupted or inconsistent source files, and re-exporting the sources with identical settings, as this article’s workflow insists, usually restores order. Keep notes on each stubborn case and its cure; stacking’s failure modes repeat across subjects, and a personal troubleshooting list, built from your own stacks, will outperform any general guide — including this one — within a year of serious work.

FAQ

How many frames do I need?

It depends on magnification and aperture. Higher magnification and wider apertures need more frames. Test a short run, check the overlap and adjust.

Can I stack handheld?

Possible for loose compositions, but results are less consistent. A tripod or rail gives far better alignment.

Do I need a special lens for focus stacking?

No. Any lens that can focus manually or via bracketing can work. Macro lenses are common choices because of their close focusing, but the technique also applies to other lenses.

What is focus breathing, and does it matter?

It is a change in the apparent size of the image as focus moves. It can make frames misalign slightly. Most stacking software has an alignment function that corrects it.

Can I stack photos taken with a smartphone?

Some phones and apps offer focus stacking or manual focus control. Results depend on the app and how still the subject is. Use a support and check the app's help information.

How do I avoid dust spots in a stack?

Clean the lens and, if needed, the sensor before shooting. Dust shows on every frame, so prevention is better than retouching a merged image.

Should I stack at the sharpest aperture of my lens?

A mid-range aperture is a good starting point, as very small apertures can soften detail. Test a few settings and compare the merged result.

What if my merged image has strange patches?

Try another blending method, check for movement or brightness changes between frames, and look at the source files. Retouching from individual frames can fix small areas.

Is it acceptable to focus stack for competitions or editorial work?

Rules differ. Some contests and publications allow stacking while others restrict composite images. Read the guidelines and disclose the technique when required.

What is focus stacking in macro photography?

Focus stacking is a technique where you shoot several frames of a still subject at different focus distances and merge them into one image. The merged result is sharp over a deeper range than any single frame. It is mainly used in macro work, where the sharp zone is very thin.

Do I need a focusing rail to focus stack?

No. You can stack by turning the focus ring slightly between frames or by using a camera's focus bracketing mode. A rail makes steps more even and is most helpful at high magnification.

How do I stop my subject from moving during a stack?

Shelter it from wind, shoot indoors where you can and use a stable stand or clamp. Keep the sequence short by using a quick bracketing mode. If something moves mid-run, remove the affected frames or reshoot.

Should I use autofocus for focus stacking?

Manual focus is usually better, because autofocus can jump to a different spot between frames. Camera bracketing modes handle the focus shifts for you in a controlled way. Check your manual for how it works with your lens.

Can I focus stack with a kit lens?

Yes, as long as you can control focus and keep the camera still. A kit lens will not magnify as much as a dedicated macro lens, but stacking can still extend the sharp area on small subjects. Test a short sequence to check the results.

Why do my stacked photos have halos around edges?

Halos often come from the blending method or from frames that do not overlap enough. Try another method in your software, shoot smaller focus steps and check alignment settings. Retouching from a source frame can fix small areas.

What file format is best for focus stacking?

Raw files are usually best because they hold more tone and color information. Convert every frame with identical settings before merging. Jpeg files can work, but they leave less room for correction.

How long does a focus stack take to shoot?

It depends on the number of frames, the shutter speed and how fast your focus method works. A bracketing mode can finish a short run quickly, while a manual rail run takes longer. Plan for a calm setting either way.

The Short Version

Lock down the camera, use manual settings, shoot overlapping frames from near to far and merge them in software. Keep the subject still and the light steady. All values here are first guesses, so refine them with your own gear.