# Error-Correcting Code Memory (ECC Memory)

> Memory that finds and fixes its own small slips. Servers use it.

**Field:** Infrastructure  
**Category:** Servers  
**Also known as:** ECC Memory, ECC RAM, ECC, Error-Correcting Memory

## Think of it like

Think of it like a spell check for memory. It spots a wrong letter and fixes it fast.

## Definition

ECC memory is memory that can find and fix small errors on its own. Now and then, a bit in memory flips by itself. Normal memory passes the wrong value on, and a program may crash or save bad data. ECC memory stores a little extra check data for every chunk. With it, the memory spots the flipped bit and fixes it as it reads.

## Example

Jack's database server runs for months without a restart. Its ECC memory quietly fixes a few flipped bits, and the logs show each one.

## Why it matters

A server that runs for months will meet memory errors. ECC stops them from quietly spoiling saved data.

## Common mistake

Thinking ECC fixes every error. It fixes small ones and reports bigger ones, so a failing stick still needs changing.

## Three principles

- **Extra check data.** Stored next to each chunk.
- **Fixes small errors.** As the memory is read.
- **Reports the rest.** Bigger errors show in the logs.

## Related terms

- [Random Access Memory (RAM)](https://learn.benibix.com/term/infrastructure/random-access-memory)
- [Server](https://learn.benibix.com/term/infrastructure/server)
- [Redundant Power Supply](https://learn.benibix.com/term/infrastructure/redundant-power-supply)
- [Baseboard Management Controller (BMC)](https://learn.benibix.com/term/infrastructure/baseboard-management-controller)

## Taught in

- [ECC Memory and Hot Swapping](https://learn.benibix.com/learn/infrastructure-servers/ecc-memory-and-hot-swapping): Servers and Racks, 5/8

![A rack server seen from the front and the back. The front shows a row of drive bays, one drive half pulled out while the server is on. The back shows two power supplies plugged into two separate power lines, network ports and one separate port marked BMC. Inside, memory sticks are marked ECC.](https://learn.benibix.com/diagrams/inf3-server-parts.svg)

---

Source: https://learn.benibix.com/term/infrastructure/ecc-memory
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
