How to Test Laptop RAM with Windows Memory Diagnostic
Short answer: Windows Memory Diagnostic restarts your Windows laptop and checks the installed RAM for errors. Use it when a machine crashes, freezes, or shows a blue screen, especially if the same failure occurs during a build or while containers are running. If the tool reports a problem, treat the memory as unreliable: back up your work, check your warranty, and reseat or replace the RAM if the laptop allows it. A clean result lowers the chance that RAM is the cause, but it does not clear every other component.
When to run a memory test
RAM faults are intermittent by nature. A laptop can run normally for days, then freeze during a compile, restart on its own, or drop a local database connection without an obvious trigger. If the same failure keeps coming back after you update drivers and install Windows updates, a memory test is a fast way to rule the RAM in or out.
For a programmer, memory errors are often first noticed through the tools you depend on. A container exits with a strange status, a virtual machine fails to resume, a browser tab keeps crashing, or a local development server stops responding during a long build. None of these symptoms is proof that the RAM is bad, but they are a good reason to run the built-in Windows check. If the machine is older and you are planning a replacement, the RAM buying guide explains how much memory your usual workload needs.
What Windows Memory Diagnostic does
Windows Memory Diagnostic is the memory test tool included with Windows. It restarts the laptop and checks the installed RAM before Windows loads, looking for addresses that do not return what was written to them. The test is specific to memory, so treat it as one step in a hardware check, not as a full system diagnosis.
A lightweight editor such as Visual Studio Code is supported on current 64-bit Windows, but a light workload does not protect you from a failing memory module. The fault can appear in any process that happens to use the bad address. If the RAM passes, another component such as the storage drive, CPU, or graphics processor may be responsible, and our guide to running laptop hardware diagnostics covers the next checks.
How to run the test
Running the test is straightforward, but you should plan for a restart. The tool takes over the screen, so save files, close open containers, shut down virtual machines, and quit any service that does not tolerate an unexpected reboot.
- Open the Start menu, type Windows Memory Diagnostic, and select the tool.
- Choose Restart now and check for problems.
- Let the test run. The machine may restart several times.
- Sign in to Windows and wait for the result notification.
What the results mean
A report of no errors means the memory passed that run. It lowers the chance that RAM is causing the problem, but it does not clear every other component. If the failure is hard to reproduce, run the extended test and continue checking storage health and event logs.
If the diagnostic reports a found problem, treat the RAM as unreliable from that point on. A single failed address can cause crashes weeks later because the operating system may not use that address until a specific process or service requests it. Save your work, back up what you cannot rebuild, and then plan your next step.
After a failed memory test
If the diagnostic reports an error, first check whether the memory is replaceable or soldered. Many thin laptops have soldered RAM, which means a repair shop or warranty replacement is the practical route. If the laptop is still under warranty, use that first.
For a laptop with replaceable memory, reseat the modules once before buying new ones. If the fault follows a particular slot, the motherboard may be the problem. If you have reached the point of buying a replacement laptop, the programming laptop guide is the place to start. When comparing models, the laptop processor guide explains what suffixes such as H and U tell you about performance and power.
Check the rest of the laptop after a clean test
If Windows Memory Diagnostic comes back clean, do not assume the laptop is healthy. A failing SSD can produce freezes and crashes that look like memory errors, and a GPU fault can cause display corruption or driver resets. Run the broader hardware diagnostics on the laptop before you spend time reinstalling software.
Storage problems are especially common on older machines because the drive writes data continually. Back up your code and databases before you start replacing parts. If the laptop is still under warranty, the manufacturer's diagnostic utility is the most direct way to get a replacement approved.
Choosing a laptop with memory headroom
Once you know the current laptop is stable, think about the amount of RAM your programming workload really needs. A web developer running an editor, a browser, and one container will be comfortable with 16GB, while someone who runs Docker, a virtual machine, and local services at the same time should plan for 32GB. The web development guide and the Docker and virtual machines guide match those workloads.
If you are a student, the computer science student guide covers the mix of coursework you are likely to meet. For machine learning or data work, the data science and machine learning guide points to models with enough RAM and a dedicated GPU. If you want to avoid this situation for several years, the 32GB RAM guide is a useful starting point.
What to pick for your work
| If you | Pick | Buying guide |
|---|---|---|
| Your current laptop passed the memory test but still feels slow | Keep the laptop and check storage, cooling, and background services | Best Laptop for Programming in 2026: 14 Picks by Specs |
| You develop web apps with an editor, a browser, and one container | 16GB RAM laptop | Best Laptops for Web Development in 2026: 14 Picks by Specs |
| You run Docker or virtual machines alongside an editor and several services | 32GB RAM laptop | Best Laptops for Docker and Virtual Machines in 2026: 14 Picks |
| You are a computer science student buying a first laptop | 16GB or 32GB depending on your courses | Best Laptops for Computer Science Students in 2026 |
| You train local machine learning models and want headroom | 32GB RAM with a dedicated GPU | Best Laptops for Data Science and Machine Learning in 2026 |
| You want a replacement with enough RAM for several years | 32GB RAM laptop | Best 32GB RAM Laptops for Programming in 2026: 14 Picks by Specs |
Questions
Will Windows Memory Diagnostic damage my files?
No. The test restarts the machine and does not touch your files or installed programs. Save your work before you run it, and close containers or virtual machines so no unsaved data is lost.
How long does Windows Memory Diagnostic take?
Microsoft does not publish a fixed duration. It depends on the amount of RAM and whether you choose the standard or extended test. The laptop may restart more than once, so allow enough time before you need the machine.
Can I use the laptop while the test is running?
No. The tool takes over the screen and runs before Windows loads. You do not need to press keys unless the tool finds a problem and pauses.
The test says no errors. Does that mean the RAM is perfect?
No. It means the written patterns came back correctly in that run. Faults can be intermittent, so repeat the test in extended mode and continue checking other hardware if symptoms persist.
My laptop has soldered RAM and the test failed. What now?
Treat the laptop as needing service. If it is under warranty, contact the manufacturer. If not, a repair shop may replace the motherboard or the memory module if it is not soldered.
Recent updates
- : First published.