Hardware

How to Run a CPU Stress Test (Windows and Linux)

To run a CPU stress test on Windows, start Prime95, choose Just Stress Testing and keep the default options. On Linux, run stress-ng --cpu $(nproc) --timeout 10m --verify. In both cases, watch the temperature and clock speed while it runs, and stop the test if the machine gets too hot.

A stress test pushes every core to full load for a sustained period. If the system survives it without crashing, overheating or reporting errors, it is stable under the heaviest load it is likely to meet.

Before you start

  • Save your work and close other programs. A crash or restart is a possible result.
  • Open a temperature monitor first. A stress test without one tells you little. See how to check CPU and GPU temperature for the options on each operating system, and note your processor's maximum junction temperature.
  • Know your baseline. Note the idle temperature and normal clock speed so you can compare them with the loaded readings.
  • On a laptop, plug in the charger and place the machine on a hard, flat surface so the vents are clear.

How to run a CPU stress test on Windows with Prime95

Prime95 is a free program from Mersenne.org. Its download page has a section titled "CPU Stress / Torture Testing" and says the program is commonly used to stress-test CPUs and their caches. As of November 2026 the page lists version 30.19 build 20 for Windows (64-bit and 32-bit zip files), Linux (tar.gz) and a command-line build for Intel Macs.

  1. Download the 64-bit Windows zip from mersenne.org/download and extract it into a new folder.
  2. Run prime95.exe.
  3. In the first dialog, choose Just Stress Testing. This is the option the download page describes for stress testing without joining the prime-number search.
  4. Leave the default test options, which the page recommends for a balanced test, and start the test.
  5. Leave it running while you watch temperature and clock speed in your monitor.
  6. To stop, use Prime95's stop option in its Test menu, or close the program.

The exact wording of dialogs and menus can change between builds, so follow the prompts in your version.

Intel Processor Diagnostic Tool

If you have an Intel processor and want a pass or fail check rather than a manual test, Intel publishes the Intel Processor Diagnostic Tool for Windows 10, Windows 11 and recent Windows Server versions. Intel's page says it checks the processor's brand identification, verifies the operating frequency, tests specific processor features and runs a stress test on the processor. The page itself does not describe how results are reported, so read the user guide it links to.

This tool is for Intel processors only. For AMD, or if you want to control the load and duration yourself, use one of the other tools in this article.

How to run a CPU stress test on Linux with stress-ng

stress-ng is packaged by most distributions (on Debian and Ubuntu: sudo apt install stress-ng). This command starts one worker per logical CPU for 10 minutes:

stress-ng --cpu $(nproc) --timeout 10m --verify --metrics

What each option does, according to the stress-ng manual:

  • --cpu N starts N workers that exercise the CPU by working through all the different CPU stress methods in turn. $(nproc) prints the number of available processing units, so every logical CPU gets a worker.
  • --timeout 10m runs the test for at least that long. Time suffixes are s, m, h, d and y, and a timeout of 0 runs until you stop it.
  • --verify checks results while the test runs. The manual notes that this is not available on all tests.
  • --metrics prints the total number of "bogo operations" performed. The manual says these are not a reliable measure of performance, so don't use them to compare machines.

To collect temperatures from the system's thermal zones in the same run, add --tz (Linux only). Or leave a second terminal open running sensors from lm-sensors.

To load the CPU at less than full power, for example to see how the cooler behaves at 50%, add --cpu-load 50. The manual defines 0 as effectively a sleep and 100 as full load.

Press Ctrl+C to stop the test early.

Be careful with other stressors in stress-ng. Its manual warns that some tests "can make a system run hot on poorly designed hardware" and can cause excessive thrashing that is hard to stop. The --pathological option enables stressors known to hang systems, and the manual says they may lock a system up or cause it to reboot. For a CPU test, you don't need either.

What to watch during the test

What you seeWhat it usually meansWhat to do
Temperature rises, then levels off below the processor's limitCooling is adequate for this loadNothing; the test passed on this measure
Temperature keeps climbing until it hits the limitCooling cannot keep up with full loadStop the test, then check fans, dust and the cooler mounting
Temperature at the limit and clock speed droppingThermal throttling: the processor is slowing itself to stay safeImprove cooling if you want full performance under load
Test reports an error or a worker failsPossible instability (overclock, undervolt, memory or power problem)Return settings to default and run again
Blue screen, freeze or sudden restartThe system could not sustain the loadCheck temperatures and power supply, then retest at default settings

Throttling is the processor protecting itself, not damage. It shows up as lower clock speed at the same load. For why a chip does this and what the limit means for your model, see the thermal throttling section of the temperature article.

Stop the test if

  • The temperature reaches your processor's maximum junction temperature and keeps rising.
  • You hear or see a fan stop, or a cooler come loose.
  • The machine becomes unresponsive.
  • You smell something burning. Power off and unplug it.

If the test fails or temperatures are too high

Start with the cooling. Clean dust from fans and heatsinks, confirm every fan spins under load, and make sure vents are unobstructed. On a desktop with high temperatures even after cleaning, old or poorly applied thermal paste is a common cause: see how to replace thermal paste.

If you have overclocked or undervolted, return to default settings and repeat the test. If the system is stable at defaults but not with your changes, the changes are the problem. If it crashes at default settings with good temperatures, the cause may be memory or the power supply rather than the CPU, and you would need to test those separately.

Frequently asked questions

How long should a CPU stress test run?
For a quick check of cooling, 10 to 15 minutes is enough to see whether temperature levels off. To look for instability from an overclock or a new build, people run longer, often an hour or more. There is no official figure; stop sooner if the temperature reaches the processor's limit or the machine crashes.
Can a CPU stress test damage my processor?
A stress test runs the chip at full load, which it is designed to survive, and processors slow down or shut off to protect themselves when they get too hot. The stress-ng manual does warn that some tests can make a system run hot on poorly designed hardware. If cooling is faulty, you may get slowdowns or shutdowns rather than damage, but stop the test if temperatures keep climbing.
What does it mean if my computer crashes or restarts during a stress test?
The system could not sustain full load. Common causes are inadequate cooling, an unstable overclock or undervolt, or a weak power supply. Check temperatures first, then return any overclock or undervolt to default settings and test again.
Is a stress test the same as a benchmark?
No. A stress test checks whether the system stays stable and cool under sustained full load, and the result is pass or fail. A benchmark produces a score to compare performance. The stress-ng manual says its bogo operation counts are not a reliable metric of performance or throughput.

Sources