Skip to main content
ComfyUI on an RTX 3060 12GB: A 2026 Local Stable Diffusion Setup Guide

ComfyUI on an RTX 3060 12GB: A 2026 Local Stable Diffusion Setup Guide

Generation times, VRAM ceilings and workflow picks for Stable Diffusion 1.5, SDXL, SD 3.5 and Flux on 12GB.

ComfyUI on an RTX 3060 12GB handles SD 1.5 and SDXL comfortably and runs Flux dev with low-VRAM flags. Setup, model tables, sampler picks and pitfalls.

To run ComfyUI on an RTX 3060 12GB as of 2026, install the current NVIDIA Studio driver, download the portable ComfyUI build from the official ComfyUI GitHub repository, drop SD 1.5 or SDXL checkpoints into models/checkpoints/, launch run_nvidia_gpu.bat, and load a default text-to-image workflow. The 12GB framebuffer handles SDXL with refiner at 1024px when you enable --lowvram and tiled VAE decoding.

ComfyUI has settled in as the default node-based interface for local image generation, and the ZOTAC GeForce RTX 3060 12GB remains the canonical budget GPU for the workflow because of one stubborn number: 12 GB of GDDR6. That is more VRAM than the RTX 3070, RTX 4060 (8 GB), RTX 4060 Ti 8 GB, or any RTX 50-series card under $400 as of 2026. For diffusion models, VRAM beats raw shader throughput every time. A faster card that runs out of memory cannot render an image; a slower card with headroom finishes the job, even if it takes 14 seconds instead of 6.

The shift to node graphs matters here. Automatic1111 and Forge remain popular, but ComfyUI's graph model exposes every stage of the pipeline, including the VAE decode that quietly eats VRAM at the end of an SDXL run. Per the ComfyUI GitHub repository, the project ships first-class support for tiled VAE, sequential CPU offload, and fp8 weights, all of which were retrofitted into other UIs after ComfyUI proved them out. Community measurements indicate the same SDXL workflow can use 40 to 60 percent less peak VRAM in ComfyUI than in a naive Automatic1111 setup at identical settings.

Why the RTX 3060 12GB instead of newer hardware? Per the TechPowerUp RTX 3060 spec page, the card pairs 3,584 CUDA cores with a 192-bit bus and 360 GB/s of bandwidth, drawing roughly 170 W. The street price as of 2026 sits between $230 and $290 new, with strong used-market supply under $200. No other consumer GPU at that price gives you a 12 GB framebuffer with full CUDA support, and CUDA is still where the diffusion ecosystem lives. Public benchmarks show the card holds its own against the RTX 4060 8 GB and beats it outright on any workflow that spills the 8 GB card into system RAM, which on diffusion is most of them.

Key takeaways

  • VRAM beats clock speed for diffusion. The RTX 3060 12GB runs SDXL at 1024px without offload; an 8 GB RTX 4060 cannot, even though it is faster on paper.
  • SD 1.5 is effectively instant. Public benchmarks show 3 to 6 seconds per 512px image at 20 steps on the 3060 as of 2026.
  • SDXL is workable. Expect 14 to 22 seconds per 1024px image with the base model, 22 to 35 seconds with a refiner pass.
  • Flux fits, with caveats. Flux.1-dev at fp8 fits in 12 GB; bf16 does not. Expect 40 to 90 seconds per image.
  • Disk space is the silent killer. A working SD 1.5 + SDXL + Flux library plus a dozen LoRAs and a handful of VAEs runs 150 to 300 GB. A dedicated Crucial BX500 1TB SSD is the cheapest sanity-saving upgrade.
  • CPU and RAM matter less than expected. A Ryzen 5 5600 or Ryzen 7 5800X with 32 GB system RAM is enough to feed the GPU at full tilt.

What is ComfyUI and what does the RTX 3060 12GB realistically handle?

ComfyUI is a node-graph front end for diffusion models. Instead of the single-form UX of Automatic1111, you wire up "load checkpoint", "CLIP encode prompt", "KSampler", "VAE decode", and "save image" nodes by hand. The result is verbose but transparent: every tensor, every offload, every sampler choice is explicit. That transparency is why power users prefer it, and why the ComfyUI GitHub repository is the upstream that other UIs (SwarmUI, ComfyBox, Krita AI) embed under the hood.

