energy at the state added to the product of final pressure and state volume and the product f P not with entropy of that state is subtracted from it. The actual work done by the system is always less than the idealised reversible work.
Irreversibility: What is? (Thermodynamics)