We extend and successfully apply a recently proposed microstate nonequilibrium thermodynamics (µNEQT) to study expansion/contraction processes. Here, the numbers of initial and final microstates {m k } are different so they cannot be connected by unique Hamiltonian trajectories. This commonly happens when the phase space volume changes, and has not been studied so far using Hamiltonian trajectories that can be inverted to yield an identity mapping T :as the parameter Z E in the Hamiltonian is changed. We propose a trick to overcome this hurdle with a focus on free expansion (Pvacuum = 0) in an isolated system, where the concept of dissipated work is not clear. The trick is shown to be thermodynamically consistent and can be extremely useful in simulation. We justify that it is the thermodynamic average ∆iW ≥ 0 of the internal microwork ∆iW k done by m k that is dissipated; this microwork is different from the exchange microwork ∆eW with the vacuum, which vanishes. We also establish that ∆iW k ≥ 0 for free expansion, which is remarkable, since its sign is not fixed in a general process.