On a 12 GB RTX 3060, the realistic envelope as of 2026 looks like this:

  • SD 1.5 (1.7 GB checkpoint): any resolution up to 768×768 native, 1024×1024 with hires-fix, batches of 4 to 8.
  • SDXL base + refiner (6.9 GB each): 1024×1024 native single-image, 1152×896 portrait/landscape, batch of 1 to 2, hires-fix to 1536px with tiled VAE.
  • SD 3.5 Medium (4.5 GB): 1024×1024 native, fp16, single image. SD 3.5 Large in fp8 fits but slowly.
  • Flux.1-dev (11.9 GB bf16, 5.9 GB fp8): fp8 only on the 3060; bf16 OOMs. 1024×1024 single image.
  • Video models (SVD, AnimateDiff, Mochi-1, Wan2.1): short clips at low resolution; long generations need offload.
  • LoRA training (kohya_ss): SD 1.5 LoRAs comfortably; SDXL LoRAs at rank 8 to 16 with gradient checkpointing on.

What it cannot do: full SDXL fine-tunes, Flux training, 4K native upscales without tiling, or any of the 13B+ video models without aggressive sequential offload.

What you'll need: drivers, runtime, model files, and disk space checklist

The pre-flight list is short but unforgiving. Skip a step and you spend an hour debugging a CUDA error.

  • NVIDIA driver: 552.xx or newer (Studio or Game Ready). Per the ComfyUI GitHub repository, older drivers miss the cuDNN updates that newer PyTorch wheels expect.
  • CUDA toolkit: not required for the portable Windows build; bundled with the embedded Python. Required for kohya_ss training and some custom nodes.
  • Python runtime: 3.10 or 3.11 if you do a manual install; the portable build ships its own.
  • PyTorch: 2.4+ with CUDA 12.1 or 12.4 wheels. pip install torch torchvision --index-url https://download.pytorch.org/whl/cu124.
  • Storage: a SATA SSD like the Crucial BX500 1TB is the floor. Checkpoint loads are I/O-bound; HDDs add 20 to 60 seconds per cold load. NVMe is faster but for ComfyUI's load-once-per-session pattern the gain is modest.
  • System RAM: 32 GB is the comfortable target. 16 GB works but constrains CPU offload modes that spill weights to system memory.
  • Disk budget: plan for 150 GB minimum. SD 1.5 base is 4 GB, SDXL base + refiner is 14 GB, Flux is 24 GB, plus VAEs, ControlNets, IP-Adapters, LoRAs.

A typical first-week directory looks like this: 4 GB SD 1.5, 14 GB SDXL, 24 GB Flux fp8, 8 GB ControlNets, 12 GB assorted LoRAs, 4 GB upscalers, 6 GB VAEs. That is 72 GB before you save a single output. Outputs at 1024px PNG average 1.5 to 2.5 MB each; a productive afternoon can land 200 to 500 files.

Spec + VRAM table: SD 1.5, SDXL, SD 3, and Flux workflows

The numbers below reflect peak VRAM consumption during the sampling and VAE decode stages, measured under default ComfyUI settings without --lowvram flags. Sources: ComfyUI GitHub repository issue threads and community measurements aggregated through 2026.

ModelPrecisionCheckpoint sizePeak VRAM (1024px)Peak VRAM (768px)Fits on 12GB?
SD 1.5fp161.7 GB3.8 GB2.9 GBYes, easily
SD 1.5fp80.9 GB2.4 GB2.0 GBYes
SDXL basefp166.9 GB9.6 GB7.8 GBYes
SDXL base + refinerfp1613.8 GB11.4 GB9.2 GBYes, tight
SDXLfp83.5 GB6.1 GB5.0 GBYes
SD 3.5 Mediumfp164.5 GB7.2 GB5.8 GBYes
SD 3.5 Largefp1616.5 GBOOM13.1 GBNo (fp16)
SD 3.5 Largefp88.3 GB10.4 GB8.6 GBYes
Flux.1-devbf1623.8 GBOOMOOMNo
Flux.1-devfp811.9 GB11.6 GB9.4 GBYes, very tight
Flux.1-devq4_K_S (GGUF)6.8 GB7.8 GB6.4 GBYes
Flux.1-schnellfp811.9 GB11.5 GB9.3 GBYes

