RTX 5090 vs RTX 4090 for AI: 32GB vs 24GB, Which to Buy
Want to go deeper than this article?
Free account unlocks the first chapter of all 25 courses — RAG, agents, MCP, voice AI, MLOps, real GitHub repos.
Got the hardware sorted? Now build on it. You know what to buy — the courses show you what to actually run, fine-tune, and ship on it. First chapter free, no card.
Short answer
Buy the RTX 5090 if you want a 27B–32B model resident on one card with a long context window, or the fastest single-card token rate money can buy. Buy the RTX 4090 — new or used — if you mostly run 7B–14B models. The 5090's advantage over the 4090 is exactly two things: 8GB more VRAM, and 78% more memory bandwidth (1,792 GB/s vs 1,008 GB/s, per NVIDIA's published specifications). Neither card fits a 70B model at Q4, so that is not the deciding factor people think it is.
Where do these numbers come from?
Every figure below is either a published NVIDIA specification (linked) or an arithmetic result you can reproduce from those specs using the formula shown beside it. Nothing here is a measured benchmark: we do not own either card.
That is the more useful answer anyway. Real throughput depends on your quantisation, context length, runtime version, driver and how much of the model actually lives on the GPU, so a single borrowed tokens-per-second number tells you almost nothing about your own machine. The bandwidth and VRAM arithmetic tells you the shape of the answer, and it does not go stale when llama.cpp ships a new release.
Reading articles is good. Building is better.
Free account = the first chapter of all 25 courses, with a per-chapter AI tutor. No card.
RTX 5090 vs RTX 4090: the published specifications
Source: NVIDIA's official product pages for the GeForce RTX 5090 and GeForce RTX 4090.
| Specification | RTX 5090 | RTX 4090 | Delta |
|---|---|---|---|
| Architecture | Blackwell | Ada Lovelace | New generation |
| CUDA cores | 21,760 | 16,384 | +33% |
| VRAM | 32GB GDDR7 | 24GB GDDR6X | +33% |
| Memory bus | 512-bit | 384-bit | +33% |
| Memory bandwidth | 1,792 GB/s | 1,008 GB/s | +78% |
| Total graphics power | 575W | 450W | +28% |
| Recommended system PSU | 1,000W | 850W | +150W |
| Power connector | 16-pin 12V-2x6 | 16-pin 12VHPWR | — |
| Launch MSRP | $1,999 | $1,599 | +$400 |
| Released | January 2025 | October 2022 | — |
Correction to a claim you will see repeated everywhere
The RTX 5090 does not support NVLink. NVIDIA removed NVLink from GeForce after the 30-series — the RTX 3090 had it, the 4090 and 5090 do not. Two 5090s can still be used together for tensor-parallel inference, but they communicate over PCIe, not a bridge. Any "connect two 5090s with NVLink for 64GB" advice is wrong.
How much faster is the RTX 5090 than the 4090 for local LLMs?
Token generation on a single GPU is memory-bandwidth bound, not compute bound. To emit one token the runtime has to read the model's active weights out of VRAM once. That gives a hard arithmetic ceiling:
Throughput ceiling
tokens/sec ceiling = memory bandwidth (GB/s) ÷ weights resident in VRAM (GB)
This is an upper bound, not a prediction. Attention over the KV cache, sampling, and framework overhead all take a cut, so real output lands well below it — commonly around half to three-quarters on a well-tuned setup. Use it to compare two cards, never to promise a number.
And you need the model's footprint. A useful rule of thumb for the most common quantisation, Q4_K_M in llama.cpp/GGUF:
Weight footprint
Q4_K_M weights (GB) ≈ 0.6 × parameters in billions
Roughly: Q5_K_M ≈ 0.71 GB/B, Q6_K ≈ 0.82 GB/B, Q8_0 ≈ 1.06 GB/B, FP16 ≈ 2.0 GB/B. KV cache and runtime overhead sit on top of this — see the context section below. Our quantisation explainer covers what each format costs you in quality.
Put the two together and the comparison falls out:
| Model at Q4_K_M | Weights | RTX 5090 ceiling | RTX 4090 ceiling |
|---|---|---|---|
| 8B dense (Llama 3.1 8B) | 4.8 GB | ~373 tok/s | ~210 tok/s |
| 14B dense | 8.4 GB | ~213 tok/s | ~120 tok/s |
| 27B dense (Gemma class) | 16.2 GB | ~111 tok/s | ~62 tok/s |
| 32B dense (Qwen / R1 distill class) | 19.2 GB | ~93 tok/s | ~53 tok/s |
| Mixtral 8x7B (12.9B active) | 28.0 GB resident, 7.7 GB active | ~233 tok/s | does not fit |
| 70B dense | 42.0 GB | does not fit | does not fit |
The one line worth taking away: on every model that fits both cards, the ratio between those two columns is identical — 1.78. It has to be, because it is nothing more than 1,792 ÷ 1,008. The 5090's ceiling is 78% above the 4090's, full stop. If you see a claimed real-world speedup materially above 78%, it is not coming from the memory system, and you should ask what else changed between the two runs (quantisation, context length, batch size, or how many layers were on the GPU at all).
Mixture-of-experts models are the interesting exception. Mixtral 8x7B has 46.7B total parameters but activates roughly 12.9B per token, so its speed tracks the active slice while its VRAM requirement tracks the total. That is why it is fast on a 5090 and simply absent on a 4090.
Which models actually fit in 24GB vs 32GB?
| Model | Params | Q4_K_M weights | Fits 24GB (4090)? | Fits 32GB (5090)? |
|---|---|---|---|---|
| Llama 3.1 8B | 8B | 4.8 GB | Yes, with room for 128K context | Yes, comfortably |
| 14B class | 14B | 8.4 GB | Yes | Yes |
| Gemma-class 27B | 27B | 16.2 GB | Yes, moderate context | Yes, long context |
| Qwen / R1-distill 32B | 32B | 19.2 GB | Tight — expect to trim context | Yes |
| Mixtral 8x7B | 46.7B | 28.0 GB | No | Yes, tight |
| 70B dense | 70B | 42.0 GB | No | No |
| Mixtral 8x22B | 141B | 84.6 GB | No | No |
The 70B myth
A 70B model at Q4_K_M is roughly 42GB of weights. That does not fit in 24GB and it does not fit in 32GB either. Any page quoting a single-card 4090 or 5090 tokens/sec figure for "Llama 70B Q4" is describing a partial CPU offload — where a chunk of the model streams from system RAM at DDR5 speeds (roughly 80–120 GB/s on a dual-channel desktop, an order of magnitude below either card) — or quoting a number that cannot happen. To hold 70B entirely on GPU you need about 48GB: two cards, or a quantisation well below Q4. Our VRAM requirements guide works through the tiers properly.
Run this on your own machine and stop paying every month
Pay once and keep it. No renewal, no per-token bill, and nothing you feed it ever leaves your hardware.
How much context does the extra 8GB actually buy?
The KV cache is the other consumer of VRAM, and it grows linearly with context length:
KV cache size
bytes = 2 × layers × kv_heads × head_dim × bytes_per_element × context_length
Worked example, Llama 3.1 8B (32 layers, 8 grouped-query KV heads, 128-dimension heads, fp16 cache):
2 × 32 × 8 × 128 × 2 bytes = 128 KB per token. So a 32K context costs about 4GB, and a 128K context costs about 16GB — on top of the 4.8GB of weights. That is the real reason the 8GB matters: it is roughly 64K extra tokens of context on an 8B model, or the difference between a 32B model with a scratch-sized window and a 32B model you can hand a whole file to.
Quantising the KV cache to 8-bit halves those figures, which is often a better trade than dropping the weights to a lower quant.
What does each card cost to run?
Board power is a published figure; running cost is arithmetic:
Annual electricity
cost = board power (kW) × hours per day × 365 × price per kWh
At 4 hours a day and $0.15/kWh, using each card's full rated board power as a worst case:
| RTX 5090 (575W) | RTX 4090 (450W) | |
|---|---|---|
| kWh per year | 839 | 657 |
| Cost per year at $0.15/kWh | $126 | $99 |
| Same at 8 hours a day | $252 | $197 |
Treat those as ceilings. Total graphics power is the board's rated limit, and single-stream LLM generation is memory-bound rather than compute-saturating, so neither card holds its rated draw continuously during chat-style inference. Image generation and batch serving get much closer to it.
The PSU line matters more than the electricity line for most buyers: NVIDIA recommends a 1,000W system supply for the 5090 against 850W for the 4090. If your build is on an 850W unit, budget for a replacement before you compare sticker prices.
Price per unit of the thing you are actually buying
| Metric | RTX 5090 | RTX 4090 | Better |
|---|---|---|---|
| Launch MSRP | $1,999 | $1,599 | 4090 |
| $ per GB of VRAM | $62.47 | $66.63 | 5090 |
| $ per GB/s of bandwidth | $1.12 | $1.59 | 5090 |
| Recommended system PSU | 1,000W | 850W | 4090 |
Both "better" columns for the 5090 come from dividing MSRP by a vendor spec — do the same division with whatever you can actually pay today, because street prices for both cards have spent long stretches well above MSRP and the ranking flips easily. If a 5090 is 40% over list and a used 4090 is under list, the 4090 wins both rows.
What about the RTX 5080 and a used RTX 3090?
| RTX 5080 | RTX 4090 | RTX 3090 (used) | |
|---|---|---|---|
| VRAM | 16GB GDDR7 | 24GB GDDR6X | 24GB GDDR6X |
| Memory bandwidth | 960 GB/s | 1,008 GB/s | 936 GB/s |
| Board power | 360W | 450W | 350W |
| MSRP / typical used | $999 | $1,599 | secondhand only |
| 8B Q4 ceiling (bandwidth ÷ 4.8GB) | ~200 tok/s | ~210 tok/s | ~195 tok/s |
Two things jump out of that table, and both are the kind of thing raw bandwidth arithmetic is good at exposing:
- The RTX 5080's problem is not speed, it is 16GB. Its bandwidth ceiling on an 8B model is within a few percent of a 4090's. What it cannot do is hold a 27B or 32B model with a usable context window. If you were choosing on token rate alone it would look like a bargain; you are really choosing on VRAM.
- A used RTX 3090 sits at 93% of a 4090's memory bandwidth with identical VRAM. For memory-bound LLM generation that is much closer than gaming benchmarks suggest, which is why the 3090 has stayed the value pick for VRAM per dollar. It loses on power efficiency, on prompt processing (which is compute-bound), and on warranty. Our used GPU buying guide covers sourcing one without getting burned.
Who should buy what?
Buy the RTX 5090 if:
- You want a 27B–32B model resident with a long context window
- You run Mixtral 8x7B or similar MoE models that need ~28GB
- Prompt processing throughput matters to you (long documents, RAG, code review) — that workload is compute-bound, and the 5090's 33% CUDA core advantage shows up there rather than in the bandwidth ratio
- You already have, or are budgeting for, a 1,000W PSU
Buy the RTX 4090 if:
- Your daily driver is a 7B–14B model
- You can find one at or below MSRP, or used
- Your existing 850W PSU is staying put
- You are content trimming context on a 32B model
Buy a used RTX 3090 if:
- Budget is the binding constraint and you want 24GB anyway
- You accept 350W of older-generation power draw and no warranty
- Generation speed matters more to you than prompt-processing speed
Buy neither if you need 70B on one card — that requires ~48GB, which means two cards, a workstation card, or a far more aggressive quantisation. If you are considering pairing GPUs, note that an external card over Thunderbolt or OCuLink is also an option; the eGPU bandwidth analysis works through what an external link does and does not cost you.
Upgrade paths
| Current GPU | VRAM | The upgrade that actually changes something |
|---|---|---|
| RTX 3080 | 10GB | 4090 or 5090 — 10GB caps you at 14B class |
| RTX 3090 | 24GB | 5090 only. A 4090 is the same VRAM at 1.08× the bandwidth |
| RTX 4070 Ti | 16GB | 4090 or 5090, for the VRAM rather than the speed |
| RTX 4080 | 16GB | 5090, again for VRAM |
| RTX 4090 | 24GB | 5090 only if 32GB unlocks a model you actually run |
The pattern is consistent: below 24GB, upgrade for VRAM. At 24GB, upgrade only if a specific model you want is stuck behind the 32GB line.
Frequently asked questions
How much faster is the RTX 5090 than the 4090 for AI inference?
For token generation, the arithmetic ceiling is 78% higher, because that is the memory-bandwidth ratio (1,792 GB/s vs 1,008 GB/s). Real-world gains land below that ceiling and vary with quantisation, context length and runtime. For prompt processing — which is compute-bound rather than bandwidth-bound — the relevant ratio is the 33% CUDA core increase instead.
Is the RTX 5090 worth $400 more than the RTX 4090?
It is worth it if a model you actually run needs more than 24GB — a 27B or 32B model with real context, or Mixtral 8x7B. If your daily driver is 7B–14B, the extra 8GB buys you context headroom you may never use, and the 4090 is the better value. Check what you run against the fit table above before deciding.
What models can the RTX 5090 run that the 4090 cannot?
Anything between roughly 24GB and 30GB of weights plus cache. In practice that means Mixtral 8x7B at Q4 (28GB), a 32B dense model with a long context rather than a trimmed one, and higher-quality quants of 27B models. It does not include 70B at Q4 — that is 42GB and fits on neither.
Can the RTX 5090 run Llama 70B?
Not entirely on the GPU. 70B at Q4_K_M is about 42GB against 32GB of VRAM. You can run it with layers offloaded to system RAM, but the offloaded portion streams at DDR5 speeds rather than GDDR7 speeds, and the result is dramatically slower than the on-card ceiling. Two 24GB cards or one 48GB card is the clean answer.
What power supply do I need for the RTX 5090?
NVIDIA's published recommendation is a 1,000W system power supply, against 850W for the 4090. The card draws through a 16-pin 12V-2x6 connector; seat it fully and use the cable that shipped with the PSU rather than a daisy-chained adapter.
Does the RTX 5090 support NVLink?
No. NVLink was dropped from GeForce after the RTX 3090. Two 5090s communicate over PCIe, which is fine for tensor-parallel inference but is not the high-bandwidth bridge that older multi-GPU guides assume.
How does GDDR7 improve AI performance?
It raises memory bandwidth from 1,008 GB/s to 1,792 GB/s, and since token generation is bandwidth-bound, that is the single largest lever on generation speed. The wider 512-bit bus contributes as much as the memory generation itself. It does nothing for VRAM capacity, which is the other half of the decision.
Should I wait for an RTX 5090 or buy a 4090 now?
Decide on VRAM, not on release date. If nothing you run exceeds 24GB, a 4090 at or below MSRP is the better purchase today and will stay capable. If you are repeatedly hitting the 24GB wall, waiting for a 5090 at a sane price is worth it — but do not pay a large premium over list for a card whose generation-speed advantage is a known 78% ceiling.
Does the RTX 5090 support GGUF, AWQ and EXL2?
Yes. All the mainstream quantisation formats — GGUF via llama.cpp and Ollama, AWQ and GPTQ via vLLM, EXL2 via ExLlamaV2 — run on Blackwell. Note that support for a brand-new architecture usually lands in the runtime a release or two after launch, so keep CUDA and your runtime current.
Next steps
- Compare every GPU for local AI across the full price range
- Work out how much VRAM your models actually need before choosing between 24GB and 32GB
- Understand what each quantisation format costs you in quality and footprint
- Run DeepSeek R1 locally once the card is in
- Set up Ollama to serve it
Specifications on this page come from NVIDIA's published product pages. Every derived figure states its formula so you can check the arithmetic against your own numbers.
Got the hardware sorted? Now build on it.
You know what to buy — the courses show you what to actually run, fine-tune, and ship on it. First chapter free, no card.
Decide before you spend a thousand pounds
The AI Hardware course sizes your build properly — VRAM ladder, real bottlenecks, budget builds — and Pick the Right Model tells you what to run on it.
Liked this? 25 full AI courses are waiting.
From fundamentals to RAG, agents, MCP servers, voice AI, and production deployment with real GitHub repos. First chapter free, every course.
Build Real AI on Your Machine
RAG, agents, NLP, vision, and MLOps - chapters across 25 courses that take you from reading about AI to building AI.
Want structured AI education?
25 courses, 519+ chapters, from $9. Understand AI, don't just use it.
Continue Your Local AI Journey
- PILLARLocal AI Hardware Requirements (2026): Complete Guide
- AI Hardware Guide 2026: GPU, CPU & RAM for Local AI
- AI Hardware Requirements: CPU, GPU and RAM for Beginners
- AI RAM Requirements 2026: How Much for 7B, 13B, 70B Models?
- AI Server Build Under $1,500: Parts List and What Fits
- AMD Ryzen AI Max+ 395 (Strix Halo) for Local AI 2026
- Apple M4 for Local AI: Mac Studio + MacBook Guide (2026)
- Benchmark Your Local AI Setup: tok/s, TTFT, VRAM
- Best GPU for AI Video Generation: By VRAM Tier (2026)
- Best Local AI Models 2025: 6 Compared (RAM, VRAM, MMLU)
Comments (0)
No comments yet. Be the first to share your thoughts!