Following sign convention is used for measuring various distances during the formation of images by lenses:
The following table gives the sign convention for lenses: