ECC (error-correcting code) memory stores extra check bits alongside your data, so the memory controller can detect a flipped bit on every read and correct it automatically. A standard ECC module carries 72 bits for every 64 bits of data, which is enough to fix any single-bit error and detect (but not fix) a two-bit error in each 64-bit word.
On Windows, you can check whether your memory uses ECC in one PowerShell line:
(Get-CimInstance Win32_PhysicalMemoryArray).MemoryErrorCorrection
3 means the firmware reports no error correction; 5 or 6 means it reports ECC. The full table is further down.
How ECC memory works
Ordinary desktop memory moves data 64 bits at a time. An ECC module is 72 bits wide: the same 64 data bits plus 8 check bits, usually held on extra DRAM chips. The Linux kernel's RAS documentation uses exactly that example: "ECC memory has extra bits to be used for error correction", a module with 64 data bits and 72 bits in total.
When data is written, the memory controller computes the 8 check bits from the 64 data bits and stores all 72. When it reads them back, it recomputes the check bits and compares. The code used is SECDED: single-bit error correction, double-bit error detection.
- No difference: the data is passed on as is.
- One bit wrong: the pattern of the mismatch points to the exact bit, which is flipped back. The kernel calls this a corrected error (CE): "the error detection mechanism detected and corrected the error."
- Two bits wrong: the controller knows the data is bad but can't tell which bits to fix. This is an uncorrected error (UE): in the kernel's words, the errors were "above the error correction threshold, and the system was unable to auto-correct." What happens next, from logging the error to stopping the machine, depends on the platform and operating system.
Why 8 check bits for 64 data bits? It is the arithmetic of Hamming codes, which you can check yourself. To point to one bad bit among 64 data bits plus the check bits themselves, or to say "no error", r check bits must satisfy 2r ≥ 64 + r + 1. With r = 7, 27 = 128 ≥ 72, so 7 bits are enough to correct single errors. One more parity bit over the whole word adds double-error detection: 7 + 1 = 8, giving a 72-bit word. The overhead is 8 ÷ 64 = 12.5% more memory chips for the same capacity.
Correctable errors are an early warning
Non-ECC memory has the same bit flips; it just can't see them. A flipped bit might land in unused memory and do nothing, or it might corrupt a file being saved, change a number in a calculation, or crash a program, with no record of why.
With ECC, each correction is counted. The kernel documentation says "CEs provide early indications that a DIMM is beginning to fail" and that the count "should be monitored for non-zero values". It also notes that a correctable error is not necessarily a predictor of a future uncorrectable one, but replacing a module that keeps logging corrections reduces the chance of one. That diagnostic value is a large part of why servers use ECC: a failing module identifies itself before it corrupts data.
DDR5 on-die ECC is not ECC memory
Every DDR5 chip contains its own error correction, called on-die ECC. According to Synopsys, a DDR5 DRAM has "8 additional bits for ECC storage" for every 128 bits of data, and it corrects errors inside the chip before the data is sent out.
It is not a substitute for ECC memory:
| DDR5 on-die ECC | ECC memory (side-band ECC) | |
|---|---|---|
| Where the check bits live | Inside each DRAM chip | On extra chips on the module |
| Who checks | The DRAM chip itself | The memory controller in the CPU |
| Protects data on the way to the CPU | No | Yes |
| Present on | All DDR5 | Modules sold as ECC (UDIMM or RDIMM) |
Synopsys states that on-die ECC "does not offer any protection against errors occurring on the DDR channel", which is why it is used together with side-band ECC in servers. Corsair, which sells both kinds, says the same in plainer terms: DDR5's built-in correction "is not the same as traditional ECC memory which has an additional data correction chip on the memory module". If a DDR5 kit's listing doesn't say ECC, it is non-ECC memory with on-die ECC. DDR4 vs DDR5 covers the other differences between the generations.
What you need for ECC to work
ECC is a partnership: the modules store the extra bits, but the memory controller (part of the CPU) does the checking. Three things must line up:
- A processor that supports ECC. Intel's spec pages have an "ECC Memory Supported" field. For example, the Core i9-14900K page lists it as "Yes", with a footnote that the feature "may not be available on all computing systems"; the Core i5-14400F page has no ECC field at all.
- A motherboard and firmware that enable it. The board has to wire the extra data lines and the BIOS has to turn ECC on. The motherboard manual and its memory support list are the authority here, not the CPU alone.
- ECC modules of the type the board accepts. ECC comes as unbuffered modules (ECC UDIMM) and registered modules (RDIMM). They are different module types, so buy the one the board's manual lists.
If any of the three is missing, the system runs without error correction, even with ECC modules installed.
How to check if your PC is using ECC
Windows
Get-CimInstance Win32_PhysicalMemoryArray | Select-Object MemoryErrorCorrection
Get-CimInstance Win32_PhysicalMemory | Select-Object BankLabel, DataWidth, TotalWidth
Example output from a desktop with ordinary memory:
MemoryErrorCorrection : 3
BankLabel DataWidth TotalWidth
--------- --------- ----------
BANK 0/1 64 64
BANK 0/1 64 64
These values come from the firmware's SMBIOS tables. Microsoft documents the codes for MemoryErrorCorrection:
| Value | Meaning |
|---|---|
| 2 | Unknown |
| 3 | None |
| 4 | Parity |
| 5 | Single-bit ECC |
| 6 | Multi-bit ECC |
| 7 | CRC |
For the second command, Microsoft's documentation says TotalWidth includes "check or error correction bits", and if there are none it should match DataWidth. So 64 and 64 means no ECC bits; 72 total for 64 data means ECC modules. Both readings depend on the firmware reporting correctly, so treat them as strong hints and confirm in the BIOS setup screen if it matters.
Linux
sudo dmidecode -t 16 | grep -i "error correction"
ls /sys/devices/system/edac/mc/
dmidecode -t 16 reads the same SMBIOS "Physical Memory Array" record and prints an Error Correction Type line, such as None or Multi-bit ECC. The second command shows whether the kernel's EDAC (error detection and correction) subsystem has registered a memory controller. When it has, there is an mc0 directory, and error counts are in /sys/devices/system/edac/mc/mc0/ce_count and ue_count, with per-module counts in dimm0/dimm_ce_count and so on, as listed in the kernel documentation.
Do you need ECC memory?
It is worth having when silent corruption would be costly and the machine runs for long stretches:
- Servers and NAS boxes that store data you can't easily re-create, especially with file systems that checksum data.
- Workstations doing long calculations, simulations or builds where a wrong result may not be obvious.
- Anything that runs for weeks without a reboot, where a failing module needs to announce itself.
For gaming and general desktop use, mainstream platforms ship without ECC, and the bigger risk to your data is a failed drive or accidental deletion, which ECC does nothing about. How much RAM you need is usually the more useful question for a desktop build.
If you think memory is causing errors
Random crashes, corrupted downloads that fail checksum checks, and blue screens that name different drivers each time can all point to memory. On an ECC system, read the corrected-error counts first: a module with a climbing count is the one to replace. On a non-ECC system, run a memory test overnight, then remove modules one at a time to find the bad one. If you overclocked the memory or enabled an XMP profile, return to default speeds before blaming the hardware; what XMP is explains why that profile is an overclock.
Frequently asked questions
- Is DDR5 ECC memory?
- Not in the usual sense. Every DDR5 chip has on-die ECC, which corrects errors inside the chip before data leaves it, but it does not protect data on its way to the processor. Real ECC memory adds extra check bits on the module that the memory controller verifies on every read. DDR5 modules sold as ECC have those extra bits; ordinary DDR5 does not.
- Can I put ECC RAM in a normal desktop?
- Error correction only works if both the processor and the motherboard support it, because the memory controller in the CPU does the checking. ECC also comes in different module types, unbuffered (ECC UDIMM) and registered (RDIMM), so check the motherboard's manual and memory support list for which type it accepts before buying.
- Does ECC memory make my computer slower?
- The memory controller computes and checks the extra bits as part of each read and write, so any cost depends on the platform and the module speeds available for it. There is no single published figure that applies to every system. If performance matters for your workload, compare benchmarks on the specific platform rather than relying on a general rule.
- Do I need ECC for a home NAS?
- It reduces the chance of silently corrupted data being written to your disks, which is the main argument for it in storage servers that run for months without a reboot. Backups protect against more failure types than ECC does, so treat ECC as an extra layer, not a substitute.
Sources
- Linux kernel docs: Reliability, Availability and Serviceability (RAS)
- Synopsys: Error Correction Code (ECC) in DDR memories
- Microsoft Learn: Win32_PhysicalMemoryArray class (MemoryErrorCorrection)
- Microsoft Learn: Win32_PhysicalMemory class (DataWidth, TotalWidth)
- Intel: Core i9-14900K specifications
- Intel: Core i5-14400F specifications
- Corsair: Is DDR5 ECC memory?