Skip to content
,

ComfyUI KSampler Advanced: Every Setting Explained (2026)

6–10 minutes
Woman in a server room holding a tablet with a KSAMPLER ADV card, hook two-stage sampling

The normal KSampler has a denoise slider. KSampler (Advanced) replaces it with four settings: add_noise, start_at_step, end_at_step and return_with_leftover_noise. They look confusing, but they unlock some of ComfyUI’s most useful tricks.

With them you can hand an image from one model to another halfway through sampling. That’s how the SDXL refiner works, and how Wan 2.2’s high-noise and low-noise models share one video. You can also switch prompts mid-generation, or keep two samplers from fighting each other.

This guide explains every KSampler (Advanced) setting from ComfyUI’s source code. It covers the exact settings for two-stage sampling, an SDXL base plus refiner example, a Wan 2.2 split, the A1111-style img2img trick, and the mistakes that give noisy or washed-out results.

TL;DR

  • start_at_step / end_at_step: run only part of the step schedule. Defaults are 0 and 10000 (that is, all steps).
  • add_noise: enable adds fresh noise at the start. Use disable when the latent already carries noise from a previous sampler.
  • return_with_leftover_noise: enable hands on a half-finished, still-noisy latent. disable fully denoises it at the end.
  • Two-stage recipe: sampler 1 = add_noise enable, steps 25, 0 to 20, leftover enable. Sampler 2 = add_noise disable, steps 25, 20 to 10000, leftover disable.
  • Same total steps and the same scheduler in both samplers, or the handoff won’t line up.

New to ComfyUI? Start with my ComfyUI guide, which covers install, nodes and workflows in one place.

KSampler vs KSampler (Advanced)

Both nodes call the same sampling function in ComfyUI. The advanced one just exposes the parts that the basic one hides.

KSampler KSampler (Advanced)
Seed widget seed noise_seed
Partial sampling denoise (0 to 1) start_at_step and end_at_step
Fresh noise Always added add_noise enable/disable
Output Always fully denoised Can return a noisy, unfinished latent
Best for Normal txt2img and img2img Model handoffs, prompt switching, step-exact img2img

The other inputs are the same: model, positive, negative, latent_image, steps (default 20), cfg (default 8.0), sampler_name and scheduler. If you’re not sure what the samplers and schedulers do, read samplers and schedulers explained first.

Every Setting Explained

steps

The total length of the noise schedule, not the number of steps this node runs. With steps 30 and start 0, end 15, the node runs 15 steps, but it builds a 30-step schedule and stops halfway down it.

start_at_step

The schedule step to begin at. Default 0, meaning from pure noise. Setting 10 skips the first 10 steps of a schedule, which is where the layout is decided.

end_at_step

The step to stop at. Default 10000, which simply means “to the end”, since no schedule is that long. Set it lower to stop early and pass the latent on.

add_noise

  • enable (default): adds new noise from noise_seed at the start, scaled to the start step.
  • disable: adds nothing. Use it when the incoming latent already contains the right amount of leftover noise from an earlier sampler.

return_with_leftover_noise

  • disable (default): the last step cleans up fully, so you get a finished latent you can decode.
  • enable: stops with the noise still in the latent, ready for a second sampler to continue. Decoding this directly gives a grainy, unfinished image.

In ComfyUI’s code, return_with_leftover_noise enable simply turns off “force full denoise”, and add_noise disable turns on “disable noise”. Everything else goes to the same function the basic KSampler uses.

Two-Stage Sampling: The Core Recipe

Every handoff workflow follows the same pattern. Here it is with 25 total steps, switching at step 20.

Setting Sampler 1 (first part) Sampler 2 (second part)
add_noise enable disable
noise_seed Your seed Any (no noise is added)
steps 25 25 (same total)
start_at_step 0 20
end_at_step 20 10000
return_with_leftover_noise enable disable
sampler / scheduler e.g. euler / normal Same scheduler; sampler can match

Wire it like this:

Empty Latent Image → KSampler (Advanced) #1 → KSampler (Advanced) #2 → VAE Decode → Save Image

The rule that makes it work: sampler 1’s end_at_step must equal sampler 2’s start_at_step, and both must use the same total steps and scheduler. Then sampler 2 picks up at exactly the noise level where sampler 1 stopped.

Each sampler can use a different model, a different prompt, a different LoRA or a different CFG. That flexibility is the whole point.

Example: SDXL Base + Refiner

SDXL shipped with a separate refiner model meant to finish the last steps of the base model’s work. ComfyUI’s official SDXL example page includes a base-plus-refiner workflow built with two KSampler (Advanced) nodes.

  1. Load the base checkpoint and the refiner checkpoint with two Load Checkpoint nodes.
  2. Make positive and negative prompts for each. The refiner has its own CLIP, so it needs its own text encodes.
  3. Sampler 1 uses the base MODEL: add_noise enable, steps 25, start 0, end 20, leftover enable.
  4. Sampler 2 uses the refiner MODEL: add_noise disable, steps 25, start 20, end 10000, leftover disable.
  5. Decode with the refiner’s VAE or the base VAE (they share the SDXL latent format).

