Sign convention for magnification formula:
- The distances measured in the direction of incident rays are positive and all the distances measured in the direction opposite to that of the incident rays are negative.
- All distances measured above the principal axis are positive. Thus, height of an object and that of an erect image are positive and all distances measured below the principal axis are negative.