it depends on the region of the inverter you operate it. Means, dependent on the operating region of each of both transistor, of PMOS and NMOS (on-off and triode vs. saturation).
But generally gain A=gm/gds, thus take sum of both gm valid for this region and divide it by sum of both gds for this region.