A system for bending a surgical rod including a linear actuator and a rotational actuator is provided. The linear actuator is configured for moving the surgical rod along a linear direction of the system, and the rotational actuator is configured for rotating the surgical rod about the linear direction. A bending mechanism is also provided positioned downstream of the linear and rotational actuators configured for bending the surgical rod. A controller is operably connected to the linear and rotational actuators and the bending mechanism, the controller configured to activate the various components and bend the surgical rod into a desired three-dimensional shape.