This method works great, so simple. One thing I want to add is the distance from the lens and the collimated laser source (laser pointer) going into and through the lens does not matter, it's how far away the output of the lens is to the target when the dot is at its smallest possible size is the focal length.
Of course, if the laser you are using is not fully collimated, you will have error.