This sheet lays out a 4 ft (48") deck railing between post faces. It compares 1-1/2" wood with 3/4" metal, gives every mark from one hook of the tape, and checks the 4" sphere rule and post spacing.
1-1/2" wood: 9 balusters
48" ÷ (1-1/2" + gap) fits 9 balusters with 10 equal gaps of 3-7/16" (3.450"), 4-15/16" on centre.
From the post face the leading edges fall at 3-7/16", 8-3/8", 13-3/8", 18-5/16" and on in 4-15/16" steps. Buy 10 to allow 10% for splits and miscuts.
3/4" metal: 10 balusters
Thinner balusters need more of them: 10 at 3-11/16" gaps, 4-7/16" on centre. The first four marks: 3-11/16", 8-1/8", 12-9/16", 17".
1" metal or composite takes 10 at 3-7/16"; 3-1/2" flat pickets take 7 at 2-15/16".
Posts and heights
With 4x4 posts the centres are 51-1/2" apart, inside the 6'-0" DCA 6 limit for guard posts.
The guard top sits at least 36" above the deck and the bottom rail less than 4" above it.