The development of one cycle resolution control strategies and the research at HCCI engines demands an accurate estimation of the trapped mass. In contrast to current methods for determining the mass flow, which are only able to determine averaged values of the flow entering the cylinders, the present paper proposes a methodology based on the in-cylinder pressure resonance. The determination of such frequency allows inferring the cylinder mass with one cycle resolution. In addition, the method permits determining error metrics based on the mass conservation principle. Validation results for a reactivity controlled compression ignition (RCCI) engine equipped with electrohydraulic variable valve timing (VVT) are presented to illustrate the performance of the method.