A new method for the measurement of loss factor for an rf cavity is presented. The method consists of measuring the above quantity by means of the detection of both the rf voltage induced by an electron bunch in the device under test and the bunch charge. The device to be investigated is a copper reentrant T-shaped cavity. The experimental results and their comparison with analytical and numerical results are presented.