Giving the refiner the last 15-25% of steps is a common split. Many modern SDXL fine-tunes (Pony, Illustrious and others) don’t need the refiner at all, so test without it first. My ComfyUI SDXL guide covers resolutions and settings.

Example: Wan 2.2 High-Noise and Low-Noise

Wan 2.2 14B ships as two models: a high-noise expert for the early, layout-heavy steps and a low-noise expert for the detail steps. ComfyUI’s Wan 2.2 14B templates use two KSampler (Advanced) nodes in exactly the pattern above.

Setting High-noise sampler Low-noise sampler
model wan2.2 … high_noise wan2.2 … low_noise
add_noise enable disable
steps 20 20
start / end 0 / 10 10 / 10000
return_with_leftover_noise enable disable

With a speed LoRA such as Lightning or lightx2v, the same idea applies with far fewer steps (for example 4 total, split 2 and 2). Always start from the template’s values, because they change between releases. My ComfyUI image to video guide has complete Wan workflows.

Example: Switch Prompts Mid-Generation

The early steps decide composition. The late steps decide detail. So you can use one prompt for the layout and another for the finish.

  • Sampler 1, steps 30, 0 to 12: “a castle on a cliff, wide shot, dramatic composition”.
  • Sampler 2, steps 30, 12 to 10000: the same scene plus “intricate stone texture, moss, sharp detail”.

Use the same model for both, with add_noise disable and leftover noise off on sampler 2 as usual. This is ComfyUI’s answer to A1111’s [cat:dog:0.4] prompt editing. ConditioningSetTimestepRange can do something similar inside one sampler. My prompt weighting guide compares the two.

A1111-Style img2img Steps

With the basic KSampler, 20 steps at denoise 0.5 runs 20 steps over the last half of the schedule. Automatic1111 runs about 10 steps instead (steps x denoise). KSampler (Advanced) gives you the A1111 behaviour:

  1. Encode your image with VAE Encode.
  2. Set steps to 20 and start_at_step to 10, which is like denoise 0.5.
  3. Keep add_noise enable, because the encoded image has no noise in it yet.
  4. Leave end_at_step at 10000 and leftover noise disabled.

Higher start = closer to the original image. Lower start = more change. My ComfyUI img2img guide explains denoise in more depth, and the hires fix guide uses the same idea for upscaling.

Troubleshooting

The final image is grainy or full of noise

The last sampler has return_with_leftover_noise set to enable, or its end_at_step is lower than steps. The last sampler in the chain must end at the end of the schedule with leftover noise disabled.

The result is washed out, smeared or “double exposed”

Sampler 2 has add_noise enable, so it added a second dose of noise on top of the leftover noise. Set it to disable.

The second model barely changes anything, or ruins the image

The step numbers don’t line up. Check sampler 1’s end equals sampler 2’s start, and that both use the same total steps and scheduler.

Sampler 2 seems to do nothing

Its start_at_step is equal to or higher than steps, so there are no steps left to run. Lower the start or raise the steps.

Different results every time with a fixed seed

Only sampler 1’s noise_seed matters when sampler 2 has add_noise disabled. Make sure sampler 1’s seed is set to fixed. My batch size vs batch count guide covers how seeds behave in batches.

FAQ

What does end_at_step 10000 mean?

It means “run to the end”. 10000 is just a number bigger than any real step count.

Should both samplers use the same seed?

It doesn’t matter for sampler 2 when add_noise is disabled, because it adds no noise. Only the first sampler’s seed affects the result.

Can I use different samplers in each stage?

Yes. Many people use a fast sampler for stage 1 and a detail-friendly one for stage 2. Keep the scheduler and total steps the same so the noise levels line up.

Is KSampler (Advanced) slower than KSampler?

No. It runs the same code. Two samplers together take as long as their combined steps.

How do I get denoise 0.6 with KSampler (Advanced)?

Set start_at_step to 40% of steps. For 25 steps, start at 10.

Do I need the SDXL refiner?

Usually not with modern SDXL fine-tunes. It was designed for the original SDXL base model.

Can I chain more than two samplers?

Yes. Every middle sampler uses add_noise disable and leftover enable, and only the last one disables leftover noise.

Sources

Free weekly email

Get new AI guides every week

One short weekly email with our newest local AI, ComfyUI and AI tool guides. No spam, no pop-ups, just the good stuff.

Free. Unsubscribe anytime in one click. We only use your email to send this newsletter. See our privacy policy.

Woman in a server room holding a tablet with a KSAMPLER ADV card, hook two-stage sampling