# External fragmentation
Last edited: 2026-02-05
External fragmentation
External fragmentation occurs when free memory is split into small, non-contiguous blocks, making it impossible to allocate a large contiguous block despite having enough total free space. This happens in systems that use variable-sized allocations (e.g., segmentation
or heap
memory management). For example, if a program repeatedly allocates and frees different-sized memory chunks, gaps form between allocated blocks, preventing large allocations.