An efficient method for generating the mass matrix inverse is presented, which can be tailored to improve the accuracy of target frequency ranges and/or wave contents. The present method bypasses the use of biorthogonal construction of a kernel inverse mass matrix that requires special procedures for boundary conditions and free edges or surfaces, and constructs the free-free inverse mass matrix employing the standard FEM procedure. The various boundary conditions are realized by the method of localized Lagrange multipliers. Numerical experiments with the proposed inverse mass matrix method are carried out to validate the effectiveness proposed technique when applied to vibration analysis of bars and beams. A perfect agreement is found between the exact inverse of the mass matrix and its direct inverse computed through biorthogonal basis functions