We propose a method for measuring the cell gap of twisted-nematic liquid crystal (TNLC) cells using a single wavelength. We measure the total transmitted intensity ratio with the polarizer angles rotated in two arbitrary ranges. The proposed total intensity ratio method is resistant to measurement errors because it is an integral method. It can applied to the determination of cell thickness in small cell gaps as well as large ones.