Water expands between cold fill and hot running, and a sealed loop has no way to release that volume - so the tank absorbs it. Size it against the system volume, the temperature swing and the pressure window allowed by the relief valve.
Expansion Tank Sizing Calculator gives the tank volume in gallons and litres for closed hydronic loops.