3-axis milling machines can move the cutting tool along the x, y, and z axes. 4-axis machines have an additional rotary axis, allowing for more complex operations. 5-axis machines have two additional rotary axes, enabling the cutting tool to approach the workpiece from various angles.