The "tight" rows are where --lowvram and tiled VAE earn their keep. SDXL base + refiner at fp16 fits, but any additional ControlNet or IP-Adapter on top will tip over. Flux.1-dev fp8 leaves about 400 MB of headroom on a clean run; close your browser, kill OBS, and don't try to play a game on a second monitor while generating.

How fast does the RTX 3060 generate? (benchmark table)

Generation time depends on model, resolution, sampler, scheduler, and step count. The numbers below assume Euler ancestral or DPM++ 2M Karras at the listed step count, fp16 weights unless noted, and a clean ComfyUI session. Public benchmarks and community measurements through 2026 cluster within roughly plus or minus 15 percent of these values.

WorkflowResolutionStepsBatchSeconds/imageSeconds/batch
SD 1.5512×5122013.43.4
SD 1.5512×5122043.012.0
SD 1.5768×7682016.86.8
SD 1.5 hires-fix512→102420+10111.511.5
SDXL base1024×102425116.216.2
SDXL base1024×102425215.430.8
SDXL base + refiner1024×102425+5122.822.8
SDXL Turbo512×512411.91.9
SDXL Lightning1024×1024414.64.6
SD 3.5 Medium1024×102428119.419.4
SD 3.5 Large fp81024×102428134.634.6
Flux.1-dev fp81024×102420158.458.4
Flux.1-dev q41024×102420147.247.2
Flux.1-schnell fp81024×10244114.814.8

A few practical reads of that table. SDXL Lightning at 4 steps is the sweet spot for iteration on the 3060 — under five seconds gets you a 1024px draft to evaluate composition before committing 25 steps to a final. Flux.1-schnell is the only Flux variant that feels interactive on this card; the dev model is for one-shot quality runs, not iteration. SDXL Turbo and Lightning halve the effective generation budget compared to the standard SDXL base, which is the reason most production workflows on a 3060 lean on them for first passes.

Which low-VRAM flags and offload settings keep you inside 12GB?

The portable ComfyUI build accepts a handful of flags that change how aggressively it offloads weights to system RAM and disk. The defaults are tuned for high-VRAM cards; on a 12 GB 3060 you want most of these on.

  • --lowvram — keeps the UNet on GPU but offloads text encoders and VAE to CPU between stages. Costs about 1 to 2 seconds per generation, buys roughly 2.5 GB of headroom.
  • --novram — sequential CPU offload of every weight tensor. Last-resort mode; cuts memory by half but adds 30 to 70 percent to generation time.
  • --use-pytorch-cross-attention — modern attention implementation; faster and lower-memory than the older xformers path for most workloads.
  • --fp8_e4m3fn-unet — runs the UNet at fp8. Halves weight memory; tiny quality drop on SDXL, more visible on SD 1.5.
  • --cache-classic versus --cache-lru — controls how aggressively ComfyUI caches intermediate tensors between runs. LRU is the better default on 12 GB cards.

Tiled VAE is the other indispensable trick. The VAE decode stage at 1024px on SDXL can spike to 3 GB on its own; switching the workflow's VAE decode node to "VAE Decode (Tiled)" caps that spike at the cost of about 0.5 seconds. For high-resolution outputs (1536px and up), tiled VAE is non-optional.

A worked example: an SDXL base + refiner workflow at 1024×1024 with one ControlNet (Canny) and one LoRA. With default settings, peak VRAM hits 12.8 GB and OOMs. Enable --lowvram, switch the VAE decode node to tiled mode, and the same workflow tops out at 10.9 GB and completes in 24 seconds — about 1.5 seconds slower than the unflagged version that crashes.

Common pitfalls and how to dodge them

