How GPU prices are calculated
GPU prices on VRAMGlass are medians of current asking prices, not sold prices. Each of the three markets is calculated on its own, and every round records the median, the quartiles, and the number of valid samples:
| Market | What is counted | Currency | Deduplication |
|---|---|---|---|
| Xianyu | Listings for sale | CNY | One per seller |
| eBay | Listings for sale (US site), excluding for-parts items | USD | One per seller |
| Amazon.co.jp | Primary offer, delivered within Japan, excluding shipping | JPY | One per product (ASIN) |
Each device has its own model-matching rules, and candidate listings are then reviewed by our in-house algorithm: it checks the model and VRAM, excludes mining cards, accessories, proxy-purchase offers, complete systems and mislabeled products, and removes outlier prices. Listings with an unclear price, seller or stock status are not counted.
When there are fewer than 3 valid samples, no price is published for that round and the page shows it as empty. A consistency check also runs before publication: clearly abnormal results are kept out of the price history, and the last valid price is carried forward. Prices update every 6 hours, and price charts keep the full history.
Price charts can be toggled between line and candlestick views. Candlesticks are aggregated daily: the close is the median price from the day's final update, the open is the previous day's close, and the high and low include the open price. The listing count in the sub-chart is the daily average of valid listings across updates, not trading volume.
Candlestick charts: TradingView Lightweight Charts™ Copyright (с) 2025 TradingView, Inc.
How the GPU price index is calculated
The GPU price index is calculated separately for each market in its native currency. It includes every device with a valid price history, counting one unit per model. The base period is set to 100: the index is the current sum of each model's median price divided by the base-period sum, times 100.
New models are linked into the GPU price index at their price on the day they are added, so an addition is never counted as a price increase. When a model is temporarily missing a quote, its last valid price is carried forward. The time range selected on the chart only changes the display and never resets the base period. When there is no matching data point from 24 hours earlier, the 24-hour change is not shown.
How RAM prices are calculated
RAM is tracked by spec bucket, not by brand or part number. A bucket is generation × speed × capacity per stick × server or desktop, for example DDR5-6000 32GB. RAM is a standardized commodity: the price gap between brands at the same spec is far smaller than the gap between specs, so aggregating by bucket is steadier than aggregating by model.
Every RAM price in the ranking is a per-stick price. Kits are divided by stick count first, so "32GB (16GB×2)" counts as two 16GB sticks and goes into the 16GB bucket. Listings whose stick count cannot be determined are excluded rather than assumed to be one stick, so a kit total is never mistaken for a single-stick price and never pulls the median up. ECC is not a separate tier: a DDR5 listing that only says ECC usually means on-die ECC and is treated as a regular stick.
Desktop sticks and server sticks (RDIMM / LRDIMM) are in separate buckets: they do not fit the same motherboards and do not trade in the same market.
| Reference configuration | Channels | Sticks |
|---|---|---|
| Desktop | 2 | 4 |
| DDR4 server (single socket) | 8 | 8 |
| DDR5 server (single socket) | 12 | 12 |
Max memory = capacity per stick × stick count. It is the capacity of the reference configuration, not the limit of every motherboard. Bandwidth is theoretical: in practice it is limited by the CPU, the motherboard and how the slots are populated, and filling every slot does not guarantee the rated speed. Collection, publication thresholds, the 24-hour change and exchange rates work the same way as for GPUs in all three markets.
How much VRAM does an LLM need: the formula
Whether a GPU can run an LLM locally depends on whether three things fit in VRAM together: model weights, KV cache, and the runtime overhead of the inference framework.
In LLM weight VRAM calculations, bytes per parameter depend on the quantization level. The 1.05 factor covers fixed costs such as GGUF metadata and unquantized embedding layers. Values for each quantization level:
| Quantization | IQ1_M | Q2_K_XL | Q3_K_XL | Q4_K_M | Q5_K_M | Q8_0 | BF16/FP16 |
|---|---|---|---|---|---|---|---|
| Bytes per parameter | 0.24 | 0.38 | 0.49 | 0.57 | 0.69 | 1.06 | 2 |
When the repository has a GGUF file for a quantization level, LLM weight VRAM uses the file's actual size; when there is no GGUF but official FP8 or BF16 weights are available, the 8-bit and BF16 levels use the actual size of the official files. The weight formula applies only to levels without either file. For models whose expert layers are natively 4-bit (DeepSeek V4, Kimi K2.6 and later, gpt-oss), the 8-bit file is only about half the formula estimate, so only the file size is accurate. Bytes read per token in the speed estimate are scaled by the same ratio.
In the VRAM tables on VRAMGlass model pages, weights marked "GGUF" are the measured file sizes in the repository, and those marked "est." are estimated from parameter count. For models listed only from verified files, levels without a verified file show a dash and are not estimated.
KV cache size formula
In the KV cache formula, 2 stands for the separate K and V copies, and each element takes 2 bytes in FP16. This formula assumes every layer stores a full K and V for every token, so it applies only to standard multi-head attention (MHA / GQA). Hybrid attention, MLA, sliding windows, and similar architectures are calculated separately.
KV cache exceptions: hybrid attention, MLA and sliding windows
Many newer LLMs do not store a full KV at every layer. Applying the standard formula directly overestimates their KV cache by a few times to dozens of times. VRAMGlass works layer by layer from each model's official config.json and counts only the part that grows with context, in four groups.
- Hybrid linear attention: In hybrid-attention models, most layers use linear attention (Gated DeltaNet, KDA, and similar), keeping one fixed-size state per layer that does not grow with context. Only a few full-attention layers (commonly 1 in every 4) store KV. VRAMGlass counts only the full-attention layers for KV cache. The fixed state of the linear layers is usually just a few hundred MB and is included in the runtime overhead.
- MLA latent attention: In MLA models, each layer caches just one compressed latent vector per token (usually 512 dimensions, plus 64 for positional encoding) instead of separate K and V for each attention head. VRAMGlass calculates KV cache by the size of the latent vector. DeepSeek Sparse Attention (DSA) is also in this group.
- Compressed attention: The DeepSeek V4 series compresses every 4 or 128 adjacent tokens into a single KV entry, and only the most recent 128 tokens are kept as is. VRAMGlass calculates KV cache by each layer's compression ratio and ignores the most recent 128 tokens, which take only a few MB. For versions with officially published figures, those figures are used directly.
- Sliding window: Most layers only look at a fixed-length span of the most recent tokens (the window; Llama 4's chunked attention counts too), so their KV stops growing once it reaches the window length, and only a few global layers grow with context. We count the two parts separately. By default, llama.cpp, Ollama and vLLM all allocate VRAM for these layers only up to the window length.
| Model | KV cache at 32K context | Generic formula |
|---|---|---|
| 0.4 GB | 96.6 GB | |
| 0.3 GB | 8.2 GB | |
| 0.9 GB | 224.7 GB | |
| 0.9 GB | 224.7 GB | |
| 1.1 GB | 4.3 GB | |
| 2.1 GB | 8.6 GB | |
| 0.7 GB | 2.7 GB | |
| 2.1 GB | 8.6 GB | |
| 0.8 GB | 3.2 GB | |
| 3.1 GB | 12.3 GB | |
| 0.7 GB | 2.7 GB | |
| 2.3 GB | 196.5 GB | |
| 1.8 GB | 31.5 GB | |
| 2.9 GB | 125.6 GB | |
| 2.9 GB | 125.6 GB | |
| 2.9 GB | 5.2 GB | |
| 2.9 GB | 5.2 GB | |
| 2.3 GB | 98.2 GB | |
| 2.3 GB | 98.2 GB | |
| 2.3 GB | 98.2 GB | |
| 2.3 GB | 98.2 GB | |
| 2.4 GB | 77.3 GB | |
| 0.2 GB | 2.9 GB | |
| 0.3 GB | 4.1 GB | |
| < 0.1 GB | 2.7 GB | |
| 0.6 GB | 2.8 GB | |
| 0.9 GB | 12.9 GB | |
| 0.9 GB | 8.1 GB | |
| 3.5 GB | 32.2 GB | |
| gpt-oss 20BSliding window 128 tokens | 0.8 GB | 1.6 GB |
| gpt-oss 120BSliding window 128 tokens | 1.2 GB | 2.4 GB |
| gpt-oss Safeguard 20BSliding window 128 tokens | 0.8 GB | 1.6 GB |
| 0.5 GB | 11.3 GB | |
| Inkling 2 MiniSliding window 1,024 tokens | 1.2 GB | 3.2 GB |
| 2.8 GB | 6.4 GB | |
| 2.5 GB | 8.3 GB |
VRAMGlass counts KV cache in FP16. With FP8 or 4-bit KV quantization enabled at deployment, actual VRAM usage is even lower. For comparison, the "Generic formula" column plugs the layer count, KV head count, and head dimension from config.json straight into the generic KV cache formula.
Will the model fit in VRAM?
VRAMGlass calculates VRAM fit for a single card with no CPU offload. Unified-memory devices are counted at their full memory size, without deducting the macOS limit on GPU memory use.
Model sizes and memory requirements are given in decimal GB (10⁹ bytes), so they match the file sizes on Hugging Face download pages. Rated GPU and RAM capacities are counted in 1024³ bytes, so a 24GB card holds about 25.8 GB. Both sides are converted to the same unit before the fit check, which is why a requirement slightly above the rated figure can still fit.
Tables on GPU and model pages use three statuses:
- Runs: Fits fully in VRAM; speed is estimated from VRAM bandwidth.
- Needs RAM offload: MoE only: expert weights sit in system RAM, so speed is estimated from 70 GB/s RAM bandwidth.
- Too big: Won’t fit on one card at this quantization, even with RAM offload.
How to estimate LLM inference speed (tokens/s)
LLM generation speed is mainly limited by memory bandwidth: for every token generated, the active weights and part of the KV cache have to be read from VRAM once. Estimates assume llama.cpp with a single user (single stream):
Bandwidth utilization is 0.73 for every device; fixed overhead is 1.4 ms for dense models and 4.7 ms for MoE models.
The coefficients are calibrated against published llama.cpp benchmarks. Software version, drivers and settings shift the numbers somewhat, and longer contexts run slower. This is generation (decode) speed and does not include prompt processing (prefill) time.
How multi-GPU and multi-unit LLM setups are estimated
Multi-GPU LLM VRAM is estimated for vLLM tensor parallelism with 1 / 2 / 4 / 8 identical cards. The model weights and the KV cache for a 32K context are split evenly across the cards, each card adds 1.1GB of runtime overhead, and the result is compared with 90% of each card’s VRAM, which is vLLM’s default. The check only looks at memory and ignores whether attention heads divide evenly across the cards, so treat it as a first filter. Whether a model actually runs also depends on vLLM support.
Multi-GPU inference speed is estimated from one card’s bandwidth. It is not multiplied by the number of cards and does not account for traffic between cards. The total price is the median listing price of one card times the number of cards and covers the GPUs only, not the motherboard, power supply, or case. The interconnect is listed for reference only: cards with NVLink show its bandwidth in the spec table, and the rest communicate over PCIe. The multi-GPU section on GPU pages lists models released from 2026 with at least 50B parameters; the multi-GPU table on model pages lists the GPUs commonly used in multi-GPU builds and the machines that can be clustered, sorted by total price from low to high.
Unified-memory machines cannot take a second card, so most count as one unit. Machines that can be clustered are counted by unit, each using 90% of its memory; speed is based on one unit’s bandwidth, and the total price covers the units only. DGX Spark links over its network ports, with up to three units connected directly and four needing a switch. The 512GB Mac Studio M3 Ultra links over Thunderbolt 5 cables and runs distributed inference with MLX or exo rather than vLLM.
How LLM expert-offload builds are picked
The "What PC or server build do you need to run … locally?" section on each model page gives one build in each of five classes: a home desktop (RTX 5070 + DDR5), dual Xeon E5 (V100 32GB), EPYC DDR4 (RTX 3090 or 4090), EPYC DDR5 (RTX 5090), and, for the largest models, multiple RTX PRO 6000s on dual EPYC DDR5. Within each class we compare GPU models, card counts up to eight, and single versus dual socket, and pick the build with the most generation speed per unit of money; for the largest-model class we pick the fastest build first and use speed per price only to break ties. The GPUs hold the attention, shared experts and KV cache first, then as many expert layers as the remaining VRAM fits; the rest of the experts go to system RAM, filled with the cheapest layout that leaves 10% headroom. If the GPUs can hold the whole model, that is not expert offloading, so it is left to the model page's single- and multi-GPU tables.
Expert-offload inference speeds assume software tuned for CPU + GPU hybrid inference, such as ktransformers or ik_llama.cpp. The llama.cpp commands on the model pages run somewhat slower. Dual-socket platforms are estimated at 1.6× one socket: SGLang + KTransformers split the experts across both CPUs so each reads its local memory, measured up to about 63% faster, while plain llama.cpp runs barely faster on two sockets than on one.
The VRAMGlass reference build price is the live median listing price of the GPUs and RAM plus reference prices for the CPU, motherboard, and power supply. Reference prices are kept per market: used prices for eBay and Xianyu, new prices for Amazon.co.jp, and new prices for power supplies everywhere. Where a market has no price, we convert the eBay price in US dollars. Reference prices are reviewed every month.
The build cards on the DDR4 and DDR5 pages show theoretical bandwidth: a dual-socket build adds up both CPUs, and with all four slots filled many desktop motherboards have to lower the memory speed to stay stable, so real bandwidth is below the theoretical figure.
Worked example: Qwen3.8 27B on GeForce RTX 4090
Take the Q4_K_M version of Qwen3.8 27B on GeForce RTX 4090 (24 GB of VRAM, 1,008 GB/s of bandwidth) and calculate VRAM usage and inference speed step by step:
| Context | Weights | KV cache | Runtime overhead | Total | Fits? |
|---|---|---|---|---|---|
| 8K | 16.6 GB | 0.5 GB | 1.1 GB | 18.2 GB | Fits |
| 32K | 16.6 GB | 2.1 GB | 1.1 GB | 19.8 GB | Fits |
| 128K | 16.6 GB | 8.6 GB | 1.1 GB | 26.3 GB | Does not fit |
Qwen3.8 27B uses the "Hybrid linear attention" architecture, so its KV cache counts only the layers that grow with context and is much smaller than that of a standard model of the same size.
With the same model on the same card, whether it fits often comes down to context length: the longer the context, the larger the KV cache. At 8K context, the estimated generation speed is about 43 tokens/s.
Full results for every quantization level:Qwen3.8 27B · GeForce RTX 4090
Price per GB
Price per GB = median price ÷ capacity, in currency per GB: GPUs are divided by VRAM capacity, RAM by capacity per stick. It is used in the RAM price ranking. Prices are converted to USD before dividing, which gives the same result as dividing first and converting afterwards.
Exchange rates
Prices on VRAMGlass are recorded in their original currency and converted for display at the daily rate, with USD as the base. Rates are updated daily; when the day's rate is unavailable the most recent valid rate is used and the footer says so. Current rates are from Dec 5, 2026, source open.er-api.com.
Spec and model data sources
GPU specs come from vendors' official spec pages and datasheets and are cross-checked against Wikipedia's GPU lists; compute figures are always dense (without sparsity). The few values a vendor has not published are derived from public specs and noted in the device description. 64 devices are currently covered.
Model parameters come from the public configuration of each official Hugging Face repository, quantized weight sizes use actual GGUF file sizes, and Ollama tags come from the official library. The catalog currently contains 10 families and 51 versions; new models are added regularly after verification.
Changelog
Prices on VRAMGlass update every 6 hours and exchange rates daily; the update time shown on each page is the time of the last successful update. Newly added GPUs, new features, and fixes to our calculations are all logged.
- Price charts now support candlesticks: toggle between line and daily candlestick views, with MA, EMA and BOLL overlays on the main chart, listing count, MACD, RSI and KDJ in the sub-chart, and updated time ranges (All, 60d, 30d, 7d).
- When 8-bit and BF16 tiers have no GGUF file, LLM VRAM is now calculated from the actual size of official weights (FP8, BF16) instead of the formula estimate, and tagged "official" in tables.
- New in Pro — Listings & details: inspect every individual listing behind the median price for any GPU or RAM module across marketplaces via MCP and REST API; Pro price alert limit raised to 100; developer docs updated with full parameters and response fields for every endpoint.
- Added measured Project Maya speeds: the GLM 5.3 Flash model page and related GPU pages now show speeds and setups reported by Maya users, also available via MCP and the API.
- The GPU price index page now lists the models in the entry, mainstream and flagship indexes, with each model's weight in the overall index.
- Added RTX 5060, RTX 5060 Ti 8GB, RTX 4060, RTX 3080 10GB and RX 9060 XT 16GB.
- Added RTX 4070 Ti SUPER and RTX 4070.
- Improved the copy on the About page.
- Launched the MCP server: after signing up, ask Grok, Claude, ChatGPT, Cursor and other AI tools for GPU prices, price history, the price index and the VRAM a model needs. Also added an account page and developer docs.
- Redesigned build cards: GPU, RAM, CPU, motherboard and power supply are listed separately, and model pages recommend the best-value build in each of five platform classes.
- Model pages' single- and multi-GPU tables now pick devices by model size, and launch commands add NVFP4 and MLX variants.
- Improved Xianyu collection: popular GPUs now pick up noticeably more live Xianyu listings, so their prices are steadier.
- New DDR4 and DDR5 RAM price pages: per-stick prices, price per GB and trends for 22 desktop and server memory specs, plus three server builds for running local LLMs from system RAM.
- Added Mac Studio M5 Ultra 96GB. Mac spec sheets now list CPU and GPU core counts, memory speed, storage options, weight, model identifier and part number.
- Added “Share image” to the Share menu on GPU pages: create a price-trend card for that GPU in one click, then copy or download it, or save it straight to your phone.
- Improved the copy on GPU detail pages, model detail pages and family pages.
- Recalibrated generation-speed estimates against public llama.cpp measurements, with one set of coefficients for all devices.
- Model sizes and VRAM needs are now shown in decimal GB, matching Hugging Face download pages.
- GPU pages now show “eBay deals” under the price chart when the eBay market is selected: hand-picked listings from trusted sellers that link straight to eBay.
- Added Tesla T10.
- Launched accounts: log in with Google or an email code, add GPUs to your watchlist from the rankings on the home page, and set price alerts on GPU pages to get an email when the price reaches your target.
- Redesigned model pages with single-GPU, multi-GPU and expert-offload builds; family pages add VRAM tables for each version.
- Fixed the VRAM calculation: quants with a published GGUF file now use the file's actual size.
- Fixed the KV cache calculation: layers that keep no KV are no longer counted, lowering long-context VRAM needs for some models.
- Added rental prices to GPU pages: on-demand rental per hour, monthly cost at 4, 8 or 24 hours a day, and payback time for buying the card.
- Added RTX 3060 12GB, RTX 4060 Ti 16GB and Tesla P40.
- Added A100 80GB PCIe, L40S and H100 PCIe.
- Added RTX PRO 5500, RTX A6000, RTX 6000 Ada and the modded RTX 4090D 48GB.
- Launched the price index page.
- Started tracking DDR4 and DDR5 RAM prices.
- Added prices from Amazon.co.jp in Japan.
- VRAMGlass launched, tracking GPU prices on Xianyu and eBay.
Corrections and feedback
If a price, spec or formula looks wrong, send us an email with the page in question and a source link. Once verified, we will correct it promptly and record the change.