How to Calculate Local LLM RAM Requirements for Your PC
A practical method for estimating model weights, quantization overhead, context memory and system headroom before downloading a local LLM.
Running a language model on your own computer may sound simple: download the model, open an application, and start chatting. In practice, calculating local LLM RAM requirements means looking at the model size, quantization, context window, operating-system overhead, and the type of hardware acceleration available.
There is no single memory figure that works for every computer. An 8-billion-parameter model may run comfortably on a 16 GB PC when quantized, while the same machine may run out of memory with a higher-precision version, a much larger context window, or several applications open in the background.
This guide provides a practical way to estimate memory needs before downloading a model. The goal is to answer three questions:
- Will the model fit in your PC's memory?
- Will it run with useful headroom or only at the limit?
- Should you prioritize more RAM, more VRAM, or a system with unified memory?
Quick answer: how much RAM do local LLMs need?
The following estimates assume a common GGUF model quantized to approximately 4 bits, a moderate context window, and an ordinary desktop operating system. They are planning figures rather than universal official requirements; model architectures, applications, and configurations can change actual consumption.
| Model size | Approximate Q4 weight memory | Practical minimum RAM | Recommended RAM |
|---|---|---|---|
| 1B–3B | 1–3 GB | 8 GB | 12–16 GB |
| 7B–8B | 4.5–6 GB | 12 GB | 16 GB |
| 13B–14B | 8–10 GB | 16 GB | 24–32 GB |
| 20B–24B | 12–16 GB | 24 GB | 32–48 GB |
| 30B–32B | 18–22 GB | 32 GB | 48–64 GB |
| 70B | 40–48 GB | 64 GB | 96–128 GB |
Here, “minimum” means that the model may load with a moderate context window and few background applications. “Recommended” includes healthier headroom for the operating system, context cache, runtime buffers, and everyday use. It does not guarantee speed: a model can fit in RAM and still run slowly on hardware with limited memory bandwidth.
Why memory capacity and speed matter for local AI
An LLM must keep its weights accessible while producing every token. When those weights reside in system RAM, the processor repeatedly reads a large amount of data. Two different characteristics therefore matter:
- Capacity determines whether the model, cache, runtime, and operating system fit in memory.
- Memory bandwidth influences how quickly data reaches the CPU, integrated GPU, or accelerator.
Adding RAM may allow a larger model to load, but it will not automatically turn slow inference into a fast experience. Memory channels and speed, processor architecture, GPU performance, and software optimization also matter.
Step 1: identify the model's actual size
Labels such as 3B, 8B, 14B, 32B, and 70B describe the approximate number of parameters. “B” means billion. More parameters generally mean a larger download and greater memory requirements.
Start with this calculation:
Theoretical weight memory = parameter count × bits per parameter ÷ 8
For an 8B model:
- FP16: 8 billion × 16 ÷ 8 ≈ 16 GB
- 8-bit: 8 billion × 8 ÷ 8 ≈ 8 GB
- 4-bit: 8 billion × 4 ÷ 8 ≈ 4 GB
The real file is usually somewhat larger than the theoretical result. Metadata, tensors retained at a different precision, and the quantization method add overhead. The GGUF file size is therefore a useful starting point, but it is not the model's total memory consumption during inference.
Step 2: check the quantization
Quantization reduces the numerical precision of model weights to lower their size. Formats such as Q4, Q5, Q6, and Q8 represent different trade-offs between memory, speed, and output quality.
- FP16 or BF16: high reference quality, but extremely memory-intensive for larger models.
- Q8: close to one byte per parameter plus overhead; preserves more information but needs more memory.
- Q5 or Q6: a middle ground when capacity allows it.
- Q4: a popular starting point for local use because it substantially reduces size while retaining useful quality.
- Q2 or Q3: can make larger models fit, although quality loss may become more noticeable.
Quantization is not simply file compression. It changes how weights are represented and may affect answers. “Q4” is also not one unique format: different variants can have different sizes and results.
Step 3: reserve memory for context, cache, and runtime
A common mistake is to see a 9 GB model file and assume that 10 GB of available memory is enough. During inference, the software also requires space for:
- the KV cache, which stores information about processed tokens;
- computation buffers;
- runtime data structures;
- the selected context window;
- layers or data transferred between CPU and GPU in a hybrid configuration.
The KV cache grows with context length and depends on the model architecture, number of layers, cache precision, and runtime. A 32K or 128K context setting can consume substantially more memory than a 4K or 8K session even though the model file remains unchanged.
For an initial estimate, reserve roughly 20% to 40% above the weight size for the runtime and a moderate context. Large models or long contexts may require more. The safest method is to begin with a conservative context window and monitor actual usage in the application or Task Manager.
Step 4: account for Windows and other applications
The model cannot use all installed RAM. Windows, Linux, or macOS already consumes memory before the runtime starts. Browsers, communication tools, antivirus software, and work applications reduce the remaining capacity.
A sensible allowance is:
- 3–5 GB for a relatively clean system;
- 5–8 GB with a browser, work tools, and background services;
- more for video editing, virtual machines, heavy development, or many browser tabs.
Do not plan to depend continuously on the page file or swap. It may prevent an immediate crash, but storage is far slower than RAM and can make generation extremely inconsistent.
Step 5: distinguish RAM, VRAM, and unified memory
A PC with a dedicated GPU
Dedicated GPU VRAM is separate from system RAM. To place every model layer on the GPU, VRAM must accommodate the weights, cache, and backend buffers. If it cannot, llama.cpp-based tools may split work between the GPU and CPU.
Hybrid execution can run models larger than available VRAM, but some data remains in system RAM and performance may fall. A PC with 32 GB of RAM and 8 GB of VRAM does not behave like a GPU with 40 GB of VRAM.
Integrated graphics
An integrated GPU normally uses system memory. This avoids a hard RAM–VRAM boundary, but Windows, the CPU, and the GPU compete for the same capacity and bandwidth. Advertised “shared graphics memory” is not extra physical memory.
Unified memory
On unified-memory platforms, the CPU, GPU, and other accelerators can access the same physical memory pool. This can make larger models easier to run without duplicating all data between RAM and VRAM. However, the operating system and applications still use part of that pool. A computer with 32 GB of unified memory does not dedicate all 32 GB to the model.
Four practical calculations
8B Q4 model on a 16 GB PC
- Model weights: about 5 GB
- Runtime and moderate context: 1–3 GB
- System and applications: 4–6 GB
- Estimated total: 10–14 GB
This is generally workable, provided the context is not excessive and the computer is not already heavily loaded.
14B Q4 model on a 16 GB PC
- Weights: about 9 GB
- Runtime and context: 2–4 GB
- System and applications: 4–6 GB
- Estimated total: 15–19 GB
It may work at the limit with careful configuration, but 24 or 32 GB provides a much more predictable experience.
32B Q4 model on a 32 GB PC
- Weights: about 20 GB
- Runtime and context: 3–6 GB
- System and applications: 5–7 GB
- Estimated total: 28–33 GB
Some configurations may work, but there is little headroom. A larger context or different quantization may exceed physical memory. For regular use, 48 or 64 GB is more sensible.
70B Q4 model
- Weights: approximately 40–48 GB
- Runtime, cache, and context: approximately 5–15 GB or more
- System and applications: 5–8 GB
- Practical total: approximately 55–71 GB or more
With careful quantization and context settings, 64 GB may be enough at the edge. For greater freedom, 96 or 128 GB is more realistic.
Practical table by PC configuration
| Installed memory | Realistic local use | Main limitations |
|---|---|---|
| 8 GB | Heavily quantized 1B–3B models | Little headroom, short context, limited multitasking |
| 16 GB | Comfortable 3B–8B; some 12B–14B at the limit | Medium models may require closing applications |
| 32 GB | 7B–14B with good headroom; 20B–32B in selected cases | 30B+ models may be tight or slow |
| 64 GB | More practical 32B; limited 70B Q4 use | Long context and speed remain challenges |
| 96–128 GB | Quantized 70B with healthier headroom | CPU and memory bandwidth may still limit performance |
This table describes capacity, not speed. A laptop processor may load a 32B model into 64 GB and still generate slowly. A fast GPU with limited VRAM may also need to offload part of the model to system RAM.
A repeatable calculation before downloading
- Confirm the parameter count: 3B, 8B, 14B, 32B, or 70B.
- Confirm the exact format and quantization, such as GGUF Q4_K_M.
- Check the real download size.
- Add 20% to 40% for the runtime and a moderate context.
- Reserve at least 4–8 GB for the system and other applications.
- If using a GPU, check VRAM and the expected level of offload separately.
- Begin with a conservative context window.
- Measure real consumption before increasing context or opening more programs.
In short:
Required RAM ≈ model file + context/cache + runtime buffers + system/apps + safety margin
For a new purchase, do not size the computer to land exactly on that result. Soldered memory cannot be upgraded, and future models may need more capacity. A margin of 25% to 50% above expected use can extend the useful life of the configuration.
Common hardware-selection mistakes
- Comparing only parameter counts and ignoring quantization.
- Confusing SSD storage with memory required during inference.
- Adding RAM and VRAM together as though they were always one pool.
- Assuming that an NPU can run any available LLM.
- Selecting the maximum advertised context without checking cache requirements.
- Buying more RAM and expecting it to solve a slow CPU.
- Ignoring soldered memory and the absence of upgrade slots.
- Basing a purchase on one benchmark that used different software.
Which upgrade should come first?
If the model fails to load or the system relies heavily on paging, prioritize capacity: more RAM, more unified memory, or a smaller quantization.
If the model fits but responds slowly, extra capacity may not help. Consider a GPU with more VRAM and bandwidth, dual-channel memory where applicable, a faster processor, or a better-optimized runtime.
For regular local AI use in 2026, 16 GB is an entry point for smaller models, 32 GB offers substantially more flexibility, and 64 GB or more begins to make sense for 30B-class models and constrained 70B experiments.
Conclusion
Calculating local LLM memory starts with the weights but does not end there. Quantization establishes the baseline; context and KV cache add consumption; the runtime needs buffers; and the operating system still competes for memory.
For a Q4 7B or 8B model, 16 GB is usually a reasonable starting point. For 13B or 14B, 24–32 GB provides greater safety. Models in the 30B–32B range make 48–64 GB more sensible, while a 70B Q4 workload should be viewed as roughly a 64 GB edge case and a 96–128 GB task for more comfortable use.
An NPU may improve efficiency and accelerate compatible workloads, but it does not replace memory capacity or guarantee universal support. Before buying hardware, verify the exact model file, runtime, context window, and the way RAM and VRAM are used.
The best local-AI computer is not simply the one with the highest TOPS figure. It is the one whose memory, bandwidth, and accelerators match the models you genuinely plan to run. Therefore, before choosing a model or buying new hardware, research the most suitable option and understand how these parameters affect real-world use.
NTS View
The AI race is turning memory into a central PC specification. For years, 8 or 16 GB was treated as sufficient for ordinary tasks. Local model execution changes that logic: memory capacity no longer serves only applications; it determines which AI systems can exist on the device.
That is also why comparing computers has become more complex. RAM, VRAM, unified memory, and NPU performance are not interchangeable figures. Buyers need to consider the full system and question acceleration claims that do not explain memory and compatibility limits.
NTS Verification
The table values are editorial planning estimates based on theoretical weight sizes, common quantized files, and practical allowances for context, runtime, and the operating system. They are not official requirements for every model. Consumption should be confirmed with the specific file, runtime, and hardware.
Verified principles from primary documentation include:
- llama.cpp provides tools and runtime support for GGUF and quantized models.
- Microsoft documents Windows ML as a local inference framework using compatible CPU, GPU, and NPU execution providers.
- NPU requirements depend on the feature: some Windows AI APIs require compatible hardware, while other local runtimes support multiple processor classes.
- Model families are published at very different parameter scales, making the exact model variant central to memory planning.
Primary sources for publication
- ggml-org/llama.cpp — official repository and documentation
- Microsoft Learn — What is Windows ML?
- Microsoft Learn — Get started with Foundry Local
- Official documentation for the model family selected by the reader