RTX 4090 vs L40S vs A100 vs A40 for LLM inference: what an 8B model really costs per token
We served Qwen3-8B on four cheaper GPUs rented from RunPod Secure Cloud under the same latency target. An RTX 4090 with FP8 weights was cheapest at $0.90 per million output tokens; the A100, the 4090 in BF16 and the L40S landed at $1.06–1.13; the A40 cost $1.61. Every card was limited by occasional slow tokens rather than average speed, and a 30B mixture-of-experts model on an H100 was about 3× cheaper per token than any of them.
Choosing GPUs? Compare GPUs for your traffic · Get your node measured, free
Our earlier tests used H100s and H200s. Many teams start on cheaper GPUs, though: an RTX 4090 rents for under a dollar an hour, and an A100 or L40S costs half as much as an H100. So we asked the same question on four of them: what does a million served tokens cost once the GPU has to meet a latency target?
Results for Qwen3-8B on vLLM 0.31.0, one GPU each, RunPod Secure Cloud prices on the day:
| GPU | Price | Weights | Capacity at SLO | Output tokens/s | Cost per million output tokens |
|---|---|---|---|---|---|
| RTX 4090 (24 GB) | $0.89/h | FP8 | 0.74 req/s | 276 | $0.90 |
| A100 SXM (80 GB) | $1.79/h | BF16 | 1.13 req/s | 469 | $1.06 |
| RTX 4090 (24 GB) | $0.89/h | BF16 | 0.62 req/s | 223 | $1.11 |
| L40S (48 GB) | $1.09/h | BF16 | 0.72 req/s | 272 | $1.11 |
| L40S (48 GB) | $1.09/h | FP8 | 0.72 req/s | 268 | $1.13 |
| A40 (48 GB) | $0.59/h | BF16 | 0.20 req/s | 102 | $1.61 |
- The RTX 4090 with FP8 weights was cheapest, 15% below the A100.
- Four of the six configurations cost $1.06–1.13 per million tokens. The A100 serves the most users per GPU, but it costs twice as much per hour.
- The A40 is the one to skip. It's the cheapest per hour and the most expensive per token.
- Update (2026-10-13): the same Qwen3-8B on an H100 SXM cost $0.31 per million tokens, about 3× cheaper than any card here. We first credited that gap to the model (a 30B mixture-of-experts model on an H100 cost $0.29); measured on the same H100, it comes mostly from the card. More below.
The setup
Each GPU ran the same container (vllm/vllm-openai:v0.31.0) with default settings, serving Qwen3-8B, the largest common model that fits all four cards in BF16. On the two Ada-generation cards (RTX 4090, L40S), which support FP8 natively, we also ran the FP8 version of the same model. The A100 and A40 don't support FP8.
The workload was a chat-like mix of prompt lengths (median 1,024 input and 256 output tokens; mean about 1,700 and 420) arriving at random. TokenWatt Bench searched for the highest request rate where the p99 time to first token stayed under 2 s and the p99 time per output token under 50 ms, then confirmed it with two 2-minute repeats. The methodology has the details. Accuracy was 90–94% on our 50-question GSM8K check for every configuration, the same within the margin of error.
Before each run, our open-source checker tokenwatt-check tested the card, and its new watch mode kept checking every 15 seconds during the benchmark:
| Node check | RTX 4090 | L40S | A100 SXM | A40 |
|---|---|---|---|---|
| Power limit | 450 W (stock) | 350 W | 400 W | 300 W |
| BF16 matmul | 160 TFLOPS | 166–175 TFLOPS | 258–261 TFLOPS | 107 TFLOPS |
| Memory copy bandwidth | 0.92 TB/s | 0.65 TB/s | 1.75 TB/s | 0.56 TB/s |
| During the benchmark | no changes | no changes | no changes | no changes |
Every node we benchmarked was healthy. One of the four L40S pods we rented that day, also on Secure Cloud, had its power limit lowered to 315 W of 350. Its session ended early because of a bug in our own script, so none of the results here come from it. While calibrating, we also found that our checker's provisional L40S reference was about 50% too high and marked healthy L40S cards as FAIL. Version 0.3.1 uses the values measured here.
Why the tail, not the average, sets capacity
None of these cards was close to the 50 ms limit on average. Median time per output token at capacity ranged from 14 ms (RTX 4090, FP8) to 34 ms (A40). What stopped them was the slowest 1% of tokens.
The A100 shows it most clearly. When we first tested it at 1.4 requests/s, its median time per token was 17 ms, but its p99 was 64 ms. Every so often a long prompt (our workload includes some up to 8,000 tokens) gets processed in the same step as everyone else's next token, and those tokens stall. The capacity that holds the p99 under 50 ms is 1.13 requests/s, well below what the average would suggest.
That's also why FP8 made the L40S faster but not more capable: its median time per token dropped from 29 to 17 ms, but capacity stayed at 0.72 requests/s because the stalls from long prompts didn't go away. On the RTX 4090, FP8 did raise capacity by 19%, for a different reason: in BF16 the model's 16 GB of weights leave only about 5 GB of the card's 24 GB for the KV cache, and requests had to queue. FP8 halves the weights and frees memory for more requests at once.
Spreading out long prompts is a serving setting, not a hardware property. On a 70B model, smaller prefill chunks raised capacity by up to 15% in our tests. We ran defaults here, so every card has some headroom left for tuning.
Correction: the 3× gap is the card, not the model
An earlier version of this section said a mixture-of-experts model on an H100 was cheaper per token mainly because of the model. On 2026-10-13 we served this same Qwen3-8B on an H100 SXM under the same latency target: 8.79 requests/s, $0.31 per million tokens. Qwen3-30B-A3B on an H100 cost $0.29. On the same card the two models cost about the same, so the 3× gap to the GPUs in this post comes mostly from the H100 SXM itself: 2.6–6.4× the measured compute and 1.7–5× the memory bandwidth of these cards, at 2.2–6.8× the hourly price.
What that means in practice: for an 8B model, the H100 SXM was the cheapest per token of everything we tested, despite the highest price per hour. A mixture-of-experts model with few active parameters still lets you serve a much larger model at about the same cost per token. If you're limited to the cards in this post, the table above is the comparison that matters.
Head to head
L40S vs A100
For this 8B model the two cost about the same per token: $1.11 per million on the L40S and $1.06 on the A100. The A100 served 57% more requests per GPU (1.13 against 0.72 per second) at 64% more per hour. Its HBM2e memory moved data 2.7× as fast as the L40S's GDDR6 (1.75 against 0.65 TB/s in our copy test), and token generation follows memory bandwidth. Choose the L40S if you need its FP8 support or its lower price per hour at low traffic. Choose the A100 for fewer machines and more headroom.
RTX 4090 vs A100
The RTX 4090 with FP8 weights was 15% cheaper per token ($0.90 against $1.06), but it served 35% fewer requests per card (0.74 against 1.13 per second) and has only 24 GB of memory. It's the cheaper option for small models with modest traffic. The A100's 80 GB leaves room for bigger models, longer contexts and more users per machine.
A40 vs A100
The A40 costs a third as much per hour ($0.59 against $1.79), but it served less than a fifth as many requests (0.20 against 1.13 per second), so each token cost 52% more ($1.61 against $1.06). For LLM serving the A100 is the better buy, even though it's the more expensive card.
Which one?
- Cheapest per token for a small model: RTX 4090 with FP8 weights, if your provider offers it in a datacenter with the reliability you need.
- Most users per GPU, fewer machines to manage: A100 SXM 80 GB. It costs about 15% more per token than the 4090 with FP8, but serves 50% more users per card and has room for bigger models and longer contexts.
- L40S: about the same cost per token as the A100 here, with 48 GB of memory. Check the power limit before you start: one of the four we rented was capped.
- A40: skip it for LLM serving. It's the cheapest per hour and the most expensive per token.
- Whatever you rent: run
pip install tokenwatt-check && tokenwatt-checkfirst, and leavetokenwatt-check --watchrunning alongside your workload.
Current prices: A100, L40S, all GPUs.
Limits
- Quick mode. Two 2-minute repeats per configuration. On H100s, full mode (10-minute windows, five repeats) found 15–20% lower capacity, so treat these as optimistic by about that much. The ranking should hold, since the same method applied to every card.
- One node per configuration, one model, default settings, one platform (RunPod Secure Cloud) and its prices on one day.
- No RTX 5090. None was available on RunPod during our test, on Secure or Community Cloud.
Cost of these tests: $8.07, including two RTX 5090 pods that never got a network address and were deleted after a few minutes, and two earlier attempts whose search started at too high a rate.
Full results and raw data per configuration: RTX 4090 FP8 · RTX 4090 BF16 · L40S BF16 · L40S FP8 · A100 · A40.
Keep reading
GPU rental prices, early October 2026: list prices barely moved, but where you rent changes the price up to 4.7×
We collected on-demand GPU list prices from 16 cloud providers three times a day from October 7 to 19, 2026. List prices barely moved: 14 of 407 tracked offers changed. The spread between providers is the real story: H100 from $2.99 to $13.98 per GPU-hour (4.7×), A100 2.6×, L40S 2.1×. And 13 of 22 H100 listings didn't say whether the card is SXM, PCIe or NVL, a difference worth 2.25× in served tokens in our tests.
H100 vs A100 for LLM inference: 7.8× the capacity for 2.2× the price
We served Qwen3-8B with vLLM on a rented H100 SXM and a rented A100 SXM 80GB under the same latency target. The H100 served 8.79 requests per second against 1.13 on the A100: 7.8× the capacity for 2.2× the hourly price, so each token cost 71% less ($0.31 against $1.06 per million output tokens). On raw specs the H100 is only 1.7–2.6× faster. The rest of the gap comes from slow tokens on the A100, which a serving setting can partly fix.
We watched two rented GPUs for 24 hours: 21 thermal throttles, and throughput didn't move
We rented an RTX 4090 and an A40 on RunPod Secure Cloud and kept both serving an 8B model around the clock while TokenWatt Monitor sampled the GPUs every minute. The 4090 hit thermal limits 21 times in 24 hours, four of them hardware thermal slowdowns, while the A40 never did. Each episode lasted about a minute, and the 4090's throughput never moved by more than 0.7%. 132,420 requests, zero errors.