As discussed previously, when gnocchi are hot, water within the gnocchi evaporates. This water cannot escape from the gnocchi, but can slightly expand the soft pillow. When enough gas bubbles form within the gnocchi, the density is reduced enough for the gnocchi to float.