A short field guide to the errors that eat the first weekend.

  • CUDA out of memory partway through a batch. Drop batch size to 1. Batching is rarely worth it on 12 GB; the throughput gain is small and the OOM risk is large.
  • "Allocator cannot allocate" on VAE decode. Switch to tiled VAE. This is the single most common late-stage OOM and the fix is a node swap.
  • Sampler choice tanks quality. Euler ancestral is fast but noisy at low step counts; DPM++ 2M Karras is the better default for SDXL. For Flux, use Euler with the standard scheduler — DPM variants do not play well with Flux's flow matching.
  • Refiner gives worse output than base alone. The refiner expects high-noise latents handed off at step 80 percent. If you're passing fully denoised images, the refiner muddies them. Use a proper SDXL pipeline with add_noise=False on the refiner KSampler.
  • First-run downloads stall. ComfyUI Manager pulls custom nodes from GitHub; corporate networks and aggressive DNS filters break clones. Use the manual git clone path into custom_nodes/ if Manager fails.
  • Workflows from Reddit silently use models you don't have. ComfyUI workflows embed model filenames as references. Missing models produce red node borders and a confusing error log. Read the workflow JSON before running it.
  • fp8 weights produce muddy output. fp8 is fine for SDXL and Flux, visible on SD 1.5, and noticeable on SD 3.5 Large. Stick to fp16 for SD 1.5 unless VRAM forces the issue.

When NOT to use ComfyUI on the RTX 3060 12GB

The honest cases against this rig.

  • Production batch generation. If you need 1,000 SDXL images a day, an RTX 4090 or rented A100 finishes in a fraction of the time. Per-image cost on a cloud A100 can undercut the 3060's wall time even after electricity.
  • Flux fine-tuning. Flux training wants 24 GB minimum, ideally 48 GB. Not viable on the 3060 at all.
  • Video at length. Wan2.1, Hunyuan Video, and Mochi-1 fit on a 3060 only in their smallest variants and with heavy offload. A 5-second clip can take 20 minutes; the same on an RTX 4090 takes 90 seconds.
  • Real-time generation. SDXL Turbo and Lightning are interactive on a 4080; on a 3060 they feel quick but not real-time.
  • You already own an RTX 3070 or 4070. The 3070 and 4070 (8 GB and 12 GB respectively) are faster on raw throughput but the 8 GB versions choke on Flux and SDXL with extras. The 12 GB 4070 is a sidegrade on memory and a clear upgrade on speed; if you have one, use it.

When does the 3060 hit a wall, and what's the next upgrade?

The walls are predictable. The first is Flux at bf16: it simply does not fit. The second is SDXL fine-tuning at full precision. The third is video models above the entry tier. The fourth, for some users, is iteration speed — when an artist's workflow involves dozens of variations per concept, the 16-to-22-second SDXL generation time becomes the bottleneck.

The upgrade ladder as of 2026:

  • RTX 4060 Ti 16GB ($430-500): same memory ceiling-ish, ~30 percent faster, better power efficiency. Modest upgrade.
  • RTX 4070 Super 12GB ($550-650): roughly 70 percent faster than the 3060, same VRAM. The "I want SDXL to feel snappy" pick.
  • RTX 4070 Ti Super 16GB ($750-850): 16 GB unlocks Flux bf16 and SDXL training with headroom. The first real diffusion upgrade.
  • RTX 4090 24GB ($1,800-2,200): unlocks every consumer workflow. The "I do this for income" tier.
  • RTX 5070 Ti 16GB ($800-900): the 2026 successor to the 4070 Ti Super, similar VRAM, ~25 percent faster.

Skipping the 4060 Ti 16GB is the common community advice; the price-to-performance gap to the 4070 Super is too small to pay for separately. Going from a 3060 to a 4070 Super or 5070 Ti is the upgrade most users feel.

Perf-per-dollar versus cloud image-gen services

A rough back-of-envelope as of 2026. Per the TechPowerUp RTX 3060 page, the card draws around 170 W under load. At $0.13/kWh average US electricity, an hour of full-tilt generation costs roughly $0.022. The card amortized over 3 years at $260 purchase price adds about $0.10 per hour of use (assuming 8 hours/week, 50 weeks/year).

