A calibration system for a surgical instrument. The calibration system includes an actuator, such as a motor system and a flexible shaft. The calibration system also includes a surgical instrument actuatable by the actuator. The calibration system also include calibration data corresponding to the surgical instrument. A processor is configured to process the calibration data for determining a position of the surgical instrument. The calibration system may include a sensor configured to provide a signal corresponding to a movement of the actuator, the processor being further configured to process the signal for determining a position of the surgical instrument.