# Difference between Gibbs Free Energy and Exergy

I'm wondering if there is any difference between Gibbs Free Energy and Exergy because their definition seems to me the same $\Delta H - T_\text{env}\cdot\Delta S$.

Exergy represents the maximum amount of work that can be extracted from a system going in equilibrium with its environment, while the Gibbs Free Energy is evaluated at $T,P$ of the system in equilibrium with the environment.

Practically what is the difference, if any?

Exergy is equal to the Gibbs free energy if you happen to be in the isothermal--isobaric ensemble $(N, P, T)$, i.e. in a closed system if the pressure $P$ and temperature $T$ are constant. This is indicated in Eq. 7 of the Wikipedia page for exergy.