We reported a simple and convenient method to determine the film thickness by nanoindentation tests. This method starts from the analysis of the unloading portion of the measured nanoindentation load-displacement curves according to a quadratic polynomial, P = α(h − hf)2 − P0, where P is the indentation load, P0 is the virtual load used to consider the effect of the residual contact stress, h is the indenter displacement (penetration depth), hf is the final displacement after complete unloading which should be determined by curve fitting, and α is a constant. Then the best-fit value of the parameter P0 is plotted as a function of the maximum penetration depth, hmax. Such a P0 versus hmax curve may pass through a minimum, and hmax corresponding to this minimum would be equal to the film thickness value.