A surgical device includes a motor and a reload having a plurality of staples. The surgical device also includes an anvil assembly movable relative to the reload by the motor to clamp tissue therebetween. The device further includes a force sensor configured to measure force imparted on the anvil assembly. The device additionally includes a controller configured to compare the measured force to a target force, determine a distance at which the measured force matches the target force, and output the distance and the target force.