Step 1: Work done in expansion.
In an ideal gas expanding in a vacuum, no external pressure is applied, and therefore no work is done by the gas. Work is defined as \( W = p \Delta V \), and since \( p = 0 \) in a vacuum, the work done is zero.
Step 2: Conclusion.
Thus, the work done by the gas is zero.