We recommend putting a cable every 3 1/8″, we’ve found that this spacing (when combined with an intermediate post placed every 4 feet), allows for minimal cable deflection, so that you stay within the common 4″ sphere rule for code
(more on cable railing code).