Cloud comparisons: Replicate's SDXL endpoint runs ~$0.0023 per image, RunPod A100 spot at ~$1.20/hr generates SDXL images in 3-4 seconds (~$0.0013 per image), and Stability AI API endpoints run from $0.002 to $0.04 per image depending on model.

The break-even for a $260 RTX 3060 12GB versus Replicate's per-image pricing is roughly 113,000 SDXL images. For hobbyist use (5-50 images per session, 2-5 sessions per week), the cloud route is cheaper on direct cost. The local rig wins on three dimensions cloud cannot match: zero latency on iteration, no per-image queue, and zero content restrictions. For most ComfyUI users, those are the deciding factors, not raw $/image.

Bottom line: the budget ComfyUI rig

The 2026 budget ComfyUI rig is a ZOTAC GeForce RTX 3060 12GB or MSI RTX 3060 Ventus 2X 12G for the GPU, a Ryzen 7 5800X or a Ryzen 5 5600 if budget is tighter, 32 GB of DDR4-3600, and a Crucial BX500 1TB SSD as the model drive. Total parts cost runs $700 to $900 depending on case, PSU, and motherboard choice — well under the price of a single RTX 4070 Ti Super GPU alone.

That rig will run every diffusion workflow shipped by the major upstream projects through 2026 with some compromises on Flux precision and video model length. It will not train production-scale models, batch-generate at studio throughput, or render 4K natively without tiling. For the vast majority of ComfyUI users — hobbyists, prompt engineers, concept artists, indie game devs, and the curious — it is enough card, and the headroom over 8 GB competitors is exactly the right kind of headroom.

Related guides

Citations and sources

This piece is editorial synthesis based on publicly available information. No independent first-party benchmarking is reported.

Products mentioned in this article

Tap any product for full specs, live Amazon & eBay pricing, and alternatives.

SpecPicks earns a commission on qualifying purchases through both Amazon and eBay affiliate links. Prices and stock update independently.

Watch a review

Friendly Fire: AMD Ryzen 7 5800X CPU Review & Benchmarks vs. 5600X & 5900X — Gamers Nexus on YouTube

Frequently asked questions

Is 12GB of VRAM enough for ComfyUI and SDXL?
Yes for most workflows. SDXL base plus a refiner fits within 12GB at standard resolutions when you enable the low-VRAM and tiled-VAE options ComfyUI provides. Very large batches or upscaling to high resolutions can exceed the budget, but single-image SDXL generation on an RTX 3060 is well within reach.
How long does an image take to generate on an RTX 3060?
Generation time depends on model, resolution, sampler, and step count, but the RTX 3060 produces standard SD 1.5 images in seconds and SDXL images in a longer but workable window. Lowering steps, using efficient samplers, and keeping resolution near the model's native size all shorten render times noticeably.
What do I need installed before running ComfyUI?
You need a current NVIDIA driver, a compatible Python runtime or the portable build, the ComfyUI application itself, and the model checkpoints you want to use. A fast SSD with several gigabytes free matters because checkpoints, LoRAs, and VAEs are large files that load faster from solid-state storage.
How do I avoid out-of-memory errors on 12GB?
Enable ComfyUI's low-VRAM mode, use tiled VAE decoding for high resolutions, keep batch size at one while testing, and avoid stacking multiple large models in a single workflow. Matching your checkpoint and resolution to the card's headroom prevents the runtime from spilling into slow system RAM or crashing outright.
When should I upgrade from the RTX 3060 for image generation?
Consider a larger card when you routinely batch-generate, train or fine-tune models, or work at high resolutions that the 3060 can only reach with heavy offload. For casual and hobbyist image creation, the 12GB card stays capable; the upgrade pays off mainly for throughput-heavy or training workloads.

Sources

— SpecPicks Editorial · Last verified 2026-07-06

More guides & deep dives from the SpecPicks archive

Browse all articles & guides →

More reviews from the SpecPicks archive

Browse all reviews →

More buying guides from SpecPicks

Browse all buying guides →