RTX 4090 vs RTX 5090 for Local LLM Inference: 24 GB vs 32 GB (2026)
The RTX 5090 decodes 40–60% faster and holds 8 GB more, but a 24 GB RTX 4090 still covers most 32B-and-under workloads.
By Mike Perry, Founder & Editor-in-Chief · Published 2026-09-24 · Updated 2026-10-01 · 15 min read
RTX 4090 vs RTX 5090 for local LLMs: 1,008 vs 1,792 GB/s bandwidth, 24 vs 32 GB VRAM, and published tok/s on Qwen3 32B. Which models fit and which card to buy.
Quick Answer
For local LLM inference the RTX 5090 wins on both speed and capacity. Its 1,792 GB/s of memory bandwidth is about 78% more than the RTX 4090's 1,008 GB/s (GeForce RTX 50 series on Wikipedia), and it carries 32 GB of VRAM against 24 GB. Hardware Corner measures Qwen3 32B at 61.4 vs 39.6 tok/s at 4K context. Buy the 4090 only if every model you run daily fits in 24 GB.
Hardware at a Glance
Median generation throughput at 7–9B models (Llama 3.1 8B, Qwen 3 8B), Q4 quantization, from community-reported runs SpecPicks tracks. Each row pools runs from different sources, runtimes and models in that class, so the rows are not a matched head-to-head; where the article compares cards on the same rig, its own figures are the like-for-like result. Street price is the second-lowest listing priced within the last 24 hours inside a sane band of MSRP, so no single listing sets it; where too few listings pass that check the row shows launch MSRP instead.
RTX 4090 carries 24 GB of VRAM. The weights column is the range of real Q4_K_M
files on Hugging Face for the models in each size class (about 0.6 GB per billion parameters),
and the runtime plus a usable context window wants about 2 GB on top; every tokens-per-second figure is a
median over community-reported Q4 runs SpecPicks tracks for this card, with the run count and
the source beside it.
Model size
Weights at Q4
Fits in 24 GB?
Measured
Left for context
Source
3B (Llama 3.2 3B, Qwen 3 4B)Runs on almost anything with a discrete GPU, and usably on modern integrated graphics.
20-27B (Gemma 3 27B, Mistral Small)A 27B Q4_K_M file (about 16.7 GB) is more than a 16 GB card holds, so 16 GB means a Q3 quant or partial CPU offload; a 24B loads with a short context. 20 GB holds the class with a usable context window, 24 GB with a long one.
Prices shown are catalog prices at the time of writing and may vary.
Why this comparison is about VRAM, not frame rates
The existing RTX 5090 vs RTX 4090 comparison on SpecPicks covers gaming. For local language models the question changes shape. Frame rates depend on shader throughput. Token generation mostly depends on how fast the card can stream model weights out of VRAM, and on whether those weights and the KV cache fit in VRAM at all.
That makes the decision mostly a question about models. With 24 GB, 8B–14B models fit with plenty of room, and 27B–32B models fit at 4-bit if you keep the context moderate. With 32 GB you can run a 32B model at 5- or 6-bit, or at 4-bit with a much longer context, before anything spills into system RAM. Neither card runs a 70B model comfortably on its own. This synthesis walks through the published measurements, the file-size math and the power budget so you can see which side of the 24 GB line your workload is on.
Key takeaways
Bandwidth: 1,792 GB/s (5090) vs 1,008 GB/s (4090), per the GeForce 40 series and 50-series spec tables. Decode speed tracks this closely.
Measured generation gap: on the llama.cpp CUDA scoreboard, Llama 2 7B Q4_0 generates at 300.40 tok/s on a 5090 vs 188.96 tok/s on a 4090 with flash attention on. That is about 59% faster.
Prompt processing is nearly a tie at short context: 14,970 vs 14,771 tok/s pp512 on the same scoreboard.
Capacity: Qwen3 32B Q8_0 is a 34.82 GB file (Qwen3-32B-GGUF). It fits neither card. Q5_K_M (23.21 GB) and Q6_K (26.88 GB) fit only the 5090 once you add any context.
Power: 575 W total graphics power and a 1,000 W recommended PSU for the 5090 (NVIDIA), vs 450 W and 850 W for the 4090 (NVIDIA).
Price: launch MSRPs were $1,999 and $1,599. As of September 2026 the 5090 sells far above MSRP, and even used 4090s trade around $2,500 (getpcparts).
Step 0 — what is the largest model you run every day?
Answer this before you compare anything else.
8B–14B models (Qwen3 8B/14B, Llama 3.1 8B, Gemma 3 12B). Both cards hold these at Q8 with long context. The 5090 is faster, but a 4090 is already well past reading speed. Hardware Corner has the 4090 at 84.4 tok/s on Qwen3 14B at 4K, so a 4090, or even a cheaper card, is enough here.
20B–32B models (gpt-oss 20B, Gemma 3 27B, Qwen3 32B). This is where the choice matters. At Q4 both cards work, but the 4090 runs out of room for long context. Hardware Corner's 4090 table has no Qwen3 32B result beyond 16K; the 5090 table goes to 32K.
If you answered 1, you're shopping in the wrong price bracket. If you answered 2, read on. If you answered 3, a single consumer card won't do it.
Spec-delta table
Spec
RTX 4090
RTX 5090
Delta
LLM impact
VRAM
24 GB GDDR6X
32 GB GDDR7
+8 GB (+33%)
Decides which quant and context fit
Memory bus
384-bit
512-bit
+33%
Part of the bandwidth gain
Memory bandwidth
1,008 GB/s
1,792 GB/s
+78%
Sets the decode (tok/s) ceiling
CUDA cores
16,384
21,760
+33%
Helps prompt processing and batching
Total graphics power
450 W
575 W
+125 W
PSU, cooling and electricity cost
Recommended system PSU
850 W
1,000 W
+150 W
May force a PSU upgrade
Launch MSRP
$1,599
$1,999
+$400
Street prices in 2026 are far higher
Sources: NVIDIA's RTX 4090 and RTX 5090 spec pages for cores, memory, power and PSU; Wikipedia's 40- and 50-series tables for bandwidth and MSRP.
The bandwidth gap is bigger than the VRAM gap. That matters because a single user's chat session is decode-bound. Each generated token needs one pass over the active weights, so tokens per second is roughly bandwidth divided by the bytes read per token. The 5090 should decode about 1.5–1.8× faster on any model that fits both cards, and the published numbers below land in that range.
Which models fit on 24 GB vs 32 GB?
File sizes below come from the Hugging Face tree API for each GGUF repo (Qwen3-32B-GGUF, Gemma 3 27B GGUF, Llama 3.3 70B GGUF, gpt-oss-20b GGUF). Fit ratings are SpecPicks arithmetic: the file plus roughly 1.5 GB of runtime buffers plus the KV cache for a 4K–8K context.
Model / quant
File size
Fits 24 GB (4090)?
Fits 32 GB (5090)?
gpt-oss 20B MXFP4
12.11 GB
Yes, long context
Yes, long context
Gemma 3 27B Q4_K_M
16.55 GB
Yes
Yes
Gemma 3 27B Q6_K
22.17 GB
Tight, short context only
Yes
Gemma 3 27B Q8_0
28.71 GB
No
Yes, short context
Qwen3 32B Q4_K_M
19.76 GB
Yes, up to ~16K
Yes, 32K+
Qwen3 32B Q5_K_M
23.21 GB
No (no room for KV)
Yes
Qwen3 32B Q6_K
26.88 GB
No
Yes, moderate context
Qwen3 32B Q8_0
34.82 GB
No
No
Llama 3.3 70B IQ2_XS
21.14 GB
Barely, heavy quality loss
Yes, heavy quality loss
Llama 3.3 70B Q2_K
26.38 GB
No
Short context only
Llama 3.3 70B Q3_K_M
34.27 GB
No
No
Llama 3.3 70B Q4_K_M
42.52 GB
No
No
The practical upshot: the 5090's extra 8 GB buys one quantization step on 27B–32B models (Q4 → Q5/Q6), or roughly double the context at Q4. It does not turn a 70B model into a comfortable single-card workload. A 2-bit 70B quant fits the 5090, but a quant that aggressive loses a lot of quality. Many users get better answers from a 32B model at Q6.
How much faster is the 5090 in tokens per second?
Two independent sources measure both cards on the same harness.
llama.cpp CUDA scoreboard (Llama 2 7B Q4_0, from discussion #15013):
The two sources agree: on a model that fits both cards, the 5090 generates about 1.4–1.6× faster, and the gap widens as the context grows. Puget Systems saw a smaller gap in its launch review. It reported the 5090 leading the 4090 by "about 29%" in llama.cpp token generation on Phi-3 Mini, and flagged a suspected early-driver issue in prompt processing (Puget Systems). That test ran in February 2025. The 2026 scoreboard numbers above reflect newer drivers and llama.cpp builds.
One caveat on crowd-sourced leaderboards: single user submissions can be misleading. LocalScore currently lists one 5090 run below two 4090 runs on Qwen2.5 14B. That result is outside every other published comparison, so this synthesis doesn't rely on it.
Prefill vs generation: why the gap isn't uniform
LLM inference has two phases, and they stress different parts of the card.
Prefill (prompt processing) runs the whole prompt through the model in large matrix multiplications. It is compute-bound. The 5090 has 33% more CUDA cores, but at short prompts both cards are so fast that the difference barely shows. On the scoreboard's pp512 test with flash attention on, they are within 2% of each other. At longer prompts the 5090 pulls ahead: Hardware Corner has Qwen3 8B prefill at 6,034 vs 3,560 tok/s at 32K.
Generation (decode) produces one token at a time and re-reads the weights every step. It is bandwidth-bound, and this is where the 78% bandwidth advantage shows up as a 40–60% speed advantage.
For chat, generation speed dominates what you feel. For RAG pipelines and coding agents that feed in 20K-token prompts, prefill speed decides how long you wait for the first token. The 5090 is better at both, but the prefill advantage only matters once your prompts are long.
Context length and the KV cache
The KV cache is the memory that holds attention state for every token in the context. It grows linearly with context length, and it's what pushes a 32B model off a 24 GB card.
For Qwen3 32B, the published config.json specifies 64 layers, 8 key-value heads and a head dimension of 128. At FP16 that works out to 2 × 64 × 8 × 128 × 2 bytes = 256 KiB per token (SpecPicks arithmetic):
Context
KV cache (FP16)
Qwen3 32B Q4_K_M total (19.76 GB + KV)
4090 (24 GB)
5090 (32 GB)
4K
~1.1 GB
~20.9 GB
Fits
Fits
16K
~4.3 GB
~24.1 GB
At the limit; needs KV quantization
Fits
32K
~8.6 GB
~28.4 GB
Does not fit
Fits
64K
~17.2 GB
~37.0 GB
No
Needs Q8 KV cache
That table explains why Hardware Corner's 4090 page stops at 16K for Qwen3 32B while the 5090 page continues to 32K. You can stretch a 4090 by quantizing the KV cache to Q8 (roughly halving it), but that is a workaround, not headroom. If your work is long-document RAG or agentic coding on a 32B model, the 5090's extra 8 GB is the deciding spec.
Is the 5090's 575 W worth it?
NVIDIA rates the RTX 5090 at 575 W total graphics power and recommends a 1,000 W system PSU. It ships with an adapter for four PCIe 8-pin cables (NVIDIA). The 4090 is rated at 450 W and 850 W (NVIDIA). Both use the 16-pin 12V-2x6 / 12VHPWR connector family, which has a documented history of melting when not fully seated (Wikipedia: 12V-2x6 power connector issue). Seat it fully and avoid tight bends near the plug.
Perf per watt (SpecPicks arithmetic, rated TGP): on the scoreboard's generation test the 5090 produces 300.40 / 575 = 0.52 tok/s per rated watt, and the 4090 produces 188.96 / 450 = 0.42. On Qwen3 32B at 4K the figures are 61.4 / 575 = 0.107 and 39.6 / 450 = 0.088. Decode rarely pulls full TGP, so real efficiency is better on both cards, but the 5090 comes out ahead per watt either way.
Perf per dollar depends on what you actually pay. At launch MSRPs, the 5090 cost 25% more for 40–60% more tokens per second, which was a clear win. In September 2026 the market is different. Used 4090s average $2,589 over 30 days on eBay sold listings, and used 5090s average $4,252 (getpcparts 4090, getpcparts 5090). At those prices the 5090 costs about 64% more for about 50% more speed, so the 4090 edges ahead on tok/s per dollar for models that fit it. The 5090 still wins on capacity, which no amount of price math fixes.
Software: Blackwell needs CUDA 12.8 or newer; that release "adds compiler support for … SM_120" (CUDA 12.8 release notes). Ollama lists the RTX 5090 under compute capability 12.0 and notes a 570+ driver requirement for some cards (Ollama GPU docs). If you move an existing inference container from a 4090 to a 5090, rebuild it against a current CUDA base image.
Which RTX 4090 and RTX 5090 cards to buy
For LLM work, board partner differences matter less than they do for gaming. Clocks barely affect bandwidth-bound decode. Choose on cooling noise, physical size and price.
ASUS TUF Gaming GeForce RTX 5090 32GB — a 3.6-slot air cooler with a vapor chamber. It is the default 5090 pick if your case fits it. Catalog price at the time of writing is well above MSRP, so check the live price.
ASUS ROG Astral GeForce RTX 5090 32GB — a 3.8-slot, four-fan flagship. It is quieter under long sustained loads, but it is bigger and costs more. Buy it only if acoustics during overnight batch jobs matter to you.
MSI GeForce RTX 4090 SUPRIM Liquid X 24G — an AIO-cooled 4090. It is a good fit for small cases and for an always-on inference box, where a blower or triple-fan air cooler would heat-soak.
New 4090 stock is thin in 2026 because production has ended, so the used market is where most buyers will find one. Inspect the 16-pin connector for discoloration and ask about the card's mining or rendering history before you pay.
Don't need either? The RTX 3060 12GB baseline
If Step 0 put you in the 8B–14B bracket, neither flagship is good value. The MSI Gaming GeForce RTX 3060 12GB runs Llama 2 7B Q4_0 at 76.92 tok/s generation on the same llama.cpp scoreboard, which is faster than anyone reads. Its 12 GB holds 8B models at Q8 and 14B models at Q4. Used 3060s averaged $293 in September 2026 on getpcparts. For the full trade-off see RTX 3060 12GB vs RTX 4090 for Local LLMs.
Common pitfalls
Buying the 5090 for 70B models. Llama 3.3 70B Q4_K_M is 42.52 GB. The 5090 only runs 70B at 2-bit or with CPU offload, and offload drops generation to single-digit tok/s.
Ignoring the KV cache. A model that loads fine can fail at 16K context. Size VRAM for the file plus the context you actually use.
Stale containers on Blackwell. Images built against CUDA 12.4 won't target SM_120. Symptoms range from load failures to silent fallback to slower kernels.
Undersized PSUs. An 850 W unit that ran a 4090 may trip on 5090 transients. NVIDIA recommends 1,000 W.
Trusting one leaderboard entry. Single crowd-sourced runs vary with drivers, power limits and background load. Compare several sources that use the same harness.
Verdict matrix
Get the RTX 5090 if…
You run 27B–32B models daily and want Q5/Q6 quality or 32K+ context.
You're building a long-context RAG or coding-agent box where prefill at 16K–32K matters.
Your PSU is already 1,000 W+ and your case fits a 3.6-slot card.
Get the RTX 4090 if…
Your largest daily model is a 32B at Q4 with ≤16K context, or anything smaller.
You can find a clean used card near $2,500 and want the better tok/s-per-dollar on models that fit.
You want to stay under an 850 W PSU.
Get an RTX 3060 12GB (or another 12–16 GB card) if…
You run 8B–14B models. A flagship gives you speed you can't read fast enough to use.
Recommended pick
For a buyer building a dedicated local-LLM machine in late 2026, the RTX 5090 is the better card. It generates 40–60% faster on every model both cards can run, per the llama.cpp scoreboard and Hardware Corner, and its 32 GB is the difference between running Qwen3 32B at a comfortable context and fighting the 24 GB wall. The counter-case is price. If a used RTX 4090 costs you roughly $1,700 less and your models fit in 24 GB with room for context, the 4090 is the rational buy. You give up speed, not capability.
Bottom line
The RTX 5090 beats the RTX 4090 for local LLMs on bandwidth (1,792 vs 1,008 GB/s), VRAM (32 vs 24 GB) and measured generation speed (about 1.5× on Qwen3 32B). The 4090 remains a strong 24 GB card for anything up to a 4-bit 32B model at moderate context. Neither is a 70B machine.
This piece is editorial synthesis based on publicly available information. No independent first-party benchmarking is reported. VRAM-fit, KV-cache and per-watt figures are SpecPicks arithmetic from the cited specifications.
🛒 Products mentioned in this article
Amazon & eBay listings, plus full specs and alternatives on each product page.
As an Amazon Associate, SpecPicks earns from qualifying purchases; we also earn on qualifying eBay purchases via the eBay Partner Network. Prices shown were last tracked at crawl time and may vary — check the listing for the current price.
📹 Watch a review
I Got the GPU Made With LITERAL GOLD — Linus Tech Tips on YouTube
Frequently asked questions
Is 24 GB of VRAM still enough for local LLMs in 2026?
For 8B-14B models and most 27B-32B models at Q4, yes. 24 GB fits the weights plus a moderate context window. It gets tight once you push 32B models to Q6/Q8 or open very long contexts, because the KV cache grows with context length. The 5090's extra 8 GB mainly buys headroom there, not the ability to run 70B models comfortably.
What power supply do I need for an RTX 5090 LLM rig?
NVIDIA rates the RTX 5090 at 575 W total graphics power and recommends a 1000 W system PSU. An ATX 3.1 unit with a native 12V-2x6 connector is the safest choice for transient spikes. Sustained inference loads draw less than peak gaming loads in many setups, but size the PSU for the worst case, not the average.
Do Ollama and llama.cpp fully support the RTX 5090?
Current releases support Blackwell once you're on a recent NVIDIA driver and a CUDA 12.8 or newer build. Older Docker images built against earlier CUDA versions may fail to load or fall back to slower paths. If you upgrade from a 4090, rebuild or re-pull your inference containers rather than assuming the old image will run at full speed.
Should I buy a used RTX 4090 instead of a new RTX 5090?
If your largest daily model fits in 24 GB, a used 4090 usually gives better performance per dollar. The 5090 makes sense when you regularly hit the 24 GB wall, run long contexts, or need higher decode speed from its larger memory bandwidth. Check used cards for 12VHPWR connector damage and a clean thermal history before buying.
Can either card run Llama 3.3 70B on its own?
Not at comfortable quality. At Q4 a 70B model's weights exceed 32 GB, and even Q3_K_M (34.27 GB) fits neither card. Dropping to 2-bit gets it on-card with heavy quality loss: Q2_K (26.38 GB) on the 5090 at short context, IQ2_XS (21.14 GB) on the 4090. Otherwise you need partial CPU offload, which slows generation considerably. For regular 70B use, dual-GPU setups or 48 GB workstation cards are the realistic route. Both single cards are best treated as 32B-class machines.