It is calculated as shown below
Mean Effective Pressure (Pm or Pmef):
Mean effective pressure is the hypothetical constant pressure that is assumed to be acting on the piston during its expansion stroke producing the same work output as from the actual cycle.
We can say that
The constant depends on mechanism used to get the indicator diagram and has units bar/m.