By using the mirror equation: 1/f = 1/u + 1/v, where u is the object distance and v is the image distance.