Before buying a tank, take two readings. A pressure gauge on a hose bib, read cold and again after the heater has run, tells you whether expansion is really the problem.
Reading the log
Rises when hot, falls when cool. Thermal expansion in a closed system. This is the case an expansion tank solves.
High all the time. Supply pressure or a failed regulator. An expansion tank will not fix it.
Normal, but the valve still passes water. The valve itself may be failing, or the gauge point is not representative.
Why the system is closed
A backflow preventer, check valve or regulator stops water pushing back into the main. Once closed, heating has nowhere to send the extra volume.
Pressure climbs to the relief valve's setting, the valve opens, and the cycle repeats every time the burner runs.
Sizing from the numbers
Three inputs: total system volume, static supply pressure, and the temperature swing the setpoint creates. The manufacturer's chart converts them into a size.
Undersized against a long run and high pressure, the tank absorbs almost nothing.
Mounting
Set the air precharge to match supply pressure before connecting. Fit a shutoff and drain so it can be checked without emptying the system.
Fix it where it is braced and out of harm's way. Here, sunlight and knocks are the practical concerns rather than frost.
The valve is not the culprit
Replacing a passing relief valve without addressing expansion gives you a new valve with the same job. Test the valve separately, then fix the cause.
Discharge
The relief line terminates outside, above grade, clear of doors and paths, where hot water and steam can escape safely.
The value
A small tank costs less than a second relief valve and far less than water damage from a system that keeps cycling at its limit.