Our formula is able to fit and interpret both primary and scanning sorption/desorption isotherms for a variety of adsorbates (noble gases, water, and organics) and porous materials (cement pastes, dental enamels, porous glasses, carbon black and nanotubes), including cases with broad pore-size distributions and large hysteresis. It allows quantification of the prevalence of percolating macropores in the material, even though these pores are never filled during the sorption experiments. A distinct bump in sorption isotherms is explained as a lowering of the barrier to nucleation of the vapor phase with a universal temperature scaling.