Flash & EEPROM Endurance Calculator — how long until it wears out

How long your flash survives at a given write rate, and how much wear levelling buys you.

Example: At 100 writes a day, this memory lasts about 35 years — 0.8 physical erases per day against 10000 available.

Check it against real silicon

Chiprun runs your firmware on an emulated microcontroller and hands back the UART output, so you can confirm these numbers rather than trusting them.

Chiprun docs

Formula

lifetime = endurance × wear-levelled pages / physical erases per day

Worked example

At 100 writes a day, this memory lasts about 35 years — 0.8 physical erases per day against 10000 available.

  1. writes per page = page size / bytes per write

    2048 / 16

    128

    Flash must erase a whole page, so small writes are packed until the page fills.

  2. erases per day = writes per day / writes per page

    100 / 128

    0.78

  3. lifetime = endurance × pages / erases per day

    10000 × 1 / 0.78

    12800 days (35 years)

Frequently asked questions

How many times can flash be written?

Typically 10,000 erase cycles for MCU internal flash and 100,000 for EEPROM and serial NOR — per page, not per device. The figure is for erases, not writes, which is why page size and write size matter so much.

What is write amplification?

The gap between the bytes you write and the bytes the memory actually erases. Flash erases whole pages, so updating 4 bytes in a 2 KB page can cost a full erase. Packing several small writes into one page before erasing is how firmware libraries keep the ratio down.

Does wear levelling really help that much?

Yes, essentially linearly. Spreading writes across 64 pages instead of 1 gives 64 times the erase budget. It is the single most effective change for a design that writes frequently, and it is why emulated-EEPROM libraries exist.

Does temperature affect endurance?

Considerably. Rated cycles are specified at room temperature, and both endurance and retention degrade at elevated temperature. A part rated for 10,000 cycles and 20 years of retention at 25 °C offers noticeably less of both at 85 °C.

Related tools