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.
Formula
lifetime = endurance × wear-levelled pages / physical erases per dayWorked example
At 100 writes a day, this memory lasts about 35 years — 0.8 physical erases per day against 10000 available.
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.
erases per day = writes per day / writes per page
100 / 128
0.78
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
Battery Life Calculator
Runtime from capacity and load — including a duty-cycled sleep profile for battery-powered IoT nodes that spend most of their life asleep.
Power & Wiring
Stack Size Estimator
Estimate worst-case stack depth from call nesting, locals and interrupt frames.
Firmware
C Struct Padding Calculator
Paste a C struct to see member offsets, inserted padding and total size for 32-bit and 64-bit targets — and how to reorder it smaller.
Firmware
Hex, Binary & Decimal Converter
Convert between hex, binary, decimal, octal and ASCII, with width-aware bit grids and endianness swapping.
Firmware
Bitwise Operation Calculator
AND, OR, XOR, NOT and shifts with a live bit grid so you can see exactly which bits moved.
Firmware
CRC Calculator
CRC-8, CRC-16 (CCITT, Modbus, XMODEM) and CRC-32 over hex or ASCII input, with the polynomial and shift steps explained.
Firmware